{"version":3,"sources":["webpack:///webpack/bootstrap 38b6fd34eb8c89d489e9","webpack:///./app/main.ts","webpack:///./~/core-js/index.js","webpack:///./~/core-js/shim.js","webpack:///./~/core-js/modules/es6.symbol.js","webpack:///./~/core-js/modules/_global.js","webpack:///./~/core-js/modules/_has.js","webpack:///./~/core-js/modules/_descriptors.js","webpack:///./~/core-js/modules/_fails.js","webpack:///./~/core-js/modules/_export.js","webpack:///./~/core-js/modules/_core.js","webpack:///./~/core-js/modules/_hide.js","webpack:///./~/core-js/modules/_object-dp.js","webpack:///./~/core-js/modules/_an-object.js","webpack:///./~/core-js/modules/_is-object.js","webpack:///./~/core-js/modules/_ie8-dom-define.js","webpack:///./~/core-js/modules/_dom-create.js","webpack:///./~/core-js/modules/_to-primitive.js","webpack:///./~/core-js/modules/_property-desc.js","webpack:///./~/core-js/modules/_redefine.js","webpack:///./~/core-js/modules/_uid.js","webpack:///./~/core-js/modules/_ctx.js","webpack:///./~/core-js/modules/_a-function.js","webpack:///./~/core-js/modules/_meta.js","webpack:///./~/core-js/modules/_shared.js","webpack:///./~/core-js/modules/_set-to-string-tag.js","webpack:///./~/core-js/modules/_wks.js","webpack:///./~/core-js/modules/_wks-ext.js","webpack:///./~/core-js/modules/_wks-define.js","webpack:///./~/core-js/modules/_library.js","webpack:///./~/core-js/modules/_keyof.js","webpack:///./~/core-js/modules/_object-keys.js","webpack:///./~/core-js/modules/_object-keys-internal.js","webpack:///./~/core-js/modules/_to-iobject.js","webpack:///./~/core-js/modules/_iobject.js","webpack:///./~/core-js/modules/_cof.js","webpack:///./~/core-js/modules/_defined.js","webpack:///./~/core-js/modules/_array-includes.js","webpack:///./~/core-js/modules/_to-length.js","webpack:///./~/core-js/modules/_to-integer.js","webpack:///./~/core-js/modules/_to-index.js","webpack:///./~/core-js/modules/_shared-key.js","webpack:///./~/core-js/modules/_enum-bug-keys.js","webpack:///./~/core-js/modules/_enum-keys.js","webpack:///./~/core-js/modules/_object-gops.js","webpack:///./~/core-js/modules/_object-pie.js","webpack:///./~/core-js/modules/_is-array.js","webpack:///./~/core-js/modules/_object-create.js","webpack:///./~/core-js/modules/_object-dps.js","webpack:///./~/core-js/modules/_html.js","webpack:///./~/core-js/modules/_object-gopn-ext.js","webpack:///./~/core-js/modules/_object-gopn.js","webpack:///./~/core-js/modules/_object-gopd.js","webpack:///./~/core-js/modules/es6.object.create.js","webpack:///./~/core-js/modules/es6.object.define-property.js","webpack:///./~/core-js/modules/es6.object.define-properties.js","webpack:///./~/core-js/modules/es6.object.get-own-property-descriptor.js","webpack:///./~/core-js/modules/_object-sap.js","webpack:///./~/core-js/modules/es6.object.get-prototype-of.js","webpack:///./~/core-js/modules/_to-object.js","webpack:///./~/core-js/modules/_object-gpo.js","webpack:///./~/core-js/modules/es6.object.keys.js","webpack:///./~/core-js/modules/es6.object.get-own-property-names.js","webpack:///./~/core-js/modules/es6.object.freeze.js","webpack:///./~/core-js/modules/es6.object.seal.js","webpack:///./~/core-js/modules/es6.object.prevent-extensions.js","webpack:///./~/core-js/modules/es6.object.is-frozen.js","webpack:///./~/core-js/modules/es6.object.is-sealed.js","webpack:///./~/core-js/modules/es6.object.is-extensible.js","webpack:///./~/core-js/modules/es6.object.assign.js","webpack:///./~/core-js/modules/_object-assign.js","webpack:///./~/core-js/modules/es6.object.is.js","webpack:///./~/core-js/modules/_same-value.js","webpack:///./~/core-js/modules/es6.object.set-prototype-of.js","webpack:///./~/core-js/modules/_set-proto.js","webpack:///./~/core-js/modules/es6.object.to-string.js","webpack:///./~/core-js/modules/_classof.js","webpack:///./~/core-js/modules/es6.function.bind.js","webpack:///./~/core-js/modules/_bind.js","webpack:///./~/core-js/modules/_invoke.js","webpack:///./~/core-js/modules/es6.function.name.js","webpack:///./~/core-js/modules/es6.function.has-instance.js","webpack:///./~/core-js/modules/es6.parse-int.js","webpack:///./~/core-js/modules/_parse-int.js","webpack:///./~/core-js/modules/_string-trim.js","webpack:///./~/core-js/modules/_string-ws.js","webpack:///./~/core-js/modules/es6.parse-float.js","webpack:///./~/core-js/modules/_parse-float.js","webpack:///./~/core-js/modules/es6.number.constructor.js","webpack:///./~/core-js/modules/_inherit-if-required.js","webpack:///./~/core-js/modules/es6.number.to-fixed.js","webpack:///./~/core-js/modules/_a-number-value.js","webpack:///./~/core-js/modules/_string-repeat.js","webpack:///./~/core-js/modules/es6.number.to-precision.js","webpack:///./~/core-js/modules/es6.number.epsilon.js","webpack:///./~/core-js/modules/es6.number.is-finite.js","webpack:///./~/core-js/modules/es6.number.is-integer.js","webpack:///./~/core-js/modules/_is-integer.js","webpack:///./~/core-js/modules/es6.number.is-nan.js","webpack:///./~/core-js/modules/es6.number.is-safe-integer.js","webpack:///./~/core-js/modules/es6.number.max-safe-integer.js","webpack:///./~/core-js/modules/es6.number.min-safe-integer.js","webpack:///./~/core-js/modules/es6.number.parse-float.js","webpack:///./~/core-js/modules/es6.number.parse-int.js","webpack:///./~/core-js/modules/es6.math.acosh.js","webpack:///./~/core-js/modules/_math-log1p.js","webpack:///./~/core-js/modules/es6.math.asinh.js","webpack:///./~/core-js/modules/es6.math.atanh.js","webpack:///./~/core-js/modules/es6.math.cbrt.js","webpack:///./~/core-js/modules/_math-sign.js","webpack:///./~/core-js/modules/es6.math.clz32.js","webpack:///./~/core-js/modules/es6.math.cosh.js","webpack:///./~/core-js/modules/es6.math.expm1.js","webpack:///./~/core-js/modules/_math-expm1.js","webpack:///./~/core-js/modules/es6.math.fround.js","webpack:///./~/core-js/modules/es6.math.hypot.js","webpack:///./~/core-js/modules/es6.math.imul.js","webpack:///./~/core-js/modules/es6.math.log10.js","webpack:///./~/core-js/modules/es6.math.log1p.js","webpack:///./~/core-js/modules/es6.math.log2.js","webpack:///./~/core-js/modules/es6.math.sign.js","webpack:///./~/core-js/modules/es6.math.sinh.js","webpack:///./~/core-js/modules/es6.math.tanh.js","webpack:///./~/core-js/modules/es6.math.trunc.js","webpack:///./~/core-js/modules/es6.string.from-code-point.js","webpack:///./~/core-js/modules/es6.string.raw.js","webpack:///./~/core-js/modules/es6.string.trim.js","webpack:///./~/core-js/modules/es6.string.iterator.js","webpack:///./~/core-js/modules/_string-at.js","webpack:///./~/core-js/modules/_iter-define.js","webpack:///./~/core-js/modules/_iterators.js","webpack:///./~/core-js/modules/_iter-create.js","webpack:///./~/core-js/modules/es6.string.code-point-at.js","webpack:///./~/core-js/modules/es6.string.ends-with.js","webpack:///./~/core-js/modules/_string-context.js","webpack:///./~/core-js/modules/_is-regexp.js","webpack:///./~/core-js/modules/_fails-is-regexp.js","webpack:///./~/core-js/modules/es6.string.includes.js","webpack:///./~/core-js/modules/es6.string.repeat.js","webpack:///./~/core-js/modules/es6.string.starts-with.js","webpack:///./~/core-js/modules/es6.string.anchor.js","webpack:///./~/core-js/modules/_string-html.js","webpack:///./~/core-js/modules/es6.string.big.js","webpack:///./~/core-js/modules/es6.string.blink.js","webpack:///./~/core-js/modules/es6.string.bold.js","webpack:///./~/core-js/modules/es6.string.fixed.js","webpack:///./~/core-js/modules/es6.string.fontcolor.js","webpack:///./~/core-js/modules/es6.string.fontsize.js","webpack:///./~/core-js/modules/es6.string.italics.js","webpack:///./~/core-js/modules/es6.string.link.js","webpack:///./~/core-js/modules/es6.string.small.js","webpack:///./~/core-js/modules/es6.string.strike.js","webpack:///./~/core-js/modules/es6.string.sub.js","webpack:///./~/core-js/modules/es6.string.sup.js","webpack:///./~/core-js/modules/es6.date.now.js","webpack:///./~/core-js/modules/es6.date.to-json.js","webpack:///./~/core-js/modules/es6.date.to-iso-string.js","webpack:///./~/core-js/modules/es6.date.to-string.js","webpack:///./~/core-js/modules/es6.date.to-primitive.js","webpack:///./~/core-js/modules/_date-to-primitive.js","webpack:///./~/core-js/modules/es6.array.is-array.js","webpack:///./~/core-js/modules/es6.array.from.js","webpack:///./~/core-js/modules/_iter-call.js","webpack:///./~/core-js/modules/_is-array-iter.js","webpack:///./~/core-js/modules/_create-property.js","webpack:///./~/core-js/modules/core.get-iterator-method.js","webpack:///./~/core-js/modules/_iter-detect.js","webpack:///./~/core-js/modules/es6.array.of.js","webpack:///./~/core-js/modules/es6.array.join.js","webpack:///./~/core-js/modules/_strict-method.js","webpack:///./~/core-js/modules/es6.array.slice.js","webpack:///./~/core-js/modules/es6.array.sort.js","webpack:///./~/core-js/modules/es6.array.for-each.js","webpack:///./~/core-js/modules/_array-methods.js","webpack:///./~/core-js/modules/_array-species-create.js","webpack:///./~/core-js/modules/_array-species-constructor.js","webpack:///./~/core-js/modules/es6.array.map.js","webpack:///./~/core-js/modules/es6.array.filter.js","webpack:///./~/core-js/modules/es6.array.some.js","webpack:///./~/core-js/modules/es6.array.every.js","webpack:///./~/core-js/modules/es6.array.reduce.js","webpack:///./~/core-js/modules/_array-reduce.js","webpack:///./~/core-js/modules/es6.array.reduce-right.js","webpack:///./~/core-js/modules/es6.array.index-of.js","webpack:///./~/core-js/modules/es6.array.last-index-of.js","webpack:///./~/core-js/modules/es6.array.copy-within.js","webpack:///./~/core-js/modules/_array-copy-within.js","webpack:///./~/core-js/modules/_add-to-unscopables.js","webpack:///./~/core-js/modules/es6.array.fill.js","webpack:///./~/core-js/modules/_array-fill.js","webpack:///./~/core-js/modules/es6.array.find.js","webpack:///./~/core-js/modules/es6.array.find-index.js","webpack:///./~/core-js/modules/es6.array.species.js","webpack:///./~/core-js/modules/_set-species.js","webpack:///./~/core-js/modules/es6.array.iterator.js","webpack:///./~/core-js/modules/_iter-step.js","webpack:///./~/core-js/modules/es6.regexp.constructor.js","webpack:///./~/core-js/modules/_flags.js","webpack:///./~/core-js/modules/es6.regexp.to-string.js","webpack:///./~/core-js/modules/es6.regexp.flags.js","webpack:///./~/core-js/modules/es6.regexp.match.js","webpack:///./~/core-js/modules/_fix-re-wks.js","webpack:///./~/core-js/modules/es6.regexp.replace.js","webpack:///./~/core-js/modules/es6.regexp.search.js","webpack:///./~/core-js/modules/es6.regexp.split.js","webpack:///./~/core-js/modules/es6.promise.js","webpack:///./~/core-js/modules/_an-instance.js","webpack:///./~/core-js/modules/_for-of.js","webpack:///./~/core-js/modules/_species-constructor.js","webpack:///./~/core-js/modules/_task.js","webpack:///./~/core-js/modules/_microtask.js","webpack:///./~/core-js/modules/_redefine-all.js","webpack:///./~/core-js/modules/es6.map.js","webpack:///./~/core-js/modules/_collection-strong.js","webpack:///./~/core-js/modules/_collection.js","webpack:///./~/core-js/modules/es6.set.js","webpack:///./~/core-js/modules/es6.weak-map.js","webpack:///./~/core-js/modules/_collection-weak.js","webpack:///./~/core-js/modules/es6.weak-set.js","webpack:///./~/core-js/modules/es6.typed.array-buffer.js","webpack:///./~/core-js/modules/_typed.js","webpack:///./~/core-js/modules/_typed-buffer.js","webpack:///./~/core-js/modules/es6.typed.data-view.js","webpack:///./~/core-js/modules/es6.typed.int8-array.js","webpack:///./~/core-js/modules/_typed-array.js","webpack:///./~/core-js/modules/es6.typed.uint8-array.js","webpack:///./~/core-js/modules/es6.typed.uint8-clamped-array.js","webpack:///./~/core-js/modules/es6.typed.int16-array.js","webpack:///./~/core-js/modules/es6.typed.uint16-array.js","webpack:///./~/core-js/modules/es6.typed.int32-array.js","webpack:///./~/core-js/modules/es6.typed.uint32-array.js","webpack:///./~/core-js/modules/es6.typed.float32-array.js","webpack:///./~/core-js/modules/es6.typed.float64-array.js","webpack:///./~/core-js/modules/es6.reflect.apply.js","webpack:///./~/core-js/modules/es6.reflect.construct.js","webpack:///./~/core-js/modules/es6.reflect.define-property.js","webpack:///./~/core-js/modules/es6.reflect.delete-property.js","webpack:///./~/core-js/modules/es6.reflect.enumerate.js","webpack:///./~/core-js/modules/es6.reflect.get.js","webpack:///./~/core-js/modules/es6.reflect.get-own-property-descriptor.js","webpack:///./~/core-js/modules/es6.reflect.get-prototype-of.js","webpack:///./~/core-js/modules/es6.reflect.has.js","webpack:///./~/core-js/modules/es6.reflect.is-extensible.js","webpack:///./~/core-js/modules/es6.reflect.own-keys.js","webpack:///./~/core-js/modules/_own-keys.js","webpack:///./~/core-js/modules/es6.reflect.prevent-extensions.js","webpack:///./~/core-js/modules/es6.reflect.set.js","webpack:///./~/core-js/modules/es6.reflect.set-prototype-of.js","webpack:///./~/core-js/modules/es7.array.includes.js","webpack:///./~/core-js/modules/es7.string.at.js","webpack:///./~/core-js/modules/es7.string.pad-start.js","webpack:///./~/core-js/modules/_string-pad.js","webpack:///./~/core-js/modules/es7.string.pad-end.js","webpack:///./~/core-js/modules/es7.string.trim-left.js","webpack:///./~/core-js/modules/es7.string.trim-right.js","webpack:///./~/core-js/modules/es7.string.match-all.js","webpack:///./~/core-js/modules/es7.symbol.async-iterator.js","webpack:///./~/core-js/modules/es7.symbol.observable.js","webpack:///./~/core-js/modules/es7.object.get-own-property-descriptors.js","webpack:///./~/core-js/modules/es7.object.values.js","webpack:///./~/core-js/modules/_object-to-array.js","webpack:///./~/core-js/modules/es7.object.entries.js","webpack:///./~/core-js/modules/es7.object.define-getter.js","webpack:///./~/core-js/modules/_object-forced-pam.js","webpack:///./~/core-js/modules/es7.object.define-setter.js","webpack:///./~/core-js/modules/es7.object.lookup-getter.js","webpack:///./~/core-js/modules/es7.object.lookup-setter.js","webpack:///./~/core-js/modules/es7.map.to-json.js","webpack:///./~/core-js/modules/_collection-to-json.js","webpack:///./~/core-js/modules/_array-from-iterable.js","webpack:///./~/core-js/modules/es7.set.to-json.js","webpack:///./~/core-js/modules/es7.system.global.js","webpack:///./~/core-js/modules/es7.error.is-error.js","webpack:///./~/core-js/modules/es7.math.iaddh.js","webpack:///./~/core-js/modules/es7.math.isubh.js","webpack:///./~/core-js/modules/es7.math.imulh.js","webpack:///./~/core-js/modules/es7.math.umulh.js","webpack:///./~/core-js/modules/es7.reflect.define-metadata.js","webpack:///./~/core-js/modules/_metadata.js","webpack:///./~/core-js/modules/es7.reflect.delete-metadata.js","webpack:///./~/core-js/modules/es7.reflect.get-metadata.js","webpack:///./~/core-js/modules/es7.reflect.get-metadata-keys.js","webpack:///./~/core-js/modules/es7.reflect.get-own-metadata.js","webpack:///./~/core-js/modules/es7.reflect.get-own-metadata-keys.js","webpack:///./~/core-js/modules/es7.reflect.has-metadata.js","webpack:///./~/core-js/modules/es7.reflect.has-own-metadata.js","webpack:///./~/core-js/modules/es7.reflect.metadata.js","webpack:///./~/core-js/modules/es7.asap.js","webpack:///./~/core-js/modules/es7.observable.js","webpack:///./~/core-js/modules/web.timers.js","webpack:///./~/core-js/modules/_partial.js","webpack:///./~/core-js/modules/_path.js","webpack:///./~/core-js/modules/web.immediate.js","webpack:///./~/core-js/modules/web.dom.iterable.js","webpack:///./~/core-js/modules/core.dict.js","webpack:///./~/core-js/modules/core.is-iterable.js","webpack:///./~/core-js/modules/core.get-iterator.js","webpack:///./~/core-js/modules/core.delay.js","webpack:///./~/core-js/modules/core.function.part.js","webpack:///./~/core-js/modules/core.object.is-object.js","webpack:///./~/core-js/modules/core.object.classof.js","webpack:///./~/core-js/modules/core.object.define.js","webpack:///./~/core-js/modules/_object-define.js","webpack:///./~/core-js/modules/core.object.make.js","webpack:///./~/core-js/modules/core.number.iterator.js","webpack:///./~/core-js/modules/core.regexp.escape.js","webpack:///./~/core-js/modules/_replacer.js","webpack:///./~/core-js/modules/core.string.escape-html.js","webpack:///./~/core-js/modules/core.string.unescape-html.js","webpack:///./~/reflect-metadata/Reflect.js","webpack:///./~/zone.js/dist/zone.js","webpack:///./~/process/browser.js","webpack:///./~/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js","webpack:///./~/@angular/compiler/bundles/compiler.umd.js","webpack:///./~/@angular/core/bundles/core.umd.js","webpack:///./~/rxjs/Subject.js","webpack:///./~/rxjs/Observable.js","webpack:///./~/rxjs/util/root.js","webpack:///(webpack)/buildin/module.js","webpack:///./~/rxjs/util/toSubscriber.js","webpack:///./~/rxjs/Subscriber.js","webpack:///./~/rxjs/util/isFunction.js","webpack:///./~/rxjs/Subscription.js","webpack:///./~/rxjs/util/isArray.js","webpack:///./~/rxjs/util/isObject.js","webpack:///./~/rxjs/util/tryCatch.js","webpack:///./~/rxjs/util/errorObject.js","webpack:///./~/rxjs/util/UnsubscriptionError.js","webpack:///./~/rxjs/Observer.js","webpack:///./~/rxjs/symbol/rxSubscriber.js","webpack:///./~/rxjs/symbol/observable.js","webpack:///./~/rxjs/util/ObjectUnsubscribedError.js","webpack:///./~/rxjs/SubjectSubscription.js","webpack:///./~/@angular/platform-browser/bundles/platform-browser.umd.js","webpack:///./~/@angular/common/bundles/common.umd.js","webpack:///./app/core/components/app.module.ts","webpack:///./~/@angular/forms/bundles/forms.umd.js","webpack:///./~/rxjs/operator/toPromise.js","webpack:///./~/rxjs/observable/fromPromise.js","webpack:///./~/rxjs/observable/PromiseObservable.js","webpack:///./app/core/components/app.component.ts","webpack:///./app/core/services/utility/utility.service.ts","webpack:///./~/@angular/http/bundles/http.umd.js","webpack:///./~/rxjs/add/operator/map.js","webpack:///./~/rxjs/operator/map.js","webpack:///./app/core/components/app.user.data.ts","webpack:///./~/@angular/router/bundles/router.umd.js","webpack:///./~/rxjs/observable/from.js","webpack:///./~/rxjs/observable/FromObservable.js","webpack:///./~/rxjs/util/isPromise.js","webpack:///./~/rxjs/observable/IteratorObservable.js","webpack:///./~/rxjs/symbol/iterator.js","webpack:///./~/rxjs/observable/ArrayObservable.js","webpack:///./~/rxjs/observable/ScalarObservable.js","webpack:///./~/rxjs/observable/EmptyObservable.js","webpack:///./~/rxjs/util/isScheduler.js","webpack:///./~/rxjs/observable/ArrayLikeObservable.js","webpack:///./~/rxjs/operator/observeOn.js","webpack:///./~/rxjs/Notification.js","webpack:///./~/rxjs/observable/of.js","webpack:///./~/rxjs/operator/every.js","webpack:///./~/rxjs/operator/mergeAll.js","webpack:///./~/rxjs/OuterSubscriber.js","webpack:///./~/rxjs/util/subscribeToResult.js","webpack:///./~/rxjs/InnerSubscriber.js","webpack:///./~/rxjs/operator/mergeMap.js","webpack:///./~/rxjs/operator/reduce.js","webpack:///./~/rxjs/operator/catch.js","webpack:///./~/rxjs/operator/concatAll.js","webpack:///./~/rxjs/operator/first.js","webpack:///./~/rxjs/util/EmptyError.js","webpack:///./~/rxjs/operator/last.js","webpack:///./~/rxjs/BehaviorSubject.js","webpack:///./app/core/config/app.config.ts","webpack:///./app/core/config/app.encrypt.ts","webpack:///./app/core/services/api.service.ts","webpack:///./app/core/services/common/http.service.ts","webpack:///./~/rxjs/add/operator/catch.js","webpack:///./~/rxjs/add/observable/of.js","webpack:///./app/core/services/adminSwitch/adminswitch.service.ts","webpack:///./app/modules/common/header/header.component.ts","webpack:///./app/core/components/app.login.component.ts","webpack:///./app/core/services/fexid/fexid.service.ts","webpack:///./app/modules/common/footer/footer.component.ts","webpack:///./app/modules/login/login.component.ts","webpack:///./app/core/services/loginReset/login.service.ts","webpack:///./app/modules/login/loginrouter.component.ts","webpack:///./app/modules/landingPage/landing.component.ts","webpack:///./app/modules/landingPage/landingrouter.component.ts","webpack:///./app/core/components/app.user.message.ts","webpack:///./app/modules/errorPage/error.component.ts","webpack:///./app/modules/metadata-menu/metadatamenu.component.ts","webpack:///./app/core/services/advancedSearch/advancedSearch.service.ts","webpack:///./app/core/services/metadata/metadata.service.ts","webpack:///./app/modules/metadata-menu/metadata-tags/metadatatags.component.ts","webpack:///./app/modules/metadata-menu/metadata-tags/metadata-subtags/metadatasubtags.component.ts","webpack:///./app/core/services/subscriptions/subscriptions.service.ts","webpack:///./app/core/services/video/video.service.ts","webpack:///./app/core/services/assessment/assessment.userend.service.ts","webpack:///./app/core/services/channel-content/channelcontent.service.ts","webpack:///./app/core/services/channel/channel.service.ts","webpack:///./app/core/services/registeration/registeration.service.ts","webpack:///./app/core/routes/app.routes.ts","webpack:///./app/core/router-guard/registration/register.guard.ts","webpack:///./app/core/directives/template.directives.ts","webpack:///./app/core/directives/switchTemplate/templateswitch.directive.ts","webpack:///./app/core/directives/clickDetection/clickdetection.directive.ts","webpack:///./~/ng2-ckeditor/lib/index.js","webpack:///./~/ng2-ckeditor/lib/ckeditor.module.js","webpack:///./~/ng2-ckeditor/lib/ckeditor.component.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;ACtCC,wBAAiB;AAChB,0BAA0B;AAC1B,0BAA2B;AAE7B,2DAA2E;AAC3E,6CAAyD;AACzD,KAAM,QAAQ,GAAG,iDAAsB,EAAE,CAAC;AAC1C,SAAQ,CAAC,eAAe,CAAC,sBAAS,CAAC,CAAC;;;;;;;ACPpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;AC/KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,uBAAsB;AACtB,qBAAoB,uBAAuB,SAAS,IAAI;AACxD,IAAG;AACH,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD;AACzD;AACA,MAAK;AACL;AACA,uBAAsB,iCAAiC;AACvD,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,8BAA8B;AAC5F;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,2DAA0D,gBAAgB;;AAE1E;AACA;AACA;AACA,qBAAoB,oBAAoB;;AAExC,2CAA0C,oBAAoB;;AAE9D;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH,yBAAwB,eAAe,EAAE;AACzC,yBAAwB,gBAAgB;AACxC,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,KAAK,QAAQ,iCAAiC;AAClG,EAAC;AACD;AACA,gDAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2C;;;;;;AC1OA;AACA;AACA;AACA,wCAAuC,gC;;;;;;ACHvC,wBAAuB;AACvB;AACA;AACA,G;;;;;;ACHA;AACA;AACA,kCAAiC,QAAQ,gBAAgB,UAAU,GAAG;AACtE,EAAC,E;;;;;;ACHD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAqF,uBAAuB;AAC5G,oEAAmE;AACnE,iEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,eAAc;AACd,eAAc;AACd,eAAc;AACd,gBAAe;AACf,gBAAe;AACf,gBAAe;AACf,iBAAgB;AAChB,0B;;;;;;AC1CA,8BAA6B;AAC7B,sCAAqC,gC;;;;;;ACDrC;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,UAAU;AACb;AACA;AACA;AACA,G;;;;;;ACfA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,G;;;;;;ACFA;AACA,sEAAsE,gBAAgB,UAAU,GAAG;AACnG,EAAC,E;;;;;;ACFD;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,EAAC,E;;;;;;AC/BD;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD;AACjD,EAAC;AACD;AACA,sBAAqB;AACrB;AACA,UAAS;AACT,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACpDA;AACA;AACA,oDAAmD;AACnD;AACA,wCAAuC;AACvC,G;;;;;;ACLA;AACA;AACA;;AAEA;AACA,mEAAkE,+BAA+B;AACjG,G;;;;;;ACNA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,wB;;;;;;ACVA,qC;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,sBAAsB;AAChF,iFAAgF,sBAAsB;AACtG,G;;;;;;ACRA,wB;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACTA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA,kBAAiB;;AAEjB;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,WAAW,eAAe;AAC/B;AACA,MAAK;AACL;AACA,G;;;;;;ACpBA;AACA;AACA;AACA;AACA,4DAA2D;AAC3D,G;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA,c;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,G;;;;;;ACdA,0C;;;;;;ACAA,eAAc,sB;;;;;;ACAd;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA,8BAA6B;AAC7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;;;;;;ACxCA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACZA,8E;;;;;;ACAA;AACA;AACA;AACA,mBAAkB;;AAElB;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;;;;;;AClBA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG,UAAU;AACb;AACA,G;;;;;;ACfA;AACA;AACA,+BAA8B,gCAAoC,E;;;;;;ACFlE;AACA;AACA,qEAAuE,0CAA0C,E;;;;;;ACFjH;AACA;AACA,qEAAuE,0CAA2C,E;;;;;;ACFlH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA;AACA;AACA,+BAA8B;AAC9B;AACA;AACA,oDAAmD,OAAO,EAAE;AAC5D,G;;;;;;ACTA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,G;;;;;;ACZA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA,EAAC,E;;;;;;ACHD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;;AAEA,2CAA0C,gCAAoC,E;;;;;;ACH9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU,EAAE;AAC9C,oBAAmB,sCAAsC;AACzD,EAAC,oCAAoC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,EAAC,W;;;;;;AChCD;AACA;AACA,+BAA8B,4BAA6B,E;;;;;;ACF3D;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA,+BAA8B,4CAA4C,E;;;;;;ACF1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA,QAAO,UAAU,cAAc;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,GAAG;AACR;AACA,G;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,E;;;;;;ACTA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB,EAAE;;AAE7C;AACA;AACA;AACA;AACA,IAAG,UAAU;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACtBA;AACA;;AAEA,iCAAgC,8BAAyB,E;;;;;;ACHzD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,2BAA0B,SAAS;AACnC;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,G;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,EAAC,E;;;;;;ACxBD;AACA;AACA;AACA;AACA;AACA;AACA,6FAA4F;AAC5F;AACA;AACA;AACA;AACA;AACA,GAAE,E;;;;;;ACZF;AACA;AACA;AACA,2DAA0D,oBAAoB,E;;;;;;ACH9E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC,a;;;;;;ACRD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2B;;;;;;AC7BA;AACA,oF;;;;;;ACDA;AACA;AACA;AACA,+DAA8D,wBAAwB,E;;;;;;ACHtF;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,e;;;;;;ACPD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD;AAClD,MAAK;AACL;AACA,wCAAuC,cAAc,OAAO;AAC5D,wCAAuC,cAAc,OAAO;AAC5D;AACA;AACA,oEAAmE,OAAO;AAC1E;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,0BAA0B,EAAE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB;AAClB,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,EAAC,E;;;;;;AChHD;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO,MAAM;AACb;AACA,G;;;;;;ACXA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;AACD;AACA,uBAAsB;AACtB,EAAC;AACD;AACA;AACA,mG;AACA;AACA,EAAC,E;;;;;;ACjBD;AACA;;AAEA,+BAA8B,0BAA0B,E;;;;;;ACHxD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;;AAEA,+BAA8B,mCAAoC,E;;;;;;ACHlE;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;;AAEA,+BAA8B,mCAAmC,E;;;;;;ACHjE;AACA;;AAEA,+BAA8B,oCAAoC,E;;;;;;ACHlE;AACA;AACA;AACA,gFAA+E,wBAAwB,E;;;;;;ACHvG;AACA;AACA;AACA,4EAA2E,oBAAoB,E;;;;;;ACH/F;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACjBD;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,0EAAyE,aAAa,E;;;;;;ACTtF;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA,G;;;;;;ACHA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;;AAEA,kEAAiE,cAAc,E;;;;;;ACJ/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,U;;;;;;ACTD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACzBD;AACA;AACA;;AAEA;AACA,yCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,EAAC,E;;;;;;ACxBD;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AChBD;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;;AAEA,6BAA4B,gCAAgC,E;;;;;;ACH5D;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;;AAEA,6BAA4B,+BAA8B,E;;;;;;ACH1D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACdD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACXD;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,EAAC,E;;;;;;ACtBD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,EAAC,E;;;;;;ACjBD;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;;AAEA;AACA;AACA,8BAA6B;AAC7B,eAAc;AACd;AACA,EAAC;AACD;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,WAAU;AACV,EAAC,E;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA4B,aAAa;;AAEzC;AACA;AACA;AACA;AACA;AACA,yCAAwC,oCAAoC;AAC5E,6CAA4C,oCAAoC;AAChF,MAAK,2BAA2B,oCAAoC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,mBAAmB;AACnC;AACA;AACA,kCAAiC,2BAA2B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,G;;;;;;ACrEA,qB;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEA;AACA,4FAAgF,aAAa,EAAE;;AAE/F;AACA,sDAAqD,0BAA0B;AAC/E;AACA,G;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACnBD,uBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,MAAK,UAAU;AACf,IAAG;AACH,G;;;;;;ACXA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACXD;;AAEA;AACA;AACA;AACA,EAAC,E;;;;;;ACLD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACjBD;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAwF;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,G;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACND;AACA;;AAEA,6BAA4B,gBAAgB,6BAA6B,GAAG,E;;;;;;ACH5E;AACA;AACA;AACA;;AAEA;AACA,yEAAwE,wBAAwB,UAAU,GAAG;AAC7G,EAAC;AACD;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACbD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;AACD;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AC3BD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,E;;;;;;ACVA;AACA;;AAEA,oG;;;;;;ACHA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;ACRA;AACA;;AAEA,8BAA6B,iCAAgC,E;;;;;;ACH7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0EAA0E,kBAAkB,EAAE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,gCAAgC;AACpF;AACA;AACA,MAAK;AACL;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;;;;;;ACpCD;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,G;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;;AAEA;AACA;AACA,gCAA+B,qBAAqB;AACpD,gCAA+B,SAAS,EAAE;AAC1C,EAAC,UAAU;;AAEX;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,SAAS,mBAAmB;AACvD,gCAA+B,aAAa;AAC5C;AACA,IAAG,UAAU;AACb;AACA,G;;;;;;ACpBA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AClBD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACXD;;AAEA;AACA;AACA,yCAAwC;AACxC,IAAG;AACH,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,UAAU;AACnB;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AC3BD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACtBD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACVD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,eAAe;AACxB;AACA;AACA;AACA,uCAAsC;AACtC;AACA,+BAA8B;AAC9B,8BAA6B;AAC7B,gCAA+B;AAC/B,oCAAmC;AACnC,UAAS,+BAA+B;AACxC;AACA;AACA;AACA;AACA,G;;;;;;AC3CA;AACA;;AAEA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,G;;;;;;ACfA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,sCAAsC;AAC7C;AACA;AACA;AACA,G;;;;;;AC3BA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACdD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,WAAW;AACpB;AACA;AACA,EAAC,E;;;;;;ACrBD;AACA;;AAEA,8BAA6B,qCAA4C;;AAEzE,wC;;;;;;ACLA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,G;;;;;;ACzBA;AACA;AACA;AACA,4FAAsF;AACtF;AACA;AACA,G;;;;;;ACNA;AACA;;AAEA,8BAA6B,+BAA+B;;AAE5D,kC;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,gBAAgB,EAAE;AACxD;AACA;AACA;AACA;AACA,EAAC;AACD,+B;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,gBAAgB,EAAE;AACxD;AACA;AACA;AACA;AACA,EAAC;AACD,+B;;;;;;ACbA,mC;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAoB,aAAa;AACjC,IAAG;AACH,G;;;;;;ACZA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,eAAc;AACd,kBAAiB;AACjB;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;AACA,6B;;;;;;ACjCA;AACA,WAAU;AACV,G;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,kBAAkB,EAAE;AAC1C,yBAAwB,gBAAgB;AACxC,MAAK;AACL;AACA,oCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;;AAEA,oC;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,sCAAkC,wBAAwB,wBAAwB,YAAY,EAAE;AAChG;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,EAAC;AACD;AACA;AACA,IAAG;AACH,E;;;;;;ACxBA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,UAAU;AACrC;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,+BAA8B,qCAAqC;AACnE;AACA;AACA,0BAAyB,gCAAgC;AACzD;AACA;AACA,G;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,EAAC,E;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,2BAA2B;AACjD,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,kFAAiF;AACjF;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,EAAC,E;;;;;;ACrED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC;AACpC;;AAEA;AACA;AACA;AACA;AACA,gDAA+C,uDAAiD,oBAAoB;AACpH;AACA;AACA,IAAG,UAAU;AACb,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,YAAW;AACX,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,oBAAmB,gCAAgC;AACnD,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,gBAAe,qCAAqC;AACpD;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA,wBAAuB,wBAAwB;AAC/C;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;AACA,IAAG;AACH,mBAAkB,uBAAuB,KAAK;AAC9C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,kBAAiB;AACjB,yBAAwB;AACxB,iBAAgB;AAChB,qBAAoB;AACpB,yBAAwB;AACxB,iBAAgB;AAChB,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,2DAA0D,kBAAkB;AAC5E;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA,EAAC,E;;;;;;AC1SD;AACA;AACA;AACA,IAAG;AACH,G;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,iBAAiB,EAAE;AACxD;AACA;AACA;AACA;AACA;AACA,iEAAgE,gBAAgB;AAChF;AACA;AACA,IAAG,2CAA2C,gCAAgC;AAC9E;AACA;AACA;AACA;AACA;AACA,yB;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,wCAAuC,oBAAoB,EAAE;AAC7D;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,G;;;;;;ACnEA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;;AAEA;AACA;AACA,yBAAwB,mEAAmE;AAC3F,EAAC;AACD;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,EAAC,gB;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAsB,OAAO;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,8BAA6B;AAC7B,2BAA0B;AAC1B,2BAA0B;AAC1B,sBAAqB;AACrB;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,8DAA6D,OAAO;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB,sBAAqB;AACrB,2BAA0B;AAC1B,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,G;;;;;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO,kCAAkC,gCAAgC,aAAa;AACtF,8BAA6B,mCAAmC,aAAa;AAC7E;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,4DAA2D;AAC3D;AACA,iDAAgD,iBAAiB,EAAE;AACnE;AACA,2DAA0D,aAAa,EAAE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,2B;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA,G;;;;;;ACpFA;AACA;;AAEA;AACA;AACA,yBAAwB,mEAAmE;AAC3F,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC,U;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL,IAAG;AACH,E;;;;;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sBAAqB;AACrB,2BAA0B;AAC1B;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,G;;;;;;AClFA;AACA;;AAEA;AACA;AACA,6BAA4B,mEAAmE;AAC/F,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC,qB;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,8EAA6E,0BAA0B;;AAEvG;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA,EAAC;AACD;AACA;AACA,4FAA2F;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,EAAC;;AAED,wC;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,QAAO,WAAW;AAClB;AACA;AACA,QAAO,UAAU;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,WAAW;AAClB;AACA;AACA;AACA,QAAO,WAAW;AAClB;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAAyB,gBAAgB,uBAAuB,GAAG;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,WAAW;AAC3B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;AACH,EAAC;AACD;AACA,sBAAqB;AACrB,IAAG;AACH,0BAAyB;AACzB,IAAG;AACH;AACA;AACA;AACA;AACA,iDAAgD,iBAAiB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,gC;;;;;;AChRA;AACA;AACA;AACA,EAAC,E;;;;;;ACHD;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAG;;AAEH;AACA;AACA,IAAG;;AAEH;AACA,6BAA4B;AAC5B,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAiB,gBAAgB,0BAA0B,GAAG;AAC9D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,gCAAgC;AACxF;AACA,QAAO;AACP;AACA;AACA,6EAA4E,YAAY;AACxF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,wDAAuD,6CAA6C,EAAE;;AAEtG;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL,kDAAiD;AACjD;AACA,MAAK;AACL;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL,oCAAmC;AACnC;AACA,MAAK;AACL,uEAAsE;AACtE;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL,6DAA4D;AAC5D;AACA,MAAK;AACL,uEAAsE;AACtE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;;AAEH,uBAAsB,sBAAsB,EAAE,EAAE;AAChD;AACA;AACA;AACA;;AAEA,6CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA,gCAA+B,aAAa;AAC5C;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,qBAAoB,0BAA0B;AAC9C,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,QAAO;AACP;AACA;AACA,MAAK;AACL;AACA;AACA,4BAA2B;AAC3B,4BAA2B;AAC3B,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,yBAAwB,aAAa;AACrC,QAAO;AACP;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;;AAEA;;AAEA,wDAAuD,UAAU;;AAEjE;;AAEA,6FAA4F,wBAAwB;;AAEpH;AACA;AACA,MAAK,UAAU,cAAc;;AAE7B;AACA;AACA,MAAK;AACL;AACA,MAAK,WAAW,gCAAgC;;AAEhD;AACA;AACA;AACA,EAAC,kCAAkC,e;;;;;;AC9dnC;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA,EAAC,Q;;;;;;ACJD;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACJD;AACA;AACA;AACA;AACA,sDAAmD;AACnD;AACA;AACA;AACA,sBAAqB;AACrB,EAAC;AACD;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACfD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAoD;;AAEpD;AACA;AACA;AACA;AACA,mCAAkC;AAClC,EAAC;AACD;AACA,0BAAyB;AACzB,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AC9CD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iCAAgC,MAAM,SAAS,OAAO,SAAS;AAC/D,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,EAAC,E;;;;;;ACrBD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACVD;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC;AACtC,IAAG;AACH,WAAU;AACV,EAAC;;AAED;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACzBD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAA+B,SAAS,E;;;;;;ACpBxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACVD;AACA;;AAEA,gCAA+B,kCAAgC,E;;;;;;ACH/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACTA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,EAAC,E;;;;;;ACfD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,gCAA+B,SAAS,E;;;;;;AC9BxC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,EAAC,E;;;;;;ACdD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED,sC;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACTD;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,e;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,a;;;;;;ACND;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAU;AACV,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AC7BD,0C;;;;;;ACAA,uC;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AClBD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,G;;;;;;ACfA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA0C,6DAA6D;AACvG;AACA,EAAC,E;;;;;;ACXD;AACA;AACA;AACA;AACA,6CAA4C,aAAa;AACzD;AACA,EAAC,E;;;;;;ACND;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA0C,6DAA6D;AACvG;AACA,EAAC,E;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,EAAC,E;;;;;;ACjBD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,EAAC,E;;;;;;ACjBD;AACA;;AAEA,wCAAuC,wCAAgD,E;;;;;;ACHvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;;AAEA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;;AAEA,wCAAuC,wCAAgD,E;;;;;;ACHvF;AACA;;AAEA,+BAA8B,+BAA6B,E;;;;;;ACH3D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACVD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACVD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACfD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACfD;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA,GAAE,E;;;;;;ACPF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,gBAAgB,EAAE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AClDA;AACA;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAE,E;;;;;;ACdF;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA,GAAE,E;;;;;;AChBF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA,GAAE,E;;;;;;AClBF;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA;AACA,GAAE,E;;;;;;ACRF;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA,GAAE,E;;;;;;ACPF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA,GAAE,E;;;;;;ACfF;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA;AACA,GAAE,E;;;;;;ACRF;AACA;AACA;AACA;AACA;;AAEA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAE,E;;;;;;ACdF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,4BAA4B;AACpG;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;AACH;;AAEA,wCAAuC;AACvC,uCAAsC,yBAAyB;AAC/D,EAAC;;AAED;AACA;AACA;;AAEA,gDAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,YAAW;AACX;AACA;AACA;AACA,YAAW;AACX;AACA,QAAO;AACP,yBAAwB,aAAa;AACrC,MAAK;AACL,IAAG;AACH;AACA,2DAA0D,OAAO;AACjE;AACA;AACA;AACA;AACA,yBAAwB,kBAAkB;AAC1C;AACA;AACA,YAAW;AACX;AACA,QAAO;AACP,yBAAwB,aAAa;AACrC,MAAK;AACL;AACA,EAAC;;AAED,oDAAmD,aAAa,EAAE;;AAElE,qBAAoB,wBAAwB;;AAE5C,wC;;;;;;ACtMA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACnBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,WAAW;AAC9B;AACA;AACA;AACA,G;;;;;;ACtBA,yC;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACLD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,yGAAwG,OAAO;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC;AACpC;AACA,qCAAoC,OAAO;AAC3C,+BAA8B;AAC9B,8BAA6B;AAC7B,8BAA6B;AAC7B,2CAA0C;AAC1C,UAAS,+BAA+B;AACxC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,+BAA8B;AAC9B,eAAc;AACd,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,iCAAgC,WAAW;;AAE3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;AC1JD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,EAAC,E;;;;;;ACXD;AACA;;AAEA;AACA;;AAEA,6CAA4C,+BAA4B,E;;;;;;ACNxE;;AAEA,2CAA0C,kCAAkC,E;;;;;;ACF5E;;AAEA,2CAA0C,iCAA+B,E;;;;;;ACFzE;AACA;;AAEA,2CAA0C,eAAe,E;;;;;;ACHzD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACXA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACRD;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,WAAU;AACV,EAAC,E;;;;;;ACRD;AACA;AACA,0DAAuD;;AAEvD,+BAA8B,4BAA4B,gBAAgB,GAAG;;;;;;;ACJ7E;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA,cAAa;AACb,aAAY;AACZ,aAAY;AACZ,eAAc;AACd,eAAc;AACd,EAAC;;AAED,2CAA0C,kCAAkC,kBAAkB,GAAG,E;;;;;;ACVjG;AACA;AACA,8DAA2D;AAC3D,SAAQ;AACR,QAAO;AACP,QAAO;AACP,UAAS;AACT,UAAS;AACT,EAAC;;AAED,2CAA0C,uCAAuC,kBAAkB,GAAG,E;;;;;;ACVtG;AACA;AACA,gEAA+D;AAC/D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,gBAAgB;AACzC;AACA;AACA;AACA;AACA;AACA,0DAAyD,4CAA4C,EAAE;AACvG,sCAAqC,wBAAwB,kBAAkB,EAAE,EAAE;AACnF,0BAAyB,yBAAyB,EAAE;AACpD;AACA;AACA;AACA;AACA,oCAAmC,8BAA8B;AACjE,oCAAmC,mBAAmB;AACtD;AACA,oCAAmC,qDAAqD;AACxF,oCAAmC,iBAAiB;AACpD,MAAK,0BAA0B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA,2BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qGAAoG;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,yCAAwC;AACxC,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,QAAQ;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,QAAQ;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,uBAAuB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,0BAA0B;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,aAAa;AAC5E,kEAAiE,aAAa;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B;AAC5B;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,0BAA0B,EAAE;AAC9D;AACA;AACA,cAAa;AACb,iDAAgD,+CAA+C;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,UAAU;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,0DAA0D;AACxG,iDAAgD,4DAA4D;AAC5G,kDAAiD,4DAA4D;AAC7G,wDAAuD,uBAAuB;AAC9E,0DAAyD,uBAAuB;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,uBAAuB,EAAE;AAC3D;AACA;AACA,cAAa;AACb,mDAAkD,6BAA6B;AAC/E,mDAAkD,0CAA0C;AAC5F,sDAAqD,gCAAgC;AACrF,gDAA+C,mBAAmB;AAClE,+CAA8C,yBAAyB;AACvE,iDAAgD,2BAA2B;AAC3E,kDAAiD,4BAA4B;AAC7E,wDAAuD,oBAAoB;AAC3E,0DAAyD,oBAAoB;AAC7E;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,4BAA4B;AACpF;AACA;AACA;AACA;AACA,4BAA2B,UAAU;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,oBAAoB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,mCAAkC;AAClC,EAAC,0BAA0B;AAC3B,oC;;;;;;;ACrmCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,qBAAqB;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,wCAAuC,kBAAkB;AACzD,qCAAoC,eAAe;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,wCAAuC,kBAAkB;AACzD,qCAAoC,eAAe;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,iCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yHAAwH,wBAAwB,oCAAoC;AACpL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mCAAmC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,sBAAsB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,gDAA+C,sBAAsB;AACrE;AACA;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA,mBAAkB,EAAE;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,aAAa,EAAE,eAAe,aAAa,EAAE;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,QAAQ;AACzC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,oBAAmB,oBAAoB;AACvC;AACA;AACA;;AAEA;AACA,mDAAkD;AAClD;AACA;AACA,+DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA,wBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,0BAA0B;AACjE,sCAAqC,yBAAyB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,mCAAmC;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,0BAA0B;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2DAA0D,kCAAkC,EAAE;AAC9F,8DAA6D,qCAAqC,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,EAAE;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA,kBAAiB;AACjB;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,+DAA8D,0BAA0B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,EAAE;AACZ;AACA,8DAA6D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,EAAE;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,0BAA0B,EAAE;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,+BAA+B,EAAE;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,iBAAiB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,6EAA4E;AAC5E;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,oBAAmB,uBAAuB;AAC1C;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,4BAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wFAAuF;AACvF;AACA;AACA,OAAM,EAAE;AACR,wFAAuF;AACvF;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B;AAC3B;AACA;AACA,OAAM,EAAE;AACR,kGAAiG;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAM,EAAE;AACR;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;;ACj5CD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,4BAA2B;AAC3B;AACA;AACA;AACA,6BAA4B,UAAU;;;;;;;ACnLtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,2EAA2E;AACpH,EAAC,oFAAoF;;AAErF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,gDAA+C,gBAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,yBAAyB;AAC7E;AACA,+BAA8B,YAAY,EAAE;AAC5C;AACA;AACA,UAAS;AACT,qDAAoD,0CAA0C;AAC9F,iDAAgD,qBAAqB;AACrE,qDAAoD,gCAAgC;AACpF;AACA,MAAK;;AAEL;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,iCAAiC;AACxE;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,wBAAuB,cAAc,0EAA0E,GAAG;AAClH;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAoC,4EAA4E;AAChH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,EAAC;;;;;;;;AC/MD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,+CAA+C;AACtF,EAAC,yCAAyC;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,kCAAkC;AACtF,uDAAsD,4BAA4B;AAClF,mDAAkD,wBAAwB;AAC1E,gDAA+C,iBAAiB;AAChE;AACA;AACA;AACA,8BAA6B,cAAc;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,QAAQ;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,UAAU;AAC1C,+BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,sDAAqD,gCAAgC;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,kCAAiC,YAAY;AAC7C;AACA;AACA,qDAAoD,uBAAuB;AAC3E,sDAAqD,4BAA4B;AACjF;AACA,IAAG;AACH;AACA;AACA;AACA,6DAA4D,kCAAkC;AAC9F,8CAA6C,gBAAgB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,yBAAyB;AAC3E;AACA,6BAA4B,YAAY,EAAE;AAC1C;AACA;AACA,QAAO;AACP,mDAAkD,0CAA0C;AAC5F,+CAA8C,qBAAqB;AACnE,mDAAkD,gCAAgC;AAClF;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,yCAAyC;AACtG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,yCAAyC;AACtG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,0DAA0D;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,kEAAkE;AACrE;AACA,qCAAoC,kBAAkB,kBAAkB,yBAAyB;AACjG;AACA;AACA,gCAA+B,gBAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,yBAAyB;AAClF;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,oDAAmD,qBAAqB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,eAAe,EAAE;AACtD;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,gBAAgB,EAAE;AAC3D;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,wCAAuC,4BAA4B;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,iBAAiB,EAAE;AACxD;AACA;AACA,sDAAqD,kCAAkC;AACvF,8CAA6C,iBAAiB;AAC9D,2CAA0C,UAAU;AACpD,uCAAsC,gCAAgC;AACtE,yCAAwC,+BAA+B;AACvE;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,kBAAkB;AAC3E,+CAA8C,yBAAyB;AACvE;AACA,qDAAoD,eAAe,EAAE;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,iBAAiB;AACtE;AACA,kDAAiD,gBAAgB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,gBAAgB;AAChE;AACA;AACA;AACA,iDAAgD,gBAAgB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,eAAe;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,sDAAqD,wBAAwB;AAC7E,yDAAwD,wBAAwB;AAChF,6CAA4C,uBAAuB;AACnE;AACA,0BAAyB,kBAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,gBAAgB;AACtD;AACA;AACA,mDAAkD,gCAAgC;AAClF;AACA;AACA;AACA;AACA,6CAA4C,oBAAoB;AAChE,2DAA0D,8BAA8B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,iBAAiB;AAC5D,8CAA6C,yBAAyB;AACtE;AACA,kCAAiC,WAAW;AAC5C,gCAA+B,YAAY;AAC3C;AACA;AACA;AACA;AACA;AACA,0BAAyB,cAAc;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,UAAU;AAC1C,+BAA8B,WAAW;AACzC;AACA;AACA,wDAAuD,+BAA+B;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,qBAAqB;AAChE,0CAAyC,0BAA0B;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,0BAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,uBAAuB;AACzE;AACA;AACA;AACA;AACA;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,mDAAkD,+BAA+B;AACjF,2CAA0C,mBAAmB;AAC7D,4CAA2C,aAAa;AACxD;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,uBAAuB;AACrF;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,uBAAuB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,2BAA2B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,0CAA0C;AACtG;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B,4BAA4B;AACzD;AACA;AACA;AACA;AACA,8BAA6B,uBAAuB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,2CAA2C,EAAE;AACzG;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,yBAAyB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,2BAA2B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,sBAAsB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,+BAA+B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,2BAA2B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,sBAAsB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B,4BAA4B;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,oCAAoC;AACvC;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA,yDAAwD,gDAAgD;AACxG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,0CAA0C;AAC7C;AACA;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,uCAAsC,mBAAmB;AACzD,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA,kEAAiE,4CAA4C;AAC7G;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,wCAAwC;AAC3C;AACA;AACA;AACA;AACA,oDAAmD,qCAAqC;AACxF;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA,wDAAuD,6CAA6C;AACpG;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,iCAAiC;AACpF,kDAAiD,sCAAsC;AACvF;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,gCAAgC;AACnC;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,2CAA2C;AAC/F;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG,sCAAsC;AACzC;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C,uCAAsC,mBAAmB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,sCAAqC,kBAAkB;AACvD,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,oCAAoC;AACvC;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA,8DAA6D,gDAAgD;AAC7G;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,iCAAgC,aAAa;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,gDAAgD;AACrH;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,iCAAgC,aAAa;AAC7C,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,sCAAqC,kBAAkB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,sCAAqC,gBAAgB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,mFAAkF,YAAY;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAkF,YAAY;AAC9F,oFAAmF,YAAY;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAsE,6DAA6D,EAAE;AACrI;AACA;AACA;AACA,6CAA4C,6CAA6C,EAAE;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAmF,aAAa;AAChG;AACA;AACA,6CAA4C,4CAA4C,EAAE;AAC1F;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,wFAAuF,YAAY;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wFAAuF,YAAY;AACnG,yFAAwF,YAAY;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAwF,YAAY;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,iDAAiD,EAAE;AACnG;AACA;AACA;AACA;AACA,0CAAyC,6CAA6C,EAAE;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAwF,aAAa;AACrG;AACA;AACA,0CAAyC,4CAA4C,EAAE;AACvF;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,6BAA4B,aAAa;AACzC;AACA;AACA;AACA,mCAAkC,mBAAmB;AACrD;AACA;AACA;AACA,mCAAkC,mBAAmB;AACrD,sCAAqC,sBAAsB;AAC3D;AACA;AACA;AACA,6BAA4B,aAAa;AACzC;AACA;AACA;AACA,6BAA4B,aAAa;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,aAAa;AACzC;AACA;AACA;AACA,6BAA4B,aAAa;AACzC;AACA;;AAEA;AACA;AACA;AACA,qFAAoF,iCAAiC,EAAE;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,0CAA0C,EAAE;AACvF;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,8EAA6E,cAAc;AAC3F,0EAAyE,cAAc;AACvF;AACA,IAAG;AACH;AACA,6BAA4B,aAAa;AACzC,6BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,oBAAoB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,wBAAwB,EAAE;AACtD;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA,iCAAgC,aAAa;AAC7C,wCAAuC,oBAAoB;AAC3D;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,kCAAiC,YAAY;AAC7C;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,mCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,oCAAmC,aAAa;AAChD,mCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,aAAa,EAAE;AAC3C;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,8BAA6B,uFAAuF;AACpH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC,8BAA6B,uFAAuF;AACpH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,6BAA4B,kBAAkB,EAAE;AAChD;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA,iBAAgB,+BAA+B,OAAO,4BAA4B;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA,6BAA4B,kBAAkB,EAAE;AAChD;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,kBAAkB,EAAE;AAChD;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,oDAAoD,EAAE;AACnG,0CAAyC,gDAAgD,EAAE;AAC3F;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA,6CAA4C,cAAc;AAC1D;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA,+CAA8C,gBAAgB;AAC9D;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA,uDAAsD,6CAA6C;AACnG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,gDAAgD;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAAqF,aAAa;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gFAA+E,2CAA2C;AAC1H,sFAAqF,aAAa;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kCAAkC,EAAE;AAC3E;AACA;AACA,2EAA0E,aAAa;AACvF;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,kBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,iEAAgE,MAAM;;AAEtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,8BAA8B;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,sCAAsC;AACpF,+CAA8C,sCAAsC;AACpF;AACA;AACA;AACA,mDAAkD,0CAA0C;AAC5F,gDAA+C,uCAAuC;AACtF,mDAAkD,iEAAiE;AACnH,oDAAmD,kEAAkE;AACrH;AACA;AACA;AACA,oDAAmD,kEAAkE;AACrH,qDAAoD,mEAAmE;AACvH,oDAAmD,kEAAkE;AACrH,8CAA6C,qCAAqC;AAClF,+CAA8C,2DAA2D;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,OAAO;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA;AACA,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA;AACA,0BAAyB,8BAA8B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,sBAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,eAAe;AAC1B;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,qBAAqB,EAAE;AACnD;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP,oDAAmD,8CAA8C;AACjG,kDAAiD,cAAc;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,iCAAiC;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA,0DAAyD,gCAAgC;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,gBAAgB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,4FAA2F;AAC3F,wEAAuE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAAyF;AACzF,uFAAsF,qBAAqB;AAC3G,0FAAyF;AACzF,sFAAqF;AACrF,uFAAsF,qBAAqB;AAC3G,0FAAyF,qBAAqB;AAC9G,oFAAmF,qBAAqB;AACxG,wFAAuF,qBAAqB;AAC5G,sFAAqF,qBAAqB;AAC1G,sFAAqF,gCAAgC;AACrH,oFAAmF,2BAA2B;AAC9G,gFAA+E,qBAAqB;AACpG,mFAAkF,qBAAqB;AACvG,qFAAoF,qBAAqB;AACzG,8EAA6E,qBAAqB;AAClG,mFAAkF,qBAAqB;AACvG,oFAAmF,qBAAqB;AACxG;AACA;AACA,4CAA2C,0BAA0B,EAAE;AACvE;AACA,+EAA8E,qBAAqB;AACnG,+EAA8E,qBAAqB;AACnG;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG,0CAA0C;AAC7C;AACA;AACA,kCAAiC,+BAA+B;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,yCAAyC;AACnG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,8CAA8C;AAC7G;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,kDAAkD;AACrH;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,8CAA8C;AAC7G;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,4CAA4C;AACzG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,8DAA6D,4CAA4C;AACzG;AACA,IAAG;AACH;AACA,gCAA+B,gBAAgB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,wCAAwC;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,YAAY;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,kCAAkC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,+CAA8C,gCAAgC;AAC9E,4CAA2C,oDAAoD;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA2E,kBAAkB;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,qDAAqD;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,QAAQ;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,6BAA6B;AAC9D,gCAA+B,2BAA2B;AAC1D;AACA;AACA;AACA,kCAAiC,6BAA6B;AAC9D;AACA;AACA;AACA;AACA,gCAA+B,2BAA2B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,6BAA6B,GAAG,IAAI;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,SAAS;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA2E,gCAAgC,EAAE;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA8E,gCAAgC,EAAE;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,gDAA+C,6BAA6B;AAC5E,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;AACA,+GAA8G;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+GAA8G;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kHAAiH;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kHAAiH;AACjH;AACA;AACA;AACA;AACA,8GAA6G;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,iBAAiB;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,QAAQ;AAC7D;AACA,2BAA0B;AAC1B;AACA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAAyE,mBAAmB;AAC5F;AACA;AACA,iEAAgE,2BAA2B,EAAE;AAC7F;AACA;AACA;AACA,mEAAkE,gBAAgB,kCAAkC,GAAG,EAAE;AACzH,oBAAmB,sEAAsE;AACzF;AACA;AACA;AACA;AACA;AACA,4FAA2F,2BAA2B,EAAE;AACxH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,sCAAqC,yCAAyC,EAAE;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,oBAAoB;AACzC;AACA,0BAAyB,QAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,iBAAiB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,oBAAoB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,oBAAoB;AACzC;AACA;AACA,sBAAqB,gBAAgB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,2DAA0D,yCAAyC;AACnG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,gEAA+D,8CAA8C;AAC7G;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,wCAAwC;AACjG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,mDAAmD;AACvH;AACA,IAAG;AACH;AACA;AACA,iCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA,kEAAiE,gDAAgD;AACjH;AACA,IAAG;AACH;AACA;AACA,iCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA,qEAAoE,mDAAmD;AACvH;AACA,IAAG;;AAEH;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA,4DAA2D,+CAA+C,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,8CAA8C,EAAE;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,sCAAqC,eAAe;AACpD,sCAAqC,eAAe;AACpD,sCAAqC,eAAe;AACpD,uCAAsC,eAAe;AACrD,sCAAqC,eAAe;AACpD,qCAAoC,eAAe;AACnD,uCAAsC,eAAe;AACrD,uCAAsC,eAAe;AACrD,oCAAmC,eAAe;AAClD,oCAAmC,eAAe;AAClD,wCAAuC,eAAe;AACtD,uCAAsC,eAAe;AACrD,qCAAoC,eAAe;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,uCAAsC,uCAAuC;AAC7E,uCAAsC,6DAA6D;AACnG,uCAAsC,oDAAoD;AAC1F;AACA;AACA;AACA;AACA,QAAO;AACP,oCAAmC,uDAAuD;AAC1F,oCAAmC,uDAAuD;AAC1F,qCAAoC,8CAA8C;AAClF,qCAAoC,iCAAiC;AACrE,sCAAqC,kCAAkC;AACvE,oCAAmC,iDAAiD;AACpF,oCAAmC,iCAAiC;AACpE,oCAAmC,uDAAuD;AAC1F,oCAAmC,oEAAoE;AACvG,oCAAmC,oEAAoE;AACvG,qCAAoC,8DAA8D;AAClG,oCAAmC,oEAAoE;AACvG,0CAAyC,uDAAuD;AAChG,wCAAuC,iEAAiE;AACxG,qCAAoC,sBAAsB;AAC1D,yCAAwC,sBAAsB;AAC9D,uCAAsC,uCAAuC;AAC7E,wCAAuC,uCAAuC;AAC9E,uCAAsC,iDAAiD;AACvF,0CAAyC,sEAAsE;AAC/G;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,yCAAyC,EAAE;AACnH;AACA;AACA;AACA,uEAAsE,mCAAmC,SAAS;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAAyE,aAAa;AACtF;AACA;AACA;AACA;AACA;AACA;AACA,6FAA4F,4BAA4B,EAAE,EAAE;AAC5H,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,2CAA2C;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,IAAG,oCAAoC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,gCAAgC,EAAE;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,wBAAwB,EAAE;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,gDAAgD,EAAE;AAC7F,yCAAwC;AACxC,0BAAyB,EAAE;AAC3B;AACA;AACA;AACA;AACA,gEAA+D,2BAA2B,EAAE;AAC5F;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,YAAY;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAkF,kDAAkD,EAAE;AACtI;AACA,sDAAqD,iBAAiB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,iCAAiC,EAAE;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,qDAAqD,EAAE;AACvH;AACA,4DAA2D,yBAAyB;AACpF,8DAA6D,2CAA2C;AACxG;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,cAAc;AAC9F,qEAAoE,cAAc;AAClF;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,6BAA6B;AAC5E;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,0BAA0B,EAAE;AAC1F;AACA;AACA,uDAAsD,mBAAmB;AACzE;AACA;AACA;AACA;AACA,kEAAiE,4CAA4C,EAAE;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,yCAAwC,6BAA6B,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,yDAAwD,uCAAuC;AAC/F;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,mCAAmC;AACvF;AACA,IAAG;AACH;AACA;AACA;AACA,2CAA0C,qBAAqB;AAC/D,qCAAoC,eAAe;AACnD;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,iDAAgD,+BAA+B;AAC/E;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,kDAAiD,gCAAgC;AACjF;AACA,IAAG;AACH;AACA,oBAAmB;AACnB,qBAAoB;AACpB,qBAAoB;AACpB,mBAAkB;AAClB,mBAAkB;AAClB;AACA;AACA,4DAA2D,yCAAyC,EAAE;AACtG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B,QAAQ;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,2BAA2B;AAC7E,sEAAqE;AACrE;AACA,oEAAmE,qCAAqC;AACxG;AACA;AACA,oEAAmE,iCAAiC;AACpG;AACA;AACA;AACA,YAAW;AACX,wCAAuC;AACvC,uCAAsC,mFAAmF;AACzH,yCAAwC,mCAAmC;AAC3E,8CAA6C,oCAAoC;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,qEAAoE,iCAAiC;AACrG;AACA;AACA;AACA,uDAAsD,mDAAmD,EAAE;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC;AACxF;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC;AACxF;AACA;AACA;AACA,8CAA6C,cAAc;AAC3D;AACA;AACA,8CAA6C,cAAc;AAC3D;AACA;AACA;AACA;AACA,iEAAgE,0BAA0B,EAAE;AAC5F;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,mEAAkE,2BAA2B,EAAE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,2BAA2B,EAAE;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,mBAAmB;AACtF,0EAAyE,WAAW;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,gCAA+B,oCAAoC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,gEAA+D,iCAAiC;AAChG;AACA;AACA;AACA,uDAAsD,mDAAmD,EAAE;AAC3G;AACA;AACA;AACA;AACA,qCAAoC;AACpC;AACA,0DAAyD,oDAAoD;AAC7G,YAAW;AACX,mCAAkC;AAClC;AACA;AACA;AACA,iDAAgD;AAChD,yDAAwD,qBAAqB;AAC7E;AACA;AACA;AACA;AACA,iDAAgD;AAChD,yDAAwD,qBAAqB;AAC7E;AACA;AACA;AACA,gDAA+C,gBAAgB;AAC/D;AACA;AACA,gDAA+C,gBAAgB;AAC/D;AACA;AACA;AACA,iEAAgE,0BAA0B,EAAE;AAC5F;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,gCAAgC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,2BAA2B,EAAE;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,6BAA6B,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,mBAAmB;AAClF,sEAAqE,WAAW;AAChF;AACA;AACA,4DAA2D,6BAA6B,EAAE;AAC1F,oBAAmB,0EAA0E;AAC7F;AACA;AACA,2CAA0C,uDAAuD;AACjG;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD;AACA;AACA;AACA;AACA;AACA,wDAAuD,6BAA6B;AACpF,wDAAuD,+BAA+B;AACtF;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,6BAA6B;AAC5E,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA,yGAAwG;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC,oCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,4EAA4E;AACvF,YAAW,8EAA8E;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,wCAAuC,yBAAyB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,2FAA2F;AACvI;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,6BAA6B;AAC5E,gDAA+C,oDAAoD;AACnG;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAM;AACN,YAAW;AACX,YAAW;AACX,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,kBAAkB;AAC5F,iEAAgE,aAAa;AAC7E,uEAAsE,gBAAgB;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,mDAAmD,EAAE;AACjG,4EAA2E,+BAA+B,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,gEAA+D,qBAAqB;AACpF,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,6BAA4B,sDAAsD,EAAE;AACpF;AACA;AACA,QAAO;AACP;AACA;AACA,0FAAyF,kCAAkC,EAAE;AAC7H;AACA,yEAAwE;AACxE,oEAAmE,EAAE;AACrE;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA,6BAA4B,+BAA+B,EAAE;AAC7D;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA8E,2CAA2C,EAAE;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4HAA2H,8BAA8B;AACzJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,wEAAwE,EAAE;AACzH;AACA;AACA;AACA;AACA,gDAA+C,wEAAwE,EAAE;AACzH;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA,wDAAuD,gDAAgD;AACvG;AACA;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA,uDAAsD,kDAAkD;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,6BAA6B;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,6BAA6B;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4FAA2F,wBAAwB,EAAE;AACrH;AACA,mEAAkE,kCAAkC,2BAA2B,2BAA2B;AAC1J;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA4F,8BAA8B;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,sEAAsE,EAAE;AACvH;AACA;AACA;AACA;AACA,gDAA+C,sEAAsE,EAAE;AACvH;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA,wDAAuD,gDAAgD;AACvG;AACA;AACA;AACA;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,6BAA6B;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,wBAAwB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,kCAAkC,uBAAuB,uBAAuB;AACvJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,kCAAkC,6BAA6B,6BAA6B;AACrJ;AACA,QAAO;AACP;AACA,4EAA2E,wBAAwB,EAAE,2CAA2C,yBAAyB,EAAE;AAC3K;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,2DAA0D,gDAAgD,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,mDAAmD,EAAE;AAC/G;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,sEAAqE,WAAW,GAAG;AACnF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,oDAAoD;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,yBAAyB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,gDAAgD,EAAE;AAClH,+DAA8D,8CAA8C,EAAE;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,8CAA8C,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,6BAA6B,EAAE;AAC3E,4CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE,EAAE;AACf;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,gBAAgB;AAC3B,YAAW,+BAA+B;AAC1C,YAAW,wBAAwB;AACnC,YAAW,iBAAiB;AAC5B,YAAW,4BAA4B,+BAA+B,GAAG,2DAA2D,IAAI;AACxI;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,0CAAyC,+CAA+C,EAAE;AAC1F;AACA;AACA,kCAAiC,+BAA+B;AAChE;AACA;AACA;AACA,8CAA6C,sBAAsB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,mEAAkE,kEAAkE,EAAE;AACtI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,sFAAqF,aAAa;AAClG,8FAA6F,aAAa;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAiF,aAAa;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAAyE;AACzE;AACA;AACA;AACA;AACA,8BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,6DAA4D,cAAc,EAAE;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,sCAAsC,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA,gFAA+E,aAAa;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAmF,kBAAkB;AACrG,4FAA2F,sBAAsB;AACjH;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,wCAAwC,EAAE;AAC1G;AACA;AACA,8BAA6B,+BAA+B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4FAA2F,uCAAuC,EAAE;AACpI;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,sBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,4CAA4C,EAAE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,0BAA0B,EAAE;AACxD;AACA;AACA,QAAO;AACP;AACA,6BAA4B,0BAA0B,EAAE;AACxD;AACA;AACA,QAAO;AACP;AACA,6BAA4B,0BAA0B,EAAE;AACxD;AACA;AACA,QAAO;AACP;AACA,6BAA4B,0BAA0B,EAAE;AACxD;AACA;AACA,QAAO;AACP;AACA,6BAA4B,0BAA0B,EAAE;AACxD;AACA;AACA,QAAO;AACP;AACA,6BAA4B,0BAA0B,EAAE;AACxD;AACA;AACA,QAAO;AACP;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,gDAAgD,EAAE;AAC9E;AACA;AACA,QAAO;AACP;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,QAAQ;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,sBAAsB;AAClF;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA,QAAO;AACP,sEAAqE,sEAAsE,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,2CAA0C,2DAA2D,EAAE;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,8CAA8C,EAAE;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,kEAAkE,EAAE;AAC3I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,uDAAsD,yDAAyD,EAAE;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,2DAA0D,8BAA8B,EAAE;AAC1F;AACA;AACA;AACA;AACA,qFAAoF;AACpF;AACA;AACA;AACA;AACA;AACA,mEAAkE;AAClE;AACA;AACA;AACA,kBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,0BAAyB,QAAQ;AACjC;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,iDAAgD,+EAA+E,EAAE;AACjI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,2EAA2E;AAC9I;AACA,YAAW,EAAE,EAAE,EAAE,EAAE;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,2EAA2E,EAAE;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,qCAAqC,EAAE;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,gEAA+D,+BAA+B,EAAE;AAChG;AACA;AACA,uDAAsD,0CAA0C,EAAE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAAyF,mCAAmC,EAAE;AAC9H,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,4CAA4C,EAAE;AAC9H;AACA;AACA;AACA;AACA;AACA;AACA,4EAA2E,uCAAuC,EAAE;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,mCAAmC,EAAE;AAChG;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,mCAAmC,EAAE;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,yBAAyB,EAAE;AAChG,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,kGAAiG,gBAAgB,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,kCAAkC,EAAE;AAC5F;AACA,2DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,wDAAwD,EAAE;AACtH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,6BAA4B,qBAAqB,EAAE;AACnD;AACA;AACA,QAAO;AACP;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,wBAAwB,EAAE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,8EAA6E,wCAAwC,EAAE;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAoF;AACpF,yFAAwF;AACxF,oFAAmF;AACnF,yFAAwF;AACxF,oFAAmF;AACnF,yFAAwF;AACxF,yFAAwF;AACxF,wFAAuF;AACvF,iGAAgG;AAChG,+FAA8F;AAC9F;AACA,IAAG;;AAEH;AACA,6BAA4B,aAAa;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,uCAAuC,EAAE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,qFAAoF,6BAA6B;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,6BAA6B;AACjF,sDAAqD,0CAA0C;AAC/F;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,0CAA0C,EAAE;AACxG,8DAA6D,0CAA0C,EAAE;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,yCAAyC,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,iCAAiC;AACnF,0DAAyD,sCAAsC;AAC/F;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,oDAAoD,EAAE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,mCAAmC,EAAE;AAC7G;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,8CAA8C;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,yEAAyE,EAAE;AAC/I;AACA;AACA;AACA;AACA;AACA,mHAAkH,8BAA8B;AAChJ;AACA;AACA;AACA,+DAA8D,iEAAiE,EAAE;AACjI;AACA;AACA;AACA;AACA,+DAA8D,iEAAiE,EAAE;AACjI;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA,YAAW;AACX,0BAAyB,6BAA6B;AACtD;AACA;AACA,+DAA8D,+CAA+C,EAAE;AAC/G;AACA;AACA;AACA;AACA,6FAA4F,0DAA0D,EAAE;AACxJ,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,iBAAiB;AACxE,yGAAwG,4CAA4C,EAAE;AACtJ,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,4CAA2C,0CAA0C,4FAA4F,EAAE,EAAE,EAAE;AACvL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,wDAAwD,EAAE;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA8E,gDAAgD,EAAE;AAChI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gIAA+H,mBAAmB;AAClJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,uBAAuB,EAAE;AACrD;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,8CAA6C,QAAQ;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,uBAAuB;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,8DAA6D,sEAAsE,EAAE;AACrI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,mBAAmB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,oBAAoB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,0CAA0C,+EAA+E,EAAE,EAAE,EAAE;AAC1K;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,QAAQ;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,sBAAsB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,4BAA4B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,qBAAqB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,+BAA+B,EAAE;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,aAAa,EAAE;AAC1D,2CAA0C,aAAa,EAAE;AACzD,iDAAgD,aAAa,EAAE;AAC/D,kDAAiD,aAAa,EAAE;AAChE,sDAAqD,aAAa,EAAE;AACpE,mDAAkD,aAAa,EAAE;AACjE,+CAA8C,6BAA6B,EAAE;AAC7E,gDAA+C,aAAa,EAAE;AAC9D,kDAAiD,aAAa,EAAE;AAChE,gDAA+C,aAAa,EAAE;AAC9D,sDAAqD,aAAa,EAAE;AACpE,gDAA+C,kCAAkC,EAAE;AACnF,0CAAyC,aAAa,EAAE;AACxD,+CAA8C,aAAa,EAAE;AAC7D,kDAAiD,kCAAkC,EAAE;AACrF,mDAAkD,aAAa,EAAE;AACjE,2CAA0C,aAAa,EAAE;AACzD,oDAAmD,yCAAyC,EAAE;AAC9F;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,4BAA4B,EAAE;AAC5E;AACA;AACA,4CAA2C,wDAAwD,EAAE;AACrG,2CAA0C,cAAc,EAAE;AAC1D;AACA;AACA;AACA,gBAAe;AACf,kDAAiD,aAAa,EAAE;AAChE,sDAAqD,cAAc,EAAE;AACrE,mDAAkD,yCAAyC,EAAE;AAC7F,+CAA8C,cAAc,EAAE;AAC9D,gDAA+C,cAAc,EAAE;AAC/D,kDAAiD,aAAa,EAAE;AAChE,gDAA+C,aAAa,EAAE;AAC9D,sDAAqD,cAAc,EAAE;AACrE,gDAA+C,aAAa,EAAE;AAC9D,0CAAyC,aAAa,EAAE;AACxD,+CAA8C,oCAAoC,EAAE;AACpF,kDAAiD,cAAc,EAAE;AACjE,mDAAkD,cAAc,EAAE;AAClE,2CAA0C,cAAc,EAAE;AAC1D,oDAAmD,aAAa,EAAE;AAClE,sDAAqD,cAAc;AACnE,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,yCAAwC,yCAAyC,EAAE;AACnF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,+EAA+E,EAAE;AACzJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,yBAAyB,EAAE;AACvD;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,mCAAmC,EAAE;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,QAAO;AACP,mDAAkD,gCAAgC,EAAE;AACpF;AACA;AACA;AACA;AACA,sDAAqD,wCAAwC,EAAE;AAC/F;AACA,YAAW;AACX,QAAO;AACP;AACA;AACA,mDAAkD,oCAAoC,EAAE;AACxF;AACA;AACA,gDAA+C,gDAAgD,EAAE;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,oCAAoC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,kCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2CAA0C,wEAAwE,EAAE;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,4DAA4D,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4EAA2E,aAAa;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,oEAAmE,aAAa;AAChF,yEAAwE,aAAa;AACrF;AACA;AACA;AACA,yEAAwE,aAAa;AACrF,wEAAuE,aAAa;AACpF,qFAAoF,aAAa;AACjG,mFAAkF,aAAa;AAC/F;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,kCAAkC;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,+BAA+B,EAAE;AACxG,iEAAgE,8BAA8B,EAAE;AAChG;AACA;AACA,0BAAyB,8BAA8B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA6E,yCAAyC;AACtH;AACA;AACA,2DAA0D,4BAA4B;AACtF;AACA;AACA,gBAAe;AACf;AACA,gEAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sHAAqH,+BAA+B,EAAE;AACtJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA8E,sFAAsF,EAAE;AACtK,wEAAuE,+BAA+B,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,aAAa;AACjF,0EAAyE,aAAa;AACtF;AACA;AACA;AACA,0EAAyE,aAAa;AACtF,yEAAwE,aAAa;AACrF,sFAAqF,aAAa;AAClG,oFAAmF,aAAa;AAChG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAAyE,qBAAqB,EAAE;AAChG;AACA;AACA;AACA;AACA,YAAW;AACX,QAAO;AACP;AACA;AACA;AACA;AACA,qCAAoC,iCAAiC,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,+DAA8D,oDAAoD,EAAE;AACpH;AACA;AACA;AACA;AACA;AACA,uGAAsG;AACtG;AACA;AACA;AACA;AACA,kFAAiF;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0MAAyM,+BAA+B,EAAE;AAC1O;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,uCAAuC,EAAE;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAoF,6BAA6B,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,wBAAwB,EAAE;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,wBAAwB;AACnC;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wFAAuF,uDAAuD,EAAE;AAChJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wGAAuG,2EAA2E,EAAE;AACpL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,4CAA2C,iFAAiF;AAC5H;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,aAAa;AAClE;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA,8BAA6B,uBAAuB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,eAAe;AACjC;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA,OAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,uBAAuB;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,gCAAgC,sEAAsE,IAAI;AACrH;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAM,iEAAiE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAAyE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG,0CAA0C;AAC7C;AACA;AACA;AACA,+DAA8D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,uBAAuB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,2BAA2B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,mCAAmC;AACjG;AACA;AACA;AACA;AACA;AACA;AACA,2FAA0F,yDAAyD,EAAE;AACrJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,+DAA+D,EAAE;AACxH;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,mFAAmF,EAAE;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,wFAAuF,kFAAkF;AACzK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,qDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE,EAAE;AACf;AACA;AACA;AACA,8CAA6C,+BAA+B;AAC5E;AACA,0DAAyD,yCAAyC,EAAE;AACpG,yCAAwC;AACxC,yFAAwF,6CAA6C;AACrI;AACA;AACA,YAAW,EAAE,EAAE;AACf,mCAAkC,6CAA6C,EAAE;AACjF;AACA;AACA;AACA;AACA,oCAAmC,8DAA8D,EAAE;AACnG;AACA;AACA;AACA;AACA,YAAW;AACX,iDAAgD,8EAA8E;AAC9H;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,wBAAwB;AACnC,YAAW,qBAAqB;AAChC,YAAW,oBAAoB;AAC/B,YAAW,wBAAwB;AACnC;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,aAAa;AAC7F,mFAAkF,aAAa;AAC/F,8EAA6E,aAAa;AAC1F,mFAAkF,aAAa;AAC/F,uFAAsF,aAAa;AACnG;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,4BAA2B,wBAAwB;AACnD;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA,uCAAsC,wBAAwB;AAC9D;AACA;AACA;AACA,kBAAiB,wBAAwB;AACzC;AACA;AACA,4CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA,wEAAuE,iDAAiD;AACxH;AACA;AACA;AACA;AACA,gEAA+D,sCAAsC,EAAE;AACvG;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE,sCAAsC,EAAE;AACzG;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,yBAAyB;AACpC;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA,uCAAsC,wBAAwB;AAC9D;AACA;AACA;AACA,4CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,yBAAyB;AACpC;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA,uCAAsC,wBAAwB;AAC9D;AACA;AACA;AACA,kBAAiB,mBAAmB;AACpC;AACA;AACA,4CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,yBAAyB;AACpC;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA,uCAAsC,wBAAwB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,6CAA6C,EAAE;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sGAAqG,+CAA+C,EAAE;AACtJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,yCAAyC,EAAE;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,2CAA2C,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,+DAA+D,EAAE;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,+DAA+D,EAAE;AAC7G;AACA;AACA;AACA,6CAA4C,+DAA+D,EAAE;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAkF,2BAA2B,EAAE;AAC/G,yFAAwF,iCAAiC,EAAE;AAC3H;AACA,4FAA2F,oCAAoC,EAAE;AACjI,uFAAsF,+BAA+B,EAAE;AACvH;AACA;AACA;AACA,kCAAiC,eAAe;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,eAAe;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,qBAAqB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,8EAA6E,qCAAqC,EAAE;AACpH,YAAW;AACX;AACA;AACA,yCAAwC,qBAAqB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,4CAA2C,wBAAwB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA,yEAAwE,yCAAyC,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,eAAe;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,wCAAwC,EAAE;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,0BAA0B;AACrC,YAAW,2BAA2B;AACtC,YAAW,sBAAsB;AACjC,YAAW,+BAA+B;AAC1C,YAAW,yBAAyB;AACpC;AACA;AACA,IAAG;AACH;AACA,sCAAqC,oBAAoB;AACzD,uCAAsC,4BAA4B;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,4BAA2B,UAAU;AACrC;AACA,0BAAyB,iBAAiB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,gEAAgE;AAC1H;AACA;AACA,2DAA0D,mBAAmB;AAC7E;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,4BAA4B;AAClF;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,+DAA8D,sCAAsC,EAAE;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA6F,0CAA0C,EAAE;AACzI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA4F,qCAAqC,EAAE;AACnI,iGAAgG,qCAAqC,EAAE;AACvI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E,8BAA8B;AAC1G;AACA;AACA;AACA,uDAAsD,kCAAkC,EAAE;AAC1F;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC,EAAE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,4CAA4C,EAAE;AAC1E;AACA;AACA,QAAO;AACP,2EAA0E,mDAAmD;AAC7H;AACA,qCAAoC,eAAe;AACnD;AACA;AACA,kEAAiE,6CAA6C;AAC9G;AACA,oCAAmC,iBAAiB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,2BAA2B;AAC/F,+DAA8D,4BAA4B;AAC1F;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,OAAO;AACvC;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA,0CAAyC,2BAA2B,EAAE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,sBAAsB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB;AACtB;AACA;AACA;AACA;AACA,YAAW;AACX;AACA,uBAAsB;AACtB;AACA;AACA;AACA;AACA,oCAAmC,iBAAiB;AACpD,mEAAkE,yCAAyC,EAAE;AAC7G;AACA;AACA,oCAAmC,iBAAiB;AACpD,0BAAyB,wBAAwB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,wCAAwC,EAAE;AACxF;AACA;AACA,IAAG;AACH;AACA,oCAAmC,oBAAoB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,sBAAqB,WAAW;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+HAA8H;AAC9H,YAAW;AACX;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA,iDAAgD,2CAA2C,EAAE;AAC7F;AACA;AACA;AACA,mDAAkD,6CAA6C,EAAE;AACjG,mDAAkD,6CAA6C,EAAE;AACjG;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA,2BAA0B;AAC1B;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA,uBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA,yBAAwB,yCAAyC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB;AACtB;AACA,uBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAsE,mCAAmC,EAAE;AAC3G;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,gEAA+D,mBAAmB,EAAE;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,uBAAuB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,sFAAqF,mBAAmB,EAAE;AAC1G;AACA;AACA;AACA;AACA,2BAA0B,uBAAuB;AACjD;AACA;AACA;AACA,uDAAsD,+BAA+B,EAAE;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,wCAAwC;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAkF,aAAa;AAC/F;AACA;AACA;AACA;AACA;AACA,8EAA6E,kBAAkB;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,mBAAmB,EAAE;AACjF;AACA;AACA;AACA,8DAA6D,mBAAmB,EAAE;AAClF;AACA;AACA;AACA;AACA;AACA,kCAAiC,4CAA4C;AAC7E,kCAAiC,4CAA4C;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD;AAChD,oDAAmD,EAAE;AACrD;AACA;AACA;AACA;AACA,mDAAkD,yCAAyC,EAAE;AAC7F;AACA;AACA,0BAAyB,uBAAuB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,2BAA0B,uBAAuB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA,mDAAkD,mDAAmD,EAAE;AACvG,mDAAkD,mDAAmD,EAAE;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B;AAC1B;AACA;AACA;AACA,gDAA+C;AAC/C;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA,mGAAkG,kBAAkB;AACpH;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,0BAAyB,EAAE;AAC3B;AACA;AACA;AACA;AACA,2BAA0B;AAC1B;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B;AAC1B;AACA;AACA;AACA,uBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA,2BAA0B;AAC1B;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA,yBAAwB,yCAAyC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA,oEAAmE,8BAA8B,EAAE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,+BAA+B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,mBAAmB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B;AAC3B;AACA;AACA;AACA,kCAAiC,4BAA4B;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qHAAoH,iBAAiB,EAAE,EAAE;AACzI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA,2BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD;AACzD;AACA;AACA;AACA,uDAAsD;AACtD;AACA;AACA;AACA,yCAAwC;AACxC;AACA;AACA;AACA,8BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,kBAAkB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,uDAAuD,EAAE;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA,qCAAoC,gDAAgD,EAAE;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB;AACrD;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH,6DAA4D,+BAA+B,KAAK,IAAI,KAAK;AACzG,8CAA6C,gCAAgC,OAAO,GAAG;AACvF,+DAA8D,gCAAgC,OAAO,GAAG;AACxG;AACA;AACA;AACA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA,gGAA+F,WAAW,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B,EAAE,EAAE,cAAc,QAAQ,KAAK,UAAU;AACnE,uBAAsB;AACtB,sBAAqB;AACrB,uBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD;AACnD;AACA;AACA,iCAAgC;AAChC;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B,+BAA+B;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,+EAA8E,uDAAuD,EAAE;AACvI;AACA,0BAAyB,iCAAiC;AAC1D,+DAA8D,+BAA+B;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,qBAAqB;AAChC;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,uBAAuB,EAAE;AACrD;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAAyF,wBAAwB,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,sDAAqD,kCAAkC,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0HAAyH,0BAA0B,oEAAoE,EAAE,EAAE;AAC3N;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB;AACA,gBAAe;AACf;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX,sCAAqC,wCAAwC,kCAAkC,EAAE,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,yDAAyD,EAAE;AACnI;AACA,oFAAmF,yEAAyE,EAAE;AAC9J;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,gCAAgC;AAC3C,YAAW,iCAAiC;AAC5C,YAAW,6BAA6B;AACxC,YAAW,wBAAwB;AACnC,YAAW,uBAAuB;AAClC,YAAW,sBAAsB;AACjC,YAAW,0BAA0B;AACrC,YAAW,wBAAwB;AACnC;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,+BAA8B,uBAAuB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA,8DAA6D,gCAAgC;AAC7F;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,gCAAgC,EAAE;AAC9D;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,6BAA6B;AAC3F;AACA;AACA;AACA,sEAAqE,oCAAoC;AACzG;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,qBAAqB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,gDAAgD,EAAE;AAC7G;AACA;AACA,mEAAkE,8BAA8B,EAAE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf,YAAW;AACX;AACA;AACA,mDAAkD,4DAA4D,EAAE;AAChH;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kEAAkE,EAAE;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,4DAA4D,EAAE;AAChH;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kEAAkE,EAAE;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAkF,4CAA4C;AAC9H,wFAAuF,uBAAuB;AAC9G;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,0CAA0C;AACjD,QAAO,mDAAmD;AAC1D,QAAO,yDAAyD;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,0DAA0D;AACjE;AACA,QAAO,gEAAgE;AACvE;AACA,QAAO,wEAAwE;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,oCAAmC,cAAc;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB,oBAAmB;AACnB;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA,YAAW,iCAAiC;AAC5C;AACA;AACA;AACA,YAAW,4BAA4B,sEAAsE,IAAI;AACjH;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO,sDAAsD,eAAe;AAC5E,QAAO,2EAA2E;AAClF,QAAO,qFAAqF;AAC5F;AACA;AACA;AACA,qEAAoE,yBAAyB,EAAE;AAC/F,mEAAkE,uBAAuB,EAAE;AAC3F,iFAAgF,qCAAqC,EAAE;AACvH,sEAAqE,0BAA0B,EAAE;AACjG;AACA;AACA;AACA,oCAAmC,QAAQ;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,gDAAgD,EAAE;AACvF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,4BAA4B;AAClF;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,yBAAyB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;;ACvviBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,uCAAuC;AAChF,EAAC,wDAAwD;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC;AACxF,yDAAwD,4BAA4B;AACpF,qDAAoD,wBAAwB;AAC5E,kDAAiD,iBAAiB;AAClE;AACA;AACA;AACA,gCAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA;AACA,iCAAgC,uBAAuB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,wDAAuD,gCAAgC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,gDAA+C,gBAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,yBAAyB;AAC7E;AACA,+BAA8B,YAAY,EAAE;AAC5C;AACA;AACA,UAAS;AACT,qDAAoD,0CAA0C;AAC9F,iDAAgD,qBAAqB;AACrE,qDAAoD,gCAAgC;AACpF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,8CAA6C,0BAA0B;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,sCAAsC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,eAAe;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,iDAAiD;AAC1G;AACA,MAAK;AACL;AACA,mEAAkE,eAAe;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,sBAAsB;AACjF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA,8DAA6D,eAAe;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,eAAe,aAAa,wBAAwB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,2BAA0B,eAAe;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,kBAAkB;AACzE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,sBAAsB;AACjF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,kBAAkB;AACzE;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,QAAQ;AAChE;AACA;AACA;AACA;AACA,oCAAmC,uBAAuB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,uBAAuB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,uBAAuB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,8BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;AACA;AACA,8BAA6B,uBAAuB;AACpD;AACA;AACA;AACA;AACA;AACA,8BAA6B,yBAAyB;AACtD;AACA;AACA;AACA;AACA;AACA,8BAA6B,mBAAmB;AAChD;AACA;AACA;AACA;AACA;AACA,8BAA6B,mBAAmB;AAChD;AACA;AACA;AACA;AACA;AACA,8BAA6B,uBAAuB;AACpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,8BAA8B;AACpF;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,kCAAkC;AAC9C,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA,WAAU,mCAAmC;AAC7C,WAAU;AACV;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT,6DAA4D,4DAA4D;AACxH;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,QAAQ;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,YAAY;AACzD;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,kBAAkB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,gBAAgB;AAC5B;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,wBAAwB;AAChF;AACA,+BAA8B,cAAc,EAAE;AAC9C;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,0CAA0C,EAAE;AAC1E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,gCAAgC,EAAE;AAChE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,+BAA8B,uDAAuD,EAAE;AACvF;AACA;AACA,UAAS;AACT,yDAAwD,mDAAmD;AAC3G;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC,2CAA0C,uCAAuC;AACjF;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC;AACxC,2CAA0C,6CAA6C;AACvF;AACA;AACA,MAAK;AACL;AACA,oBAAmB,2BAA2B;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,gBAAgB;AACzC;AACA;AACA,aAAY,gBAAgB;AAC5B;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC,2CAA0C,qDAAqD;AAC/F;AACA;AACA;AACA,wDAAuD,oBAAoB;AAC3E;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC;AACxC,2CAA0C,gCAAgC;AAC1E;AACA,gEAA+D,0DAA0D;AACzH;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC;AACxC,2CAA0C,6CAA6C;AACvF;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,0EAA0E;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,oDAAoD;AACzD;AACA,0BAAyB,8BAA8B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,kCAAkC,EAAE;AAClE,sCAAqC,qCAAqC,EAAE;AAC5E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+BAA+B,EAAE;AAC/D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,gCAAgC,EAAE;AAChE,oCAAmC,iCAAiC,EAAE;AACtE;AACA;AACA,UAAS;AACT,qDAAoD,qCAAqC;AACzF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,qCAAqC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,wBAAwB;AAC1F;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,yBAAyB;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,sDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,eAAe,EAAE;AACxD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,gBAAgB,EAAE;AAC7D;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,0CAAyC,4BAA4B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,iBAAiB,EAAE;AAC1D;AACA;AACA,wDAAuD,kCAAkC;AACzF,gDAA+C,iBAAiB;AAChE,6CAA4C,UAAU;AACtD,yCAAwC,gCAAgC;AACxE,2CAA0C,+BAA+B;AACzE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,kBAAkB;AAC7E,iDAAgD,yBAAyB;AACzE;AACA,uDAAsD,eAAe,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,iBAAiB;AACxE;AACA,oDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,wDAAuD,wBAAwB;AAC/E,2DAA0D,wBAAwB;AAClF,+CAA8C,uBAAuB;AACrE;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,gBAAgB;AACxD;AACA;AACA,qDAAoD,gCAAgC;AACpF;AACA;AACA;AACA;AACA,+CAA8C,oBAAoB;AAClE,6DAA4D,8BAA8B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,iBAAiB;AAC9D,gDAA+C,yBAAyB;AACxE;AACA,oCAAmC,WAAW;AAC9C,kCAAiC,YAAY;AAC7C;AACA;AACA;AACA;AACA;AACA,4BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA,0DAAyD,+BAA+B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,qBAAqB;AAClE,4CAA2C,0BAA0B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,qBAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,gBAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,qBAAqB;AACzE;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,qDAAoD,+BAA+B;AACnF,6CAA4C,mBAAmB;AAC/D,8CAA6C,aAAa;AAC1D;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,2BAA2B,EAAE;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,iEAAgE,eAAe;AAC/E,SAAQ,eAAe,kBAAkB,eAAe;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,wEAAwE;AAClF,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,qBAAqB,EAAE;AACrD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA,0CAAyC,eAAe,2BAA2B;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,qDAAoD,eAAe;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE,iBAAiB;AAClF;AACA;AACA;AACA;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,QAAQ;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,sDAAsD;AAChE,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,4DAA2D,yBAAyB;AACpF;AACA;AACA;AACA;AACA;AACA,qCAAoC,yBAAyB;AAC7D;AACA;AACA;AACA,+CAA8C,yBAAyB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,8BAA8B,EAAE;AAC9D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wCAAwC,EAAE;AACxE;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,2BAA2B,EAAE;AAC3D;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,6EAA4E,aAAa;AACzF;AACA;AACA;AACA;AACA,iCAAgC,uBAAuB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+FAA8F,oCAAoC,EAAE;AACpI;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,WAAW;AAClF;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,iDAAiD,GAAG;AACvH;AACA,sEAAqE;AACrE;AACA;AACA,uGAAsG,+CAA+C;AACrJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mGAAkG,gBAAgB;AAClH,yFAAwF,6BAA6B;AACrH;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,oCAAoC;AACtG,gEAA+D,0DAA0D;AACzH;AACA;AACA,aAAY,qBAAqB;AACjC;AACA,uDAAsD,4BAA4B;AAClF;AACA;AACA,aAAY,kBAAkB;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,8CAA8C,EAAE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,oCAAoC;AACtG,mEAAkE,oCAAoC;AACtG,mEAAkE,oCAAoC;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA6E,6CAA6C;AAC1H,0DAAyD,oDAAoD;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,2DAA0D,yBAAyB,EAAE;AACrF;;AAEA;AACA,aAAY,gBAAgB;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,kCAAkC,EAAE;AAClE;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA,wFAAuF;AACvF,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,sBAAsB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,0BAA0B;AAC/D;AACA;AACA;AACA;AACA;AACA,sBAAqB,eAAe,OAAO,uBAAuB;AAClE;AACA,SAAQ,eAAe,uBAAuB,uBAAuB,GAAG,eAAe;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,uCAAuC;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B,0BAA0B;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,YAAY,EAAE;AACtE,mDAAkD,6CAA6C,EAAE;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,6CAA6C,EAAE;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,4BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4FAA2F,wCAAwC;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAwF,kCAAkC;AAC1H;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6FAA4F,wCAAwC;AACpI;AACA;AACA;AACA;AACA;AACA,4BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0FAAyF,yBAAyB;AAClH;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,iCAAiC;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA,iBAAgB,+CAA+C;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,eAAe;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,uBAAuB,MAAM,qCAAqC;AAClF;AACA;AACA,qCAAoC,eAAe;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,eAAe;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,eAAe;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,uBAAuB,MAAM,uCAAuC;AACpF;AACA,oFAAmF,wBAAwB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAkF,wBAAwB;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,wBAAwB;AACxG;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,sCAAqC,gBAAgB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,oCAAoC;AAC/E;AACA;AACA,iEAAgE,4CAA4C;AAC5G;AACA,+BAA8B,qBAAqB,EAAE;AACrD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,uCAAuC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,wCAAwC,EAAE;AAC5G;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT,+DAA8D,yBAAyB;AACvF;AACA,MAAK;AACL;AACA;AACA;AACA,wBAAuB,uCAAuC;AAC9D;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA,SAAQ,wBAAwB,oCAAoC,wBAAwB;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,eAAe;AACxC;AACA;AACA;AACA;AACA,sEAAqE,eAAe;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,wBAAwB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,wBAAwB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,gBAAgB;AAChD,sDAAqD,uBAAuB;AAC5E;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,gBAAgB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA,0CAAyC,kBAAkB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,0BAAyB;AACzB,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,uBAAuB;AAClD;AACA,aAAY,uBAAuB;AACnC;AACA;AACA;AACA,6DAA4D,wBAAwB;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,gCAAgC;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,kCAAiC;AACjC;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA,+BAA8B,qBAAqB,EAAE;AACrD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA,iCAAgC,uBAAuB;AACvD,sCAAqC,6BAA6B;AAClE;AACA;AACA;AACA;AACA,+BAA8B,sBAAsB,EAAE;AACtD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,gCAAgC;AACjF;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,+BAA8B,4BAA4B,EAAE;AAC5D;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,kDAAkD,EAAE;AAClF;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB,0BAAyB;AACzB;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA,yBAAwB,uBAAuB;AAC/C,8BAA6B,6BAA6B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA,iDAAgD,2BAA2B;AAC3E,qDAAoD,6BAA6B;AACjF;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,cAAc;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,wCAAwC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,mBAAmB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,QAAQ;AAC1C,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,iCAAiC;AAChD;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,gBAAgB;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB,sBAAsB,MAAM,sBAAsB;AACtE;AACA;AACA;AACA;AACA,sDAAqD,sBAAsB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,MAAM;AACnD;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,iCAAiC;AAChD;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,mBAAmB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,+BAA+B;AAC9C,eAAc,+BAA+B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,qBAAqB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,OAAO;AAC7B,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,oCAAoC,OAAO,QAAQ;AACtE;AACA;AACA;AACA;AACA,oBAAmB,8DAA8D;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,oCAAoC,OAAO,QAAQ;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,oCAAoC,OAAO,QAAQ;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAmF,gBAAgB;AACnG;AACA,aAAY,iCAAiC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,0BAA0B,KAAK,8BAA8B;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,8DAA8D;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,wBAAwB;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,MAAM;AAClC;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,gCAAgC;AACjF;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,wBAAwB,oCAAoC,wBAAwB;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,eAAe;AACxC;AACA;AACA;AACA;AACA,sEAAqE,eAAe;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,wBAAwB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,wBAAwB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,gBAAgB;AAChD,sDAAqD,uBAAuB;AAC5E;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,gBAAgB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA,0CAAyC,kBAAkB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,0BAAyB;AACzB,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,uBAAuB;AAClD;AACA,aAAY,uBAAuB;AACnC;AACA;AACA;AACA,6DAA4D,wBAAwB;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,gCAAgC;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB,0BAAyB;AACzB;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA,yBAAwB,uBAAuB;AAC/C,8BAA6B,6BAA6B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA,mDAAkD,2BAA2B;AAC7E,uDAAsD,6BAA6B;AACnF;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,6BAA6B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,gDAAgD;AACtE,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,qBAAqB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,sBAAsB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,qBAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,kFAAiF,oBAAoB,EAAE;AACvG;AACA;AACA;AACA;AACA;AACA,+BAA8B,mBAAmB,EAAE;AACnD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,0BAA0B,EAAE;AAC1D;AACA;AACA,UAAS;AACT;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA,cAAa,4BAA4B,yCAAyC,GAAG,iBAAiB,IAAI;AAC1G;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,SAAQ,iCAAiC;AACzC;AACA;AACA,uFAAsF;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qDAAoD,gBAAgB;AACpE;AACA,sDAAqD,eAAe;AACpE;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,mBAAkB,uBAAuB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,iCAAiC;AACpF;AACA,uEAAsE,qBAAqB;AAC3F;AACA;AACA;AACA,wEAAuE,qBAAqB;AAC5F;AACA,qBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA,qBAAoB,yBAAyB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD;AACrD;AACA;AACA;AACA,6DAA4D;AAC5D;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,2EAA0E,gCAAgC;AAC1G;AACA;AACA;AACA;AACA,MAAK;AACL,mDAAkD,aAAa;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,yBAAyB,EAAE;AACzD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,qBAAqB,EAAE;AACrD;AACA;AACA,UAAS;AACT;AACA;AACA,wCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,4BAA4B;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA,+CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA;AACA,2CAA0C,iBAAiB;AAC3D;AACA;AACA;AACA;AACA;AACA,8CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA,qDAAoD,iBAAiB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,sBAAsB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,iBAAiB;AACnF;AACA;AACA,mDAAkD,iBAAiB;AACnE;AACA;AACA;AACA,+CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,6BAA6B;AAC/D;AACA,yCAAwC,6BAA6B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,0BAA0B,EAAE;AAC9F;AACA,2EAA0E,8BAA8B,EAAE;AAC1G;AACA,wEAAuE,+BAA+B,EAAE;AACxG;AACA,wEAAuE,2BAA2B,EAAE;AACpG;AACA,0EAAyE,8BAA8B,EAAE;AACzG;AACA,6EAA4E,qCAAqC,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,iBAAiB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,6BAA6B;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,gBAAgB;AAC3E;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,mBAAmB;AAC3D;AACA;AACA;AACA;AACA;AACA,uBAAsB,6BAA6B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,4BAA4B,EAAE;AAC5D;AACA;AACA,UAAS;AACT,sDAAqD,kBAAkB;AACvE,yDAAwD,qDAAqD;AAC7G;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2EAA0E,8CAA8C;AACxH,2EAA0E,oCAAoC;AAC9G;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA,yCAAwC,iBAAiB;AACzD;AACA;AACA;AACA;AACA;AACA,iDAAgD,iBAAiB;AACjE;AACA;AACA;AACA;AACA;AACA,6CAA4C,iBAAiB;AAC7D;AACA;AACA;AACA;AACA;AACA,+CAA8C,iBAAiB;AAC/D;AACA;AACA;AACA;AACA;AACA,8CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,iBAAiB;AACrF;AACA;AACA,iDAAgD,iBAAiB;AACjE;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,iBAAiB;AACzD;AACA;AACA,iDAAgD,iBAAiB;AACjE;AACA;AACA,6CAA4C,iBAAiB;AAC7D;AACA;AACA,+CAA8C,iBAAiB;AAC/D;AACA;AACA,8CAA6C,iBAAiB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,4BAA4B;AAC1D,uBAAsB,sBAAsB;AAC5C,aAAY,sBAAsB;AAClC;AACA;AACA;AACA,kEAAiE,qBAAqB;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,6DAA4D,6BAA6B,EAAE;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,4BAA4B;AAC1D,uBAAsB,sBAAsB;AAC5C,aAAY,sBAAsB;AAClC;AACA;AACA;AACA,kEAAiE,qBAAqB;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,6DAA4D,uBAAuB,EAAE;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,gCAA+B,wBAAwB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,mBAAmB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,uDAAsD;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,gCAAgC;AAC9E;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,8BAA8B;AACpF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,6CAA6C;AACzG;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,mCAAkC,0BAA0B,KAAK;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,0DAA0D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA,uCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAiF,kBAAkB;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,UAAU;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA,yFAAwF,aAAa;AACrG;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,aAAa;;AAEjF;AACA;AACA;AACA;AACA,SAAQ,gBAAgB,MAAM,uBAAuB;AACrD,SAAQ,oCAAoC,MAAM,0BAA0B;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA6E,gBAAgB;AAC7F,wEAAuE,gBAAgB;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,6CAA6C;AACzG;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,iCAAiC,EAAE;AACjE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+BAA+B,EAAE;AAC/D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,qCAAqC,EAAE;AACrE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,sCAAqC,gBAAgB;AACrD,oCAAmC,YAAY;AAC/C;AACA;AACA;AACA;AACA;AACA,oCAAmC,YAAY;AAC/C,uCAAsC,iBAAiB;AACvD,+CAA8C,yBAAyB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,YAAY;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,YAAY;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,YAAY;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,QAAQ;AACjD;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,4BAA4B;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,2CAA2C,EAAE;AAC3E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,oCAAoC,EAAE;AACpE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,mDAAmD,EAAE;AACnF;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6CAA6C,EAAE;AAC7E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,oBAAmB,oCAAoC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA,cAAa,sBAAsB;AACnC,cAAa,gCAAgC,gCAAgC,IAAI;AACjF,cAAa,mBAAmB;AAChC;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,wBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA,oCAAmC,8BAA8B;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,uBAAuB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA,6DAA4D,uBAAuB;AACnF;AACA;AACA,qFAAoF;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,qBAAoB,cAAc;AAClC;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,qBAAoB,wBAAwB;AAC5C;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,qCAAqC,EAAE;AACrE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,mCAAmC,EAAE;AACnE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,oCAAoC,EAAE;AACpE;AACA;AACA,UAAS;AACT;AACA;AACA,+BAA8B,yCAAyC,EAAE;AACzE;AACA;AACA,UAAS;AACT;AACA;AACA,+BAA8B,yCAAyC,EAAE;AACzE;AACA;AACA,UAAS;AACT;AACA;AACA,+BAA8B,4BAA4B,EAAE;AAC5D;AACA;AACA,UAAS;AACT,wDAAuD,wCAAwC;AAC/F,kEAAiE,mCAAmC;AACpG;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,4BAA4B,EAAE;AAC5D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+CAA8C,yBAAyB;AACvE,iDAAgD,2BAA2B;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,4BAA2B,sBAAsB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,iBAAiB;AACtD;AACA;AACA;AACA,yDAAwD,yCAAyC;AACjG;AACA;AACA,2CAA0C,aAAa;AACvD,2CAA0C,aAAa;AACvD;AACA;AACA,6CAA4C,oCAAoC,EAAE;AAClF,kBAAiB,uCAAuC,6BAA6B;AACrF;AACA,gEAA+D,yBAAyB,mCAAmC,EAAE,EAAE,EAAE;AACjI,yCAAwC,4BAA4B;AACpE;AACA;AACA,gEAA+D,yBAAyB,mCAAmC,EAAE,EAAE,EAAE;AACjI,sCAAqC,4BAA4B;AACjE;AACA;AACA;AACA;AACA,6CAA4C,+BAA+B,EAAE;AAC7E,kBAAiB,uCAAuC,wBAAwB;AAChF;AACA;AACA,0DAAyD,yBAAyB,mBAAmB,EAAE,EAAE,EAAE,mBAAmB,YAAY;AAC1I;AACA;AACA;AACA,uDAAsD,yBAAyB,mBAAmB,EAAE,EAAE,EAAE,gBAAgB,YAAY;AACpI;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,wBAAwB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,mDAAkD,mDAAmD;AACrG,wDAAuD,2BAA2B;AAClF;AACA,+DAA8D,kCAAkC;AAChG;AACA,wDAAuD,2BAA2B;AAClF;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,mDAAkD,yBAAyB;AAC3E,0CAAyC,WAAW;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,wBAAwB;AACvC,gBAAe,KAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B,UAAU;AACpC,yDAAwD,OAAO;AAC/D;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,8BAA8B;AACnE,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,6CAA4C,cAAc;AAC1D;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA,kBAAiB;AACjB,yDAAwD,6CAA6C,EAAE;AACvG,4CAA2C,yCAAyC;AACpF,cAAa;AACb;AACA,+CAA8C,qCAAqC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,mCAAmC,EAAE;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,yBAAyB,EAAE;AACzD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,+BAA+B,EAAE;AAC/D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,4BAA4B,EAAE;AAC5D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,mCAAmC,EAAE;AACnE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,mCAAmC,EAAE;AACnE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,gEAA+D,yBAAyB;AACxF;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,oCAAoC;AAClF;AACA;AACA;AACA;AACA,sDAAqD,2CAA2C;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,WAAW;AAC3B;AACA,6DAA4D,oCAAoC;AAChG;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA,kBAAiB;AACjB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,2BAA2B;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA,cAAa,gBAAgB;AAC7B;AACA;AACA,MAAK;AACL;AACA,8BAA6B,kBAAkB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,qCAAqC;AAC7G,0EAAyE,8CAA8C;AACvH,yEAAwE,4CAA4C;AACpH;AACA,8CAA6C,wBAAwB;AACrE;AACA;AACA;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,0EAAyE;AACzE;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,iBAAgB,qBAAqB;AACrC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,eAAe,EAAE;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA,6CAA4C,qBAAqB;AACjE;AACA;AACA,mFAAkF,kCAAkC;AACpH;AACA;AACA,iHAAgH,kCAAkC;AAClJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,gBAAgB;AACzE,+BAA8B,qBAAqB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA,oBAAmB,kBAAkB;AACrC,oBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,sBAAsB;AACnE;AACA;AACA;AACA;AACA,uCAAsC,eAAe;AACrD;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,uCAAuC;AACvG;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,sEAAqE,sBAAsB,EAAE;AAC7F,gEAA+D,kBAAkB,EAAE;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,oCAAoC;AACzE;AACA;AACA;AACA,4EAA2E,oCAAoC;AAC/G;AACA;AACA;AACA;AACA;AACA,kDAAiD,sDAAsD,EAAE;AACzG,2CAA0C,yBAAyB,qCAAqC,EAAE,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB,kBAAiB;AACjB,cAAa;AACb;AACA;AACA,8CAA6C,sBAAsB;AACnE;AACA;AACA;AACA;AACA,8CAA6C,sBAAsB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA,iDAAgD,qEAAqE,EAAE;AACvH;AACA;AACA;AACA;AACA,8EAA6E,sCAAsC,EAAE;AACrH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA,cAAa,kBAAkB;AAC/B;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,wEAAuE,gBAAgB;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,oBAAoB,8BAA8B,cAAc,EAAE,EAAE,EAAE,EAAE;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,iCAAiC,EAAE;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,+BAA+B,EAAE;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAsE,iCAAiC,EAAE;AACzG;AACA,2EAA0E,kCAAkC,EAAE;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E,sBAAsB,EAAE;AACpG;AACA;AACA,+BAA8B,iCAAiC,EAAE;AACjE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6BAA6B,EAAE;AAC7D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA,cAAa,gBAAgB;AAC7B,cAAa,iBAAiB;AAC9B,cAAa,kBAAkB;AAC/B,cAAa,sBAAsB;AACnC,cAAa,kCAAkC;AAC/C,cAAa,+BAA+B;AAC5C,cAAa,0CAA0C,iBAAiB,IAAI;AAC5E,cAAa,kCAAkC,iBAAiB,IAAI;AACpE;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA,6DAA4D,sBAAsB;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,yBAAyB,EAAE;AACzD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,uCAAuC;AAChG;AACA,4CAA2C,oCAAoC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,mBAAmB,EAAE;AACrF;AACA,qEAAoE,uCAAuC;AAC3G;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,iCAAgC,oBAAoB,MAAM,wBAAwB;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,IAAI;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,sBAAsB,EAAE;AACtD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6BAA6B,EAAE;AAC7D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,yBAAyB,EAAE;AACzD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,uCAAuC,EAAE;AACvE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,kDAAiD,8BAA8B;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,2BAA2B;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,8BAA8B;AACjF,iEAAgE,6CAA6C;AAC7G,qDAAoD,iCAAiC;AACrF;AACA;AACA;AACA;AACA,4DAA2D,0BAA0B;AACrF;AACA,qDAAoD,oBAAoB;AACxE;AACA;AACA,+BAA8B,oBAAoB,EAAE;AACpD;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,eAAe;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,2BAA2B,EAAE;AACtE,wCAAuC,gDAAgD,EAAE;AACzF,wCAAuC,iDAAiD,EAAE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,gDAAgD,EAAE;AAC3F,2CAA0C,mDAAmD,EAAE;AAC/F;AACA;AACA,cAAa,mBAAmB;AAChC;AACA;AACA;AACA,cAAa,kBAAkB;AAC/B,cAAa,mDAAmD,iBAAiB,IAAI;AACrF;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,YAAY;AACtE;AACA;AACA,SAAQ,0CAA0C;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA,+BAA8B,oCAAoC,EAAE;AACpE;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,uBAAuB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA,4CAA2C,MAAM;AACjD;AACA;AACA;AACA,qBAAoB,kBAAkB;AACtC;AACA,eAAc,kBAAkB;AAChC;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAc,kBAAkB;AAChC;AACA,gBAAe,MAAM;AACrB;AACA;AACA,4EAA2E,kBAAkB;AAC7F;AACA,yBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,mBAAmB,EAAE;AACnD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,iCAAiC,EAAE;AACjE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,2BAA2B,EAAE;AAC3D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6BAA6B,EAAE;AAC7D;AACA;AACA,UAAS;AACT,wDAAuD,wCAAwC;AAC/F,kDAAiD,mDAAmD;AACpG,yDAAwD,iCAAiC;AACzF,0DAAyD,gCAAgC;AACzF;AACA;AACA;AACA;AACA,6DAA4D,uCAAuC;AACnG,mDAAkD,sBAAsB;AACxE;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,qEAAqE,EAAE;AACrG;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,oEAAoE,EAAE;AACpG;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,mEAAmE,EAAE;AACnG;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,wBAAwB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,4CAA2C,yBAAyB,EAAE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAuB,kDAAkD;AACzE,UAAS,uDAAuD;AAChE,UAAS,mDAAmD;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,8BAA6B,wDAAwD;AACrF;AACA;AACA;AACA;AACA,8BAA6B,gEAAgE;AAC7F,8BAA6B,gEAAgE;AAC7F,8BAA6B,wCAAwC;AACrE;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC;AACjC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,0BAA0B,EAAE;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,aAAa,EAAE;AACtE;AACA;AACA;AACA,4DAA2D,0CAA0C,sBAAsB,EAAE,EAAE;AAC/H,iEAAgE,2BAA2B;AAC3F,gEAA+D,0BAA0B;AACzF,kEAAiE,sBAAsB;AACvF;AACA;AACA;AACA;AACA;AACA,yDAAwD,aAAa,EAAE;AACvE;AACA;AACA;AACA,sDAAqD,sBAAsB,EAAE;AAC7E;AACA,6DAA4D,0CAA0C,uBAAuB,EAAE,EAAE;AACjI,+DAA8D,0CAA0C,yBAAyB,EAAE,EAAE;AACrI;AACA;AACA,sDAAqD,wBAAwB,EAAE;AAC/E;AACA;AACA;AACA,sDAAqD,yBAAyB,EAAE;AAChF;AACA,6DAA4D,0CAA0C,uBAAuB,EAAE,EAAE;AACjI;AACA,sDAAqD,uBAAuB,EAAE;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,gDAAgD,EAAE;AAChF,qCAAoC,gDAAgD,EAAE;AACtF;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,0BAA0B,EAAE;AACvE;AACA;AACA;AACA,oDAAmD,aAAa,EAAE;AAClE;AACA;AACA,gEAA+D,2BAA2B;AAC1F,+DAA8D,0BAA0B;AACxF,iEAAgE,sBAAsB;AACtF,2DAA0D;AAC1D;AACA;AACA,yDAAwD,aAAa,EAAE;AACvE;AACA;AACA;AACA;AACA,4DAA2D;AAC3D,8DAA6D;AAC7D,6DAA4D,kBAAkB;AAC9E,8DAA6D;AAC7D,4DAA2D;AAC3D,qFAAoF;AACpF,kEAAiE,UAAU;AAC3E;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,6BAA6B,EAAE;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,0BAA0B,EAAE;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,4BAA4B,EAAE;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,aAAa,EAAE;AACtE;AACA;AACA;AACA,+DAA8D,0CAA0C,sBAAsB,EAAE,EAAE;AAClI,oEAAmE,2BAA2B;AAC9F,mEAAkE,0BAA0B;AAC5F,qEAAoE,sBAAsB;AAC1F;AACA;AACA;AACA;AACA;AACA,yDAAwD,aAAa,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA,gEAA+D,4BAA4B;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,0CAA0C,uBAAuB,EAAE,EAAE;AACpI;AACA;AACA,sDAAqD,wBAAwB,EAAE;AAC/E;AACA;AACA;AACA,sDAAqD,yBAAyB,EAAE;AAChF;AACA,yFAAwF,iCAAiC;AACzH,sEAAqE,uCAAuC;AAC5G;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E;AAC5E,2BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,6EAA4E;AAC5E,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,SAAQ,+CAA+C;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,6EAA4E;AAC5E,2BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,6EAA4E;AAC5E,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,eAAe;AACnD;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,6EAA4E;AAC5E,2BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,gDAAgD,EAAE;AAChF;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA,6EAA4E;AAC5E,2BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,oBAAoB,EAAE;AACpD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA,6EAA4E;AAC5E,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,oBAAoB,EAAE;AACpD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA;AACA;AACA;AACA,qBAAoB,qCAAqC,GAAG,kBAAkB,MAAM;AACpF,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAAyE,kBAAkB,KAAK;AAChG,4BAA2B;AAC3B;AACA;AACA,yEAAwE;AACxE,uEAAsE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,oBAAoB;AAC/C;AACA,iBAAgB,qBAAqB;AACrC,iBAAgB,oBAAoB;AACpC;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,iCAAgC,eAAe;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA,0DAAyD,wBAAwB,OAAO;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,kBAAkB,KAAK,sBAAsB;AACxD;AACA,wDAAuD,0BAA0B;AACjF,SAAQ,iDAAiD;AACzD;AACA;AACA;AACA;AACA,yBAAwB,sBAAsB;AAC9C,yBAAwB,iBAAiB;AACzC;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA;AACA,mEAAkE,4BAA4B;AAC9F;AACA,6DAA4D,kBAAkB,OAAO;AACrF;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA,YAAW,kBAAkB,KAAK,sBAAsB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,aAAa;AAC7B,yBAAwB,aAAa;AACrC;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA;AACA,qBAAoB,6BAA6B,aAAa,kCAAkC;AAChG,+BAA8B,sBAAsB,MAAM,0BAA0B;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,mCAAmC;AACjD;AACA;AACA,eAAc,wBAAwB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA6F;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,YAAY;AAC1B,6BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA,iEAAgE;AAChE;AACA,gBAAe,sBAAsB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,yBAAyB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,YAAY;AACxC;AACA;AACA,+BAA8B,YAAY;AAC1C,sCAAqC,cAAc;AACnD;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA,+CAA8C,kBAAkB;AAChE;AACA;AACA;AACA;AACA,iFAAgF;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,oCAAoC;AACpD,iBAAgB,uCAAuC;AACvD,iBAAgB,yCAAyC;AACzD,iBAAgB,sCAAsC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,yBAAyB;AACzC,iBAAgB,0BAA0B;AAC1C,iBAAgB,4BAA4B;AAC5C,iBAAgB,2BAA2B;AAC3C;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA,mCAAkC,2CAA2C;AAC7E;AACA;AACA;AACA;AACA;AACA,oDAAmD,gCAAgC;AACnF;AACA,+DAA8D,6BAA6B;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,sBAAsB;AAClD,8BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,aAAa;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,aAAa;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,aAAY;AACZ;AACA,qEAAoE,kBAAkB,MAAM;AAC5F;AACA;AACA;AACA;AACA,SAAQ,6DAA6D;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,kBAAkB;AAClG,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oCAAmC,kBAAkB;AACrD;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,gEAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,yBAAyB,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,UAAS;AACT;AACA;AACA,kEAAiE,gDAAgD,EAAE;AACnH;AACA;AACA;AACA;AACA,qEAAoE,2BAA2B,EAAE;AACjG,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E,mDAAmD;AAC/H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,6CAA6C,EAAE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,wDAAwD,EAAE;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,mDAAkD,8CAA8C,EAAE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,0CAA0C;AACpH;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,2BAA2B,EAAE;AAC3D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6CAA6C,EAAE;AAC7E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,oCAAoC,EAAE;AACpE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,yBAAyB;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,oCAAoC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,uDAAuD,EAAE;AACvF;AACA;AACA,UAAS;AACT;AACA,kDAAiD,6BAA6B;AAC9E;AACA,mGAAkG,yBAAyB,EAAE;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,qEAAqE;AAC3H;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,yCAAwC,sEAAsE,EAAE;AAChH;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,gCAA+B,sBAAsB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,aAAa;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,qBAAqB;AAChD;AACA;AACA;AACA,4BAA2B,qBAAqB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,6BAA6B;AACxD;AACA;AACA,4BAA2B,+BAA+B;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,yDAAyD,EAAE;AACtG;AACA;AACA;AACA;AACA;AACA,0DAAyD;AACzD;AACA;AACA;AACA,yDAAwD;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,gDAAgD,EAAE;AAC7F;AACA;AACA;AACA,+BAA8B,iBAAiB,EAAE;AACjD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,kEAAkE,EAAE;AAClG;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,qEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,iCAAiC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,8BAA8B;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,kFAAiF,mCAAmC;AACpH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,8CAA8C;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,WAAW;AACnE,qEAAoE,uCAAuC;AAC3G;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,kCAAkC;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,QAAQ;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;;AC7pYD;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,SAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,SAAS;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,oC;;;;;;AC/JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,yBAAyB;AACxC;AACA,gBAAe,SAAS;AACxB;AACA,gBAAe,SAAS;AACxB,iBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,mBAAmB;AAClC,iBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,uC;;;;;;AC3IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iC;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;AClBA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,eAAe;AAClC,KAAI,mBAAmB,mBAAmB,eAAe;AACzD,gCAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,kCAAkC;AACjD;AACA,gBAAe,wBAAwB;AACvC;AACA,gBAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,aAAa;AACpF;AACA;AACA;AACA,gBAAe,sBAAsB;AACrC,gBAAe,wBAAwB;AACvC;AACA,gBAAe,iBAAiB;AAChC;AACA,iBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,eAAe;AAC3B;AACA;AACA,gBAAe,EAAE;AACjB,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,eAAe;AAC3B,0CAAyC,YAAY;AACrD;AACA,gBAAe,IAAI;AACnB,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,eAAe;AAC3B;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD,uC;;;;;;ACxPA;AACA;AACA;AACA;AACA;AACA,uC;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,iBAAiB;AAChC;AACA;AACA;AACA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B;AACA,iBAAgB,aAAa;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,aAAa;AAC5B,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,EAAC;AACD;AACA,yC;;;;;;ACxJA;AACA,mDAAkD,0CAA0C,EAAE;AAC9F,oC;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;AClBA;AACA;AACA,wBAAuB,MAAM;AAC7B,wC;;;;;;ACHA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA,wBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2GAA0G,0CAA0C,EAAE;AACtJ;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,gD;;;;;;ACxBA;AACA;AACA;AACA,6BAA4B,EAAE;AAC9B,4BAA2B,WAAW,EAAE;AACxC,4BAA2B;AAC3B;AACA,qC;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA,yC;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uC;;;;;;ACrBA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,oD;;;;;;AC1BA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,gD;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,6DAA6D;AACtG,EAAC,yDAAyD;;AAE1D;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC;AACxF,yDAAwD,4BAA4B;AACpF,qDAAoD,wBAAwB;AAC5E,kDAAiD,iBAAiB;AAClE;AACA;AACA;AACA,gCAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA;AACA,iCAAgC,uBAAuB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,wDAAuD,gCAAgC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,gDAA+C,gBAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,yBAAyB;AAC7E;AACA,+BAA8B,YAAY,EAAE;AAC5C;AACA;AACA,UAAS;AACT,qDAAoD,0CAA0C;AAC9F,iDAAgD,qBAAqB;AACrE,qDAAoD,gCAAgC;AACpF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,oCAAmC,+BAA+B;AAClE;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,oCAAmC,WAAW;AAC9C,kCAAiC,SAAS;AAC1C,mCAAkC,UAAU;AAC5C,sCAAqC,aAAa;AAClD,sCAAqC,aAAa;AAClD,2CAA0C,kBAAkB;AAC5D;AACA;AACA,qDAAoD,sBAAsB;AAC1E,iDAAgD,qBAAqB;AACrE,iDAAgD,uBAAuB;AACvE,wCAAuC,mBAAmB;AAC1D,+CAA8C,sBAAsB;AACpE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,yBAAyB;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,sDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,eAAe,EAAE;AACxD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,gBAAgB,EAAE;AAC7D;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,kBAAkB;AAC7E,iDAAgD,yBAAyB;AACzE;AACA,uDAAsD,eAAe,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,iBAAiB;AACxE;AACA,oDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,wDAAuD,wBAAwB;AAC/E,2DAA0D,wBAAwB;AAClF,+CAA8C,uBAAuB;AACrE;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,gBAAgB;AACxD;AACA;AACA,qDAAoD,gCAAgC;AACpF;AACA;AACA;AACA;AACA,+CAA8C,oBAAoB;AAClE,6DAA4D,8BAA8B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,iBAAiB;AAC9D,gDAA+C,yBAAyB;AACxE;AACA,oCAAmC,WAAW;AAC9C,kCAAiC,YAAY;AAC7C;AACA;AACA;AACA;AACA;AACA,4BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA,0DAAyD,+BAA+B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,qBAAqB;AAClE,4CAA2C,0BAA0B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,qBAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,uBAAuB;AAC3E;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,yGAAwG,iCAAiC,EAAE;AAC3I;AACA;AACA,wGAAuG,2BAA2B,EAAE;AACpI;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,4BAA4B,EAAE;AAC5D,oCAAmC,6BAA6B,EAAE;AAClE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,aAAa,EAAE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA,cAAa;AACb;AACA;AACA;AACA,kDAAiD,0BAA0B;AAC3E;AACA;AACA;AACA;AACA;AACA,gEAA+D,2BAA2B;AAC1F,+DAA8D,0BAA0B;AACxF;AACA;AACA;AACA,yDAAwD,aAAa,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,uBAAuB;AAClF;AACA;AACA;AACA;AACA,iEAAgE,sBAAsB;AACtF;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT,mEAAkE,+CAA+C;AACjH,kEAAiE,kDAAkD;AACnH;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kFAAiF;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,wBAAwB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,iCAAiC;AACjH;AACA;AACA;AACA,6EAA4E,aAAa;AACzF;AACA;AACA;AACA;AACA;AACA;AACA,4EAA2E,kEAAkE;AAC7I;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,0CAA0C;AAC/G,sDAAqD,4CAA4C;AACjG,+FAA8F,wBAAwB;AACtH,+EAA8E,kBAAkB;AAChG,wEAAuE,iBAAiB;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA8E,2BAA2B;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT,kEAAiE,yCAAyC;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,8CAA8C;AAC9E;AACA,6GAA4G,uBAAuB;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAoF,qBAAqB;AACzG;AACA;AACA;AACA,qFAAoF,qBAAqB;AACzG,iEAAgE,sBAAsB;AACtF,kEAAiE,uBAAuB;AACxF,6DAA4D,kBAAkB;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAkF,sBAAsB;AACxG,oFAAmF,uBAAuB;AAC1G,sFAAqF,sBAAsB;AAC3G,mFAAkF,sBAAsB;AACxG;AACA;AACA;AACA,4BAA2B,uBAAuB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA2G,sBAAsB;AACjI,4GAA2G,sBAAsB;AACjI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,0CAA0C,EAAE;AACtG;AACA;AACA;AACA;AACA,8GAA6G,sBAAsB;AACnI,gFAA+E,uBAAuB;AACtG;AACA,uFAAsF,wBAAwB;AAC9G,iFAAgF,iBAAiB;AACjG,wFAAuF,kBAAkB;AACzG,mFAAkF,mBAAmB;AACrG,0FAAyF,oBAAoB;AAC7G,sEAAqE,qCAAqC;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA;AACA;AACA,kCAAiC,gBAAgB;AACjD;AACA;AACA;AACA;AACA,uEAAsE,8BAA8B;AACpG,oEAAmE,sBAAsB;AACzF,8DAA6D,gBAAgB;AAC7E,8DAA6D,6BAA6B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iGAAgG,kCAAkC;AAClI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,mBAAmB;AAC3D;AACA;AACA;AACA,qFAAoF,wBAAwB;AAC5G;AACA;AACA;AACA,4BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,iBAAiB;AAC/E;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA,6DAA4D,uBAAuB;AACnF,qEAAoE,iCAAiC;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,yCAAyC;AAC3G,sEAAqE,4CAA4C;AACjH,sEAAqE,4CAA4C;AACjH;AACA;AACA;AACA,uFAAsF,yCAAyC;AAC/H;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE,iCAAiC;AAClG,8DAA6D,gBAAgB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,uBAAuB;AACrF,gEAA+D,wBAAwB;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,oBAAoB;AACxF,iEAAgE,mCAAmC;AACnG;AACA;AACA;AACA;AACA;AACA;AACA,8FAA6F,kCAAkC;AAC/H;AACA,4EAA2E,uCAAuC;AAClH,yEAAwE,iDAAiD;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,aAAa;AAChF,kEAAiE,gDAAgD;AACjH;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,GAAG,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA,SAAQ,eAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT,6EAA4E,+BAA+B;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,gCAAgC,EAAE;AAChE,sCAAqC,mCAAmC,EAAE;AAC1E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,8BAA8B,EAAE;AAC9D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4BAA4B,EAAE;AAC5D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE,yBAAyB;AAC1F,+DAA8D,sBAAsB;AACpF;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,mDAAkD,iEAAiE;AACnH;AACA;AACA,kDAAiD,wBAAwB;AACzE;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,uCAAuC;AACtG,+DAA8D,sCAAsC;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,0BAA0B,EAAE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,mBAAmB;AACzE;AACA;AACA;AACA,4BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,4BAA4B,6DAA6D,IAAI;AAC1G,cAAa,8BAA8B;AAC3C;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,uEAAsE,cAAc;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,0EAAyE;AACzE,gEAA+D,qBAAqB;AACpF;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,kCAAkC;AAC1G;AACA;AACA,0DAAyD,6CAA6C,EAAE;AACxG;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,gCAAgC,gDAAgD,IAAI;AACjG;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,gCAAgC,gDAAgD,IAAI;AACjG,cAAa,sBAAsB;AACnC,cAAa,6BAA6B;AAC1C,cAAa,yBAAyB;AACtC;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,yBAAyB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,4CAA4C;AAC5H;AACA,4BAA2B,0BAA0B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iGAAgG;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,oCAAoC;AACzG;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,mBAAmB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,mBAAmB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,uCAAuC,EAAE,IAAI;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,aAAa;AAChF;AACA;AACA,sEAAqE,qCAAqC,uBAAuB,EAAE,EAAE;AACrI,0EAAyE,iEAAiE,EAAE;AAC5I;AACA;AACA;AACA;AACA,sEAAqE,qCAAqC,uBAAuB,EAAE,EAAE;AACrI,0EAAyE,iEAAiE,EAAE;AAC5I;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA,+CAA8C,0BAA0B;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,eAAe;AAChD,mCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,mBAAmB,EAAE;AACtE;AACA;AACA,qCAAoC,6BAA6B;AACjE,cAAa;AACb;AACA,8EAA6E,oDAAoD;AACjI;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,0CAA0C,6DAA6D,IAAI;AACxH;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,kCAAiC,qBAAqB,EAAE;AACxD,sCAAqC,sBAAsB,EAAE;AAC7D,mCAAkC,sBAAsB,EAAE;AAC1D,oCAAmC,uBAAuB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B;AAC9B;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,uBAAuB,EAAE;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D;AAC9D;AACA,qBAAoB;AACpB;AACA,6BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA,0IAAyI;AACzI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,mCAAmC,EAAE;AAC7F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,gBAAgB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA,wCAAuC,oBAAoB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wFAAuF,sCAAsC;AAC7H;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA,0CAAyC;AACzC;AACA;AACA;AACA,oFAAmF;AACnF,UAAS;AACT,iEAAgE,uCAAuC,EAAE,EAAE;AAC3G,iCAAgC;AAChC,iCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,wDAAuD,gBAAgB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,kEAAiE,gBAAgB;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gFAA+E,gCAAgC;AAC/G,iFAAgF,iCAAiC;AACjH,kFAAiF,kCAAkC;AACnH,+EAA8E,+BAA+B;AAC7G;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,2DAA0D,eAAe;AACzE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,4DAA2D,gBAAgB;AAC3E;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,6DAA4D,iBAAiB;AAC7E;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,0DAAyD,cAAc;AACvE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,kEAAiE,sBAAsB;AACvF;AACA,MAAK;;AAEL;AACA,UAAS,qFAAqF;AAC9F,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,8DAA8D;AACvE,UAAS,oDAAoD;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,8DAA6D,0EAA0E;AACvI,8BAA6B,qDAAqD;AAClF,8BAA6B,yEAAyE;AACtG,8BAA6B,yEAAyE;AACtG,8BAA6B,8EAA8E;AAC3G,8BAA6B,gEAAgE;AAC7F,8BAA6B,uDAAuD;AACpF,8BAA6B,oEAAoE;AACjG,8BAA6B,8DAA8D;AAC3F,8BAA6B,uEAAuE;AACpG;AACA;AACA;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,oCAAoC,+BAA+B,GAAG,+BAA+B,IAAI;AACtH;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA,iDAAgD,4BAA4B;AAC5E;AACA;AACA;AACA;AACA,yDAAwD,6BAA6B;AACrF;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,aAAa;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,iCAAgC,mBAAmB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA,+BAA8B,iCAAiC,aAAa,GAAG;AAC/E;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA,6CAA4C,yDAAyD;AACrG;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;;ACt/FD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,2CAA2C;AACpF,EAAC,yCAAyC;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC;AACxF,yDAAwD,4BAA4B;AACpF,qDAAoD,wBAAwB;AAC5E,kDAAiD,iBAAiB;AAClE;AACA;AACA;AACA,gCAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA;AACA,iCAAgC,uBAAuB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,wDAAuD,gCAAgC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,gDAA+C,gBAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,yBAAyB;AAC7E;AACA,+BAA8B,YAAY,EAAE;AAC5C;AACA;AACA,UAAS;AACT,qDAAoD,0CAA0C;AAC9F,iDAAgD,qBAAqB;AACrE,qDAAoD,gCAAgC;AACpF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,+BAA+B;AAClE;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,oCAAmC,WAAW;AAC9C,kCAAiC,SAAS;AAC1C,mCAAkC,UAAU;AAC5C,sCAAqC,aAAa;AAClD,sCAAqC,aAAa;AAClD,2CAA0C,kBAAkB;AAC5D;AACA;AACA,qDAAoD,sBAAsB;AAC1E,iDAAgD,qBAAqB;AACrE,iDAAgD,uBAAuB;AACvE,wCAAuC,mBAAmB;AAC1D,+CAA8C,sBAAsB;AACpE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,kCAAkC,EAAE;AAClE,sCAAqC,qCAAqC,EAAE;AAC5E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+BAA+B,EAAE;AAC/D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,gCAAgC,EAAE;AAChE,oCAAmC,iCAAiC,EAAE;AACtE;AACA;AACA,UAAS;AACT,qDAAoD,qCAAqC;AACzF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,qCAAoC,+CAA+C,SAAS,EAAE,EAAE;AAChG;AACA,yEAAwE,4BAA4B;AACpG,2EAA0E,4BAA4B;AACtG;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,gEAA+D,SAAS,EAAE;AAC1E;AACA,sEAAqE;AACrE,wEAAuE;AACvE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2FAA0F,6CAA6C,EAAE;AACzI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mCAAmC,6BAA6B,IAAI;AACjF;AACA;AACA;AACA,cAAa,yCAAyC;AACtD;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,yBAAyB;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,sDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,eAAe,EAAE;AACxD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,gBAAgB,EAAE;AAC7D;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,kBAAkB;AAC7E,iDAAgD,yBAAyB;AACzE;AACA,uDAAsD,eAAe,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,iBAAiB;AACxE;AACA,oDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,wDAAuD,wBAAwB;AAC/E,2DAA0D,wBAAwB;AAClF,+CAA8C,uBAAuB;AACrE;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,gBAAgB;AACxD;AACA;AACA,qDAAoD,gCAAgC;AACpF;AACA;AACA;AACA;AACA,+CAA8C,oBAAoB;AAClE,6DAA4D,8BAA8B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,iBAAiB;AAC9D,gDAA+C,yBAAyB;AACxE;AACA,oCAAmC,WAAW;AAC9C,kCAAiC,YAAY;AAC7C;AACA;AACA;AACA;AACA;AACA,4BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA,0DAAyD,+BAA+B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,qBAAqB;AAClE,4CAA2C,0BAA0B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,qBAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,uBAAuB;AAC3E;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,8CAA8C;AACnD;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC;AACpC;AACA,oCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,+BAA+B,EAAE;AAC5E;AACA;AACA;AACA,yCAAwC,0CAA0C;AAClF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,kBAAkB;AAC/B,cAAa,2BAA2B;AACxC,cAAa,8BAA8B;AAC3C,cAAa,yBAAyB;AACtC;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,wBAAwB;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mCAAmC,2BAA2B,IAAI;AAC/E;AACA;AACA;AACA,cAAa,gCAAgC,+DAA+D,IAAI;AAChH;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,gCAAgC,+DAA+D,IAAI;AAChH;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,wBAAwB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA,wBAAuB,sCAAsC;AAC7D,UAAS;AACT;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mCAAmC,iCAAiC,IAAI;AACrF;AACA;AACA;AACA,cAAa,wBAAwB;AACrC;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mCAAmC,iCAAiC,IAAI;AACrF;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,8BAA8B;AACvF;AACA,cAAa,mCAAmC,4BAA4B,IAAI;AAChF;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mCAAmC,oBAAoB,IAAI;AACxE;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,mCAAkC,iBAAiB;AACnD,2CAA0C,0BAA0B;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,iBAAiB,EAAE,kBAAkB,EAAE;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,eAAe;AACnD;AACA;AACA;AACA,cAAa,mCAAmC,iBAAiB,IAAI;AACrE;AACA;AACA;AACA,cAAa,gCAAgC,+DAA+D,IAAI;AAChH;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD;AACnD;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,eAAe;AACnD;AACA;AACA;AACA,cAAa,mCAAmC,kBAAkB,IAAI;AACtE;AACA;AACA;AACA,cAAa,gCAAgC,+DAA+D,IAAI;AAChH;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD;AACnD;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,sBAAsB;AAChE,4CAA2C,uBAAuB;AAClE,qCAAoC,eAAe;AACnD;AACA;AACA;AACA,cAAa,mCAAmC,mBAAmB,IAAI;AACvE;AACA;AACA;AACA,cAAa,gCAAgC,+DAA+D,IAAI;AAChH;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,YAAY;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,sCAAsC;AAC7F;AACA,cAAa,mCAAmC,6BAA6B,IAAI;AACjF;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,mCAAmC,oBAAoB,IAAI;AACxE;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,UAAU;AACzB,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA,6CAA4C,mCAAmC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,qDAAqD,EAAE;AAC/G,2DAA0D,qDAAqD,EAAE;AACjH;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,yDAAwD,uCAAuC,EAAE;AACjG,2DAA0D,wCAAwC,EAAE;AACpG;AACA;AACA;AACA,gEAA+D,kDAAkD,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA,+DAA8D,kDAAkD,EAAE;AAClH;AACA;AACA,+DAA8D,kDAAkD,EAAE;AAClH;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,SAAS;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,wBAAwB,IAAI;AACjF;AACA;AACA;AACA,cAAa,uCAAuC;AACpD,cAAa,uCAAuC;AACpD,cAAa,kCAAkC;AAC/C,cAAa,gCAAgC;AAC7C;AACA;AACA,iCAAgC,8CAA8C;AAC9E,0BAAyB,4BAA4B;AACrD;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,yBAAyB,EAAE;AACzD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,sCAAsC,EAAE;AACtE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6BAA6B,EAAE;AAC7D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,mBAAmB,EAAE;AACnD;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,eAAe;AACvD,iDAAgD,eAAe;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,4BAA2B,yBAAyB;AACpD;AACA;AACA,+DAA8D,UAAU;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,+BAA+B,IAAI;AACxF;AACA;AACA;AACA,cAAa,wCAAwC;AACrD,cAAa,mCAAmC;AAChD,cAAa,uCAAuC;AACpD,cAAa,yCAAyC;AACtD;AACA;AACA,0BAAyB,4BAA4B;AACrD,+BAA8B,4BAA4B;AAC1D,gCAA+B,4BAA4B;AAC3D;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,oEAAmE,WAAW;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,cAAa,wCAAwC,qBAAqB,IAAI;AAC9E;AACA;AACA;AACA,cAAa,wCAAwC;AACrD,cAAa,mCAAmC;AAChD;AACA;AACA,uBAAsB,4BAA4B;AAClD;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,8DAA8D;AACjH,qDAAoD,gCAAgC;AACpF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB,OAAO;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,6BAA6B;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,yBAAyB,IAAI;AAClF;AACA;AACA;AACA;AACA,2BAA0B,4BAA4B;AACtD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,cAAa,wCAAwC,6BAA6B,IAAI;AACtF;AACA;AACA;AACA,cAAa,wCAAwC;AACrD,cAAa,mCAAmC;AAChD,cAAa,+BAA+B,2BAA2B,IAAI;AAC3E;AACA;AACA,+BAA8B,4BAA4B;AAC1D;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,aAAY,eAAe;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,gCAAgC,IAAI;AACzF;AACA;AACA;AACA,cAAa,wCAAwC;AACrD,cAAa,mCAAmC;AAChD,cAAa,+BAA+B,2BAA2B,IAAI;AAC3E;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sCAAsC;AAC7D,SAAQ;AACR;AACA;AACA,yBAAwB,OAAO;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT,oEAAmE,qCAAqC;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,yBAAyB,IAAI;AAClF;AACA;AACA;AACA,cAAa,wBAAwB;AACrC;AACA;AACA,2BAA0B,4BAA4B;AACtD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,6BAA6B,IAAI;AACtF;AACA;AACA;AACA,cAAa,gCAAgC,yDAAyD,IAAI;AAC1G,cAAa,mCAAmC;AAChD,cAAa,wCAAwC;AACrD,cAAa,+BAA+B,2BAA2B,IAAI;AAC3E;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,uBAAuB;AAClD,4BAA2B,yBAAyB;AACpD;AACA;AACA;AACA;AACA;AACA,gBAAe,UAAU;AACzB,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA,2BAA0B,8DAA8D;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,mCAAmC,EAAE;AAC/F,yDAAwD,kDAAkD,EAAE;AAC5G,2DAA0D,kDAAkD,EAAE;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,wBAAwB,IAAI;AACjF;AACA;AACA;AACA,cAAa,uCAAuC;AACpD,cAAa,kCAAkC;AAC/C,cAAa,gCAAgC;AAC7C;AACA;AACA,0BAAyB,4BAA4B;AACrD;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,yBAAyB,EAAE;AAChE;AACA;AACA,UAAS;AACT;AACA,0CAAyC,iCAAiC,EAAE;AAC5E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,iCAAiC,IAAI;AAC1F;AACA;AACA;AACA,cAAa,wCAAwC;AACrD;AACA;AACA,kCAAiC,4BAA4B;AAC7D,mCAAkC,4BAA4B;AAC9D;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,eAAe;AACvB;AACA;AACA;AACA;AACA;AACA,+EAA8E;AAC9E,gCAA+B;AAC/B,8DAA6D,gCAAgC;AAC7F;AACA,iFAAgF;AAChF;AACA;AACA;AACA,SAAQ,uBAAuB,yBAAyB,eAAe;AACvE;AACA,aAAY,aAAa,sEAAsE;AAC/F,eAAc;AACd,SAAQ,eAAe,IAAI,uBAAuB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA,SAAQ,2BAA2B,MAAM,2BAA2B;AACpE;AACA,4CAA2C,eAAe;AAC1D;AACA,qCAAoC,aAAa,KAAK,eAAe;AACrE;AACA;AACA,uBAAsB,2BAA2B;AACjD,wCAAuC,2BAA2B;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,SAAQ,2BAA2B;AACnC;AACA,yBAAwB,2BAA2B;AACnD;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC,gBAAe,cAAc;AAC7B;AACA;AACA,uBAAsB,4CAA4C;AAClE,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA2B,uBAAuB;AAClD;AACA;AACA,kCAAiC,sBAAsB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,UAAU;AACzB,gBAAe,SAAS;AACxB;AACA,oBAAmB,0BAA0B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,sBAAsB,wDAAwD,EAAE,EAAE;AAC/I;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,YAAY;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,YAAY;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,YAAY;AAC/C;AACA;AACA;AACA;AACA;AACA,mDAAkD,kCAAkC;AACpF;AACA;AACA;AACA,gDAA+C,+BAA+B;AAC9E;AACA;AACA;AACA;AACA,sCAAqC,gBAAgB;AACrD,uCAAsC,iBAAiB;AACvD,6CAA4C,mDAAmD;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,0BAA0B;AACvC;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA,qCAAoC,uBAAuB;AAC3D,SAAQ,eAAe;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,oBAAoB;AACnC;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA,uBAAsB,0DAA0D;AAChF,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,uBAAuB;AACzF;AACA,0CAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,4DAA2D,+BAA+B;AAC1F;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,0BAA0B;AACvC,cAAa,gCAAgC,+BAA+B,GAAG,qDAAqD,IAAI;AACxI;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA,qCAAoC,uBAAuB;AAC3D,SAAQ,eAAe;AACvB;AACA;AACA;AACA,2DAA0D;AAC1D,qBAAoB,uBAAuB;AAC3C;AACA,oEAAmE;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mEAAkE,uBAAuB;AACzF;AACA;AACA;AACA;AACA,0CAAyC,qBAAqB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,4DAA2D,+BAA+B;AAC1F;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,0BAA0B;AACvC,cAAa,gCAAgC,+BAA+B,GAAG,qDAAqD,IAAI;AACxI;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,8DAA8D;AAC7E,gBAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,gBAAgB;AAC/B,gBAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,+EAA+E;AAC9F;AACA,gBAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,kBAAkB;AACjC,gBAAe,eAAe;AAC9B;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wEAAuE,WAAW,IAAI,WAAW;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,8BAA6B,0DAA0D;AACvF;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;;;;;;;;;AC1+GD,uCAAsE;AACtE,mDAA0D;AAC1D,wCAAkE;AAClE,gDAA+C;AAC/C,uCAAgF;AAChF,yCAA8F;AAC9F,yCAAyD;AAEzD,iBAAgB;AAChB,mDAA+E;AAC/E,mDAA+E;AAC/E,kDAAqE;AACrE,wDAAiF;AAEjF,sEAAqE;AACrE,kFAAiF;AACjF,gFAA+E;AAC/E,kGAAiG;AACjG,4FAA2F;AAC3F,qFAAoF;AACpF,iGAAgG;AAChG,iGAAgG;AAChG,6GAA4G;AAC5G,8FAA6F;AAC7F,oGAAmG;AACnG,sFAAqF;AACrF,qFAAoF;AACpF,iHAAgH;AAChH,gHAA+G;AAC/G,4HAA2H;AAC3H,8FAA6F;AAC7F,0GAAyG;AACzG,6HAA4H;AAC5H,yIAAwI;AACxI,8FAA6F;AAE7F,iFAAgF;AAChF,6FAA4F;AAC5F,4FAA2F;AAE3F,oDAA+E;AAC/E,0DAA2F;AAC3F,sDAAmD;AACnD,gDAA+C;AAC/C,mDAAiD;AAEjD,6CAAoD;AACpD,kDAAyE;AAEzE,2FAA0F;AAE1F,6FAA4F;AAC5F,sGAAqG;AACrG,yGAAwG;AACxG,uFAAsF;AACtF,mGAAkG;AAClG,wGAAuG;AACvG,4FAA2F;AAE3F,yDAA2F;AAC3F,yDAAyG;AACzG,4DAAgI;AAGhI,8CAAyD;AAEzD,eAAc;AACd,8CAAsD;AAEtD,2DAA0D;AAE1D,yEAAwE;AACxE,wDAAuF;AACvF,+EAA8E;AAC9E,kDAAoE;AACpE,yDAA0F;AAC1F,kFAAiF;AACjF,gDAAqE;AACrE,sDAAiF;AACjF,6DAA6F;AAC7F,+CAA8D;AAE9D,yDAAmG;AACnG,mDAAwE;AAExE,wDAA+F;AAC/F,gDAAuE;AACvE,gDAA4E;AAG5E,cAAa;AACb,6CAA+C;AAC/C,iDAAoF;AAKpF,iBAAgB;AAChB,sDAAoE;AACpE,2DAAmG;AACnG,2DAAkG;AAGlG,cAAa;AACb,+CAA8C;AAgB9C,KAAa,SAAS;KAAtB;KAAyB,CAAC;KAAD,gBAAC;AAAD,EAAC;AAAb,UAAS;KAbrB,eAAQ,CAAC;SACR,OAAO,EAAO,CAAE,gCAAa,EAAE,mBAAW,EAAE,2BAAmB,EAAE,iBAAU,EAAE,oBAAO,EAAE,6BAAc,CAAE;SACtG,YAAY,EAAE,CAAC,4BAAY,EAAE,kCAAe,EAAE,kCAAe,EAAE,qCAAe,EAAE,gCAAc,EAAE,4CAAoB,EAAE,gDAAsB,EAAE,oCAAgB,EAAE,gCAAc,EAAE,6CAAkB,EAAE,4CAAiB,EAAE,8CAAqB,EAAE,8CAAqB,EAAE,oDAAwB,CAAE;SAC/R,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,yBAAgB,EAAE,QAAQ,EAAE,6BAAoB,EAAE,EAAE,+BAAa,EAAE,4CAAoB,EAAE,8CAAqB,EAAE,gCAAU,EAAE,4BAAY,EAAE,yBAAY,EAAE,wCAAkB,EAAE,kCAAkB,EAAE,8BAAgB,EAAE,yBAAW,EAAE,qDAAwB,EAAC,8BAAW,EAAC,kCAAe,EAAC,8CAAqB,EAAC,4CAAoB,EAAC,4BAAY,EAAC,4BAAY,EAAC,8BAAa,EAAC;iBAC1X,OAAO,EAAE,0BAAW;iBACpB,UAAU,EAAE,UAAC,OAAmB,EAAE,OAAuB,EAAE,MAAc;qBACvE,MAAM,CAAC,IAAI,0BAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;iBACnD,CAAC;iBACD,IAAI,EAAE,CAAC,iBAAU,EAAE,qBAAc,EAAE,eAAM,CAAC;cAC3C,CAAC;SACJ,SAAS,EAAK,CAAE,4BAAY,CAAE;SAC9B,OAAO,EAAO,CAAE,6BAAsB,CAAE;MACzC,CAAC;IACW,SAAS,CAAI;AAAb,+BAAS;;;;;;;ACxHtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,yCAAyC;AAClF,EAAC,0HAA0H;;AAE3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC;AACxF,yDAAwD,4BAA4B;AACpF,qDAAoD,wBAAwB;AAC5E,kDAAiD,iBAAiB;AAClE;AACA;AACA;AACA,gCAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA;AACA,iCAAgC,uBAAuB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,wDAAuD,gCAAgC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,gDAA+C,gBAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,yBAAyB;AAC7E;AACA,+BAA8B,YAAY,EAAE;AAC5C;AACA;AACA,UAAS;AACT,qDAAoD,0CAA0C;AAC9F,iDAAgD,qBAAqB;AACrE,qDAAoD,gCAAgC;AACpF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,kCAAkC,EAAE;AAClE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4DAA4D,EAAE;AAC5F;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4DAA4D,EAAE;AAC5F;AACA;AACA,UAAS;AACT;AACA,+BAA8B,8DAA8D,EAAE;AAC9F;AACA;AACA,UAAS;AACT;AACA,+BAA8B,8DAA8D,EAAE;AAC9F;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+DAA+D,EAAE;AAC/F;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4DAA4D,EAAE;AAC5F;AACA;AACA,UAAS;AACT;AACA,+BAA8B,8DAA8D,EAAE;AAC9F;AACA;AACA,UAAS;AACT;AACA,+BAA8B,gEAAgE,EAAE;AAChG;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+DAA+D,EAAE;AAC/F;AACA;AACA,UAAS;AACT;AACA,+BAA8B,8DAA8D,EAAE;AAC9F;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,oCAAmC,mBAAmB;AACtD;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA,4CAA2C,gBAAgB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,yBAAyB;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,sDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,eAAe,EAAE;AACxD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,gBAAgB,EAAE;AAC7D;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,0CAAyC,4BAA4B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,iBAAiB,EAAE;AAC1D;AACA;AACA,wDAAuD,kCAAkC;AACzF,gDAA+C,iBAAiB;AAChE,6CAA4C,UAAU;AACtD,yCAAwC,gCAAgC;AACxE,2CAA0C,+BAA+B;AACzE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,kBAAkB;AAC7E,iDAAgD,yBAAyB;AACzE;AACA,uDAAsD,eAAe,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,iBAAiB;AACxE;AACA,oDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,wDAAuD,wBAAwB;AAC/E,2DAA0D,wBAAwB;AAClF,+CAA8C,uBAAuB;AACrE;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,gBAAgB;AACxD;AACA;AACA,qDAAoD,gCAAgC;AACpF;AACA;AACA;AACA;AACA,+CAA8C,oBAAoB;AAClE,6DAA4D,8BAA8B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,iBAAiB;AAC9D,gDAA+C,yBAAyB;AACxE;AACA,oCAAmC,WAAW;AAC9C,kCAAiC,YAAY;AAC7C;AACA;AACA;AACA;AACA;AACA,4BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA,0DAAyD,+BAA+B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,qBAAqB;AAClE,4CAA2C,0BAA0B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,qBAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,qBAAqB;AACzE;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,iDAAgD,kBAAkB;AAClE;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA,8DAA6D,kBAAkB;AAC/E;AACA;AACA;AACA;AACA,aAAY,oBAAoB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,kBAAkB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,eAAe,wDAAwD,EAAE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,eAAe,wDAAwD,EAAE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB,aAAa,2DAA2D;AAC7F;AACA;AACA;AACA;AACA;AACA,kDAAiD,aAAa;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,6CAA4C,mBAAmB,EAAE;AACjE;AACA;AACA,6CAA4C,mBAAmB,EAAE;AACjE;AACA;AACA;AACA;AACA,UAAS,IAAI;AACb;AACA;;AAEA;AACA,2BAA0B,2BAA2B;AACrD;AACA,aAAY,2BAA2B;AACvC;AACA;AACA;;AAEA;AACA;AACA,4DAA2D,qCAAqC,EAAE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C,2CAA0C;AAC1C;AACA;AACA;AACA;AACA,kFAAiF,oBAAoB;AACrG,mFAAkF,qBAAqB;AACvG;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,gCAA+B,yEAAyE;AACxG;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,gCAAgC;AAC7C,cAAa,kCAAkC;AAC/C;AACA;AACA,MAAK;;AAEL;AACA;AACA,4DAA2D,6BAA6B,EAAE;AAC1F;AACA;AACA;AACA;AACA,SAAQ,cAAc,GAAG,2BAA2B,OAAO,sBAAsB;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C,2CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA,0EAAyE,oBAAoB;AAC7F,2EAA0E,qBAAqB;AAC/F;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,gCAA+B,sEAAsE;AACrG;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,gCAAgC;AAC7C,cAAa,kCAAkC;AAC/C;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,8BAA8B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,8BAA8B;AAC/D;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4DAA2D,4BAA4B,EAAE;AACzF;AACA;AACA;AACA;AACA,SAAQ,cAAc,GAAG,2BAA2B,OAAO,sBAAsB;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C,2CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,0DAA0D;AACxG;AACA,0EAAyE,qBAAqB;AAC9F;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,gCAAgC;AAC7C,cAAa,kCAAkC;AAC/C;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA,4DAA2D,kCAAkC,EAAE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,4BAA4B;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,SAAQ,cAAc,GAAG,2BAA2B,OAAO,sBAAsB;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC;AACzC,2CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,6BAA6B;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E,wBAAwB;AACpG,gFAA+E,qBAAqB;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,gCAA+B,oDAAoD;AACnF;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,gCAAgC;AAC7C,cAAa,kCAAkC;AAC/C,cAAa,8BAA8B;AAC3C,cAAa,gCAAgC;AAC7C;AACA;AACA,uBAAsB,4BAA4B;AAClD,kCAAiC,4BAA4B;AAC7D,wBAAuB,4BAA4B;AACnD;AACA;AACA,MAAK;;AAEL;AACA;AACA,4DAA2D,mCAAmC,EAAE;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C,2CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,qBAAqB;AACrG;AACA;AACA;AACA;AACA,6EAA4E,uCAAuC;AACnH;AACA;AACA,oEAAmE,gBAAgB;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,gCAA+B,uEAAuE;AACtG;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,gCAAgC;AAC7C,cAAa,kCAAkC;AAC/C;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,qBAAqB,IAAI;AAC9E;AACA;AACA;AACA,cAAa,kCAAkC;AAC/C,cAAa,gCAAgC;AAC7C,cAAa,iDAAiD,+BAA+B,GAAG,2BAA2B,IAAI;AAC/H;AACA;AACA,0BAAyB,gDAAgD;AACzE,wBAAuB,8CAA8C;AACrE;AACA;AACA,MAAK;;AAEL;AACA;AACA,4DAA2D,2CAA2C,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C,2CAA0C;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,8BAA8B,EAAE;AAC/E,wDAAuD,kDAAkD,EAAE;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,oBAAoB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,oBAAoB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAwF,qBAAqB;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,gBAAgB;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,gCAA+B,iEAAiE;AAChG;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,gCAAgC;AAC7C,cAAa,kCAAkC;AAC/C;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,qBAAqB,IAAI;AAC9E;AACA;AACA;AACA,cAAa,kCAAkC;AAC/C,cAAa,gCAAgC;AAC7C,cAAa,yDAAyD,+BAA+B,GAAG,2BAA2B,IAAI;AACvI;AACA;AACA,0BAAyB,gDAAgD;AACzE,wBAAuB,8CAA8C;AACrE;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,+BAA+B;AACvE,UAAS;AACT;AACA,0DAAyD,gCAAgC,EAAE;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,qEAAoE,gDAAgD,EAAE;AACtH;AACA;AACA;AACA;AACA,yDAAwD,yCAAyC,EAAE;AACnG,UAAS;AACT;AACA;AACA,yDAAwD,yCAAyC,EAAE;AACnG,UAAS;AACT;AACA;AACA,yDAAwD,6BAA6B,EAAE;AACvF,0DAAyD,6BAA6B,EAAE;AACxF,0DAAyD,yCAAyC,EAAE;AACpG,+DAA8D,yCAAyC,EAAE;AACzG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA,sDAAqD,mBAAmB,MAAM,oBAAoB;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB,gBAAgB;AACxC;AACA,+BAA8B,8CAA8C,EAAE;AAC9E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,6CAA6C,EAAE;AAC7E;AACA;AACA,UAAS;AACT;AACA;AACA,yBAAwB,WAAW;AACnC;AACA,+BAA8B,yDAAyD,EAAE;AACzF;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4CAA4C,EAAE;AAC5E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,sDAAsD,EAAE;AACtF;AACA;AACA,UAAS;AACT;AACA,8EAA6E;AAC7E;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,mFAAmF,IAAI;AAC5I;AACA;AACA;AACA,cAAa,gCAAgC,2BAA2B,IAAI;AAC5E;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,uCAAuC,2BAA2B,IAAI;AACnF;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,iBAAiB;AACtD;AACA;AACA;AACA,yDAAwD,yCAAyC;AACjG;AACA;AACA,2CAA0C,aAAa;AACvD,2CAA0C,aAAa;AACvD;AACA;AACA,6CAA4C,oCAAoC,EAAE;AAClF,kBAAiB,uCAAuC,6BAA6B;AACrF;AACA,gEAA+D,yBAAyB,mCAAmC,EAAE,EAAE,EAAE;AACjI,yCAAwC,4BAA4B;AACpE;AACA;AACA,gEAA+D,yBAAyB,mCAAmC,EAAE,EAAE,EAAE;AACjI,sCAAqC,4BAA4B;AACjE;AACA;AACA;AACA;AACA,6CAA4C,+BAA+B,EAAE;AAC7E,kBAAiB,uCAAuC,wBAAwB;AAChF;AACA;AACA,0DAAyD,yBAAyB,mBAAmB,EAAE,EAAE,EAAE,mBAAmB,YAAY;AAC1I;AACA;AACA;AACA,uDAAsD,yBAAyB,mBAAmB,EAAE,EAAE,EAAE,gBAAgB,YAAY;AACpI;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,oBAAoB,EAAE;AACpD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,qBAAqB,EAAE;AACrD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+BAA+B,EAAE;AAC/D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,iCAAiC,EAAE;AACjE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,qBAAqB,EAAE;AACrD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,sBAAsB,EAAE;AACtD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,2BAA2B,EAAE;AAC3D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4BAA4B,EAAE;AAC5D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,gCAAgC,EAAE;AAChE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,kCAAkC,EAAE;AAClE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,kCAAkC,EAAE;AAClE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,uEAAsE,4BAA4B;AAClG;AACA;AACA;AACA,kEAAiE,uBAAuB;AACxF;AACA,+CAA8C;AAC9C;AACA;AACA;AACA,6CAA4C,qBAAqB;AACjE;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA,2CAA0C,qBAAqB;AAC/D;AACA;AACA;AACA,+CAA8C;AAC9C;AACA,oDAAmD,yBAAyB,iBAAiB,EAAE,EAAE;AACjG;AACA,+CAA8C,qBAAqB;AACnE;AACA;AACA;AACA,+CAA8C;AAC9C;AACA,oDAAmD,0BAA0B,iBAAiB,EAAE,EAAE;AAClG;AACA,8CAA6C,qBAAqB;AAClE;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA,6CAA4C,qBAAqB;AACjE;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA,oDAAmD,kBAAkB,iBAAiB,EAAE,EAAE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA,oDAAmD,iBAAiB,iBAAiB,EAAE,EAAE;AACzF,0CAAyC,uCAAuC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE,uBAAuB;AACxF;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,2CAA2C;AAChG;AACA;AACA;AACA;AACA,+CAA8C,kBAAkB;AAChE,iDAAgD,kCAAkC,uBAAuB,EAAE,EAAE;AAC7G,0CAAyC,uCAAuC;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,uBAAuB,8BAA8B,uBAAuB,EAAE,EAAE,EAAE;AACrJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA,0CAAyC,kBAAkB;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C;AAC/C;AACA;AACA;AACA;AACA,0DAAyD,+BAA+B;AACxF;AACA,mCAAkC,aAAa;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,aAAa;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,iCAAiC,EAAE;AAC5F;AACA;AACA;AACA,0DAAyD,sBAAsB,EAAE;AACjF;AACA;AACA;AACA,0DAAyD,wBAAwB,EAAE;AACnF;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA,+CAA8C,qBAAqB;AACnE;AACA;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA,8CAA6C,qBAAqB;AAClE;AACA;AACA;AACA,8EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,gBAAgB,MAAM,gBAAgB;AACnD;AACA;AACA;AACA;AACA,cAAa,2BAA2B,KAAK,yBAAyB,cAAc;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,wCAAuC,kBAAkB;AACzD,6CAA4C,uBAAuB;AACnE;AACA;AACA;AACA;AACA,0CAAyC,mCAAmC;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA,6DAA4D,sDAAsD,EAAE;AACpH;AACA,0CAAyC,2CAA2C;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,cAAc;AACnD;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,+CAA8C;AAC9C;AACA,kCAAiC,qBAAqB;AACtD,mCAAkC,qBAAqB;AACvD,yCAAwC,qBAAqB;AAC7D;AACA;AACA;AACA;AACA,2DAA0D;AAC1D;AACA;AACA;AACA,oEAAmE,cAAc;AACjF;AACA;AACA;AACA,mEAAkE,sBAAsB;AACxF;AACA;AACA;AACA,iEAAgE,yBAAyB;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yEAAwE,6BAA6B;AACrG;AACA;AACA;AACA,8DAA6D;AAC7D;AACA;AACA;AACA,oDAAmD,mCAAmC;AACtF,kCAAiC,mCAAmC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,qDAAoD,kBAAkB;AACtE;AACA;AACA;AACA;AACA;AACA,oBAAmB,kBAAkB,MAAM,gBAAgB,GAAG,gBAAgB;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,6CAA4C,uBAAuB;AACnE;AACA;AACA;AACA;AACA,0CAAyC,mCAAmC;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA,0DAAyD,iBAAiB;AAC1E,cAAa;AACb,0CAAyC,qBAAqB;AAC9D;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA,gEAA+D,iBAAiB;AAChF;AACA,cAAa;AACb,0CAAyC,qBAAqB;AAC9D;AACA;AACA,oCAAmC,YAAY;AAC/C,+CAA8C;AAC9C;AACA,6CAA4C,iBAAiB;AAC7D,cAAa;AACb,0CAAyC,qBAAqB;AAC9D,mCAAkC,qBAAqB;AACvD,kCAAiC,qBAAqB;AACtD;AACA;AACA,2CAA0C;AAC1C;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,0BAA0B,EAAE;AACrF;AACA;AACA,yDAAwD,mCAAmC;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,0DAAyD,8BAA8B,EAAE;AACzF;AACA;AACA;AACA;AACA,8DAA6D,gBAAgB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,qDAAoD,kBAAkB;AACtE;AACA;AACA;AACA;AACA;AACA,oBAAmB,kBAAkB,MAAM,gBAAgB,GAAG,gBAAgB;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,6CAA4C,uBAAuB;AACnE;AACA;AACA;AACA;AACA,0CAAyC,mCAAmC;AAC5E;AACA;AACA,qBAAoB,sBAAsB;AAC1C;AACA,oDAAmD,6BAA6B;AAChF;AACA,0BAAyB,sBAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB,sBAAsB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,6BAA6B,EAAE;AAC7D;AACA;AACA,UAAS;AACT;AACA;AACA,+CAA8C;AAC9C;AACA;AACA;AACA,qDAAoD,iBAAiB;AACrE,cAAa;AACb,0CAAyC,qBAAqB;AAC9D;AACA;AACA;AACA,+CAA8C;AAC9C;AACA;AACA,2DAA0D,iBAAiB;AAC3E;AACA,cAAa;AACb,0CAAyC,qBAAqB;AAC9D;AACA;AACA,oCAAmC,YAAY;AAC/C,+CAA8C;AAC9C;AACA,8CAA6C,iBAAiB;AAC9D,cAAa;AACb,0CAAyC,qBAAqB;AAC9D,mCAAkC,qBAAqB;AACvD,kCAAiC,qBAAqB;AACtD;AACA,wDAAuD,8CAA8C,sBAAsB,EAAE,EAAE;AAC/H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,oBAAoB,EAAE;AACnF;AACA;AACA;AACA;AACA,oEAAmE,0CAA0C,EAAE;AAC/G,0CAAyC,sBAAsB,EAAE;AACjE;AACA;AACA;AACA,2DAA0D,8CAA8C,EAAE;AAC1G;AACA;AACA;AACA;AACA,oDAAmD,0BAA0B,EAAE;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,iDAAgD,gBAAgB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,4DAA2D,eAAe,EAAE;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,gBAAgB;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB,MAAM;AAC1B;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,+BAA8B,kBAAkB,EAAE;AAClD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,WAAW,EAAE;AAC3C;AACA;AACA,UAAS;AACT;AACA,+BAA8B,2BAA2B,EAAE;AAC3D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,mBAAmB;AACvE,cAAa;AACb;AACA,uDAAsD,gCAAgC;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,6CAA4C;AAC5C;AACA;AACA,+CAA8C,mBAAmB;AACjE,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,yDAAwD,gCAAgC;AACxF;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,uDAAsD,8BAA8B;AACpF;AACA;AACA;AACA;AACA;AACA,iDAAgD,kBAAkB;AAClE;AACA,oCAAmC,mBAAmB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,gCAA+B,mDAAmD;AAClF;AACA;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mLAAkL,4CAA4C,EAAE;AAChO,2OAA0O,gCAAgC,+BAA+B,QAAQ,EAAE;AACnT,yJAAwJ,0LAA0L,oCAAoC,qCAAqC,EAAE;AAC7Z;AACA,sLAAqL,iBAAiB;AACtM;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kVAAiV,iBAAiB;AAClW;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,4DAA2D,qBAAqB,EAAE;AAClF;AACA;AACA;AACA;AACA,uDAAsD,aAAa;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,uBAAuB;AAC7C,6BAA4B,qCAAqC;AACjE;AACA;AACA;AACA,uBAAsB,kBAAkB;AACxC;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,wFAAwF,IAAI;AACjJ;AACA;AACA;AACA,cAAa,uCAAuC,2BAA2B,GAAG,+BAA+B,IAAI;AACrH,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK;AACA;AACA,uBAAsB,qDAAqD;AAC3E;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,4DAA2D,gBAAgB,EAAE;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,8DAA8D;AACnH;AACA,+BAA8B,sBAAsB,EAAE;AACtD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,yDAAyD,EAAE;AACzF;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+CAA+C,EAAE;AAC/E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,mBAAmB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,gCAAgC,+BAA+B,EAAE,EAAE;AACnH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,uCAAuC,+BAA+B,GAAG,2BAA2B,IAAI;AACrH,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,yDAAyD,IAAI;AACtK;AACA;AACA,uBAAsB,4BAA4B;AAClD,6BAA4B,iDAAiD;AAC7E,wBAAuB,gDAAgD;AACvE,0BAAyB,uDAAuD;AAChF,yBAAwB,uDAAuD;AAC/E;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sZAAqZ,kCAAkC,+BAA+B,4FAA4F,EAAE;AACpjB;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,4DAA2D,6BAA6B,EAAE;AAC1F;AACA;AACA,2BAA0B,kBAAkB,8CAA8C;AAC1F,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,oBAAoB;AACnE;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,sCAAsC,EAAE;AAChF;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,mDAAkD,mBAAmB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,WAAW,EAAE;AAC3C;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+CAA+C,EAAE;AAC/E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,kBAAkB,EAAE;AAClD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,mFAAmF,IAAI;AAC5I;AACA;AACA;AACA,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,yDAAyD,IAAI;AACtK;AACA;AACA,uBAAsB,oDAAoD;AAC1E,wBAAuB,gDAAgD;AACvE,yBAAwB,uDAAuD;AAC/E,6BAA4B,iDAAiD;AAC7E;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,4DAA2D,2BAA2B,EAAE;AACxF;AACA;AACA,mFAAkF;AAClF,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB,yBAAyB;AAC7C;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA,oCAAmC,gDAAgD;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,wBAAwB,EAAE;AACxD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,aAAa,EAAE;AAC7C;AACA;AACA,UAAS;AACT;AACA,+BAA8B,kBAAkB,EAAE;AAClD;AACA;AACA,UAAS;AACT;AACA,+BAA8B,WAAW,EAAE;AAC3C;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,0CAAyC,mBAAmB;AAC5D;AACA;AACA,mEAAkE,gCAAgC;AAClG,sEAAqE,0CAA0C;AAC/G;AACA;AACA;AACA,0CAAyC,mBAAmB;AAC5D;AACA,wEAAuE;AACvE,qEAAoE,gCAAgC;AACpG;AACA;AACA;AACA,0CAAyC,mBAAmB;AAC5D;AACA,wEAAuE;AACvE,qEAAoE,gCAAgC;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,kBAAkB;AAC9E;AACA,oCAAmC,mBAAmB;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,4CAA2C,mBAAmB;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,gCAA+B,mDAAmD;AAClF;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK;AACA;AACA,uBAAsB,kDAAkD;AACxE,2BAA0B,6BAA6B;AACvD;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,4DAA2D,sBAAsB,EAAE;AACnF;AACA;AACA;AACA;AACA,uDAAsD,yBAAyB;AAC/E,uBAAsB,0BAA0B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,6BAA6B;AACnD,6BAA4B,iDAAiD;AAC7E;AACA;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,kEAAkE,IAAI;AAC3H;AACA;AACA;AACA,cAAa,uCAAuC,+BAA+B,GAAG,2BAA2B,GAAG,+BAA+B,IAAI;AACvJ,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK;AACA;AACA,uBAAsB,sDAAsD;AAC5E;AACA;AACA,MAAK;AACL;AACA;AACA,4DAA2D,sBAAsB,EAAE;AACnF;AACA;AACA;AACA;AACA,uDAAsD,yBAAyB;AAC/E,uBAAsB,0BAA0B;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D;AAC7D;AACA;AACA;AACA;AACA,gBAAe,uBAAuB,SAAS;AAC/C;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,8CAA8C,EAAE;AAC9E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6CAA6C,EAAE;AAC7E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4CAA4C,EAAE;AAC5E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,sDAAsD,EAAE;AACtF;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,kEAAkE,IAAI;AAC3H;AACA;AACA;AACA,cAAa,uCAAuC,+BAA+B,GAAG,2BAA2B,GAAG,+BAA+B,IAAI;AACvJ,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK;AACA;AACA,uBAAsB,sDAAsD;AAC5E;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,4DAA2D,wBAAwB,EAAE;AACrF;AACA;AACA;AACA;AACA,uDAAsD,yBAAyB;AAC/E,uBAAsB,0BAA0B;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,kCAAiC,+CAA+C;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,sCAAsC,EAAE;AAChF;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,6CAA6C,EAAE;AAC7E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,yDAAyD,EAAE;AACzF;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+CAA+C,EAAE;AAC/E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,4CAA4C,EAAE;AAC5E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,iEAAiE,IAAI;AAC1H;AACA;AACA;AACA,cAAa,uCAAuC,+BAA+B,GAAG,2BAA2B,GAAG,+BAA+B,IAAI;AACvJ,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,qDAAqD,IAAI;AAClK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,2DAA2D,IAAI;AACxK,cAAa,4BAA4B,+BAA+B,GAAG,2BAA2B,GAAG,yDAAyD,IAAI;AACtK;AACA;AACA,uBAAsB,wDAAwD;AAC9E,wBAAuB,gDAAgD;AACvE,yBAAwB,uDAAuD;AAC/E,6BAA4B,iDAAiD;AAC7E;AACA;AACA,MAAK;;AAEL;AACA;AACA,4DAA2D,0BAA0B,EAAE;AACvF;AACA;AACA;AACA;AACA,uCAAsC,oBAAoB;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,uBAAuB,EAAE;AACvD;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,uEAAsE,qBAAqB;AAC3F;AACA,cAAa;AACb;AACA;AACA,gCAA+B;AAC/B,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,2BAA0B,4BAA4B;AACtD;AACA;AACA,MAAK;AACL;AACA,6BAA4B,yBAAyB,KAAK,oBAAoB;AAC9E;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,4DAA2D,2BAA2B,EAAE;AACxF;AACA;AACA;AACA,wCAAuC,yBAAyB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,qBAAqB;AAC5F;AACA,cAAa;AACb;AACA;AACA,gCAA+B;AAC/B,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,4BAA2B,4BAA4B;AACvD;AACA;AACA,MAAK;AACL;AACA,6BAA4B,yBAAyB,KAAK,oBAAoB;AAC9E;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,4DAA2D,2BAA2B,EAAE;AACxF;AACA;AACA;AACA,wCAAuC,yBAAyB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wEAAuE,qBAAqB;AAC5F;AACA,cAAa;AACb;AACA;AACA,gCAA+B;AAC/B,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,4BAA2B,4BAA4B;AACvD;AACA;AACA,MAAK;AACL;AACA;AACA,4DAA2D,yBAAyB,EAAE;AACtF;AACA;AACA;AACA;AACA,sCAAqC,oBAAoB;AACzD;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,oDAAoD;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,qBAAqB;AAC1F;AACA,cAAa;AACb;AACA;AACA,gCAA+B;AAC/B,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,0BAAyB,4BAA4B;AACrD;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,OAAO;AACzB;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,gBAAgB;AAC5C;AACA;AACA,qBAAoB,gBAAgB;AACpC;AACA;AACA,oCAAmC,cAAc;AACjD;AACA;AACA;AACA;AACA;AACA;AACA,6BAA4B,kBAAkB;AAC9C;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,6CAA4C,uBAAuB;AACnE;AACA;AACA;AACA,mCAAkC,kBAAkB;AACpD;AACA;AACA;AACA;AACA,wCAAuC,kBAAkB;AACzD,6CAA4C,uBAAuB;AACnE,6DAA4D,gCAAgC,EAAE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,uCAAuC,wEAAwE,IAAI;AAChI;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;;AC/sID;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,kBAAkB,EAAE,kBAAkB,oBAAoB,EAAE,eAAe,uBAAuB,EAAE;AAC1I,MAAK;AACL;AACA;AACA,sC;;;;;;AC3BA;AACA;AACA;AACA,wC;;;;;;ACHA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,cAAa;AACb;AACA,gBAAe,WAAW;AAC1B,gBAAe,UAAU;AACzB;AACA,iBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA,yDAAwD,WAAW,EAAE;AACrE,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iEAAgE,4CAA4C;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E,uCAAuC;AACnH;AACA,kBAAiB;AACjB;AACA,8EAA6E,mCAAmC;AAChH;AACA,kBAAiB;AACjB;AACA;AACA,yDAAwD,WAAW,EAAE;AACrE,kBAAiB;AACjB;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8C;;;;;;;;;;;;;;;;ACxHA,uCAAsD;AACtD,kDAA4E;AAM5E,KAAa,YAAY;KAGrB,sBAAoB,UAAsB,EAAU,MAAqB;SAArD,eAAU,GAAV,UAAU,CAAY;SAAU,WAAM,GAAN,MAAM,CAAe;SAFzE,sBAAiB,GAAY,IAAI,CAAC;SAClC,sBAAiB,GAAY,IAAI,CAAC;KAC2C,CAAC;KAC9E,+BAAQ,GAAR;SAAA,iBAWC;SAVG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAClC,cAAI;aACA,KAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;SAClC,CAAC,CACJ,CAAC;SACF,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAClC,cAAI;aACA,KAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;SAClC,CAAC,CACJ,CAAC;KACN,CAAC;KACD,sCAAe,GAAf;SACI,IAAI,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;SACzC,CAAC,CAAC,IAAI,GAAG,iBAAiB,CAAC;SAC3B,CAAC,CAAC,GAAG,GAAG,uBAAuB,CAAC;SAChC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;KACjD,CAAC;KACL,mBAAC;AAAD,EAAC;AAtBY,aAAY;KAJxB,gBAAS,CAAC;SACP,QAAQ,EAAE,eAAe;SACzB,WAAW,EAAE,wCAAwC;MACxD,CAAC;sCAIkC,iBAAU,EAAkB,+BAAa;IAHhE,YAAY,CAsBxB;AAtBY,qCAAY;;;;;;;;;;;;;;;;;ACPzB,uCAAyD;AACzD,uCAAwE;AAExE,0BAA+B;AAC/B,gDAAsE;AACtE,6CAA+D;AAC/D,8CAAyD;AACzD,sDAAoF;AAKpF,KAAa,aAAa;KACtB,uBAAoB,KAAW,EAAU,QAAsB,EAAU,MAAoB,EAAU,UAAuB,EAAU,WAA+B;SAAnJ,UAAK,GAAL,KAAK,CAAM;SAAU,aAAQ,GAAR,QAAQ,CAAc;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,eAAU,GAAV,UAAU,CAAa;SAAU,gBAAW,GAAX,WAAW,CAAoB;SAEvK,qBAAgB,GAAG,IAAI,mBAAY,EAAE,CAAC;SACtC,qBAAgB,GAAG,IAAI,mBAAY,EAAE,CAAC;SACtC,iBAAY,GAAG,IAAI,mBAAY,EAAE,CAAC;SAkBlC,KAAK;SACL,WAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,wBAAwB,CAAC;SACvD,cAAS,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,6BAA6B,CAAC;SAC/D,kEAAkE;SAClE,kBAAa,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,+BAA+B,CAAC;SACrE,oBAAe,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,4BAA4B,CAAC;SASpE,cAAS,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;KApCkJ,CAAC;KAK5K,yBAAyB;KACzB,+BAAO,GAAP,UAAQ,GAAG,EAAE,WAAW;SACpB,IAAI,SAAS,GAAG,GAAG,EACf,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,CAAC,EACf,UAAU,GAAG,EAAE,CAAC;SACpB,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC;aACnC,IAAI,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;aACxB,EAAE,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC;iBAChB,SAAS,IAAI,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;aACvF,CAAC;aAAC,IAAI,CAAC,CAAC;iBACJ,SAAS,IAAI,aAAa,GAAG,WAAW,GAAG,WAAW,CAAC;aAC3D,CAAC;SACL,CAAC;SACD,MAAM,CAAC,SAAS,CAAC;KACrB,CAAC;KASD,iCAAS,GAAT,UAAU,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB;SAC7D,IAAI,iBAAiB,GAAG,iBAAiB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACvD,IAAI,QAAQ,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;SAEjM,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KAC9D,CAAC;KAGD,iCAAS,GAAT,UAAU,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,iBAAiB;SAChD,IAAI,iBAAiB,GAAG,iBAAiB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACvD,IAAI,QAAQ,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;SAEvL,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;KACjE,CAAC;KAED,oCAAY,GAAZ,UAAa,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS;SAChF,uCAAuC;SACvC,iDAAiD;SACjD,IAAI;SACJ,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,GAAG,CAAC,CAAC,CAAC;aACnC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC;iBACjC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;aAC9C,CAAC;SACL,CAAC;SAED,8CAA8C;SAE9C,IAAI,QAAQ,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;SAC5P,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;SACtC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;KACrE,CAAC;KAED,qCAAa,GAAb,UAAc,SAAc;SACxB,UAAU,CAAC;aACP,IAAI,SAAS,GAAG,CAAC,CAAC;aAClB,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;aACnC,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC;iBACd,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC,CAAC;qBAAC,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;iBAAC,CAAC;aACvE,CAAC,CAAC,CAAC;aACH,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC;SAC9C,CAAC,EAAE,EAAE,CAAC,CAAC;KACX,CAAC;KAED,sCAAc,GAAd,UAAe,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK;SACnD,kCAAkC;SAClC,IAAI,QAAQ,GAAG;aACX,WAAW,EAAE,SAAS;aACtB,WAAW,EAAE,SAAS;aACtB,aAAa,EAAE,WAAW;UAC7B,CAAC;SACF,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACtB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;KACvE,CAAC;KACL,oBAAC;AAAD,EAAC;AAnFY,cAAa;KADzB,iBAAU,EAAE;sCAEkB,WAAI,EAAoB,4BAAY,EAAkB,yBAAY,EAAsB,yBAAW,EAAuB,wCAAkB;IAD9J,aAAa,CAmFzB;AAnFY,uCAAa;;;;;;;ACZ1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,uCAAuC;AAChF,EAAC,kFAAkF;;AAEnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,+BAA+B;AACjF;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,kCAAkC;AACxF,yDAAwD,4BAA4B;AACpF,qDAAoD,wBAAwB;AAC5E,kDAAiD,iBAAiB;AAClE;AACA;AACA;AACA,gCAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C,QAAQ;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA;AACA;AACA;AACA,iCAAgC,uBAAuB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,wDAAuD,gCAAgC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG,gDAA+C,gBAAgB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,yBAAyB;AAC7E;AACA,+BAA8B,YAAY,EAAE;AAC5C;AACA;AACA,UAAS;AACT,qDAAoD,0CAA0C;AAC9F,iDAAgD,qBAAqB;AACrE,qDAAoD,gCAAgC;AACpF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,+BAA+B;AAClE;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,iBAAiB;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,sDAAsD;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,gDAAgD;AACrD;AACA,2DAA0D,eAAe;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,oDAAoD;AACzD;AACA,sEAAqE,cAAc;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,kCAAkC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,kEAAkE;;AAEvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,yBAAyB;AACpF;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,sDAAqD,qBAAqB;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,eAAe,EAAE;AACxD;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,gBAAgB,EAAE;AAC7D;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,0CAAyC,4BAA4B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,iBAAiB,EAAE;AAC1D;AACA;AACA,wDAAuD,kCAAkC;AACzF,gDAA+C,iBAAiB;AAChE,6CAA4C,UAAU;AACtD,yCAAwC,gCAAgC;AACxE,2CAA0C,+BAA+B;AACzE;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,kBAAkB;AAC7E,iDAAgD,yBAAyB;AACzE;AACA,uDAAsD,eAAe,EAAE;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,iBAAiB;AACxE;AACA,oDAAmD,gBAAgB;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA,mDAAkD,gBAAgB;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,eAAe;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,wDAAuD,wBAAwB;AAC/E,2DAA0D,wBAAwB;AAClF,+CAA8C,uBAAuB;AACrE;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCAAwC,gBAAgB;AACxD;AACA;AACA,qDAAoD,gCAAgC;AACpF;AACA;AACA;AACA;AACA,+CAA8C,oBAAoB;AAClE,6DAA4D,8BAA8B;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,iBAAiB;AAC9D,gDAA+C,yBAAyB;AACxE;AACA,oCAAmC,WAAW;AAC9C,kCAAiC,YAAY;AAC7C;AACA;AACA;AACA;AACA;AACA,4BAA2B,cAAc;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU;AAC5C,iCAAgC,WAAW;AAC3C;AACA;AACA,0DAAyD,+BAA+B;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,qBAAqB;AAClE,4CAA2C,0BAA0B;AACrE;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,qBAAqB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,4BAA2B,mBAAmB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C;AAC5C;AACA;AACA;AACA,4BAA2B,gBAAgB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,qBAAqB;AACzE;AACA;AACA;AACA;AACA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,6DAA4D;AAC5D;AACA;AACA,4DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,0CAA0C;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,mEAAmE;AACtH;AACA;AACA;AACA,oDAAmD,gDAAgD;AACnG;AACA;AACA;AACA,+CAA8C,0CAA0C;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,4CAA4C;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,wDAAwD,EAAE;AACpI;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD,yEAAyE;AAC1H;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,SAAQ,eAAe;AACvB;AACA;AACA;AACA;AACA;AACA,SAAQ,0BAA0B;AAClC;AACA,kDAAiD,yBAAyB;AAC1E,6BAA4B,kBAAkB;AAC9C;AACA;AACA;AACA;AACA,gBAAe,0BAA0B;AACzC;AACA;AACA,kBAAiB,cAAc;AAC/B,SAAQ;AACR;AACA;AACA,+CAA8C,YAAY;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,0BAA0B;AAC7C;AACA;AACA,qBAAoB;AACpB,aAAY;AACZ;AACA;AACA,aAAY;AACZ,qDAAoD;AACpD,mDAAkD,YAAY;AAC9D,6CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA,qBAAoB,sBAAsB;AAC1C;AACA;AACA;AACA,2BAA0B,cAAc;AACxC;AACA,uDAAsD,sBAAsB;AAC5E,6BAA4B,eAAe;AAC3C,iBAAgB,WAAW,YAAY,yBAAyB;AAChE;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,UAAU;AACzB,gBAAe,oEAAoE;AACnF;AACA,gBAAe,IAAI;AACnB;AACA;AACA,yCAAwC,kBAAkB;AAC1D;AACA;AACA,yCAAwC,8CAA8C;AACtF;AACA;AACA,qEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA,gBAAe,8BAA8B;AAC7C;AACA;AACA;AACA;AACA,gCAA+B,qBAAqB;AACpD,SAAQ;AACR,mFAAkF;AAClF,+CAA8C;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,4FAA4F;AAC3H;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,cAAc;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,+DAA8D,4CAA4C,EAAE;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,wCAAwC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA8C,YAAY;AAC1D;AACA;AACA;AACA;;AAEA;AACA,oCAAmC,gBAAgB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD,4BAA4B;AACrF,4DAA2D,4BAA4B;AACvF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,mBAAmB;AAC/E;AACA;AACA;AACA;AACA;AACA,0EAAyE;AACzE;AACA;AACA;AACA;AACA;AACA,gBAAe,8BAA8B;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC,gBAAgB;AACvD,2CAA0C,mCAAmC;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,kCAAkC;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,8CAA6C,mGAAmG,EAAE;AAClJ,cAAa;AACb;AACA;AACA,8DAA6D,8BAA8B;AAC3F;AACA,MAAK;;AAEL;AACA,wCAAuC,cAAc,MAAM;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,mCAAmC;AAC/F,iEAAgE,4CAA4C;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,mCAAmC;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sEAAqE,0EAA0E;AAC/I;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,sCAAsC;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,wDAAwD;AACvH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,WAAU,wBAAwB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,sBAAsB;AACnC,cAAa,yBAAyB;AACtC;AACA;AACA,MAAK;;AAEL,+BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,qBAAqB;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,iFAAiF;AAChJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAiE,sDAAsD,EAAE;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA6F;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,4BAA4B;AACrE,0CAAyC,8BAA8B;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,iBAAgB,oBAAoB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,wDAAwD;AACvE;AACA;AACA;AACA,aAAY;AACZ;AACA,aAAY,4CAA4C;AACxD,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,oBAAoB;AACjC,cAAa,yBAAyB;AACtC,cAAa,sBAAsB;AACnC;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,SAAQ,cAAc;AACtB;AACA;AACA;AACA;AACA,8EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA,gBAAe,uCAAuC;AACtD;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA,8DAA6D;AAC7D,iDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,uCAAuC;AAC1D;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA,aAAY;AACZ,kEAAiE;AACjE,qDAAoD;AACpD,6CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA,qBAAoB,qBAAqB;AACzC;AACA;AACA,oBAAmB;AACnB,2BAA0B,cAAc;AACxC;AACA,uDAAsD,qBAAqB;AAC3E,6BAA4B,eAAe;AAC3C,iBAAgB,WAAW,qBAAqB,uBAAuB;AACvE;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,UAAU;AACzB,gBAAe,yDAAyD;AACxE,gBAAe,IAAI;AACnB;AACA;AACA;AACA;AACA;AACA,yCAAwC,6CAA6C;AACrF;AACA;AACA,qEAAoE;AACpE;AACA;AACA;AACA;AACA;AACA,gBAAe,2CAA2C;AAC1D;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,8DAA6D;AAC7D,iDAAgD;AAChD,yCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,4DAA4D;AAC3F;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iFAAgF,WAAW;AAC3F,SAAQ,YAAY;AACpB,0FAAyF,WAAW;AACpG;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,6CAA6C;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,+BAA8B;AAC9B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,yDAAwD,2BAA2B;AACnF;AACA;AACA,yDAAwD,WAAW;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,eAAe;AAClF;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ,iBAAiB;AACzB,aAAY,iBAAiB;AAC7B;AACA;AACA;AACA;AACA,gBAAe,yBAAyB;AACxC,gBAAe,YAAY;AAC3B;AACA;AACA;AACA,WAAU;AACV;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,cAAc,wDAAwD;AACpF;AACA,gBAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uHAAsH,aAAa;AACnI;AACA;AACA;AACA;AACA;AACA,uHAAsH,aAAa;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uHAAsH,aAAa;AACnI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,2BAA2B;AACxC,cAAa,wBAAwB;AACrC;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc,cAAc,wDAAwD;AACpF;AACA,gBAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,iCAAiC;AAC9C;AACA;AACA;AACA,cAAa,2BAA2B;AACxC,cAAa,wBAAwB;AACrC;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,8BAA6B,6EAA6E;AAC1G;AACA,8BAA6B,wDAAwD;AACrF,8BAA6B,0DAA0D;AACvF;AACA,8BAA6B,sEAAsE;AACnG;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,8BAA6B,iFAAiF;AAC9G;AACA,8BAA6B,wDAAwD;AACrF,8BAA6B,0DAA0D;AACvF,8BAA6B,iDAAiD;AAC9E;AACA,sBAAqB,IAAI;AACzB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;;AC9tED;AACA;AACA;AACA;AACA,gC;;;;;;ACJA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT;AACA,YAAW,qCAAqC;AAChD;AACA;AACA;AACA,YAAW,IAAI;AACf;AACA,aAAY,cAAc;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD,gC;;;;;;;;;;;;;;;;ACrFA,uCAA0D;AAC1D,yCAAyD;AACzD,6CAA4D;AAC5D,8CAAiE;AAKjE,KAAa,YAAY;KACrB,sBAAoB,MAAc,EAAU,MAAoB,EAAU,OAAyB;SAA/E,WAAM,GAAN,MAAM,CAAQ;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,YAAO,GAAP,OAAO,CAAkB;SAEnG,gBAAW,GAAK,EAAE,CAAC;SACnB,UAAK,GAAK,EAAE,CAAC;SACb,WAAM,GAAK,EAAE,CAAC;SACd,cAAS,GAAK,EAAE,CAAC;SACjB,iBAAY,GAAG,IAAI,mBAAY,EAAO,CAAC;SACvC,aAAQ,GAAG,IAAI,mBAAY,EAAO,CAAC;SACnC,iBAAY,GAAK,EAAE,CAAC;SACpB,eAAU,GAAK,EAAE,CAAC;SAClB,UAAK,GAAK,EAAE,CAAC;SACb,gBAAW,GAAK,EAAE,CAAC;SACnB,cAAS,GAAK,EAAE,CAAC;SACjB,cAAS,GAAK,EAAE,CAAC;SACjB,kBAAa,GAAK,EAAE,CAAC;SACrB,gBAAW,GAAK,EAAE,CAAC;KAfkF,CAAC;KAgBtG,mCAAY,GAAZ,UAAa,IAAS;SAAT,kCAAS;SAClB,EAAE,EAAC,IAAI,CAAC,CAAC,CAAC;aACN,IAAI,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;aACjD,IAAI,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;aAC/C,IAAI,kBAAkB,GAAG,YAAY,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;aACpE,IAAI,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;aACrD,IAAI,eAAe,GAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;aAC5D,IAAI,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;aACvD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC7B,EAAE,EAAC,CAAC,QAAQ,CAAC,EAAC;iBACV,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;aACpC,CAAC;aACD,EAAE,EAAC,eAAe,CAAC,EAAC;iBAChB,IAAI,CAAC,aAAa,GAAG,eAAe,CAAC;aACzC,CAAC;aACD,EAAE,EAAC,OAAO,CAAC,EAAC;iBACR,IAAI,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;iBAC5G,IAAI,KAAK,GAAC,EAAE,CAAC;iBACb,IAAI,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBAC9C,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;iBACzB,IAAI,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACjC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;iBACvC,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;aACzC,CAAC;aACD,EAAE,EAAC,QAAQ,CAAC,EAAC;iBACT,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;iBACrG,IAAI,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBAClC,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;iBAChC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;iBAC1B,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;iBAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;iBAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;aACzC,CAAC;aACD,EAAE,EAAC,kBAAkB,CAAC,EAAC;iBACnB,IAAI,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;iBACpH,IAAI,cAAc,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBAC5C,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;iBACrC,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;iBACtC,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;iBAC/B,qCAAqC;iBACrC,qCAAqC;iBACrC,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;aACzC,CAAC;aACD,EAAE,EAAC,YAAY,CAAC,EAAC;iBACb,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC;aACpC,CAAC;SACL,CAAC;KACL,CAAC;KACL,mBAAC;AAAD,EAAC;AAjEY,aAAY;KADxB,iBAAU,EAAE;sCAEmB,eAAM,EAAkB,yBAAY,EAAmB,8BAAgB;IAD1F,YAAY,CAiExB;AAjEY,qCAAY;;;;;;;ACRzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,2CAA2C;AACpF,EAAC,+WAA+W;;AAEhX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,qBAAqB;AACxF;AACA,MAAK;;AAEL;AACA;AACA;AACA,wBAAuB,cAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,eAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,cAAc;AACrC,4BAA2B,iBAAiB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA,UAAS;AACT;AACA;AACA;AACA,mEAAkE,YAAY,EAAE;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,wBAAwB,EAAE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+GAA8G,iIAAiI,EAAE;AACjP;AACA;AACA;AACA,MAAK;;AAEL;AACA,sDAAqD,KAAK;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD,mDAAmD;AACrG;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,yBAAyB,EAAE;AAC1E;AACA;AACA;AACA;AACA,8DAA6D,kCAAkC;AAC/F;AACA;AACA;AACA;AACA,+BAA8B,0CAA0C,EAAE;AAC1E;AACA;AACA,UAAS;AACT,2DAA0D,6BAA6B;AACvF;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,4BAA4B;AACjF;AACA,MAAK;AACL;AACA;AACA;AACA,wBAAuB,cAAc;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,mDAAkD,yBAAyB,EAAE;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,WAAW,8CAA8C,EAAE;AAC1G;AACA;AACA,oDAAmD,mDAAmD,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8DAA6D,uCAAuC;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAiD;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD;AACrD;AACA;AACA;AACA;AACA,uCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uEAAsE;AACtE,gCAA+B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,2CAA0C,qBAAqB;AAC/D;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,+DAA8D,6CAA6C,EAAE;AAC7G;AACA;AACA,+DAA8D,kDAAkD,EAAE;AAClH;AACA;AACA,+DAA8D,qJAAqJ,EAAE;AACrN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gGAA+F,8CAA8C,EAAE;AAC/I;AACA;AACA;AACA;AACA,iEAAgE,yDAAyD;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,8FAA6F,8CAA8C,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,6HAA4H,0CAA0C,EAAE;AACxK;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAoF,uEAAuE,EAAE;AAC7J;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb;AACA,kGAAiG,YAAY,EAAE;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E;AAC5E;AACA;AACA;AACA;AACA,iFAAgF;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8EAA6E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2FAA0F,0DAA0D,EAAE;AACtJ;AACA;AACA,gGAA+F;AAC/F;AACA;AACA;AACA,qFAAoF,iFAAiF,EAAE;AACvK;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,wBAAuB,gFAAgF;AACvG;AACA;AACA,yBAAwB,gFAAgF;AACxG;AACA;AACA,yBAAwB,+EAA+E;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB,gFAAgF;AACpG;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAuC;AACvC,8CAA6C,EAAE;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,wBAAwB;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,sBAAsB;AACjE;AACA;AACA,iEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,sBAAsB;AACjE;AACA;AACA,iEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC,+CAA8C,EAAE;AAChD;AACA;AACA;AACA,4CAA2C,2DAA2D,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,uEAAuE;AAC3I;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,yBAAyB,EAAE;AACzD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,gBAAgB,EAAE;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAA+D,gBAAgB,EAAE;AACjF,4CAA2C,iBAAiB,EAAE;AAC9D;AACA;AACA;AACA;AACA,qDAAoD,sDAAsD,gBAAgB,EAAE,EAAE;AAC9H;AACA,MAAK;AACL;AACA;AACA;AACA,0CAAyC,gBAAgB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,gBAAgB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oDAAmD,uCAAuC;AAC1F;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,iCAAiC;AACvF;AACA,MAAK;AACL;AACA;AACA,uFAAsF;AACtF,sEAAqE;AACrE,oEAAmE;AACnE,2EAA0E;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,YAAY;AAC/B;AACA;AACA;AACA,qDAAoD;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,yCAAyC,EAAE;AACzE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+BAA+B,EAAE;AAC/D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,uCAAuC,EAAE;AACvE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,2CAA2C,EAAE;AAC3E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,yCAAyC,EAAE;AACzE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6CAA6C,EAAE;AAC7E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,qCAAqC,EAAE,EAAE;AACvE;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,0BAA0B,EAAE;AAC1D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,+BAA+B,EAAE;AAC/D;AACA;AACA,UAAS;AACT;AACA,+BAA8B,uCAAuC,EAAE;AACvE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,2CAA2C,EAAE;AAC3E;AACA;AACA,UAAS;AACT;AACA,+BAA8B,yCAAyC,EAAE;AACzE;AACA;AACA,UAAS;AACT;AACA,+BAA8B,6CAA6C,EAAE;AAC7E;AACA;AACA,UAAS;AACT;AACA,kDAAiD,qBAAqB,EAAE;AACxE;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,YAAY;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+DAA8D,kCAAkC;AAChG;AACA,MAAK;AACL;AACA;AACA,6CAA4C,yCAAyC,EAAE;AACvF;AACA;AACA,+CAA8C,sDAAsD;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,sBAAsB,EAAE;AACnF;AACA;AACA;AACA;AACA;AACA,sDAAqD,gBAAgB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD,yDAAyD,EAAE;AAC3G;AACA,+BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB,2BAA0B,eAAe;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,kBAAkB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B;AAC3B;AACA,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA,sDAAqD;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA,6CAA4C;AAC5C;AACA;AACA;AACA;AACA;AACA,oFAAmF;AACnF;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,0CAAyC,wBAAwB,EAAE;AACnE;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,+BAA8B,wEAAwE,EAAE;AACxG;AACA;AACA,UAAS;AACT;AACA,8DAA6D,IAAI,+BAA+B;AAChG;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2EAA0E,qEAAqE;AAC/I;AACA;AACA;AACA;AACA,uEAAsE,qBAAqB,EAAE;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8FAA6F,yEAAyE,EAAE;AACxK;AACA;AACA;AACA;AACA;AACA,gDAA+C,sBAAsB;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,kBAAkB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,uEAAsE,qBAAqB,EAAE;AAC7F,uDAAsD,qBAAqB,EAAE;AAC7E;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA,4CAA2C,sBAAsB;AACjE;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,sBAAsB;AACjE;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC;AAClC,+CAA8C,EAAE;AAChD;AACA;AACA;AACA,4CAA2C,wDAAwD,EAAE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA4E,8BAA8B;AAC1G,mEAAkE,iCAAiC;AACnG;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,wEAAwE;AAClI;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4DAA2D,yEAAyE;AACpI;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,aAAa;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,mBAAmB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,sDAAsD;AAC1G;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,+BAA8B,gCAAgC,EAAE;AAChE;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,+CAA+C,EAAE;AAC/E;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,+BAA8B,0BAA0B,EAAE;AAC1D;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,gBAAe,uCAAuC;AACtD,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,gBAAgB;AACpE;AACA;AACA;AACA,iDAAgD,yCAAyC;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B;AAC9B,gDAA+C,aAAa;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,wBAAwB;AAC1D;AACA;AACA,gDAA+C,UAAU,mCAAmC;AAC5F;AACA;AACA,gDAA+C,UAAU,iCAAiC;AAC1F;AACA;AACA;AACA;AACA,+CAA8C,kBAAkB;AAChE;AACA;AACA,6CAA4C,kBAAkB;AAC9D;AACA;AACA,6DAA4D,kBAAkB;AAC9E;AACA;AACA;AACA,wCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDAAqD,2BAA2B;AAChF;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,WAAW,6BAA6B;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,kBAAkB;AACzE;AACA;AACA,wDAAuD,6CAA6C;AACpG;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,WAAW,6BAA6B;AAC5E;AACA;AACA;AACA,0BAAyB,cAAc;AACvC;AACA,yDAAwD,0CAA0C;AAClG;AACA,mCAAkC,cAAc;AAChD;AACA,qDAAoD,sCAAsC;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAwD,iFAAiF,EAAE;AAC3I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB,yGAAwG,oCAAoC,EAAE;AAC9I;AACA;AACA,qGAAoG,uBAAuB,EAAE;AAC7H;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,+BAA8B,wCAAwC,EAAE;AACxE;AACA;AACA,UAAS;AACT;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,qFAAoF,wBAAwB,EAAE;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,uFAAsF,UAAU,EAAE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,oDAAmD,sEAAsE,EAAE;AAC3H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,yCAAyC,EAAE;AAC9E,uCAAsC,mBAAmB,EAAE;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA,+EAA8E,wBAAwB,EAAE;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,oDAAmD,mEAAmE,EAAE;AACxH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA6B,4CAA4C;AACzE;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,gCAA+B,mFAAmF;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAsD,+CAA+C,EAAE;AACvG;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,IAAI;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAS,yCAAyC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,cAAc;AACxE,oEAAmE;AACnE,6FAA4F;AAC5F,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD,YAAY;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAqC,2BAA2B;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,cAAa,wCAAwC,kCAAkC,IAAI;AAC3F;AACA;AACA;AACA,cAAa,gBAAgB;AAC7B,cAAa,wBAAwB;AACrC,cAAa,0CAA0C;AACvD;AACA;AACA,8BAA6B,4BAA4B;AACzD,2BAA0B,4BAA4B;AACtD,sCAAqC,4BAA4B;AACjE,mCAAkC,4BAA4B;AAC9D,6BAA4B,4BAA4B;AACxD,0BAAyB,4GAA4G;AACrI;AACA;AACA,MAAK;AACL;AACA,aAAY,iBAAiB;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT,wEAAuE,+BAA+B;AACtG,iEAAgE,iCAAiC;AACjG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA,cAAa,wCAAwC,4BAA4B,IAAI;AACrF;AACA;AACA;AACA,cAAa,gBAAgB;AAC7B,cAAa,wBAAwB;AACrC,cAAa,0CAA0C;AACvD;AACA;AACA,yBAAwB,4BAA4B;AACpD,8BAA6B,4BAA4B;AACzD,2BAA0B,4BAA4B;AACtD,oCAAmC,4BAA4B;AAC/D,sCAAqC,4BAA4B;AACjE,mCAAkC,4BAA4B;AAC9D,uBAAsB,kCAAkC;AACxD,6BAA4B,4BAA4B;AACxD,0BAAyB,4GAA4G;AACrI;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+FAA8F;AAC9F,aAAY;AACZ;AACA;AACA;AACA;AACA;AACA,wEAAuE,YAAY;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C;AAC5C;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,wDAAuD,uBAAuB,EAAE;AAChF,iEAAgE,uBAAuB,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT,sEAAqE,eAAe;AACpF,+DAA8D,iCAAiC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA,gDAA+C,gHAAgH,EAAE;AACjK;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,cAAa,wCAAwC,iCAAiC,IAAI;AAC1F;AACA;AACA;AACA,cAAa,gBAAgB;AAC7B,cAAa,kCAAkC;AAC/C,cAAa,gCAAgC;AAC7C;AACA;AACA,wBAAuB,0DAA0D,oBAAoB,IAAI;AACzG,iCAAgC,kEAAkE,oBAAoB,IAAI;AAC1H,0CAAyC,4BAA4B;AACrE,mCAAkC,4BAA4B;AAC9D;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA0D,2EAA2E;AACrI;AACA,+BAA8B,yBAAyB,EAAE;AACzD;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,wCAAwC,4BAA4B,IAAI;AACrF;AACA;AACA;AACA,cAAa,yBAAyB;AACtC,cAAa,wCAAwC;AACrD,cAAa,gDAAgD;AAC7D,cAAa,gCAAgC,iDAAiD,IAAI;AAClG;AACA;AACA,iCAAgC,kDAAkD;AAClF,mCAAkC,oDAAoD;AACtF;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAmC,yDAAyD;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,2BAA0B,iEAAiE;AAC3F,UAAS,+FAA+F;AACxG,UAAS,2CAA2C,uBAAuB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B,wCAAwC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB,sBAAqB,8DAA8D,EAAE;AACrF;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,qBAAoB;AACpB;AACA;AACA,cAAa,uCAAuC,8DAA8D,IAAI;AACtH;AACA;AACA;AACA,cAAa,gCAAgC,+BAA+B,GAAG,4DAA4D,IAAI;AAC/I;AACA;AACA,MAAK;AACL;AACA,kCAAiC,cAAc;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa,qFAAqF;AAClG,cAAa;AACb;AACA;AACA;AACA,+BAA8B,WAAW;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;;;;;;;ACruGD;AACA;AACA;AACA,iC;;;;;;ACHA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAiC,0CAA0C,EAAE;AAC7E;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,cAAa;AACb,cAAa;AACb,cAAa;AACb;AACA,gBAAe,mBAAmB;AAClC;AACA;AACA,gBAAe,UAAU;AACzB;AACA,iBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,2C;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;ACLA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,8BAA6B,SAAS;AACtC,8BAA6B,kBAAkB;AAC/C;AACA;AACA;AACA;AACA,oEAAmE,eAAe;AAClF;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,8BAA6B,SAAS;AACtC,8BAA6B,qBAAqB;AAClD;AACA;AACA;AACA;AACA,mEAAkE,aAAa;AAC/E;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+C;;;;;;AC5JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;AC/BA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE,aAAa;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,cAAa;AACb,cAAa;AACb,cAAa;AACb;AACA,gBAAe,KAAK;AACpB,gBAAe,UAAU,gBAAgB,gBAAgB;AACzD;AACA,iBAAgB,cAAc;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,yBAAwB,uBAAuB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,4BAA2B,iCAAiC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,4C;;;;;;ACzHA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,6C;;;;;;ACzDA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,cAAa;AACb,cAAa;AACb,cAAa;AACb;AACA,gBAAe,UAAU,gBAAgB,gBAAgB;AACzD;AACA,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAoE,yBAAyB;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,4C;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA,wC;;;;;;ACLA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,4BAA2B,kCAAkC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,gD;;;;;;ACrEA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA;AACA,4BAA2B,WAAW;AACtC;AACA;AACA;AACA;AACA;AACA,gCAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,gCAA+B,WAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,sC;;;;;;AC1EA;AACA;AACA;AACA,oDAAmD,iBAAiB;AACpE;AACA,UAAS,kBAAkB,GAAG,oBAAoB,GAAG,gBAAgB;AACrE;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,SAAS;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,eAAe;AAClC;AACA,gBAAe,yBAAyB;AACxC,gBAAe,yBAAyB;AACxC,gBAAe,iBAAiB;AAChC,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,kCAAkC;AACjD;AACA,gBAAe,yBAAyB;AACxC,gBAAe,iBAAiB;AAChC,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,iBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,IAAI;AACnB,iBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,yC;;;;;;AC9HA;AACA;AACA;AACA,+B;;;;;;ACHA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,IAAI;AACf,aAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD,kC;;;;;;ACnEA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT;AACA,YAAW,OAAO;AAClB;AACA,aAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA,iCAAgC,uCAAuC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,qC;;;;;;AC9GA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,4C;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,gCAAgC;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,kBAAkB,+BAA+B,EAAE;AAC5D;AACA;AACA,iDAAgD,WAAW,EAAE;AAC7D,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8C;;;;;;ACzEA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,4C;;;;;;ACnCA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,eAAe;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT;AACA,YAAW,+CAA+C;AAC1D;AACA;AACA,YAAW,oFAAoF;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA,aAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,uCAAuC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC,uCAAuC;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,qCAAoC,uCAAuC;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,qC;;;;;;AChKA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB,WAAW,uBAAuB,WAAW;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT;AACA,YAAW,8BAA8B;AACzC;AACA,YAAW,EAAE;AACb,aAAY,cAAc;AAC1B,aAAY,cAAc;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,mC;;;;;;AC/GA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,SAAS;AACpB;AACA;AACA,aAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD,kC;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT,UAAS;AACT;AACA,aAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;AChDA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT,UAAS;AACT;AACA,aAAY,WAAW;AACvB;AACA;AACA,YAAW,kEAAkE;AAC7E;AACA,YAAW,qCAAqC;AAChD;AACA;AACA;AACA;AACA;AACA,YAAW,EAAE;AACb;AACA,aAAY,gBAAgB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD,kC;;;;;;ACnJA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,UAAS;AACT,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,uC;;;;;;AC3BA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY,WAAW;AACvB;AACA,YAAW,SAAS;AACpB,aAAY,WAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD,iC;;;;;;ACrHA;AACA;AACA;AACA,oBAAmB,sBAAsB;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,4C;;;;;;;AChDA;KAAA;SACI,WAAM,GAAQ,gDAAgD,CAAC;SAC/D,oEAAoE;SACpE,yDAAyD;SACzD,8CAA8C;SAC9C,uDAAuD;SACvD,wDAAwD;SACxD,0EAA0E;SACzE,wDAAwD;SACzD,yEAAyE;SACzE,uDAAuD;SACvD,iEAAiE;SACjE,gEAAgE;SAChE,aAAQ,GAAQ,EAAE,CAAC;SACnB,gBAAW,GAAQ,wBAAwB,CAAC;KAChD,CAAC;KAAD,mBAAC;AAAD,EAAC;AAfY,qCAAY;;;;;;;;ACEzB;KAAA;SACI,YAAO,GAAO,GAAG,CAAC;SAClB,WAAM,GAAO,GAAG,CAAC;SACjB,eAAU,GAAO,GAAG,CAAC;KAiCzB,CAAC;KAhCG,sCAAW,GAAX,UAAa,GAAG,EAAE,IAAI;SAClB,IAAI,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,GAAC,CAAC,CAAC,CAAC;SAChD,IAAI,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE;aAClC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAC,EAAE;aACxB,UAAU,EAAE,IAAI,CAAC,UAAU;UAC9B,CAAC,CAAC;SACH,IAAI,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,GAAC,CAAC,CAAC,CAAC;SAC9C,IAAI,SAAS,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE;aAC3C,EAAE,EAAE,EAAE;aACN,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK;aAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG;UAC1B,CAAC,CAAC;SACH,IAAI,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAE,EAAE,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;SAC3E,MAAM,CAAC,cAAc,CAAC;KAC1B,CAAC;KACD,sCAAW,GAAX,UAAa,cAAc,EAAE,IAAI;SAC7B,EAAE,EAAC,cAAc,CAAC,EAAC;aACf,IAAI,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;aAChE,IAAI,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;aAC9D,IAAI,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;aAC7C,IAAI,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE;iBAClC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAC,EAAE;iBACxB,UAAU,EAAE,IAAI,CAAC,UAAU;cAC9B,CAAC,CAAC;aACH,IAAI,SAAS,GAAG,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE;iBACjD,EAAE,EAAE,EAAE;iBACN,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK;iBAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG;cAC1B,CAAC;SACN,CAAC;SACD,MAAM,CAAC,SAAS,CAAC;KACrB,CAAC;KACL,uBAAC;AAAD,EAAC;AApCY,6CAAgB;;;;;;;;;;;;;;;;;ACF7B,uCAAsD;AAEtD,0BAA+B;AAC/B,gDAAmE;AACnE,+CAAsE;AAGtE,KAAa,WAAW;KACpB,qBAAoB,KAAkB,EAAU,QAAsB;SAAlD,UAAK,GAAL,KAAK,CAAa;SAAU,aAAQ,GAAR,QAAQ,CAAc;KAAI,CAAC;KAE3E,gCAAU,GAAV,UAAW,GAAG;SACV,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;KACtC,CAAC;KAED,iCAAW,GAAX,UAAY,GAAG,EAAE,QAAQ;SACrB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;KACjD,CAAC;KAED,gCAAU,GAAV,UAAW,GAAQ;SACf,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,aAAG,IAAI,UAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC,CAAC;KACvD,CAAC;KAED,iCAAW,GAAX,UAAY,GAAQ,EAAE,QAAa;SAC/B,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAE,aAAG,IAAI,UAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC,CAAC;KACnE,CAAC;KAKD,mCAAa,GAAb,UAAc,KAAU;SACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACvB,CAAC;KAEL,kBAAC;AAAD,EAAC;AA1BY,YAAW;KADvB,iBAAU,EAAE;sCAEkB,0BAAW,EAAoB,4BAAY;IAD7D,WAAW,CA0BvB;AA1BY,mCAAW;;;;;;;;;;;;;;;;;;;;;;ACPxB,uCAA2C;AAC3C,uCAAiH;AACjH,6CAA6C;AAC7C,yCAAyD;AACzD,0BAA+B;AAC/B,0BAAiC;AACjC,0BAAgC;AAIhC,KAAa,WAAW;KAAS,+BAAI;KAEnC,qBAAa,OAAmB,EAAE,OAAuB,EAAU,MAAc;SAAjF,YACE,kBAAM,OAAO,EAAE,OAAO,CAAC,SACxB;SAFkE,YAAM,GAAN,MAAM,CAAQ;;KAEjF,CAAC;KAED,gCAAU,GAAV,UAAW,GAAmB,EAAE,OAA4B;SAC1D,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;SAClD,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC;aAC5B,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;iBACb,IAAI,OAAO,GAAG,IAAI,cAAO,EAAE,CAAC;iBAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;iBAC7C,OAAO,GAAG,EAAC,OAAO,EAAE,IAAI,cAAO,EAAE,EAAC,CAAC;aACrC,CAAC;aACD,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SACtC,CAAC;SAAC,IAAI,CAAC,CAAC;aACN,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAClC,CAAC;SACD,MAAM,CAAC,iBAAM,OAAO,YAAC,GAAG,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;KACtE,CAAC;KAED,iCAAW,GAAX,UAAY,GAAQ,EAAE,IAAyB;SAC7C,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;SAClD,IAAI,OAAO,GAAG,IAAI,cAAO,EAAE,CAAC;SAC5B,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,iCAAiC,CAAC,CAAC;SAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;SAC7C,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC5B,MAAM,CAAC,iBAAM,IAAI,YAAC,GAAG,EAAE,IAAI,EAAE,EAAC,OAAO,EAAC,OAAO,EAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;KACnF,CAAC;KAEO,oCAAc,GAAtB,UAAwB,IAAiB;SAAzC,iBAaC;SAZC,MAAM,CAAC,UAAC,GAAa;aACnB,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC;iBAC7C,IAAI,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;iBAC9C,EAAE,EAAC,MAAM,CAAC,EAAC;qBACP,IAAI,aAAa,GAAG,MAAM,CAAC;qBAC3B,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,EAAC,WAAW,EAAE,EAAC,KAAK,EAAE,aAAa,EAAC,EAAC,CAAC,CAAC;iBAC3E,CAAC;iBAAA,IAAI,EAAC;qBACF,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;iBACpC,CAAC;aACH,CAAC;aACD,MAAM,CAAC,uBAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC/B,CAAC,CAAC;KACJ,CAAC;KAEH,kBAAC;AAAD,EAAC,CA7CgC,WAAI,GA6CpC;AA7CY,YAAW;KADvB,iBAAU,EAAE;sCAGW,iBAAU,EAAW,qBAAc,EAAkB,eAAM;IAFtE,WAAW,CA6CvB;AA7CY,mCAAW;;;;;;;ACVxB;AACA;AACA;AACA;AACA,kC;;;;;;ACJA;AACA;AACA;AACA;AACA,+B;;;;;;;;;;;;;;;;ACJA,uCAAyD;AACzD,yCAAyD;AACzD,uCAAwE;AAExE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAoE;AACpE,8CAAyD;AAKzD,KAAa,kBAAkB;KACvB,4BAAoB,KAAW,EAAU,MAAoB,EAAU,MAAc,EAAU,OAAyB,EAAU,UAAuB;SAArI,UAAK,GAAL,KAAK,CAAM;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,WAAM,GAAN,MAAM,CAAQ;SAAU,YAAO,GAAP,OAAO,CAAkB;SAAU,eAAU,GAAV,UAAU,CAAa;SACzJ,gBAAW,GAAG,IAAI,mBAAY,EAAO,CAAC;SACtC,gBAAW,GAAG,IAAI,mBAAY,EAAO,CAAC;SACtC,qBAAgB,GAAG,IAAI,mBAAY,EAAO,CAAC;SAC3C,mBAAc,GAAG,IAAI,mBAAY,EAAO,CAAC;SAOzC,kBAAa,GAAK,EAAE,CAAC;SACrB,eAAU,GAAK,EAAE,CAAC;KAZ2I,CAAC;KAM9J,4CAAe,GAAf,UAAgB,OAAO,EAAE,KAAK,EAAE,SAAS;SACjC,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,+BAA+B,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,GAAG,aAAa,GAAG,SAAS,CAAC;SACzH,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;KAC/C,CAAC;KAID,gDAAmB,GAAnB,UAAoB,KAAK,EAAE,KAAK,EAAC,KAAK,EAAE,SAAS,EAAE,YAAqB,EAAE,MAAa,EAAE,gBAAuB;SAAhH,iBA2EC;SA3EkD,kDAAqB;SAAE,oCAAa;SAAE,wDAAuB;SACxG,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,8BAA8B,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC;SAC1I,IAAI,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;SAC1C,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,UAAC,GAAG;aACtC,KAAI,CAAC,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;aAC1C,KAAI,CAAC,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;aAC7B,EAAE,EAAC,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAC;iBACrB,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aAC3E,CAAC;aACD,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,EAAC;iBACZ,KAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;iBACnD,IAAI,OAAO,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;iBAChD,IAAI,WAAW,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;iBACxD,IAAI,YAAY,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;iBAC1D,EAAE,EAAC,WAAW,GAAC,CAAC,IAAI,YAAY,GAAC,CAAC,CAAC,EAAC;qBAC5B,IAAI,YAAY,GAAI,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,SAAS,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;qBACzI,IAAI,WAAW,GAAG,GAAG,CAAC;qBACtB,IAAI,YAAY,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;qBAC1D,gEAAgE;qBAChE,IAAI,KAAK,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;qBACrD,IAAI,SAAS,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;qBACpD,IAAI,SAAS,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;qBACpD,IAAI,UAAU,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;qBAC3D,IAAI,aAAa,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;qBACjE,iBAAiB;qBACjB,wIAAwI;qBACxI,IAAI;qBACJ,IAAI,cAAc,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;qBAC9D,IAAI,gBAAgB,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;qBAC9D,EAAE,EAAC,YAAY,IAAE,KAAK,CAAC,EAAC;qBAExB,CAAC;qBACD,IAAI,cAAc,GAAE,EAAE,CAAC;qBACvB,IAAI,gBAAgB,GAAI,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,GAAG,GAAG,GAAG,YAAY,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,SAAS,GAAG,GAAG,GAAG,SAAS,GAAG,GAAG,GAAG,KAAK,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;qBACjN,IAAI,QAAQ,GAAI,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,SAAS,GAAC,GAAG,GAAC,gBAAgB,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;qBAEvL,EAAE,EAAC,CAAC,YAAY,CAAC,CAAC,CAAC;yBACX,KAAI,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;yBACnD,YAAY,CAAC,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;yBAC7D,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;yBACpD,EAAE,EAAC,UAAU,CAAC,EAAC;6BACP,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;yBAC1D,CAAC;yBACD,EAAE,EAAC,aAAa,CAAC,EAAC;6BACV,YAAY,CAAC,OAAO,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;yBAC9D,CAAC;yBACD,KAAI,CAAC,aAAa,CAAC,MAAM,EAAE,KAAI,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;qBACtE,CAAC;qBAAC,IAAI,CAAC,CAAC;yBACA,KAAI,CAAC,eAAe,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,SAAS,CACjD,cAAI;6BACI,IAAI,WAAW,GAAG,IAAI,CAAC,MAAM;6BAC7B,EAAE,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC;iCACf,KAAI,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;iCACnD,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;iCAC5C,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;iCACpD,YAAY,CAAC,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;iCAC7D,EAAE,EAAC,UAAU,CAAC,EAAC;qCACP,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;iCAC1D,CAAC;iCACD,EAAE,EAAC,aAAa,CAAC,EAAC;qCACV,YAAY,CAAC,OAAO,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;iCAC9D,CAAC;iCACD,KAAI,CAAC,aAAa,CAAC,EAAE,EAAE,KAAI,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;6BAClE,CAAC;yBACT,CAAC,CACR,CAAC;qBACV,CAAC;iBACT,CAAC;iBAAA,IAAI,EAAC;qBACE,KAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBACpC,CAAC;aACT,CAAC;SACT,CAAC,CAGR,CAAC;KACV,CAAC;KAED,mBAAmB;KACnB,2CAAc,GAAd,UAAe,KAAK,EAAE,KAAK,EAAC,KAAK,EAAE,SAAS;SAA5C,iBAOC;SANO,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,8BAA8B,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC;SAC1I,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,CACjC,cAAI;aACI,KAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC3C,CAAC,CACR,CAAC;KACV,CAAC;KAED,oDAAuB,GAAvB,UAAwB,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB;SAChH,IAAI,cAAc,GAAG,EAAE,CAAC;SACxB,EAAE,EAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC;aAChB,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACpC,CAAC;SACD,EAAE,EAAC,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC;aACnB,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACvC,CAAC;SACD,EAAE,EAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC;aACpB,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACzC,CAAC;SACD,EAAE,EAAC,mBAAmB,IAAI,IAAI,CAAC,CAAC,CAAC;aACzB,cAAc,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAC9C,CAAC;SACD,EAAE,EAAC,mBAAmB,IAAI,IAAI,CAAC,CAAC,CAAC;aACzB,cAAc,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAC7C,CAAC;SACD,IAAI,oBAAoB,GAAG,EAAE,CAAC;SAC9B,EAAE,EAAC,cAAc,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC;aACxB,MAAM,CAAC,oBAAoB,CAAC;SACpC,CAAC;SACD,EAAE,EAAC,WAAW,IAAI,EAAE,CAAC,CAAC,CAAC;aACf,oBAAoB,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;SACjD,CAAC;SAAC,IAAI,CAAC,CAAC;aACA,EAAE,EAAC,cAAc,CAAC,SAAS,CAAC,UAAC,IAAY,IAAK,WAAI,KAAK,WAAW,EAApB,CAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC5E,oBAAoB,GAAG,WAAW,CAAC;aACnC,CAAC;aAAC,IAAI,CAAC,CAAC;iBACA,oBAAoB,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;aACjD,CAAC;SACT,CAAC;SACD,MAAM,CAAC,oBAAoB,CAAC;KACpC,CAAC;KAED,0CAAa,GAAb,UAAc,WAAW,EAAE,UAAU,EAAE,gBAAgB;SAC/C,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC;SACjE,IAAI,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC;SACvE,IAAI,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC;SACzE,IAAI,mBAAmB,GAAG,IAAI,CAAC;SAC/B,IAAI,mBAAmB,GAAG,KAAK,CAAC;SAChC,EAAE,EAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,YAAY,IAAE,CAAC,CAAC,EAAC;aACnC,mBAAmB,GAAC,IAAI,CAAC;SACjC,CAAC;SACD,IAAI,oBAAoB,GAAG,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;SAC1J,EAAE,EAAC,gBAAgB,IAAE,EAAE,IAAI,WAAW,IAAE,SAAS,CAAC,EAAC;aAC3C,oEAAoE;aACtF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAC,CAAC,EAAC,gBAAgB,CAAC,CAAC,CAAC;SAC5C,CAAC;SAAA,IAAI,EAAC;aACE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC;SACrD,CAAC;SACD,EAAE,EAAC,UAAU,IAAE,IAAI,CAAC,EAAC;aACb,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;SACpD,CAAC;SAAA,IAAI,EAAC;aACE,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,oBAAoB,CAAC,CAAC;SAClE,CAAC;KACT,CAAC;KAcT,yBAAC;AAAD,EAAC;AAzKY,mBAAkB;KAD9B,iBAAU,EAAE;sCAEsB,WAAI,EAAkB,yBAAY,EAAkB,eAAM,EAAmB,8BAAgB,EAAsB,yBAAW;IADpJ,kBAAkB,CAyK9B;AAzKY,iDAAkB;;;;;;;;;;;;;;;;;ACZ/B,uCAAiD;AACjD,yCAAuE;AAEvE,wCAA4F;AAG5F,0BAA+B;AAC/B,sDAA0E;AAC1E,gDAAsE;AACtE,6CAA+D;AAC/D,8CAAoE;AACpE,sDAA4F;AAC5F,8CAAiE;AACjE,gDAA0E;AAU1E,KAAa,eAAe;KAIxB,yBAAoB,GAAgB,EAAU,KAAgB,EAAU,MAAoB,EAAU,WAAgC,EAAU,QAAsB,EAAU,OAAyB,EAAU,UAAuB,EAAS,MAAa,EAAS,KAAkB,EAAS,EAAiB;SAAjS,QAAG,GAAH,GAAG,CAAa;SAAU,UAAK,GAAL,KAAK,CAAW;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,gBAAW,GAAX,WAAW,CAAqB;SAAU,aAAQ,GAAR,QAAQ,CAAc;SAAU,YAAO,GAAP,OAAO,CAAkB;SAAU,eAAU,GAAV,UAAU,CAAa;SAAS,WAAM,GAAN,MAAM,CAAO;SAAS,UAAK,GAAL,KAAK,CAAa;SAAS,OAAE,GAAF,EAAE,CAAe;SAwErT,aAAQ,GAAQ,EAAE,CAAC;SACnB,gBAAW,GAAQ,EAAE,CAAC;SACtB,iBAAY,GAAQ,EAAE,CAAC;SACvB,qBAAgB,GAAQ,EAAE,CAAC;SAC3B,qBAAgB,GAAQ,EAAE,CAAC;SAE3B,oBAAe,GAAG,CAAC,EAAE,CAAC,CAAC;SACvB,gBAAW,GAAG,CAAC,EAAE,CAAC,CAAC;SACnB,aAAQ,GAAY,IAAI,CAAC;SACzB,gBAAW,GAAY,IAAI,CAAC;SAC5B,iBAAY,GAAY,IAAI,CAAC;SAC7B,qBAAgB,GAAY,IAAI,CAAC;SAKjC,qBAAgB,GAAY,IAAI,CAAC;SACjC,mBAAc,GAAY,IAAI,CAAC;SAC/B,wBAAmB,GAAY,IAAI,CAAC;SACpC,kBAAa,GAAY,IAAI,CAAC;SAC9B,YAAO,GAAQ,EAAE,CAAC;SAClB,eAAU,GAAQ,CAAC,CAAC;SACpB,uBAAkB,GAAY,KAAK,CAAC;SACpC,kBAAa,GAAY,KAAK,CAAC;SAC/B,wBAAmB,GAAY,KAAK,CAAC;SACrC,eAAU,GAAQ,EAAE,CAAC;SACrB,gBAAW,GAAQ,EAAE,CAAC;SACtB,eAAU,GAAY,IAAI,CAAC;SAC3B,eAAU,GAAQ,EAAE,CAAC;SACrB,eAAU,GAAY,KAAK,CAAC;SAC5B,qBAAgB,GAAY,KAAK,CAAC;SAClC,YAAO,GAAK,EAAE,CAAC;SAqCf,8BAA8B;SAC9B,eAAU,GAAO,EAAE,CAAC;SAMpB,gBAAW,GAAQ,EAAE,CAAC;SACtB,gBAAW,GAAQ,EAAE,CAAC;SACtB,gBAAW,GAAQ,EAAE,CAAC;SAyBtB,qBAAqB;SACrB,mBAAc,GAAO,EAAE;SAqBvB,mBAAc,GAAW,KAAK,CAAC;SAC/B,oBAAe,GAAU,EAAE,CAAC;SAC5B,gBAAW,GAAW,KAAK,CAAC;SAU5B,iBAAY,GAAO,EAAE,CAAC;SAqCtB,gBAAW,GAAQ,EAAE,CAAC;SACtB,qBAAgB,GAAY,IAAI,CAAC;SACjC,mBAAc,GAAQ,EAAE,CAAC;KAvPgS,CAAC;KAE1T,6BAA6B;KAC7B,qCAAqC;KACrC,wCAAwC;KACxC,wDAAwD;KACxD,WAAW;KACX,qCAAqC;KACrC,2DAA2D;KAC3D,MAAM;KACN,kBAAkB;KAClB,IAAI;KAEJ,uCAAa,GAAb,UAAc,KAAK;SACf,IAAI,QAAQ,GAAG,IAAI,MAAM,CAAC,iSAAiS,CAAC,CAAC;SAC7T,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACjC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;aACR,MAAM,CAAC,IAAI,CAAC;SAChB,CAAC;SAAC,IAAI,CAAC,CAAC;aACJ,MAAM,CAAC,KAAK,CAAC;SACjB,CAAC;KACL,CAAC;KAED,qCAAW,GAAX,UAAY,SAAS,EAAE,WAAW;SAAlC,iBAoBC;SAnBG,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,0CAA0C,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,iBAAiB,GAAG,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;SACpK,IAAI,IAAI,GAAG,EAAE,CAAC;SACd,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,SAAS,CAC5C,cAAI;aACA,IAAI,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC;aACjC,EAAE,CAAC,CAAC,cAAc,IAAI,CAAC,CAAC,CAAC,CAAC;iBACtB,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;iBAClC,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;iBACpC,CAAC,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;iBACvC,CAAC,CAAC,8BAA8B,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;iBAC3C,oGAAoG;iBACpG,CAAC,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;iBACX,KAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;iBACnE,UAAU,CAAC;qBACP,CAAC,CAAC,oCAAoC,CAAC,CAAC,MAAM,EAAE,CAAC;iBACrD,CAAC,EAAE,IAAI,CAAC,CAAC;aACb,CAAC;SACL,CAAC,CACJ,CAAC;KACN,CAAC;KAED,oCAAU,GAAV,UAAW,iBAAiB;SACxB,IAAI,UAAU,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,CAAC;SACxC,IAAI,QAAQ,GAAG,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC;SAChD,CAAC,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACvC,CAAC,CAAC,8BAA8B,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAC3C,qBAAqB;SACrB,qEAAqE;SACrE,EAAE,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC;aACf,CAAC,CAAC,8BAA8B,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;SACzE,IAAI,WAAW,GAAG,IAAI,CAAC;SACvB,EAAE,CAAC,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,CAAC;aACnB,IAAI,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;aACjD,EAAE,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC;iBACrB,CAAC,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SAC5D,CAAC;SACD,EAAE,CAAC,CAAC,QAAQ,IAAI,EAAE,IAAI,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC;aACxC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;SAC3C,CAAC;KACL,CAAC;KAED,gCAAM,GAAN;SACI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;SACzB,MAAM,CAAC,KAAK,CAAC;KACjB,CAAC;KAoCD,+CAAqB,GAArB;SACI,IAAI,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SACjD,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;aACX,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aACrG,IAAI,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAClC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;aAC/B,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;iBACtB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;aAC5B,CAAC;SACL,CAAC;KACL,CAAC;KAED,iDAAuB,GAAvB,UAAwB,MAAM;SAC1B,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;SAChC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;SACjC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;SAE3B,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,UAAU,IAAI,GAAG,IAAI,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC;aAC/D,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;SACnC,CAAC;SAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;aAC1B,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;SACpC,CAAC;SAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,GAAG,IAAI,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC;aAClD,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;SAC9B,CAAC;KACL,CAAC;KAED,oCAAU,GAAV;SACI,IAAI,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;SACrD,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;aACX,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC;SAC5B,CAAC;SAAC,IAAI,CAAC,CAAC;aACJ,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,4BAA4B,CAAC;SACvE,CAAC;KACL,CAAC;KAKD,uCAAa,GAAb,UAAc,IAAS;SACnB,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;SAC1C,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;KACtF,CAAC;KAKD,oCAAU,GAAV,UAAW,GAAQ,EAAE,KAAK;SACtB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;SACtB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;SACtB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;SACtB,IAAI,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;SACrC,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;SACpC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;SACzB,EAAE,CAAC,CAAC,SAAS,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC;aAC3C,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;aACvB,CAAC,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC1C,CAAC;SAAC,IAAI,CAAC,EAAE,CAAC,CAAC,SAAS,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC;aAClD,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;aACvB,CAAC,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC1C,CAAC;SAAC,IAAI,CAAC,CAAC;aACJ,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;SAC/B,CAAC;KACL,CAAC;KACA,wCAAc,GAAd,UAAe,IAAc;SAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;SACb,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;SACvB,IAAI,CAAC,cAAc,EAAE,CAAC;SACtB,MAAM,CAAC,KAAK,CAAC;KACf,CAAC;KAID,wCAAc,GAAd;SAAA,iBAiBC;SAhBG,IAAI,QAAQ,GAAG;aACX,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK;aAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;UAC/B,CAAC;SACF,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAC,QAAQ,CAAC,CAAC,SAAS,CAC3C,cAAI;aACA,KAAI,CAAC,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC;aAClC,CAAC,CAAC,iBAAiB,CAAC,CAAC,gBAAgB,EAAE,CAAC;SAC5C,CAAC,EACD,eAAK;SAEL,CAAC,EACD;SAEA,CAAC,CACJ;KACL,CAAC;KAMD,qCAAW,GAAX,UAAY,IAAQ;SAChB,EAAE,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;aACZ,IAAI,KAAK,GAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;aAC/B,CAAC,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,CAAC;aAC1B,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;SAChC,CAAC;SAAC,IAAI,CAAC,CAAC;aACJ,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;SAC5B,CAAC;KACL,CAAC;KAGD,yCAAe,GAAf,UAAgB,KAAS;SAAzB,iBA4BC;SA3BG,IAAI,QAAQ,GAAG;aACX,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK;aAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM;aAC5B,UAAU,EAAE,KAAK;aACjB,WAAW,EAAE,IAAI;UACpB,CAAC;SACF,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,EAAC,QAAQ,CAAC,CAAC,SAAS,CACjD,cAAI;aACA,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;aAC5C,EAAE,EAAC,KAAI,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC;iBACvB,KAAI,CAAC,YAAY,GAAG,yEAAyE,CAAC;aAClG,CAAC;aAAC,IAAI,CAAC,CAAC;iBACJ,KAAI,CAAC,YAAY,GAAG,iCAAiC,CAAC;iBACtD,UAAU,CAAC;qBACP,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;qBAC7B,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;iBAC7B,CAAC,EAAC,IAAI,CAAC,CAAC;aACZ,CAAC;aACD,CAAC,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,CAAC;SAC9B,CAAC,EACD,eAAK;SAEL,CAAC,EACD;SAEA,CAAC,CACJ;KACL,CAAC;KACD,yCAAe,GAAf,UAAgB,IAAc;SAC1B,IAAI,CAAC,KAAK,EAAE,CAAC;SACb,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;KAC3B,CAAC;KAOD,2CAAiB,GAAjB;SACI,4BAA4B;SAC5B,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;KAC7C,CAAC;KAKD,2CAAiB,GAAjB;SACI,IAAI,CAAC,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;KACjE,CAAC;KAID,kCAAQ,GAAR;SAAA,iBAoHC;SAnHG,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;SAC7B,IAAI,IAAI,GAAG,IAAI,CAAC;SAChB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;SAE7C,WAAW;SACX,IAAI,CAAC,cAAc,EAAE,CAAC;SAEtB,qBAAqB;SACrB,IAAI,CAAC,iBAAiB,EAAE;SAExB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,aAAG;aAC5B,EAAE,EAAC,GAAG,YAAY,sBAAa,CAAC,CAAC,CAAC;iBAC9B,IAAI,UAAU,GAAU,KAAI,CAAC,MAAM,CAAC,GAAG,CAAC;iBACxC,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAE,CAAC,CAAC,CAAC;qBAChC,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAE,CAAC;iBACnE,CAAC;iBAAC,IAAI,CAAC,CAAC;qBACJ,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;iBAC7D,CAAC;iBACD,EAAE,EAAC,UAAU,IAAI,gBAAgB,CAAC;qBAAC,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;aAC5D,CAAC;SACL,CAAC,CAAC,CAAC;SAEH,CAAC,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,gBAAgB,EAAE;aACrC,CAAC,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aACX,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;SACvE,CAAC,CAAC,CAAC;SACH,IAAI,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;SACpD,IAAI,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAChD,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;aACV,IAAI,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aAC5G,IAAI,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC9C,IAAI,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;aAC7B,IAAI,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;aAC7B,IAAI,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;aACjC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;aAC1C,KAAK,GAAG,KAAK,IAAI,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC;aACnC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SACnE,CAAC;SACD,IAAI,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;SACxD,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;aACf,IAAI,mBAAmB,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAClD,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;aAC1C,IAAI,CAAC,UAAU,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC;SAC7C,CAAC;SAED,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;aAC1B,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;SACjD,CAAC;SACD,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;aAC1B,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,sDAAsD,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,qCAAqC,CAAC,CAAC;aAC3I,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;SACvD,CAAC;SAED,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;aAC/B,UAAU,EAAE,CAAC,EAAE,CAAC;aAChB,QAAQ,EAAE,CAAC,EAAE,CAAC;UACjB,CAAC,CAAC;SAEH,IAAI,CAAC,qBAAqB,EAAE,CAAC;SAC7B,IAAI,CAAC,UAAU,EAAE,CAAC;SAClB,IAAI,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC;SACjC,IAAI,IAAI,GAAG,IAAI,CAAC;SAChB,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAClC,cAAI;aACA,KAAI,CAAC,eAAe,GAAG,IAAI,CAAC;aAC5B,EAAE,CAAC,CAAC,KAAI,CAAC,eAAe,CAAC,CAAC,CAAC;iBACvB,EAAE,CAAC,CAAC,KAAI,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;qBACrC,KAAI,CAAC,OAAO,GAAG,KAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;iBAChD,CAAC;iBACD,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAC,KAAI,CAAC,eAAe,CAAC;iBACxD,KAAI,CAAC,QAAQ,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC;iBACrD,KAAI,CAAC,WAAW,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;iBAC3D,KAAI,CAAC,YAAY,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;iBAC7D,KAAI,CAAC,gBAAgB,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC;iBACrE,KAAI,CAAC,QAAQ,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC;iBAC9D,KAAI,CAAC,WAAW,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC;iBACpE,KAAI,CAAC,YAAY,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC;iBACtE,KAAI,CAAC,gBAAgB,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC;iBACrE,KAAI,CAAC,gBAAgB,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;iBAC9E,KAAI,CAAC,YAAY,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC;iBACpE,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC;iBAChE,KAAI,CAAC,eAAe,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,aAAa,CAAC;iBAC1E,KAAI,CAAC,SAAS,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC;iBAC9D,KAAI,CAAC,gBAAgB,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,mBAAmB,CAAC;iBACjF,KAAI,CAAC,cAAc,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,iBAAiB,CAAC;iBAC7E,KAAI,CAAC,mBAAmB,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,sBAAsB,CAAC;iBACvF,KAAI,CAAC,aAAa,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,gBAAgB,CAAC;iBAC3E,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC;iBAChE,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;iBACzE,KAAI,CAAC,cAAc,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,iBAAiB,CAAC;iBAC7E,KAAI,CAAC,eAAe,GAAG,KAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC;iBACrE,KAAI,CAAC,OAAO,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC;iBACvD,IAAI,MAAM,GAAG,KAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC;iBACnE,EAAE,CAAC,CAAC,MAAM,IAAI,IAAI,IAAI,KAAI,CAAC,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC;qBAC3C,KAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;iBACjC,CAAC;iBACD,EAAE,CAAC,CAAC,KAAI,CAAC,cAAc,IAAI,KAAK,IAAI,KAAI,CAAC,mBAAmB,IAAI,KAAK,IAAI,KAAI,CAAC,aAAa,IAAI,KAAK,CAAC,CAAC,CAAC;qBACnG,KAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;iBAClC,CAAC;iBACD,KAAI,CAAC,cAAc,GAAG,KAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;iBAC7D,EAAE,CAAC,CAAC,KAAI,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC,CAAC;qBAC5B,KAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;iBACjC,CAAC;iBACD,KAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;iBAC9B,KAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;aACzC,CAAC;SACL,CAAC,CACJ,CAAC;SACF,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;SAE9B,CAAC,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,iBAAiB,EAAE;aACtC,CAAC,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aACvC,CAAC,CAAC,8BAA8B,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAC3C,CAAC,CAAC,kBAAkB,CAAC,CAAC,KAAK,EAAE,CAAC;SAClC,CAAC,CAAC,CAAC;KACP,CAAC;KAEL,sBAAC;AAAD,EAAC;AAjYY,gBAAe;KAL3B,gBAAS,CAAC;SACP,QAAQ,EAAE,WAAW;SACrB,WAAW,EAAE,mDAAmD;MACnE,CAAC;sCAM2B,mBAAW,EAAgB,gCAAU,EAAkB,yBAAY,EAAwB,wCAAkB,EAAoB,4BAAY,EAAmB,8BAAgB,EAAsB,yBAAW,EAAgB,eAAM,EAAe,4BAAY,EAAY,uBAAc;IAJ5S,eAAe,CAiY3B;AAjYY,2CAAe;;;;;;;;;;;;;;;;;ACtB5B,uCAA4C;AAC5C,yCAAyD;AACzD,gDAAmE;AACnE,6CAA4D;AAC5D,8CAAiE;AACjE,sDAAyF;AACzF,kDAA4E;AAI5E,KAAa,UAAU;KACnB,oBAAoB,MAAa,EAAU,WAAgC,EAAU,QAAsB,EAAU,MAAoB,EAAU,OAAyB,EAAU,aAA4B;SAA9L,WAAM,GAAN,MAAM,CAAO;SAAU,gBAAW,GAAX,WAAW,CAAqB;SAAU,aAAQ,GAAR,QAAQ,CAAc;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,YAAO,GAAP,OAAO,CAAkB;SAAU,kBAAa,GAAb,aAAa,CAAe;SAuBlN,oBAAe,GAAC,EAAE,CAAC;SACnB,gBAAW,GAAC,EAAE,CAAC;KAxBwM,CAAC;KACxN,gCAAW,GAAX;SACI,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC/C,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC/C,IAAI,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;SACpD,qCAAqC;SACrC,EAAE,EAAC,OAAO,CAAC,EAAC;aACR,IAAI,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aAC5G,IAAI,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC9C,IAAI,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;aAC7B,IAAI,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;aAC7B,IAAI,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;aACjC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;aAC1C,KAAK,GAAG,KAAK,IAAI,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC;aACnC,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK,EAAE,KAAK,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SACnE,CAAC;SACD,IAAI,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;SACnD,EAAE,EAAC,CAAC,UAAU,CAAC,EAAC;aACb,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;SACnC,CAAC;SAAA,IAAI,EAAC;aACF,MAAM,CAAC,IAAI,CAAC;SAChB,CAAC;KACL,CAAC;KAGD,gCAAW,GAAX;SAAA,iBA+BC;SA9BG,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAC,EAAE,CAAC;SAC3B,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAC,EAAE,CAAC;SAC3B,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAClC,cAAI;aACA,KAAI,CAAC,eAAe,GAAC,CAAC,EAAE,CAAC,CAAC;aAC1B,KAAI,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAC1C,CAAC,CACJ,CAAC;SACF,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;SACtC,YAAY,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;SACrC,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;SACpC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;SAC9C,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;SACxC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;SAC1C,YAAY,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACvC,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SACjC,IAAI,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC9C,EAAE,EAAC,MAAM,CAAC,EAAC;aACP,IAAI,aAAa,GAAG,MAAM,CAAC;aAC3B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,EAAC,WAAW,EAAE,EAAC,KAAK,EAAE,aAAa,EAAC,EAAC,CAAC,CAAC;SAC3E,CAAC;SAAA,IAAI,EAAC;aACF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;SACpC,CAAC;SACD,UAAU,CAAC;aACP,QAAQ,CAAC,MAAM,EAAE,CAAC;SACtB,CAAC,EAAE,EAAE,CAAC,CAAC;KACX,CAAC;KACL,iBAAC;AAAD,EAAC;AA1DY,WAAU;KADtB,iBAAU,EAAE;sCAEkB,eAAM,EAAwB,wCAAkB,EAAoB,4BAAY,EAAkB,yBAAY,EAAmB,8BAAgB,EAAyB,+BAAa;IADzM,UAAU,CA0DtB;AA1DY,iCAAU;;;;;;;;;;;;;;;;;ACXvB,uCAA2C;AAC3C,uCAAwE;AAExE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAIzD,KAAa,YAAY;KACrB,sBAAoB,KAAW,EAAU,MAAoB,EAAU,UAAuB;SAA1E,UAAK,GAAL,KAAK,CAAM;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,eAAU,GAAV,UAAU,CAAa;SAE9F,aAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,0CAA0C,CAAC;SACzE,mBAAc,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,2CAA2C,CAAC;KAHkB,CAAC;KAKnG,+BAAQ,GAAR,UAAS,OAAW,EAAE,QAAe;SAAf,wCAAe;SACjC,IAAI,QAAQ,GAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;SAC5C,IAAI,GAAO,CAAC;SACZ,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;aACd,KAAK,OAAO;iBACR,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC;iBACpB,KAAK,CAAC;aACV,KAAK,aAAa;iBACd,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC;iBAC1B,KAAK,CAAC;aACV;iBACI,KAAK,CAAC;SACd,CAAC;SACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;KACtD,CAAC;KACL,mBAAC;AAAD,EAAC;AArBY,aAAY;KADxB,iBAAU,EAAE;sCAEkB,WAAI,EAAkB,yBAAY,EAAsB,yBAAW;IADrF,YAAY,CAqBxB;AArBY,qCAAY;;;;;;;;;;;;;;;;;ACTzB,uCAA0C;AAC1C,gDAAsE;AAMtE,KAAa,eAAe;KAC1B,yBAAoB,QAAsB;SAAtB,aAAQ,GAAR,QAAQ,CAAc;SAC1C,gBAAW,GAAK,EAAE,CAAC;KADyB,CAAC;KAE7C,kCAAQ,GAAR;SAEE,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;SAC7B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;KAC/C,CAAC;KACH,sBAAC;AAAD,EAAC;AARY,gBAAe;KAJ3B,gBAAS,CAAC;SACT,QAAQ,EAAE,WAAW;SACrB,WAAW,EAAE,mDAAmD;MACjE,CAAC;sCAE8B,4BAAY;IAD/B,eAAe,CAQ3B;AARY,2CAAe;;;;;;;;;;;;;;;;;ACP5B,uCAA0C;AAC1C,yCAAyD;AACzD,wCAA+E;AAE/E,0BAA+B;AAC/B,sDAAuE;AACvE,gDAAmE;AACnE,6CAA4D;AAC5D,8CAAiE;AACjE,kDAA4E;AAC5E,8CAA8D;AAC9D,sDAAyF;AACzF,gDAA4E;AAU5E,KAAa,cAAc;KAGzB,wBAAoB,GAAgB,EAAU,MAAc,EAAU,GAAmB,EAAU,KAAiB,EAAU,QAAsB,EAAU,MAAoB,EAAU,OAAyB,EAAU,aAA4B,EAAU,UAAuB,EAAU,WAA+B,EAAU,GAAiB;SAA5U,QAAG,GAAH,GAAG,CAAa;SAAU,WAAM,GAAN,MAAM,CAAQ;SAAU,QAAG,GAAH,GAAG,CAAgB;SAAU,UAAK,GAAL,KAAK,CAAY;SAAU,aAAQ,GAAR,QAAQ,CAAc;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,YAAO,GAAP,OAAO,CAAkB;SAAU,kBAAa,GAAb,aAAa,CAAe;SAAU,eAAU,GAAV,UAAU,CAAa;SAAU,gBAAW,GAAX,WAAW,CAAoB;SAAU,QAAG,GAAH,GAAG,CAAc;SAEhW,eAAU,GAAQ,EAAE,CAAC;SACrB,kBAAa,GAAQ,EAAE,CAAC;SACxB,UAAK,GAAQ,EAAE,CAAC;SA4IhB,gBAAW,GAAQ,CAAC,CAAC;SACrB,cAAS,GAAQ,EAAE,CAAC;SAEpB,oBAAe,GAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,oCAAoC,CAAC;SACnF,cAAS,GAAO,EAAE,CAAC;KApJiV,CAAC;KAKrW,qCAAY,GAAZ,UAAa,SAAS,EAAE,SAAS,EAAE,QAAQ;SAA3C,iBA2DC;SA1DC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;aACd,IAAI,QAAQ,GAAG,SAAS,CAAC;aACzB,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;SAC7C,CAAC;SACD,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,2BAA2B,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAC;SAC7H,IAAI,QAAQ,GAAG,EAAE,CAAC;SAClB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,UAAC,GAAG;aACvD,KAAI,CAAC,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;aAC1C,KAAI,CAAC,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;aAC7B,EAAE,CAAC,CAAC,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;iBAC7B,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aACrE,CAAC;aAED,EAAE,CAAC,CAAC,KAAI,CAAC,UAAU,CAAC,CAAC,CAAC;iBACpB,CAAC,CAAC,4BAA4B,CAAC,CAAC,MAAM,EAAE,CAAC;iBACzC,EAAE,CAAC,CAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC;qBACvC,YAAY,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;qBAC3C,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;qBACxC,EAAE,CAAC,CAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC,CAAC;yBAChD,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,uDAAuD,CAAC,CAAC;qBACtF,CAAC;qBAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC;yBACtD,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,4DAA4D,CAAC,CAAC;qBAC3F,CAAC;qBAAC,IAAI,CAAC,CAAC;yBACN,IAAI,WAAW,GAAG,GAAG,CAAC;yBACtB,IAAI,KAAK,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;yBAC5C,IAAI,MAAM,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;yBAC7C,IAAI,SAAS,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;yBACpD,IAAI,gBAAgB,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;yBAC9D,IAAI,KAAK,GAAG,EAAE,CAAC;yBACf,EAAE,CAAC,CAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;6BACpC,KAAK,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;yBAC1C,CAAC;yBACD,IAAI,QAAQ,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;yBACjD,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;6BACb,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;yBAClD,CAAC;yBACD,IAAI,QAAQ,GAAG,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,MAAM,GAAG,GAAG,GAAG,SAAS,GAAG,GAAG,GAAG,gBAAgB,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;yBACtJ,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;yBAC5C,IAAI,KAAK,GAAG,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;yBAC3G,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;yBAC1C,IAAI,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;yBACnD,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;6BAChB,KAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,SAAS,EAAE,KAAK,EAAC,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;yBAC1F,CAAC;yBAAC,IAAI,CAAC,CAAC;6BACN,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;yBACjC,CAAC;qBACH,CAAC;iBACH,CAAC;iBAAC,IAAI,CAAC,CAAC;qBACN,EAAE,CAAC,CAAC,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;yBACrC,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;qBAC7E,CAAC;qBAAC,IAAI,CAAC,CAAC;yBACN,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,wDAAwD,CAAC,CAAC;qBACvF,CAAC;iBACH,CAAC;iBACD,CAAC,CAAC,iCAAiC,CAAC,CAAC,OAAO,EAAE,CAAC;aACjD,CAAC;SACH,CAAC,CACA,CAAC;KACJ,CAAC;KAED,uCAAc,GAAd,UAAe,SAAS;SACtB,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,oCAAoC,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;SAC7G,IAAI,QAAQ,GAAG,EAAE,CAAC;SAClB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,SAAS,CAClD,cAAI;aACF,IAAI,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC;aAC9B,EAAE,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC;iBACrB,CAAC,CAAC,mCAAmC,CAAC,CAAC,MAAM,CAAC,6DAA6D,CAAC,CAAC;aAC/G,CAAC;aAAC,IAAI,CAAC,EAAE,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,CAAC;iBAC5B,CAAC,CAAC,mCAAmC,CAAC,CAAC,MAAM,CAAC,4CAA4C,CAAC,CAAC;aAC9F,CAAC;aACD,CAAC,CAAC,iCAAiC,CAAC,CAAC,OAAO,EAAE,CAAC;SACjD,CAAC,CACF,CAAC;KACJ,CAAC;KAKD,wCAAe,GAAf,UAAgB,SAAS;SACvB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;SACxB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;SACxB,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAC;SAC5B,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;SACzD,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;SAC5D,IAAI,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;SACrD,IAAI,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;SACvD,EAAE,CAAC,CAAC,UAAU,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC;aAC5C,CAAC,CAAC,iDAAiD,CAAC,CAAC,MAAM,EAAE,CAAC;aAC9D,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;iBACnB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;aAC5E,CAAC;aAAC,IAAI,CAAC,CAAC;iBACN,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,yDAAyD,CAAC,CAAC;iBACtF,CAAC,CAAC,iCAAiC,CAAC,CAAC,OAAO,EAAE,CAAC;aACjD,CAAC;SACH,CAAC;KACH,CAAC;KAGD,yCAAgB,GAAhB,UAAiB,cAAc;SAC7B,CAAC,CAAC,mCAAmC,CAAC,CAAC,KAAK,EAAE,CAAC;SAC/C,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAC;SAC5B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;SACrB,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;SAC3D,IAAI,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;SAC1D,EAAE,CAAC,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC;aACvB,CAAC,CAAC,kDAAkD,CAAC,CAAC,MAAM,EAAE,CAAC;aAC/D,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACvC,CAAC;KACH,CAAC;KAED,sCAAa,GAAb;SACE,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;SAC7B,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;SAC7B,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,EAAE,CAAC;SAC9B,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,EAAE,CAAC;SACzB,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,EAAE,CAAC;SACzB,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;SAC7B,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,EAAE,CAAC;SAC1B,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAG,EAAE,CAAC;SAC/B,IAAI,CAAC,QAAQ,CAAC,aAAa,GAAG,EAAE,CAAC;SACjC,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;SACtC,YAAY,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;SACrC,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;SACpC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;SAC9C,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;SACxC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;SAC1C,YAAY,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACvC,IAAI,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;KAChD,CAAC;KAYD,wCAAe,GAAf,UAAgB,KAAK;SACnB,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;KAC1C,CAAC;KACD,wCAAe,GAAf;SAAA,iBAQC;SAPC,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,cAAI;aAC1D,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAC,IAAI,CAAC,CAAC;aACzC,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,SAAU,CAAC,CAAC,CAAC;iBACjC,EAAE,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,gBAAgB,IAAI,EAAE,CAAC;qBAAC,KAAI,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC;iBACjG,EAAE,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;qBAAC,KAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;aACrE,CAAC;SACH,CAAC,CAAC;KACJ,CAAC;KACD,0CAAiB,GAAjB,UAAkB,IAAI;SACpB,IAAI,QAAQ,GAAG;aACb,MAAM,EAAE,IAAI;aACZ,QAAQ,EAAE,CAAC;UACZ;SACD,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,CACrD,cAAI;SACJ,CAAC,EACD,eAAK;SAEL,CAAC,EACD;SAEA,CAAC,CACF;KACH,CAAC;KAID,wCAAe,GAAf;SAAA,iBAkBC;SAjBC,IAAI,QAAQ,GAAG;aACb,gBAAgB,EAAE,IAAI,CAAC,SAAS;UACjC;SACD,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,CAC3D,cAAI;aACF,KAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;aAClD,EAAE,CAAC,CAAC,KAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,CAAC,CAAC;iBACrC,YAAY,CAAC,OAAO,CAAC,cAAc,EAAE,KAAI,CAAC,mBAAmB,CAAC;aAChE,CAAC;SACH,CAAC,EACD,eAAK;SAEL,CAAC,EACD;SAEA,CAAC,CACF;KACH,CAAC;KAID,0CAAiB,GAAjB;SAAA,iBAiBC;SAhBC,IAAI,QAAQ,GAAG;aACb,gBAAgB,EAAE,IAAI,CAAC,SAAS;UACjC;SACD,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,CACzD,cAAI;aACF,KAAI,CAAC,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;aAC/C,2CAA2C;aAC3C,YAAY,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAI,CAAC,cAAc,CAAC,CAAC;SAC9D,CAAC,EACD,eAAK;SAEL,CAAC,EACD;SAEA,CAAC,CACF;KACH,CAAC;KAGD,iCAAQ,GAAR;SAAA,iBA2CC;SA1CC,IAAI,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI;SAC9B,IAAI,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACzB,IAAI,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC;SACnC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC;SACxB,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAGhD,qCAAqC;SACrC,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SAEjC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,SAAS,CAChD,cAAI;aAEF,KAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;aAC/B,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;aAClC,KAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;aAC3B,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;aACzB,EAAE,CAAC,CAAC,OAAO,KAAI,CAAC,IAAI,IAAI,WAAW,CAAC,CAAC,CAAC;iBACpC,KAAI,CAAC,iBAAiB,CAAC,KAAI,CAAC,IAAI,CAAC;aACnC,CAAC;aACD,KAAI,CAAC,eAAe,EAAE,CAAC;aACvB,KAAI,CAAC,eAAe,CAAC,KAAI,CAAC,SAAS,CAAC,CAAC;aACrC,KAAI,CAAC,eAAe,EAAE,CAAC;aACvB,KAAI,CAAC,iBAAiB,EAAE,CAAC;SAC3B,CAAC,CACF,CAAC;SAEF,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;aACnB,IAAI,CAAC,aAAa,EAAE,CAAC;SACvB,CAAC;SACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;aAC9B,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAU,CAAC,QAAQ,EAAE,kBAAU,CAAC,OAAO,CAAC,iDAAiD,CAAC,CAAC,CAAC;aAC9G,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAU,CAAC,QAAQ,CAAC,CAAC;UAC3C,CAAC,CAAC;SACH,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;aACnC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,kBAAU,CAAC,QAAQ,EAAE,kBAAU,CAAC,OAAO,CAAC,iDAAiD,CAAC,CAAC,CAAC;UAC/G,CAAC,CAAC;SAEH,UAAU,CAAC;aACT,CAAC,CAAC,+BAA+B,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SAClD,CAAC,EAAE,GAAG,CAAC,CAAC;KACV,CAAC;KACH,qBAAC;AAAD,EAAC;AA/QY,eAAc;KAL1B,gBAAS,CAAC;SACT,QAAQ,EAAE,kBAAkB;SAC5B,WAAW,EAAE,0CAA0C;MACxD,CAAC;sCAKyB,mBAAW,EAAkB,eAAM,EAAe,uBAAc,EAAiB,gCAAU,EAAoB,4BAAY,EAAkB,yBAAY,EAAmB,8BAAgB,EAAyB,+BAAa,EAAsB,yBAAW,EAAuB,wCAAkB,EAAe,4BAAY;IAHrV,cAAc,CA+Q1B;AA/QY,yCAAc;;;;;;;;;;;;;;;;;ACtB3B,uCAA2C;AAC3C,uCAAwE;AAExE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAGzD,KAAa,YAAY;KAUrB,sBAAoB,KAAW,EAAU,UAAuB,EAAU,MAAoB;SAA1E,UAAK,GAAL,KAAK,CAAM;SAAU,eAAU,GAAV,UAAU,CAAa;SAAU,WAAM,GAAN,MAAM,CAAc;SAP9F,iBAAY,GAAG,EAAE,CAAC;SAClB,qBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,uCAAuC,CAAC;SAChF,2BAAsB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,+CAA+C,CAAC;SAE9F,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,oDAAoD,CAAC;SAC9F,eAAU,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,2CAA2C,CAAC;KAEoB,CAAC;KAEnG,mCAAY,GAAZ,UAAa,WAAW,EAAE,QAAQ;SAC9B,IAAI,GAAG,EAAE,QAAQ,CAAC;SAClB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;SACpC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;aAClB,KAAK,iBAAiB;iBAClB,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC;iBACxB,KAAK,CAAC;aACV,KAAK,YAAY;iBACb,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC;iBAC5B,KAAK,CAAC;aACV,KAAK,kBAAkB;iBACnB,GAAG,GAAG,IAAI,CAAC,sBAAsB,CAAC;iBAClC,KAAK,CAAC;aACV,KAAK,gBAAgB;iBACjB,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aAEV,QAAQ;SACZ,CAAC;SACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;KACtD,CAAC;KAED,2CAAoB,GAApB,UAAqB,UAAe;SAChC,IAAI,OAAO,GAAG,IAAI,cAAO,EAAE,CAAC;SAC5B,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,iCAAiC,CAAC,CAAC;SAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;SAC7C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,aAAG,IAAI,UAAG,CAAC,IAAI,EAAE,EAAV,CAAU,CAAC,CAAC;KAC1G,CAAC;KACL,mBAAC;AAAD,EAAC;AAxCY,aAAY;KADxB,iBAAU,EAAE;sCAWkB,WAAI,EAAsB,yBAAW,EAAkB,yBAAY;IAVrF,YAAY,CAwCxB;AAxCY,qCAAY;;;;;;;;;;;;;;;;;;;;;;ACRzB,uCAAgD;AAChD,yCAAyD;AACzD,wCAA+E;AAE/E,0BAA+B;AAC/B,sDAAuE;AACvE,gDAAmE;AACnE,6CAA4D;AAC5D,kDAAqE;AACrE,8CAAiE;AACjE,kDAA4E;AAC5E,8CAA8D;AAC9D,sDAAyF;AAEzF,gDAA4E;AAQ5E,KAAa,oBAAoB;KAAS,wCAAc;KACpD,8BAAa,GAAgB,EAAG,MAAa,EAAG,GAAkB,EAAG,KAAiB,EAAG,QAAsB,EAAE,MAAoB,EAAE,OAAyB,EAAE,aAA4B,EAAE,UAAuB,EAAE,WAA+B,EAAE,GAAiB;SAA3Q,YACQ,kBAAO,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAC,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAC,GAAG,CAAE,SAC5G;SACF,UAAI,GAAG,KAAI,CAAC;;KADX,CAAC;KAEN,2BAAC;AAAD,EAAC,CALyC,gCAAc,GAKvD;AALY,qBAAoB;KALhC,gBAAS,CAAC;SACT,QAAQ,EAAE,kBAAkB;SAC5B,WAAW,EAAE,gDAAgD;MAC9D,CAAC;sCAGoB,mBAAW,EAAU,eAAM,EAAO,uBAAc,EAAU,gCAAU,EAAa,4BAAY,EAAU,yBAAY,EAAW,8BAAgB,EAAiB,+BAAa,EAAc,yBAAW,EAAe,wCAAkB,EAAO,4BAAY;IADlQ,oBAAoB,CAKhC;AALY,qDAAoB;;;;;;;;;;;;;;;;;ACtBjC,uCAA0C;AAC1C,yCAAyD;AACzD,wCAA+E;AAE/E,0BAA+B;AAC/B,6CAA4D;AAC5D,sDAAyF;AACzF,8CAAiE;AACjE,kDAAqE;AACrE,sDAAuE;AACvE,gDAAmE;AACnE,kDAA4E;AAC5E,8CAA8D;AAW9D,KAAa,gBAAgB;KAC3B,0BAAoB,GAAgB,EAAU,MAAc,EAAU,GAAmB,EAAU,KAAiB,EAAU,QAAsB,EAAU,MAAoB,EAAU,WAA+B,EAAU,OAAyB,EAAU,aAA4B,EAAU,UAAuB;SAAjT,QAAG,GAAH,GAAG,CAAa;SAAU,WAAM,GAAN,MAAM,CAAQ;SAAU,QAAG,GAAH,GAAG,CAAgB;SAAU,UAAK,GAAL,KAAK,CAAY;SAAU,aAAQ,GAAR,QAAQ,CAAc;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,gBAAW,GAAX,WAAW,CAAoB;SAAU,YAAO,GAAP,OAAO,CAAkB;SAAU,kBAAa,GAAb,aAAa,CAAe;SAAU,eAAU,GAAV,UAAU,CAAa;SAIrU,cAAS,GAAG,IAAI,gCAAc,CAAE,IAAI,CAAC,GAAG,EAAC,IAAI,CAAC,MAAM,EAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAC,IAAI,CAAC,GAAG,CAAE,CAAC;SAErL,kBAAa,GAAK,EAAE,CAAC;SACrB,eAAU,GAAK,EAAE,CAAC;SAmClB,iBAAY,GAAK,CAAC,CAAC;SAiHnB,cAAS,GAAK,EAAE,CAAC;SACjB,UAAK,GAAK,EAAE,CAAC;SACb,cAAS,GAAK,EAAE,CAAC;SACjB,UAAK,GAAK,EAAE,CAAC;SAGb,oBAAe,GAAC,EAAE,CAAC;SAEnB,aAAQ,GAAK,EAAE,CAAC;KAnKwT,CAAC;KAQzU,uCAAY,GAAZ,UAAa,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB;SAA/D,iBAgCC;SA/BC,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,2BAA2B,GAAC,IAAI,CAAC,SAAS,GAAC,aAAa,GAAC,SAAS,GAAC,YAAY,GAAC,QAAQ,CAAC;SACtH,IAAI,QAAQ,GAAG,EAAE,CAAC;SAClB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,UAAC,GAAG;aACvD,KAAI,CAAC,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;aAC1C,KAAI,CAAC,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;aAC7B,EAAE,EAAC,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAC;iBAC3B,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aACrE,CAAC;aACD,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,EAAC;iBAClB,CAAC,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAC;iBAC1B,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,IAAE,CAAC,CAAC,CAAC,CAAC;qBACpC,CAAC,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,uCAAuC,CAAC,CAAC;iBACtE,CAAC;iBAAC,IAAI,CAAC,CAAC;qBACN,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;yBACnC,IAAI,WAAW,GAAC,GAAG,CAAC;yBACpB,IAAI,KAAK,GAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;yBAC1C,IAAI,MAAM,GAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;yBAC3C,IAAI,SAAS,GAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;yBAClD,IAAI,gBAAgB,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;yBAC9D,8CAA8C;yBAC9C,IAAI,QAAQ,GAAI,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,GAAC,GAAG,GAAC,KAAK,GAAC,GAAG,GAAC,MAAM,GAAC,GAAG,GAAC,SAAS,GAAC,GAAG,GAAC,gBAAgB,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;yBACvI,YAAY,CAAC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;yBAC5C,IAAI,KAAK,GAAI,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;yBAC5G,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;qBAC5C,CAAC;qBACD,EAAE,EAAC,KAAI,CAAC,KAAK,CAAC,EAAC;yBACb,KAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAI,CAAC,SAAS,EAAE,KAAI,CAAC,KAAK,EAAC,KAAI,CAAC,KAAK,EAAE,KAAI,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;qBACpI,CAAC;iBACH,CAAC;aACH,CAAC;SACL,CAAC,CAAC,CAAC;KACL,CAAC;KAGD,2CAAgB,GAAhB,UAAiB,KAAK,EAAE,KAAK,EAAE,SAAS;SAAxC,iBAyDC;SAxDC,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,6CAA6C,GAAC,KAAK,GAAC,SAAS,GAAC,KAAK,GAAC,aAAa,GAAC,SAAS,CAAC;SACzH,IAAI,QAAQ,GAAG,EAAE,CAAC;SAClB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,UAAC,GAAG;aACvD,KAAI,CAAC,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;aAC1C,KAAI,CAAC,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;aAC7B,EAAE,EAAC,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAC;iBAC3B,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,KAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aACrE,CAAC;aACD,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,EAAC;iBAClB,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAC;qBACvB,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,IAAE,CAAC,CAAC,EAAC;yBACvC,KAAI,CAAC,YAAY,GAAC,CAAC,CAAC;qBACtB,CAAC;qBAAA,IAAI,CAAC,EAAE,EAAC,KAAI,CAAC,YAAY,IAAE,CAAC,CAAC,EAAC;yBAC7B,IAAI,SAAS,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;yBACpD,IAAI,QAAQ,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;yBACtD,IAAI,WAAW,GAAU,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;yBAC/D,IAAI,QAAQ,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;yBACjD,KAAI,CAAC,KAAK,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;yBAC7C,IAAI,UAAU,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;yBACtD,IAAI,UAAU,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC;yBAC9D,IAAI,gBAAgB,GAAE,EAAE,CAAC;yBACzB,EAAE,EAAC,WAAW,CAAC,WAAW,EAAE,IAAG,kBAAkB,CAAC,EAAC;6BACjD,WAAW,GAAC,SAAS,CAAC;6BACtB,gBAAgB,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC;yBACpE,CAAC;yBACD,EAAE,EAAC,WAAW,CAAC,WAAW,EAAE,IAAG,iBAAiB,CAAC,EAAC;6BAChD,WAAW,GAAC,gBAAgB,CAAC;yBAC/B,CAAC;yBACD,EAAE,EAAC,WAAW,CAAC,WAAW,EAAE,IAAG,gBAAgB,CAAC,EAAC;6BAC/C,WAAW,GAAC,eAAe,CAAC;yBAC9B,CAAC;yBACD,IAAI,SAAS,GAAE,EAAE,CAAC;yBAClB,IAAI,IAAI,GAAG,EAAE,CAAC;yBACd,GAAG,EAAC,IAAI,CAAC,GAAC,CAAC,EAAC,CAAC,GAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAC,CAAC,EAAE,EAAE,CAAC;6BAChD,EAAE,EAAC,CAAC,GAAC,CAAC,CAAC,EAAC;iCACN,IAAI,GAAC,GAAG,CAAC;6BACX,CAAC;6BACD,SAAS,IAAI,IAAI,GAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;yBACzD,CAAC;yBACD,EAAE,EAAC,QAAQ,CAAC,EAAC;6BACX,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;yBAClD,CAAC;yBACD,EAAE,EAAC,UAAU,CAAC,EAAC;6BACb,IAAI,WAAW,GAAG,UAAU,GAAC,GAAG,GAAC,UAAU,CAAC;6BAC5C,YAAY,CAAC,OAAO,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;yBACpD,CAAC;yBACD,IAAI,OAAO,GAAI,KAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,GAAC,GAAG,GAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,KAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;yBACvH,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;yBAC1C,KAAI,CAAC,YAAY,CAAC,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;qBACxE,CAAC;iBACH,CAAC;iBAAA,IAAI,EAAC;qBACJ,KAAI,CAAC,YAAY,GAAC,CAAC,CAAC;qBACpB,KAAI,CAAC,QAAQ,GAAC,8BAA8B,CAAC;iBAC/C,CAAC;aACH,CAAC;SACL,CAAC,CAAC,CAAC;KACL,CAAC;KAED,wCAAa,GAAb;SACE,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAC,EAAE,CAAC;SAC3B,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAC,EAAE,CAAC;SAC3B,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAC,EAAE,CAAC;SAC5B,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAC,EAAE,CAAC;SACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAC,EAAE,CAAC;SACvB,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAC,EAAE,CAAC;SAC3B,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAC,EAAE,CAAC;SACxB,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAC,EAAE,CAAC;SAC7B,IAAI,CAAC,QAAQ,CAAC,aAAa,GAAC,EAAE,CAAC;SAC/B,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACnC,YAAY,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;SACtC,YAAY,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;SACrC,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;SACpC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;SAC9C,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;SACxC,YAAY,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;SACzC,YAAY,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;SAC1C,YAAY,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SACvC,IAAI,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;KAChD,CAAC;KAED,wCAAa,GAAb,UAAc,KAAK;SACf,IAAI,QAAQ,GAAG,IAAI,MAAM,CAAC,iSAAiS,CAAC,CAAC;SAC7T,IAAI,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACjC,EAAE,EAAC,KAAK,CAAC,CAAC,CAAC;aACL,MAAM,CAAC,IAAI,CAAC;SAClB,CAAC;SAAC,IAAI,CAAC,CAAC;aACJ,MAAM,CAAC,KAAK,CAAC;SACjB,CAAC;KACL,CAAC;KAED,2CAAgB,GAAhB,UAAiB,MAAM,EAAE,KAAK;SAA9B,iBAgBC;SAfC,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,+CAA+C,GAAC,MAAM,GAAC,SAAS,GAAC,KAAK,CAAC;SACpG,IAAI,QAAQ,GAAG,EAAE,CAAC;SAClB,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,UAAC,GAAG;aACvD,KAAI,CAAC,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;aAC7B,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,eAAe,IAAE,CAAC,CAAC,EAAC;iBAC5C,IAAI,KAAK,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC;iBAClD,IAAI,KAAK,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC;iBAChD,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,eAAe,CAAC,EAAE,EAAC,WAAW,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,EAAC,CAAC,CAAC;aAEvF,CAAC;aACD,EAAE,EAAC,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,eAAe,IAAE,CAAC,CAAC,EAAC;iBAC5C,IAAI,KAAK,GAAG,KAAI,CAAC,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC;iBAChD,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,EAAC,WAAW,EAAE,EAAC,KAAK,EAAE,KAAK,EAAC,EAAC,CAAC,CAAC;aACjE,CAAC;SACH,CAAC,CAAC,CAAC;KACL,CAAC;KAcD,mCAAQ,GAAR;SAAA,iBA0DC;SAzDC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAChD,IAAI,CAAC,aAAa,EAAE,CAAC;SACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,SAAS,CAChD,cAAI;aACF,KAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;aAC/B,KAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;aACnC,KAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;aAC3B,KAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;aAC3B,KAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;aACjC,KAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC7B,KAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB,KAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB,YAAY,CAAC,OAAO,CAAC,OAAO,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;SAC9C,CAAC,CACF,CAAC;SACF,EAAE,EAAC,IAAI,CAAC,MAAM,IAAE,CAAC,CAAC,EAAC;aACjB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;SAC1C,CAAC;SACD,EAAE,EAAC,IAAI,CAAC,KAAK,CAAC,EAAC;aACb,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;aACpC,IAAI,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aACrD,EAAE,EAAC,WAAW,IAAE,KAAK,CAAC,CAAC,CAAC;iBACtB,IAAI,CAAC,YAAY,GAAC,CAAC,CAAC;iBACpB,IAAI,CAAC,QAAQ,GAAC,6BAA6B,CAAC;aAC9C,CAAC;aAAA,IAAI,EAAC;iBACJ,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;aACpE,CAAC;SAEH,CAAC;SAAC,IAAI,CAAC,EAAE,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;aACrB,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;aACpC,IAAI,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aACrD,EAAE,EAAC,WAAW,IAAE,KAAK,CAAC,CAAC,CAAC;iBACtB,IAAI,CAAC,YAAY,GAAC,CAAC,CAAC;iBACpB,IAAI,CAAC,QAAQ,GAAC,6BAA6B,CAAC;aAC9C,CAAC;aAAA,IAAI,EAAC;iBACJ,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;iBAC1G,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,SAAS,CACzC,cAAI;qBACF,EAAE,EAAC,IAAI,CAAC,WAAW,IAAE,CAAC,IAAI,IAAI,CAAC,YAAY,IAAE,CAAC,CAAC,EAAC;yBAC9C,KAAI,CAAC,YAAY,GAAC,CAAC,CAAC;yBACpB,MAAM,CAAC,KAAK,CAAC;qBACf,CAAC;iBACH,CAAC,CACF,CAAC;aACJ,CAAC;SACH,CAAC;SAAC,IAAI,CAAC,EAAE,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;aACxB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC7E,CAAC;SACD,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,SAAS,CACvC,cAAI;aACF,IAAI,UAAU,GAAG,CAAC,CAAC;aACnB,EAAE,EAAC,UAAU,IAAE,CAAC,CAAC,EAAC;iBAChB,KAAI,CAAC,YAAY,GAAC,CAAC,CAAC;aACtB,CAAC;SACH,CAAC,CACF,CAAC;KACJ,CAAC;KAEH,uBAAC;AAAD,EAAC;AApOY,iBAAgB;KAL5B,gBAAS,CAAC;SACT,QAAQ,EAAE,oBAAoB;SAC9B,WAAW,EAAE,kDAAkD;MAChE,CAAC;sCAGyB,mBAAW,EAAkB,eAAM,EAAe,uBAAc,EAAiB,gCAAU,EAAoB,4BAAY,EAAkB,yBAAY,EAAuB,wCAAkB,EAAmB,8BAAgB,EAAyB,+BAAa,EAAsB,yBAAW;IAD1T,gBAAgB,CAoO5B;AApOY,6CAAgB;;;;;;;;;;;;;;;;;;;;;;ACvB7B,uCAA0C;AAC1C,yCAAyD;AAEzD,0BAA+B;AAC/B,6CAA4D;AAC5D,wCAA+E;AAC/E,oDAA+E;AAC/E,sDAAyF;AACzF,8CAAiE;AAEjE,sDAAuE;AACvE,gDAAmE;AACnE,kDAA4E;AAC5E,8CAA8D;AAS9D,KAAa,sBAAsB;KAAS,0CAAgB;KACxD,gCAAa,GAAgB,EAAE,MAAc,EAAE,GAAmB,EAAE,KAAiB,EAAE,QAAsB,EAAE,MAAoB,EAAE,WAA+B,EAAE,OAAyB,EAAE,aAA4B,EAAE,UAAuB;gBAC9O,kBAAM,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,CAAC;KACxG,CAAC;KACN,6BAAC;AAAD,EAAC,CAJ2C,oCAAgB,GAI3D;AAJY,uBAAsB;KALlC,gBAAS,CAAC;SACT,QAAQ,EAAE,oBAAoB;SAC9B,WAAW,EAAE,wDAAwD;MACtE,CAAC;sCAGoB,mBAAW,EAAU,eAAM,EAAO,uBAAc,EAAS,gCAAU,EAAY,4BAAY,EAAU,yBAAY,EAAe,wCAAkB,EAAW,8BAAgB,EAAiB,+BAAa,EAAc,yBAAW;IAD7O,sBAAsB,CAIlC;AAJY,yDAAsB;;;;;;;;;;;;;;;;;ACtBnC,uCAA0D;AAC1D,yCAAyD;AACzD,6CAA4D;AAC5D,8CAAiE;AACjE,sDAAyF;AAKzF,KAAa,WAAW;KACpB,qBAAoB,MAAc,EAAU,MAAoB,EAAU,OAAyB,EAAU,WAA+B;SAAxH,WAAM,GAAN,MAAM,CAAQ;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,YAAO,GAAP,OAAO,CAAkB;SAAU,gBAAW,GAAX,WAAW,CAAoB;SAE5I,gBAAW,GAAK,sFAAsF,CAAC;SACvG,wBAAmB,GAAK,gCAAgC,CAAC;SACxD,sBAAiB,GAAK,mBAAmB,CAAC;SAC1C,2BAAsB,GAAC,mBAAmB,CAAC;KALkG,CAAC;KAM/I,kCAAY,GAAZ;SAAA,iBAgCC;SA/BG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,SAAS,CAClC,cAAI;aACA,EAAE,EAAC,IAAI,CAAC,qBAAqB,CAAC,EAAC;iBAC3B,EAAE,EAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAC;qBACtC,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;qBACzD,EAAE,EAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,iBAAiB,IAAG,EAAE,CAAC,CACxD,CAAC;yBACK,KAAI,CAAC,sBAAsB,GAAG,mBAAmB,CAAC;qBACxD,CAAC;qBACD,IAAI,CACJ,CAAC;yBACE,KAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;qBACjF,CAAC;iBACL,CAAC;iBACD,EAAE,EAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAC;qBACtC,KAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;qBACjE,EAAE,EAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,iBAAiB,IAAG,EAAE,CAAC,CACxD,CAAC;yBACK,KAAI,CAAC,sBAAsB,GAAG,mBAAmB,CAAC;qBACxD,CAAC;qBACD,IAAI,CACJ,CAAC;yBACE,KAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;qBACjF,CAAC;iBACL,CAAC;aACL,CAAC;aAAA,IAAI,EAAC;iBACF,KAAI,CAAC,WAAW,CAAC;iBACjB,KAAI,CAAC,mBAAmB,CAAC;aAC7B,CAAC;SACL,CAAC,CACJ,CAAC;KACN,CAAC;KAEL,kBAAC;AAAD,EAAC;AAzCY,YAAW;KADvB,iBAAU,EAAE;sCAEmB,eAAM,EAAkB,yBAAY,EAAmB,8BAAgB,EAAuB,wCAAkB;IADnI,WAAW,CAyCvB;AAzCY,mCAAW;;;;;;;;;;;;;;ACTxB,uCAA0C;AAO1C,KAAa,cAAc;KAA3B;KAEA,CAAC;KAAD,qBAAC;AAAD,EAAC;AAFY,eAAc;KAL1B,gBAAS,CAAC;SACT,QAAQ,EAAE,UAAU;SACpB,WAAW,EAAE,8CAA8C;MAC5D,CAAC;IAEW,cAAc,CAE1B;AAFY,yCAAc;;;;;;;;;;;;;;;;;ACP3B,uCAA6D;AAC7D,yCAAyC;AACzC,cAAa;AACb,yDAAkG;AAGlG,gDAAmE;AAInE,mDAAgF;AAUhF,KAAa,qBAAqB;KAGhC,+BAAqB,GAAyB,EAAU,QAAqB,EAAU,GAAmB,EAAS,MAAa,EAAS,OAAkB;SAAtI,QAAG,GAAH,GAAG,CAAsB;SAAU,aAAQ,GAAR,QAAQ,CAAa;SAAU,QAAG,GAAH,GAAG,CAAgB;SAAS,WAAM,GAAN,MAAM,CAAO;SAAS,YAAO,GAAP,OAAO,CAAW;SAG3J,2BAA2B;SAE3B,oBAAe,GAAO,EAAE,CAAC;SACzB,yBAAoB,GAAO,EAAE,CAAC;SAgC9B,0CAA0C;SAC1C,eAAU,GAAK,EAAE,CAAC;SAgBlB,eAAU,GAAW,KAAK,CAAC;KAvDqI,CAAC;KAOjK,+CAAe,GAAf;SAAA,iBA6BC;SA5BC,IAAI,IAAI,GAAG,IAAI,CAAC;SAChB,IAAI,QAAQ,GAAG;aACb,OAAO,EAAG,IAAI,CAAC,QAAQ,CAAC,KAAK;aAC7B,QAAQ,EAAG,IAAI,CAAC,QAAQ,CAAC,MAAM;aAC/B,YAAY,EAAG,EAAE;aACjB,mBAAmB,EAAG,GAAG;aACzB,YAAY,EAAG,IAAI,CAAC,QAAQ,CAAC,UAAU;aACvC,YAAY,EAAG,EAAE;aACjB,gBAAgB,EAAG,EAAE;UACtB,CAAC;SACF,EAAE,EAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAC;aACtB,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,UAAU,EAAC,QAAQ,CAAC,CAAC,SAAS,CAClD,cAAI;iBACA,KAAI,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC;iBACnC,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;iBACrD,KAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC;iBACxC,KAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,UAAS,EAAM,EAAC,CAAK;qBACrD,CAAC,CAAC,IAAI,CAAC,CAAE,GAAG,EAAE,CAAC,eAAe,GAAG,IAAI,GAAG,EAAE,CAAC,eAAe,GAAG,KAAK,CAAC;qBACnE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,UAAS,GAAO;yBACpC,GAAG,CAAC,eAAe,GAAG,KAAK,CAAC;yBAC5B,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,UAAS,OAAW;6BAC5C,OAAO,CAAC,eAAe,GAAG,KAAK,CAAC;yBAClC,CAAC,CAAC,CAAC;qBACL,CAAC,CAAC,CAAC;iBACL,CAAC,CAAC,CAAC;aACP,CAAC,CACF;SACH,CAAC;KACH,CAAC;KAID,wCAAQ,GAAR,UAAS,IAAQ,EAAC,CAAK;SACpB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;SACrD,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,UAAS,EAAM;aAC9C,EAAE,CAAC,eAAe,GAAG,KAAK,CAAC;SAC9B,CAAC,CAAC,CAAC;SACH,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,eAAe,GAAG,IAAI,CAAC;KACvD,CAAC;KAGD,yBAAyB;KACzB,6CAAa,GAAb,UAAc,GAAG;SACf,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;KAC1B,CAAC;KAID,kDAAkB,GAAlB,UAAmB,GAAO;SACxB,qCAAqC;SACrC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SACvB,EAAE,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;aACnB,UAAU,CAAC;iBACT,CAAC,CAAC,aAAa,CAAC,CAAC,gBAAgB,CAAC;qBAC9B,QAAQ,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE;kBAC5C,CAAC,CAAC;aACL,CAAC,EAAC,CAAC,CAAC,CAAC;SACP,CAAC;KACH,CAAC;KAID,4CAAY,GAAZ,UAAa,GAAO;SAClB,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;SACtD,EAAE,EAAE,MAAQ,CAAC,CAAC,CAAC;aACb,IAAI,CAAC,UAAU,GAAG,IAAI;SACxB,CAAC;SAAC,IAAI,CAAC,CAAC;aACN,EAAE,EAAE,GAAG,IAAI,IAAK,CAAC;iBAAC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;SAC5C,CAAC;KACH,CAAC;KAGD,wCAAQ,GAAR;SACE,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;SAC7B,IAAI,CAAC,eAAe,EAAE,CAAC;KACzB,CAAC;KAED,2CAAW,GAAX;SACE,EAAE,EAAE,IAAI,CAAC,OAAO,IAAI,EAAE,IAAI,OAAO,IAAI,CAAC,OAAO,IAAI,WAAY,CAAC;aAAC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;KAC1F,CAAC;KACH,4BAAC;AAAD,EAAC;AA1FU;KAAR,YAAK,EAAE;;uDAAgB;AADb,sBAAqB;KALjC,gBAAS,CAAC;SACT,QAAQ,EAAE,kBAAkB;SAC5B,WAAW,EAAE,+CAA+C;MAC7D,CAAC;sCAKyB,8CAAqB,EAAmB,4BAAY,EAAc,kCAAe,EAAgB,eAAM,EAAiB,iBAAU;IAHhJ,qBAAqB,CA2FjC;AA3FY,uDAAqB;;;;;;;;;;;;;;;;;ACpBlC,uCAA4C;AAC5C,uCAAuE;AAEvE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAGzD,KAAa,qBAAqB;KAC9B,+BAAoB,KAAW,EAAU,MAAoB,EAAU,UAAuB;SAA1E,UAAK,GAAL,KAAK,CAAM;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,eAAU,GAAV,UAAU,CAAa;SAE9F,qBAAgB,GAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,8BAA8B,CAAC;SACpE,wBAAmB,GAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,uCAAuC,CAAC;SAChF,mFAAmF;SACnF,wBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,2CAA2C,CAAC;SACrF,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,oCAAoC,CAAC;SAC5E,oBAAe,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,oCAAoC,CAAC;SAC1E,kBAAa,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,6BAA6B,CAAC;SACjE,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,4BAA4B,CAAC;SACpE,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,wBAAwB,CAAC;SAChE,oBAAe,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,+BAA+B,CAAC;SACrE,uBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,qCAAqC,CAAC;SAC9E,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,2CAA2C,CAAC;SACnF,gBAAW,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,4BAA4B,CAAC;KAdqC,CAAC;KAiBpG,4CAAY,GAAZ,UAAc,WAAW,EAAE,QAAQ;SAC/B,IAAI,GAAG,EAAE,QAAQ,CAAC;SAClB,MAAM,EAAE,WAAY,CAAC,CAAC,CAAC;aACnB,KAAK,cAAc;iBACf,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC;iBAC5B,KAAK,CAAC;aACV,KAAK,qBAAqB;iBACtB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC;iBAC/B,KAAK,CAAC;aACV,KAAK,iBAAiB;iBAClB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC;iBAC/B,KAAK,CAAC;aACV,KAAK,eAAe;iBAChB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,KAAK,iBAAiB;iBAClB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC;iBAC3B,KAAK,CAAC;aACV,KAAK,eAAe;iBAChB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,KAAK,kBAAkB;iBACnB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC;iBACzB,KAAK,CAAC;aACV,KAAK,eAAe;iBAChB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,KAAK,qBAAqB;iBACtB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC;iBAC3B,KAAK,CAAC;aAEV,KAAK,UAAU;iBACX,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,kBAAkB,CAAC;iBAC9B,KAAK,CAAC;aACV,KAAK,aAAa;iBACd,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,KAAK,YAAY;iBACb,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC;iBACvB,KAAK,CAAC;aACV,QAAQ;SACZ,CAAC;SACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;KACtD,CAAC;KACL,4BAAC;AAAD,EAAC;AA1EY,sBAAqB;KADjC,iBAAU,EAAE;sCAEkB,WAAI,EAAkB,yBAAY,EAAsB,yBAAW;IADrF,qBAAqB,CA0EjC;AA1EY,uDAAqB;;;;;;;;;;;;;;;;;ACRlC,uCAA4C;AAC5C,uCAAuE;AAEvE,0BAA+B;AAC/B,8CAAyD;AAGzD,KAAa,eAAe;KAExB,yBAAoB,KAAW,EAAU,UAAuB;SAA5C,UAAK,GAAL,KAAK,CAAM;SAAU,eAAU,GAAV,UAAU,CAAa;KAAK,CAAC;KAE1E,sBAAC;AAAD,EAAC;AAJY,gBAAe;KAD3B,iBAAU,EAAE;sCAGkB,WAAI,EAAsB,yBAAW;IAFvD,eAAe,CAI3B;AAJY,2CAAe;;;;;;;;;;;;;;;;;ACP5B,uCAAoE;AACpE,yCAAyC;AAUzC,KAAa,qBAAqB;KAIhC,+BAAoB,MAAa;SAAb,WAAM,GAAN,MAAM,CAAO;SAHxB,aAAQ,GAAO,EAAE,CAAC;SACjB,cAAS,GAAG,IAAI,mBAAY,EAAE,CAAC;KAEJ,CAAC;KAGtC,6CAAa,GAAb,UAAc,GAAO;SACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B,CAAC;KAED,iCAAiC;KACjC,4CAAY,GAAZ,UAAa,IAAQ,EAAC,CAAK;SACvB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC7B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;KACtF,CAAC;KAED,wCAAQ,GAAR;KAEA,CAAC;KAEH,4BAAC;AAAD,EAAC;AApBU;KAAR,YAAK,EAAE;;wDAAmB;AACjB;KAAT,aAAM,EAAE;;yDAAgC;AAF9B,sBAAqB;KALjC,gBAAS,CAAC;SACT,QAAQ,EAAE,kBAAkB;SAC5B,WAAW,EAAE,6DAA6D;MAC3E,CAAC;sCAM2B,eAAM;IAJtB,qBAAqB,CAqBjC;AArBY,uDAAqB;;;;;;;;;;;;;;;;;ACXlC,uCAAuE;AACvE,yCAAyC;AAUzC,KAAa,wBAAwB;KAInC,kCAAoB,MAAa;SAAb,WAAM,GAAN,MAAM,CAAO;SAHxB,gBAAW,GAAK,EAAE,CAAC;SACnB,UAAK,GAAK,EAAE,CAAC;SACZ,cAAS,GAAG,IAAI,mBAAY,EAAE,CAAC;KACJ,CAAC;KAGtC,iCAAiC;KACjC,+CAAY,GAAZ,UAAa,IAAQ,EAAC,CAAK;SACvB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC7B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,KAAK,EAAC,IAAI,CAAC,KAAK,EAAG,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;KAC5G,CAAC;KAED,2CAAQ,GAAR;KAEA,CAAC;KAEH,+BAAC;AAAD,EAAC;AAhBU;KAAR,YAAK,EAAE;;8DAAoB;AACnB;KAAR,YAAK,EAAE;;wDAAc;AACZ;KAAT,aAAM,EAAE;;4DAAgC;AAH9B,yBAAwB;KALpC,gBAAS,CAAC;SACT,QAAQ,EAAE,qBAAqB;SAC/B,WAAW,EAAE,iFAAiF;MAC/F,CAAC;sCAM2B,eAAM;IAJtB,wBAAwB,CAiBpC;AAjBY,6DAAwB;;;;;;;;;;;;;;;;;ACXrC,uCAA4C;AAC5C,uCAAuE;AAEvE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAGzD,KAAa,oBAAoB;KAC7B,8BAAoB,KAAW,EAAU,MAAoB,EAAU,UAAuB;SAA1E,UAAK,GAAL,KAAK,CAAM;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,eAAU,GAAV,UAAU,CAAa;SAC9F,4BAAuB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,sCAAsC,CAAC;SACpF,+BAA0B,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,6BAA6B,CAAC;SAC9E,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,oCAAoC,CAAC;KAHwB,CAAC;KAKrG,2CAAY,GAAZ,UAAc,WAAW,EAAE,QAAQ;SAC/B,IAAI,GAAG,EAAE,QAAQ,CAAC;SAClB,MAAM,EAAE,WAAY,CAAC,CAAC,CAAC;aACnB,KAAK,qBAAqB;iBACtB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,uBAAuB,CAAC;iBACnC,KAAK,CAAC;aACV,KAAK,wBAAwB;iBACzB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,0BAA0B,CAAC;iBACtC,KAAK,CAAC;aACV,KAAK,eAAe;iBAChB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,QAAQ;SACZ,CAAC;SACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;KACtD,CAAC;KAEL,2BAAC;AAAD,EAAC;AA1BY,qBAAoB;KADhC,iBAAU,EAAE;sCAEkB,WAAI,EAAkB,yBAAY,EAAsB,yBAAW;IADrF,oBAAoB,CA0BhC;AA1BY,qDAAoB;;;;;;;;;;;;;;;;;ACRjC,uCAA4C;AAC5C,6CAA+D;AAC/D,uCAAuE;AAEvE,0BAA+B;AAC/B,8CAAyD;AAGzD,KAAa,kBAAkB;KAK3B,4BAAoB,KAAW,EAAS,MAAmB,EAAU,UAAuB;SAAxE,UAAK,GAAL,KAAK,CAAM;SAAS,WAAM,GAAN,MAAM,CAAa;SAAU,eAAU,GAAV,UAAU,CAAa;SAJ5F,2BAAsB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,qCAAqC,CAAC;SACrF,uBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,sBAAsB,CAAC;SAC/D,uBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,sBAAsB,CAAC;SAC/D,6BAAwB,GAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,mCAAmC,CAAC;KACiB,CAAC;KAElG,oDAAuB,GAAvB,UAAwB,GAAG;SAC7B,IAAI,QAAQ,GAAC,EAAC,UAAU,EAAC,GAAG,EAAC;SAC7B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC;KACxE,CAAC;KAEJ,mDAAsB,GAAtB,UAAuB,QAAQ;SAC9B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;KACpE,CAAC;KAEJ,mDAAsB,GAAtB,UAAuB,QAAQ;SAC9B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;KACpE,CAAC;KAEJ,yDAA4B,GAA5B,UAA6B,QAAQ;SACpC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;KAC7E,CAAC;KAEF,yBAAC;AAAD,EAAC;AAxBY,mBAAkB;KAD9B,iBAAU,EAAE;sCAMkB,WAAI,EAAgB,yBAAY,EAAsB,yBAAW;IALnF,kBAAkB,CAwB9B;AAxBY,iDAAkB;;;;;;;;;;;;;;;;;ACR/B,uCAA2C;AAC3C,uCAAwE;AAExE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAGzD,KAAa,wBAAwB;KAEjC,kCAAoB,MAAoB,EAAU,IAAU,EAAU,UAAuB;SAAzE,WAAM,GAAN,MAAM,CAAc;SAAU,SAAI,GAAJ,IAAI,CAAM;SAAU,eAAU,GAAV,UAAU,CAAa;SAI7F,4BAAuB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,qCAAqC,CAAC;SACrF,2BAAsB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,4CAA4C,CAAC;SAC3F,4BAAuB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,gCAAgC,CAAC;SAChF,iCAA4B,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,0CAA0C,CAAC;SAC/F,uBAAkB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,8CAA8C,CAAC;SACzF,2BAAsB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,kDAAkD,CAAC;SACjG,2BAAsB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,oCAAoC,CAAC;SACnF,8BAAyB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,uCAAuC,CAAC;SACzF,gCAA2B,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,yCAAyC,CAAC;KAV7F,CAAC;KAaD,8DAA2B,GAA3B,UAA4B,IAAI;SAE5B,+BAA+B;SAC/B,gDAAgD;SAChD,2GAA2G;SAC3G,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;KAC3E,CAAC;KAED,mEAAgC,GAAhC,UAAiC,IAAI;SACjC,qCAAqC;SACrC,+BAA+B;SAC/B,gDAAgD;SAChD,qEAAqE;SACrE,+GAA+G;SAC/G,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAAC;KAChF,CAAC;KAED,gEAA6B,GAA7B,UAA8B,IAAI;SAC9B,+BAA+B;SAC/B,gDAAgD;SAChD,qEAAqE;SACrE,qGAAqG;SACrG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC;KACtE,CAAC;KAED,oEAAiC,GAAjC,UAAkC,IAAI;SAClC,+BAA+B;SAC/B,gDAAgD;SAChD,qEAAqE;SACrE,yGAAyG;SACzG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;KAC1E,CAAC;KAED,8DAA2B,GAA3B,UAA4B,IAAI;SAC5B,+BAA+B;SAC/B,gDAAgD;SAChD,qEAAqE;SACrE,0GAA0G;SAC1G,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;KAC3E,CAAC;KAED,6DAA0B,GAA1B,UAA2B,IAAI;SAC3B,+BAA+B;SAC/B,gDAAgD;SAChD,qEAAqE;SACrE,yGAAyG;SACzG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;KAC1E,CAAC;KACD,gEAA6B,GAA7B,UAA8B,IAAI;SAC9B,+BAA+B;SAC/B,gDAAgD;SAChD,qEAAqE;SACrE,4GAA4G;SAC5G,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;KAC7E,CAAC;KACD,mEAAgC,GAAhC,UAAiC,IAAI;SACjC,+BAA+B;SAC/B,gDAAgD;SAChD,qEAAqE;SACrE,8GAA8G;SAC9G,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,2BAA2B,EAAE,IAAI,CAAC,CAAC;KAC/E,CAAC;KAGL,+BAAC;AAAD,EAAC;AAjFY,yBAAwB;KADpC,iBAAU,EAAE;sCAGmB,yBAAY,EAAgB,WAAI,EAAsB,yBAAW;IAFpF,wBAAwB,CAiFpC;AAjFY,6DAAwB;;;;;;;;;;;;;;;;;ACRrC,uCAA2C;AAC3C,uCAAwE;AAExE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAEzD,kDAAgF;AAIhF,KAAa,qBAAqB;KAC9B,+BAAoB,KAAW,EAAU,MAAoB,EAAU,UAAuB,EAAS,GAAkB;SAArG,UAAK,GAAL,KAAK,CAAM;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,eAAU,GAAV,UAAU,CAAa;SAAS,QAAG,GAAH,GAAG,CAAe;KAAI,CAAC;KAIlI,4BAAC;AAAD,EAAC;AALY,sBAAqB;KADjC,iBAAU,EAAE;sCAEkB,WAAI,EAAkB,yBAAY,EAAsB,yBAAW,EAAa,gCAAc;IADhH,qBAAqB,CAKjC;AALY,uDAAqB;;;;;;;;;;;;;;;;;ACXlC,uCAA2C;AAC3C,uCAAwE;AAExE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAGzD,KAAa,cAAc;KACvB,wBAAoB,KAAW,EAAU,MAAoB,EAAU,UAAuB;SAA1E,UAAK,GAAL,KAAK,CAAM;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,eAAU,GAAV,UAAU,CAAa;SAE9F,wBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,6BAA6B,CAAC;SACzE,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,oCAAoC,CAAC;SAC9E,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,4BAA4B,CAAC;SACtE,kBAAa,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,6BAA6B,CAAC;SACnE,oBAAe,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,oCAAoC,CAAC;SAC5E,sBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,wBAAwB,CAAC;KAPgC,CAAC;KASnG,qCAAY,GAAZ,UAAa,WAAW,EAAE,QAAQ;SAC9B,IAAI,GAAG,EAAE,QAAQ,CAAC;SAClB,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;aAClB,KAAK,iBAAiB;iBAClB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC;iBAC/B,KAAK,CAAC;aACV,KAAK,eAAe;iBAChB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,KAAK,eAAe;iBAChB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,KAAK,kBAAkB;iBACnB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC;iBACzB,KAAK,CAAC;aACV,KAAK,iBAAiB;iBAClB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC;iBAC3B,KAAK,CAAC;aACV,KAAK,eAAe;iBAChB,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;iBACpC,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC;iBAC7B,KAAK,CAAC;aACV,QAAQ;SACZ,CAAC;SACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;KACtD,CAAC;KAEL,qBAAC;AAAD,EAAC;AA1CY,eAAc;KAD1B,iBAAU,EAAE;sCAEkB,WAAI,EAAkB,yBAAY,EAAsB,yBAAW;IADrF,cAAc,CA0C1B;AA1CY,yCAAc;;;;;;;;;;;;;;;;;ACR3B,uCAA2C;AAC3C,uCAAwE;AAExE,0BAA+B;AAC/B,6CAA+D;AAC/D,8CAAyD;AAIzD,KAAa,oBAAoB;KAC7B,8BAAoB,KAAW,EAAU,MAAoB,EAAU,UAAuB;SAA1E,UAAK,GAAL,KAAK,CAAM;SAAU,WAAM,GAAN,MAAM,CAAc;SAAU,eAAU,GAAV,UAAU,CAAa;SAE9F,kBAAa,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,iCAAiC,CAAC;SACrE,wBAAmB,GAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAC,0CAA0C,CAAC;KAHe,CAAC;KAKnG,+CAAgB,GAAhB,UAAiB,OAAW,EAAE,QAAe;SAAf,wCAAe;SACzC,IAAI,QAAQ,GAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;SAC5C,IAAI,GAAO,CAAC;SACZ,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;aACd,KAAK,SAAS;iBACV,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC;iBACzB,KAAK,CAAC;aACV,KAAK,cAAc;iBACf,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC;iBAC/B,KAAK,CAAC;aACV;iBACI,KAAK,CAAC;SACd,CAAC;SACD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;KACtD,CAAC;KACL,2BAAC;AAAD,EAAC;AArBY,qBAAoB;KADhC,iBAAU,EAAE;sCAEkB,WAAI,EAAkB,yBAAY,EAAsB,yBAAW;IADrF,oBAAoB,CAqBhC;AArBY,qDAAoB;;;;;;;;ACRjC,yCAAoE;AAIpE,wDAAiF;AACjF,0DAA2F;AAE3F,sEAAqE;AACrE,mFAAkF;AAClF,kFAAiF;AACjF,gFAA+E;AAC/E,qFAAoF;AACpF,iGAAgG;AAChG,iGAAgG;AAChG,oGAAmG;AACnG,iHAAgH;AAChH,4HAA2H;AAC3H,8FAA6F;AAC7F,0GAAyG;AACzG,6HAA4H;AAC5H,yIAAwI;AACxI,8FAA6F;AAC7F,iFAAgF;AAChF,6FAA4F;AAC5F,sFAAqF;AACrF,qFAAoF;AACpF,6FAA4F;AAE5F,uBAAsB;AACtB,sGAAqG;AACrG,yGAAwG;AACxG,uFAAsF;AACtF,mGAAkG;AAClG,kGAAiG;AACjG,wFAAuF;AAGvF,kDAAyE;AACzE,sDAAuE;AAGvE,KAAM,SAAS,GAAW;KACxB;SACE,IAAI,EAAE,EAAE;SACR,UAAU,EAAE,MAAM;SAClB,SAAS,EAAE,MAAM;SACjB,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,OAAO;SACb,SAAS,EAAE,4CAAoB;MAChC;KACD;SACE,IAAI,EAAE,aAAa;SACnB,SAAS,EAAE,gDAAsB;MAClC;KACD;SACE,IAAI,EAAE,MAAM;SACZ,YAAY,EAAE,+CAA+C;SAC7D,uDAAuD;SACvD,0DAA0D;SAC1D,4DAA4D;SAC5D,QAAQ;SACR,MAAM;SACN,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,WAAW;SACjB,YAAY,EAAE,4DAA4D;SAC1E,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,SAAS;SACf,YAAY,EAAE,sDAAsD;SACpE,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,wBAAwB;SAC9B,YAAY,EAAE,sDAAsD;SACpE,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,eAAe;SACrB,YAAY,EAAE,qEAAqE;SACnF,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,oBAAoB;SAC1B,YAAY,EAAE,uFAAuF;SACrG,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,wBAAwB;SAC9B,YAAY,EAAE,uFAAuF;SACrG,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,gBAAgB;SACtB,YAAY,EAAE,wEAAwE;SACtF,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,oBAAoB;SAC1B,YAAY,EAAE,uFAAuF;SACrG,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,wBAAwB;SAC9B,YAAY,EAAE,uFAAuF;SACrG,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,wBAAwB;SAC9B,YAAY,EAAE,uFAAuF;SACrG,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,aAAa;SACnB,YAAY,EAAE,4DAA4D;SAC1E,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,kBAAkB;SACxB,YAAY,EAAE,4DAA4D;SAC1E,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,WAAW;SACjB,YAAY,EAAE,4DAA4D;SAC1E,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,gBAAgB;SACtB,YAAY,EAAE,4DAA4D;SAC1E,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,sBAAsB;SAC5B,YAAY,EAAE,iFAAiF;MAEhG;KACD;SACE,IAAI,EAAE,mBAAmB;SACzB,YAAY,EAAE,qEAAqE;MACpF;KACD;SACE,IAAI,EAAE,eAAe;SACrB,YAAY,EAAE,wEAAwE;MACvF;KACD;SACE,IAAI,EAAE,uBAAuB;SAC7B,YAAY,EAAE,kEAAkE;SAChF,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,aAAa;SACnB,YAAY,EAAE,kEAAkE;SAChF,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,cAAc;SACpB,YAAY,EAAE,qEAAqE;SACnF,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,QAAQ;SACd,YAAY,EAAE,mDAAmD;SACjE,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,kBAAkB;SACxB,YAAY,EAAE,uEAAuE;SACrF,WAAW,EAAE,CAAC,gCAAU,CAAC;MAC1B;KACD;SACE,IAAI,EAAE,IAAI;SACV,SAAS,EAAE,gCAAc;MAC1B;EAEF,CAAC;AAEF,0DAAyD;AAC5C,gBAAO,GAAG,qBAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;;;;;;;;;;;;;;;;;ACtLvD,uCAA4C;AAC5C,yCAAyD;AACzD,gDAAsE;AAItE,KAAa,aAAa;KACtB,uBAAoB,MAAa,EAAU,QAAsB;SAA7C,WAAM,GAAN,MAAM,CAAO;SAAU,aAAQ,GAAR,QAAQ,CAAc;KAAK,CAAC;KACvE,mCAAW,GAAX;SACI,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;SAClC,EAAE,EAAC,MAAM,CAAC,EAAC;aACR,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;SAClC,CAAC;SAAA,IAAI,EAAC;aACF,MAAM,CAAC,IAAI,CAAC;SAChB,CAAC;KACL,CAAC;KAEL,oBAAC;AAAD,EAAC;AAXY,cAAa;KADzB,iBAAU,EAAE;sCAEkB,eAAM,EAAoB,4BAAY;IADxD,aAAa,CAWzB;AAXY,uCAAa;;;;;;;;;;;;;;;;;ACP1B,uCAQuB;AACvB,yCAA+C;AAK/C,KAAa,eAAe;KAM1B,yBAAoB,KAAuB,EAAU,QAAkB;SAAnD,UAAK,GAAL,KAAK,CAAkB;SAAU,aAAQ,GAAR,QAAQ,CAAU;KAAG,CAAC;KAE3E,kCAAQ,GAAR;KAEA,CAAC;KACD,qCAAW,GAAX;SAAA,iBAsBC;SArBG,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACvB,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;SAC7B,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;aAAC,MAAM,CAAC;SAClB,EAAE,CAAC,CAAC,OAAO,OAAO,IAAI,QAAQ,CAAC;aAAC,MAAM,CAAC;SAKvC,IAAM,oBAAoB;aAA1B;aAA8B,CAAC;aAAD,2BAAC;SAAD,CAAC;SAAzB,oBAAoB;aAJzB,gBAAS,CAAC;iBACT,QAAQ,EAAE,qBAAqB;iBAC/B,WAAW,EAAE,IAAI;cAClB,CAAC;YACI,oBAAoB,CAAK;SAAA,CAAC;SAChC,oBAAoB,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;SAO9C,IAAM,iBAAiB;aAAvB;aAA0B,CAAC;aAAD,wBAAC;SAAD,CAAC;SAArB,iBAAiB;aALtB,eAAQ,CAAC;iBACN,OAAO,EAAE,CAAC,qBAAY,CAAC;iBACvB,YAAY,EAAE,CAAC,oBAAoB,CAAC;iBACpC,OAAO,EAAE,CAAC,6BAAsB,CAAC;cACpC,CAAC;YACI,iBAAiB,CAAI;SAC3B,IAAI,CAAC,QAAQ,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,iBAAO;aAC5E,IAAM,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAC,IAAI,QAAC,CAAC,aAAa,KAAK,oBAAoB,EAAxC,CAAwC,CAAC,CAAC;aACnG,IAAM,MAAM,GAAG,KAAI,CAAC,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;SAC9D,CAAC,CAAC,CAAC;KACP,CAAC;KACH,sBAAC;AAAD,EAAC;AAjC2B;KAAzB,YAAK,CAAC,iBAAiB,CAAC;;8CAAc;AAC9B;KAAR,YAAK,EAAE;+BAAU,MAAM;iDAAC;AAChB;KAAR,YAAK,EAAE;;8CAAW;AAHR,gBAAe;KAH3B,gBAAS,CAAC;SACT,QAAQ,EAAE,mBAAmB;MAC9B,CAAC;sCAO2B,uBAAgB,EAAoB,eAAQ;IAN5D,eAAe,CAkC3B;AAlCY,2CAAe;;;;;;;;;;;;;;;;;ACd5B,uCAQuB;AACvB,yCAA+C;AAK/C,KAAa,kBAAkB;KAM7B,4BAAoB,KAAuB,EAAU,QAAkB;SAAnD,UAAK,GAAL,KAAK,CAAkB;SAAU,aAAQ,GAAR,QAAQ,CAAU;KAAG,CAAC;KAE3E,qCAAQ,GAAR;KAEA,CAAC;KACD,wCAAW,GAAX;SAAA,iBAqBC;SApBG,IAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACvB,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;SAC7B,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;aAAC,MAAM,CAAC;SAClB,EAAE,CAAC,CAAC,OAAO,OAAO,IAAI,QAAQ,CAAC;aAAC,MAAM,CAAC;SAKvC,IAAM,oBAAoB;aAA1B;aAA8B,CAAC;aAAD,2BAAC;SAAD,CAAC;SAAzB,oBAAoB;aAJzB,gBAAS,CAAC;iBACT,QAAQ,EAAE,oBAAoB;iBAC9B,WAAW,EAAE,IAAI;cAClB,CAAC;YACI,oBAAoB,CAAK;SAAA,CAAC;SAChC,oBAAoB,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;SAM9C,IAAM,iBAAiB;aAAvB;aAA0B,CAAC;aAAD,wBAAC;SAAD,CAAC;SAArB,iBAAiB;aALtB,eAAQ,CAAC;iBACN,OAAO,EAAE,CAAC,qBAAY,CAAC;iBACvB,YAAY,EAAE,CAAC,oBAAoB,CAAC;iBACpC,OAAO,EAAE,CAAC,6BAAsB,CAAC;cACpC,CAAC;YACI,iBAAiB,CAAI;SAC3B,IAAI,CAAC,QAAQ,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,iBAAO;aAC5E,IAAM,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAC,IAAI,QAAC,CAAC,aAAa,KAAK,oBAAoB,EAAxC,CAAwC,CAAC,CAAC;aACnG,IAAM,MAAM,GAAG,KAAI,CAAC,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;SAC9D,CAAC,CAAC,CAAC;KACP,CAAC;KACH,yBAAC;AAAD,EAAC;AAhC8B;KAA5B,YAAK,CAAC,oBAAoB,CAAC;;iDAAc;AACjC;KAAR,YAAK,EAAE;+BAAU,MAAM;oDAAC;AAChB;KAAR,YAAK,EAAE;;iDAAW;AAHR,mBAAkB;KAH9B,gBAAS,CAAC;SACT,QAAQ,EAAE,sBAAsB;MACjC,CAAC;sCAO2B,uBAAgB,EAAoB,eAAQ;IAN5D,kBAAkB,CAiC9B;AAjCY,iDAAkB;;;;;;;;;;;;;;;;;ACd/B,uCAQuB;AAMvB,KAAa,iBAAiB;KAG5B,2BAAoB,WAAwB;SAAxB,gBAAW,GAAX,WAAW,CAAa;SADlC,mBAAc,GAAG,IAAI,mBAAY,EAAE,CAAC;KACE,CAAC;KAG1C,mCAAO,GAAd,UAAe,aAAa;SAC1B,IAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;SAC/E,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;aACnB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC5C,CAAC;SAAC,IAAI,CAAC,CAAC;aACJ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACnC,CAAC;KACH,CAAC;KACH,wBAAC;AAAD,EAAC;AAZW;KAAT,aAAM,EAAE;;0DAAqC;AAI9C;KADC,mBAAY,CAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC,CAAC;;;;iDAQjD;AAbU,kBAAiB;KAH7B,gBAAS,CAAC;SACT,QAAQ,EAAE,kBAAkB;MAC7B,CAAC;sCAIkC,iBAAU;IAHjC,iBAAiB,CAc7B;AAdY,+CAAiB;;;;;;;ACd9B;AACA;AACA;AACA;AACA;AACA,kC;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,IAAI;AACrB;AACA;AACA;AACA;AACA,EAAC;AACD;AACA,4C;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA4C,IAAI;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA0B,oBAAoB,EAAE;AAChD;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAAyD;AACzD,0DAAyD;AACzD,mEAAkE,oBAAoB;AACtF,oEAAmE,qBAAqB;AACxF;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,yEAAwE,0BAA0B,EAAE;AACpG;AACA;AACA;AACA;AACA,kBAAiB,IAAI;AACrB;AACA;AACA;AACA,UAAS,uBAAuB;AAChC;AACA;AACA,qBAAoB,qBAAqB;AACzC,uBAAsB,qBAAqB;AAC3C,qBAAoB,sBAAsB;AAC1C,oBAAmB,sBAAsB;AACzC,mBAAkB,sBAAsB;AACxC,oBAAmB,sBAAsB;AACzC,mBAAkB,0CAA0C;AAC5D,oBAAmB,qBAAqB;AACxC;AACA;AACA,EAAC;AACD;AACA,+C","file":"./app.bundle.js","sourcesContent":[" \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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 38b6fd34eb8c89d489e9\n **/"," import 'core-js';\r\n import 'reflect-metadata';\r\n import 'zone.js/dist/zone';\r\n\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\nimport { AppModule } from './core/components/app.module';\r\nconst platform = platformBrowserDynamic();\r\nplatform.bootstrapModule(AppModule);\n\n\n/** WEBPACK FOOTER **\n ** ./app/main.ts\n **/","require('./shim');\nrequire('./modules/core.dict');\nrequire('./modules/core.get-iterator-method');\nrequire('./modules/core.get-iterator');\nrequire('./modules/core.is-iterable');\nrequire('./modules/core.delay');\nrequire('./modules/core.function.part');\nrequire('./modules/core.object.is-object');\nrequire('./modules/core.object.classof');\nrequire('./modules/core.object.define');\nrequire('./modules/core.object.make');\nrequire('./modules/core.number.iterator');\nrequire('./modules/core.regexp.escape');\nrequire('./modules/core.string.escape-html');\nrequire('./modules/core.string.unescape-html');\nmodule.exports = require('./modules/_core');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/index.js\n ** module id = 1\n ** module chunks = 0\n **/","require('./modules/es6.symbol');\nrequire('./modules/es6.object.create');\nrequire('./modules/es6.object.define-property');\nrequire('./modules/es6.object.define-properties');\nrequire('./modules/es6.object.get-own-property-descriptor');\nrequire('./modules/es6.object.get-prototype-of');\nrequire('./modules/es6.object.keys');\nrequire('./modules/es6.object.get-own-property-names');\nrequire('./modules/es6.object.freeze');\nrequire('./modules/es6.object.seal');\nrequire('./modules/es6.object.prevent-extensions');\nrequire('./modules/es6.object.is-frozen');\nrequire('./modules/es6.object.is-sealed');\nrequire('./modules/es6.object.is-extensible');\nrequire('./modules/es6.object.assign');\nrequire('./modules/es6.object.is');\nrequire('./modules/es6.object.set-prototype-of');\nrequire('./modules/es6.object.to-string');\nrequire('./modules/es6.function.bind');\nrequire('./modules/es6.function.name');\nrequire('./modules/es6.function.has-instance');\nrequire('./modules/es6.parse-int');\nrequire('./modules/es6.parse-float');\nrequire('./modules/es6.number.constructor');\nrequire('./modules/es6.number.to-fixed');\nrequire('./modules/es6.number.to-precision');\nrequire('./modules/es6.number.epsilon');\nrequire('./modules/es6.number.is-finite');\nrequire('./modules/es6.number.is-integer');\nrequire('./modules/es6.number.is-nan');\nrequire('./modules/es6.number.is-safe-integer');\nrequire('./modules/es6.number.max-safe-integer');\nrequire('./modules/es6.number.min-safe-integer');\nrequire('./modules/es6.number.parse-float');\nrequire('./modules/es6.number.parse-int');\nrequire('./modules/es6.math.acosh');\nrequire('./modules/es6.math.asinh');\nrequire('./modules/es6.math.atanh');\nrequire('./modules/es6.math.cbrt');\nrequire('./modules/es6.math.clz32');\nrequire('./modules/es6.math.cosh');\nrequire('./modules/es6.math.expm1');\nrequire('./modules/es6.math.fround');\nrequire('./modules/es6.math.hypot');\nrequire('./modules/es6.math.imul');\nrequire('./modules/es6.math.log10');\nrequire('./modules/es6.math.log1p');\nrequire('./modules/es6.math.log2');\nrequire('./modules/es6.math.sign');\nrequire('./modules/es6.math.sinh');\nrequire('./modules/es6.math.tanh');\nrequire('./modules/es6.math.trunc');\nrequire('./modules/es6.string.from-code-point');\nrequire('./modules/es6.string.raw');\nrequire('./modules/es6.string.trim');\nrequire('./modules/es6.string.iterator');\nrequire('./modules/es6.string.code-point-at');\nrequire('./modules/es6.string.ends-with');\nrequire('./modules/es6.string.includes');\nrequire('./modules/es6.string.repeat');\nrequire('./modules/es6.string.starts-with');\nrequire('./modules/es6.string.anchor');\nrequire('./modules/es6.string.big');\nrequire('./modules/es6.string.blink');\nrequire('./modules/es6.string.bold');\nrequire('./modules/es6.string.fixed');\nrequire('./modules/es6.string.fontcolor');\nrequire('./modules/es6.string.fontsize');\nrequire('./modules/es6.string.italics');\nrequire('./modules/es6.string.link');\nrequire('./modules/es6.string.small');\nrequire('./modules/es6.string.strike');\nrequire('./modules/es6.string.sub');\nrequire('./modules/es6.string.sup');\nrequire('./modules/es6.date.now');\nrequire('./modules/es6.date.to-json');\nrequire('./modules/es6.date.to-iso-string');\nrequire('./modules/es6.date.to-string');\nrequire('./modules/es6.date.to-primitive');\nrequire('./modules/es6.array.is-array');\nrequire('./modules/es6.array.from');\nrequire('./modules/es6.array.of');\nrequire('./modules/es6.array.join');\nrequire('./modules/es6.array.slice');\nrequire('./modules/es6.array.sort');\nrequire('./modules/es6.array.for-each');\nrequire('./modules/es6.array.map');\nrequire('./modules/es6.array.filter');\nrequire('./modules/es6.array.some');\nrequire('./modules/es6.array.every');\nrequire('./modules/es6.array.reduce');\nrequire('./modules/es6.array.reduce-right');\nrequire('./modules/es6.array.index-of');\nrequire('./modules/es6.array.last-index-of');\nrequire('./modules/es6.array.copy-within');\nrequire('./modules/es6.array.fill');\nrequire('./modules/es6.array.find');\nrequire('./modules/es6.array.find-index');\nrequire('./modules/es6.array.species');\nrequire('./modules/es6.array.iterator');\nrequire('./modules/es6.regexp.constructor');\nrequire('./modules/es6.regexp.to-string');\nrequire('./modules/es6.regexp.flags');\nrequire('./modules/es6.regexp.match');\nrequire('./modules/es6.regexp.replace');\nrequire('./modules/es6.regexp.search');\nrequire('./modules/es6.regexp.split');\nrequire('./modules/es6.promise');\nrequire('./modules/es6.map');\nrequire('./modules/es6.set');\nrequire('./modules/es6.weak-map');\nrequire('./modules/es6.weak-set');\nrequire('./modules/es6.typed.array-buffer');\nrequire('./modules/es6.typed.data-view');\nrequire('./modules/es6.typed.int8-array');\nrequire('./modules/es6.typed.uint8-array');\nrequire('./modules/es6.typed.uint8-clamped-array');\nrequire('./modules/es6.typed.int16-array');\nrequire('./modules/es6.typed.uint16-array');\nrequire('./modules/es6.typed.int32-array');\nrequire('./modules/es6.typed.uint32-array');\nrequire('./modules/es6.typed.float32-array');\nrequire('./modules/es6.typed.float64-array');\nrequire('./modules/es6.reflect.apply');\nrequire('./modules/es6.reflect.construct');\nrequire('./modules/es6.reflect.define-property');\nrequire('./modules/es6.reflect.delete-property');\nrequire('./modules/es6.reflect.enumerate');\nrequire('./modules/es6.reflect.get');\nrequire('./modules/es6.reflect.get-own-property-descriptor');\nrequire('./modules/es6.reflect.get-prototype-of');\nrequire('./modules/es6.reflect.has');\nrequire('./modules/es6.reflect.is-extensible');\nrequire('./modules/es6.reflect.own-keys');\nrequire('./modules/es6.reflect.prevent-extensions');\nrequire('./modules/es6.reflect.set');\nrequire('./modules/es6.reflect.set-prototype-of');\nrequire('./modules/es7.array.includes');\nrequire('./modules/es7.string.at');\nrequire('./modules/es7.string.pad-start');\nrequire('./modules/es7.string.pad-end');\nrequire('./modules/es7.string.trim-left');\nrequire('./modules/es7.string.trim-right');\nrequire('./modules/es7.string.match-all');\nrequire('./modules/es7.symbol.async-iterator');\nrequire('./modules/es7.symbol.observable');\nrequire('./modules/es7.object.get-own-property-descriptors');\nrequire('./modules/es7.object.values');\nrequire('./modules/es7.object.entries');\nrequire('./modules/es7.object.define-getter');\nrequire('./modules/es7.object.define-setter');\nrequire('./modules/es7.object.lookup-getter');\nrequire('./modules/es7.object.lookup-setter');\nrequire('./modules/es7.map.to-json');\nrequire('./modules/es7.set.to-json');\nrequire('./modules/es7.system.global');\nrequire('./modules/es7.error.is-error');\nrequire('./modules/es7.math.iaddh');\nrequire('./modules/es7.math.isubh');\nrequire('./modules/es7.math.imulh');\nrequire('./modules/es7.math.umulh');\nrequire('./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');\nrequire('./modules/es7.asap');\nrequire('./modules/es7.observable');\nrequire('./modules/web.timers');\nrequire('./modules/web.immediate');\nrequire('./modules/web.dom.iterable');\nmodule.exports = require('./modules/_core');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/shim.js\n ** module id = 2\n ** module chunks = 0\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global')\n , has = require('./_has')\n , DESCRIPTORS = require('./_descriptors')\n , $export = require('./_export')\n , redefine = require('./_redefine')\n , META = require('./_meta').KEY\n , $fails = require('./_fails')\n , shared = require('./_shared')\n , setToStringTag = require('./_set-to-string-tag')\n , uid = require('./_uid')\n , wks = require('./_wks')\n , wksExt = require('./_wks-ext')\n , wksDefine = require('./_wks-define')\n , keyOf = require('./_keyof')\n , enumKeys = require('./_enum-keys')\n , isArray = require('./_is-array')\n , anObject = require('./_an-object')\n , toIObject = require('./_to-iobject')\n , toPrimitive = require('./_to-primitive')\n , createDesc = require('./_property-desc')\n , _create = require('./_object-create')\n , gOPNExt = require('./_object-gopn-ext')\n , $GOPD = require('./_object-gopd')\n , $DP = require('./_object-dp')\n , $keys = require('./_object-keys')\n , gOPD = $GOPD.f\n , dP = $DP.f\n , gOPN = gOPNExt.f\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , PROTOTYPE = 'prototype'\n , HIDDEN = wks('_hidden')\n , TO_PRIMITIVE = wks('toPrimitive')\n , isEnum = {}.propertyIsEnumerable\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , OPSymbols = shared('op-symbols')\n , ObjectProto = Object[PROTOTYPE]\n , USE_NATIVE = typeof $Symbol == 'function'\n , QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(dP({}, 'a', {\n get: function(){ return dP(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = gOPD(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n dP(it, key, D);\n if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){\n return typeof it == 'symbol';\n} : function(it){\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(it === ObjectProto)$defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if(has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n it = toIObject(it);\n key = toPrimitive(key, true);\n if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;\n var D = gOPD(it, key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = gOPN(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i){\n if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var IS_OP = it === ObjectProto\n , names = gOPN(IS_OP ? OPSymbols : toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i){\n if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif(!USE_NATIVE){\n $Symbol = function Symbol(){\n if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function(value){\n if(this === ObjectProto)$set.call(OPSymbols, value);\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString(){\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./_library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function(name){\n return wrap(wks(name));\n }\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});\n\nfor(var symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);\n\nfor(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n if(isSymbol(key))return keyOf(SymbolRegistry, key);\n throw TypeError(key + ' is not a symbol!');\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , replacer, $replacer;\n while(arguments.length > i)args.push(arguments[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.symbol.js\n ** module id = 3\n ** module chunks = 0\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_global.js\n ** module id = 4\n ** module chunks = 0\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_has.js\n ** module id = 5\n ** module chunks = 0\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_descriptors.js\n ** module id = 6\n ** module chunks = 0\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_fails.js\n ** module id = 7\n ** module chunks = 0\n **/","var global = require('./_global')\n , core = require('./_core')\n , hide = require('./_hide')\n , redefine = require('./_redefine')\n , ctx = require('./_ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {})\n , key, own, out, exp;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if(target)redefine(target, key, out, type & $export.U);\n // export\n if(exports[key] != out)hide(exports, key, exp);\n if(IS_PROTO && expProto[key] != out)expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library` \nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_export.js\n ** module id = 8\n ** module chunks = 0\n **/","var core = module.exports = {version: '2.4.0'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_core.js\n ** module id = 9\n ** module chunks = 0\n **/","var dP = require('./_object-dp')\n , createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function(object, key, value){\n return dP.f(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_hide.js\n ** module id = 10\n ** module chunks = 0\n **/","var anObject = require('./_an-object')\n , IE8_DOM_DEFINE = require('./_ie8-dom-define')\n , toPrimitive = require('./_to-primitive')\n , dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes){\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if(IE8_DOM_DEFINE)try {\n return dP(O, P, Attributes);\n } catch(e){ /* empty */ }\n if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');\n if('value' in Attributes)O[P] = Attributes.value;\n return O;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-dp.js\n ** module id = 11\n ** module chunks = 0\n **/","var isObject = require('./_is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_an-object.js\n ** module id = 12\n ** module chunks = 0\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_is-object.js\n ** module id = 13\n ** module chunks = 0\n **/","module.exports = !require('./_descriptors') && !require('./_fails')(function(){\n return Object.defineProperty(require('./_dom-create')('div'), 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_ie8-dom-define.js\n ** module id = 14\n ** module chunks = 0\n **/","var isObject = require('./_is-object')\n , document = require('./_global').document\n // in old IE typeof document.createElement is 'object'\n , is = isObject(document) && isObject(document.createElement);\nmodule.exports = function(it){\n return is ? document.createElement(it) : {};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_dom-create.js\n ** module id = 15\n ** module chunks = 0\n **/","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function(it, S){\n if(!isObject(it))return it;\n var fn, val;\n if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;\n if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_to-primitive.js\n ** module id = 16\n ** module chunks = 0\n **/","module.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_property-desc.js\n ** module id = 17\n ** module chunks = 0\n **/","var global = require('./_global')\n , hide = require('./_hide')\n , has = require('./_has')\n , SRC = require('./_uid')('src')\n , TO_STRING = 'toString'\n , $toString = Function[TO_STRING]\n , TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function(it){\n return $toString.call(it);\n};\n\n(module.exports = function(O, key, val, safe){\n var isFunction = typeof val == 'function';\n if(isFunction)has(val, 'name') || hide(val, 'name', key);\n if(O[key] === val)return;\n if(isFunction)has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if(O === global){\n O[key] = val;\n } else {\n if(!safe){\n delete O[key];\n hide(O, key, val);\n } else {\n if(O[key])O[key] = val;\n else hide(O, key, val);\n }\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString(){\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_redefine.js\n ** module id = 18\n ** module chunks = 0\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_uid.js\n ** module id = 19\n ** module chunks = 0\n **/","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_ctx.js\n ** module id = 20\n ** module chunks = 0\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_a-function.js\n ** module id = 21\n ** module chunks = 0\n **/","var META = require('./_uid')('meta')\n , isObject = require('./_is-object')\n , has = require('./_has')\n , setDesc = require('./_object-dp').f\n , id = 0;\nvar isExtensible = Object.isExtensible || function(){\n return true;\n};\nvar FREEZE = !require('./_fails')(function(){\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function(it){\n setDesc(it, META, {value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n }});\n};\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!has(it, META)){\n // can't set metadata to uncaught frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add metadata\n if(!create)return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function(it, create){\n if(!has(it, META)){\n // can't set metadata to uncaught frozen object\n if(!isExtensible(it))return true;\n // not necessary to add metadata\n if(!create)return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function(it){\n if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_meta.js\n ** module id = 22\n ** module chunks = 0\n **/","var global = require('./_global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_shared.js\n ** module id = 23\n ** module chunks = 0\n **/","var def = require('./_object-dp').f\n , has = require('./_has')\n , TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_set-to-string-tag.js\n ** module id = 24\n ** module chunks = 0\n **/","var store = require('./_shared')('wks')\n , uid = require('./_uid')\n , Symbol = require('./_global').Symbol\n , USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function(name){\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_wks.js\n ** module id = 25\n ** module chunks = 0\n **/","exports.f = require('./_wks');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_wks-ext.js\n ** module id = 26\n ** module chunks = 0\n **/","var global = require('./_global')\n , core = require('./_core')\n , LIBRARY = require('./_library')\n , wksExt = require('./_wks-ext')\n , defineProperty = require('./_object-dp').f;\nmodule.exports = function(name){\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_wks-define.js\n ** module id = 27\n ** module chunks = 0\n **/","module.exports = false;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_library.js\n ** module id = 28\n ** module chunks = 0\n **/","var getKeys = require('./_object-keys')\n , toIObject = require('./_to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_keyof.js\n ** module id = 29\n ** module chunks = 0\n **/","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal')\n , enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O){\n return $keys(O, enumBugKeys);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-keys.js\n ** module id = 30\n ** module chunks = 0\n **/","var has = require('./_has')\n , toIObject = require('./_to-iobject')\n , arrayIndexOf = require('./_array-includes')(false)\n , IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function(object, names){\n var O = toIObject(object)\n , i = 0\n , result = []\n , key;\n for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while(names.length > i)if(has(O, key = names[i++])){\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-keys-internal.js\n ** module id = 31\n ** module chunks = 0\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject')\n , defined = require('./_defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_to-iobject.js\n ** module id = 32\n ** module chunks = 0\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_iobject.js\n ** module id = 33\n ** module chunks = 0\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_cof.js\n ** module id = 34\n ** module chunks = 0\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_defined.js\n ** module id = 35\n ** module chunks = 0\n **/","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject')\n , toLength = require('./_to-length')\n , toIndex = require('./_to-index');\nmodule.exports = function(IS_INCLUDES){\n return function($this, el, fromIndex){\n var O = toIObject($this)\n , length = toLength(O.length)\n , index = toIndex(fromIndex, length)\n , value;\n // Array#includes uses SameValueZero equality algorithm\n if(IS_INCLUDES && el != el)while(length > index){\n value = O[index++];\n if(value != value)return true;\n // Array#toIndex ignores holes, Array#includes - not\n } else for(;length > index; index++)if(IS_INCLUDES || index in O){\n if(O[index] === el)return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-includes.js\n ** module id = 36\n ** module chunks = 0\n **/","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_to-length.js\n ** module id = 37\n ** module chunks = 0\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_to-integer.js\n ** module id = 38\n ** module chunks = 0\n **/","var toInteger = require('./_to-integer')\n , max = Math.max\n , min = Math.min;\nmodule.exports = function(index, length){\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_to-index.js\n ** module id = 39\n ** module chunks = 0\n **/","var shared = require('./_shared')('keys')\n , uid = require('./_uid');\nmodule.exports = function(key){\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_shared-key.js\n ** module id = 40\n ** module chunks = 0\n **/","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_enum-bug-keys.js\n ** module id = 41\n ** module chunks = 0\n **/","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys')\n , gOPS = require('./_object-gops')\n , pIE = require('./_object-pie');\nmodule.exports = function(it){\n var result = getKeys(it)\n , getSymbols = gOPS.f;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = pIE.f\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);\n } return result;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_enum-keys.js\n ** module id = 42\n ** module chunks = 0\n **/","exports.f = Object.getOwnPropertySymbols;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-gops.js\n ** module id = 43\n ** module chunks = 0\n **/","exports.f = {}.propertyIsEnumerable;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-pie.js\n ** module id = 44\n ** module chunks = 0\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_is-array.js\n ** module id = 45\n ** module chunks = 0\n **/","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object')\n , dPs = require('./_object-dps')\n , enumBugKeys = require('./_enum-bug-keys')\n , IE_PROTO = require('./_shared-key')('IE_PROTO')\n , Empty = function(){ /* empty */ }\n , PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function(){\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe')\n , i = enumBugKeys.length\n , lt = '<'\n , gt = '>'\n , iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties){\n var result;\n if(O !== null){\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty;\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-create.js\n ** module id = 46\n ** module chunks = 0\n **/","var dP = require('./_object-dp')\n , anObject = require('./_an-object')\n , getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties){\n anObject(O);\n var keys = getKeys(Properties)\n , length = keys.length\n , i = 0\n , P;\n while(length > i)dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-dps.js\n ** module id = 47\n ** module chunks = 0\n **/","module.exports = require('./_global').document && document.documentElement;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_html.js\n ** module id = 48\n ** module chunks = 0\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject')\n , gOPN = require('./_object-gopn').f\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return gOPN(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it){\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-gopn-ext.js\n ** module id = 49\n ** module chunks = 0\n **/","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal')\n , hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){\n return $keys(O, hiddenKeys);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-gopn.js\n ** module id = 50\n ** module chunks = 0\n **/","var pIE = require('./_object-pie')\n , createDesc = require('./_property-desc')\n , toIObject = require('./_to-iobject')\n , toPrimitive = require('./_to-primitive')\n , has = require('./_has')\n , IE8_DOM_DEFINE = require('./_ie8-dom-define')\n , gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P){\n O = toIObject(O);\n P = toPrimitive(P, true);\n if(IE8_DOM_DEFINE)try {\n return gOPD(O, P);\n } catch(e){ /* empty */ }\n if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-gopd.js\n ** module id = 51\n ** module chunks = 0\n **/","var $export = require('./_export')\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', {create: require('./_object-create')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.create.js\n ** module id = 52\n ** module chunks = 0\n **/","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', {defineProperty: require('./_object-dp').f});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.define-property.js\n ** module id = 53\n ** module chunks = 0\n **/","var $export = require('./_export');\n// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', {defineProperties: require('./_object-dps')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.define-properties.js\n ** module id = 54\n ** module chunks = 0\n **/","// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = require('./_to-iobject')\n , $getOwnPropertyDescriptor = require('./_object-gopd').f;\n\nrequire('./_object-sap')('getOwnPropertyDescriptor', function(){\n return function getOwnPropertyDescriptor(it, key){\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.get-own-property-descriptor.js\n ** module id = 55\n ** module chunks = 0\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export')\n , core = require('./_core')\n , fails = require('./_fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-sap.js\n ** module id = 56\n ** module chunks = 0\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object')\n , $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function(){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.get-prototype-of.js\n ** module id = 57\n ** module chunks = 0\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_to-object.js\n ** module id = 58\n ** module chunks = 0\n **/","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has')\n , toObject = require('./_to-object')\n , IE_PROTO = require('./_shared-key')('IE_PROTO')\n , ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function(O){\n O = toObject(O);\n if(has(O, IE_PROTO))return O[IE_PROTO];\n if(typeof O.constructor == 'function' && O instanceof O.constructor){\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-gpo.js\n ** module id = 59\n ** module chunks = 0\n **/","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object')\n , $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function(){\n return function keys(it){\n return $keys(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.keys.js\n ** module id = 60\n ** module chunks = 0\n **/","// 19.1.2.7 Object.getOwnPropertyNames(O)\nrequire('./_object-sap')('getOwnPropertyNames', function(){\n return require('./_object-gopn-ext').f;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.get-own-property-names.js\n ** module id = 61\n ** module chunks = 0\n **/","// 19.1.2.5 Object.freeze(O)\nvar isObject = require('./_is-object')\n , meta = require('./_meta').onFreeze;\n\nrequire('./_object-sap')('freeze', function($freeze){\n return function freeze(it){\n return $freeze && isObject(it) ? $freeze(meta(it)) : it;\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.freeze.js\n ** module id = 62\n ** module chunks = 0\n **/","// 19.1.2.17 Object.seal(O)\nvar isObject = require('./_is-object')\n , meta = require('./_meta').onFreeze;\n\nrequire('./_object-sap')('seal', function($seal){\n return function seal(it){\n return $seal && isObject(it) ? $seal(meta(it)) : it;\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.seal.js\n ** module id = 63\n ** module chunks = 0\n **/","// 19.1.2.15 Object.preventExtensions(O)\nvar isObject = require('./_is-object')\n , meta = require('./_meta').onFreeze;\n\nrequire('./_object-sap')('preventExtensions', function($preventExtensions){\n return function preventExtensions(it){\n return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.prevent-extensions.js\n ** module id = 64\n ** module chunks = 0\n **/","// 19.1.2.12 Object.isFrozen(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isFrozen', function($isFrozen){\n return function isFrozen(it){\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.is-frozen.js\n ** module id = 65\n ** module chunks = 0\n **/","// 19.1.2.13 Object.isSealed(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isSealed', function($isSealed){\n return function isSealed(it){\n return isObject(it) ? $isSealed ? $isSealed(it) : false : true;\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.is-sealed.js\n ** module id = 66\n ** module chunks = 0\n **/","// 19.1.2.11 Object.isExtensible(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isExtensible', function($isExtensible){\n return function isExtensible(it){\n return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.is-extensible.js\n ** module id = 67\n ** module chunks = 0\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./_object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.assign.js\n ** module id = 68\n ** module chunks = 0\n **/","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys')\n , gOPS = require('./_object-gops')\n , pIE = require('./_object-pie')\n , toObject = require('./_to-object')\n , IObject = require('./_iobject')\n , $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function(){\n var A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , aLen = arguments.length\n , index = 1\n , getSymbols = gOPS.f\n , isEnum = pIE.f;\n while(aLen > index){\n var S = IObject(arguments[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n } return T;\n} : $assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-assign.js\n ** module id = 69\n ** module chunks = 0\n **/","// 19.1.3.10 Object.is(value1, value2)\nvar $export = require('./_export');\n$export($export.S, 'Object', {is: require('./_same-value')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.is.js\n ** module id = 70\n ** module chunks = 0\n **/","// 7.2.9 SameValue(x, y)\nmodule.exports = Object.is || function is(x, y){\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_same-value.js\n ** module id = 71\n ** module chunks = 0\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', {setPrototypeOf: require('./_set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.set-prototype-of.js\n ** module id = 72\n ** module chunks = 0\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object')\n , anObject = require('./_an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_set-proto.js\n ** module id = 73\n ** module chunks = 0\n **/","'use strict';\n// 19.1.3.6 Object.prototype.toString()\nvar classof = require('./_classof')\n , test = {};\ntest[require('./_wks')('toStringTag')] = 'z';\nif(test + '' != '[object z]'){\n require('./_redefine')(Object.prototype, 'toString', function toString(){\n return '[object ' + classof(this) + ']';\n }, true);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.object.to-string.js\n ** module id = 74\n ** module chunks = 0\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof')\n , TAG = require('./_wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function(it, key){\n try {\n return it[key];\n } catch(e){ /* empty */ }\n};\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_classof.js\n ** module id = 75\n ** module chunks = 0\n **/","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', {bind: require('./_bind')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.function.bind.js\n ** module id = 76\n ** module chunks = 0\n **/","'use strict';\nvar aFunction = require('./_a-function')\n , isObject = require('./_is-object')\n , invoke = require('./_invoke')\n , arraySlice = [].slice\n , factories = {};\n\nvar construct = function(F, len, args){\n if(!(len in factories)){\n for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']';\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /*, args... */){\n var fn = aFunction(this)\n , partArgs = arraySlice.call(arguments, 1);\n var bound = function(/* args... */){\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if(isObject(fn.prototype))bound.prototype = fn.prototype;\n return bound;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_bind.js\n ** module id = 77\n ** module chunks = 0\n **/","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function(fn, args, that){\n var un = that === undefined;\n switch(args.length){\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_invoke.js\n ** module id = 78\n ** module chunks = 0\n **/","var dP = require('./_object-dp').f\n , createDesc = require('./_property-desc')\n , has = require('./_has')\n , FProto = Function.prototype\n , nameRE = /^\\s*function ([^ (]*)/\n , NAME = 'name';\n\nvar isExtensible = Object.isExtensible || function(){\n return true;\n};\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function(){\n try {\n var that = this\n , name = ('' + that).match(nameRE)[1];\n has(that, NAME) || !isExtensible(that) || dP(that, NAME, createDesc(5, name));\n return name;\n } catch(e){\n return '';\n }\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.function.name.js\n ** module id = 79\n ** module chunks = 0\n **/","'use strict';\nvar isObject = require('./_is-object')\n , getPrototypeOf = require('./_object-gpo')\n , HAS_INSTANCE = require('./_wks')('hasInstance')\n , FunctionProto = Function.prototype;\n// 19.2.3.6 Function.prototype[@@hasInstance](V)\nif(!(HAS_INSTANCE in FunctionProto))require('./_object-dp').f(FunctionProto, HAS_INSTANCE, {value: function(O){\n if(typeof this != 'function' || !isObject(O))return false;\n if(!isObject(this.prototype))return O instanceof this;\n // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:\n while(O = getPrototypeOf(O))if(this.prototype === O)return true;\n return false;\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.function.has-instance.js\n ** module id = 80\n ** module chunks = 0\n **/","var $export = require('./_export')\n , $parseInt = require('./_parse-int');\n// 18.2.5 parseInt(string, radix)\n$export($export.G + $export.F * (parseInt != $parseInt), {parseInt: $parseInt});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.parse-int.js\n ** module id = 81\n ** module chunks = 0\n **/","var $parseInt = require('./_global').parseInt\n , $trim = require('./_string-trim').trim\n , ws = require('./_string-ws')\n , hex = /^[\\-+]?0[xX]/;\n\nmodule.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix){\n var string = $trim(String(str), 3);\n return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));\n} : $parseInt;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_parse-int.js\n ** module id = 82\n ** module chunks = 0\n **/","var $export = require('./_export')\n , defined = require('./_defined')\n , fails = require('./_fails')\n , spaces = require('./_string-ws')\n , space = '[' + spaces + ']'\n , non = '\\u200b\\u0085'\n , ltrim = RegExp('^' + space + space + '*')\n , rtrim = RegExp(space + space + '*$');\n\nvar exporter = function(KEY, exec, ALIAS){\n var exp = {};\n var FORCE = fails(function(){\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if(ALIAS)exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function(string, TYPE){\n string = String(defined(string));\n if(TYPE & 1)string = string.replace(ltrim, '');\n if(TYPE & 2)string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_string-trim.js\n ** module id = 83\n ** module chunks = 0\n **/","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_string-ws.js\n ** module id = 84\n ** module chunks = 0\n **/","var $export = require('./_export')\n , $parseFloat = require('./_parse-float');\n// 18.2.4 parseFloat(string)\n$export($export.G + $export.F * (parseFloat != $parseFloat), {parseFloat: $parseFloat});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.parse-float.js\n ** module id = 85\n ** module chunks = 0\n **/","var $parseFloat = require('./_global').parseFloat\n , $trim = require('./_string-trim').trim;\n\nmodule.exports = 1 / $parseFloat(require('./_string-ws') + '-0') !== -Infinity ? function parseFloat(str){\n var string = $trim(String(str), 3)\n , result = $parseFloat(string);\n return result === 0 && string.charAt(0) == '-' ? -0 : result;\n} : $parseFloat;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_parse-float.js\n ** module id = 86\n ** module chunks = 0\n **/","'use strict';\nvar global = require('./_global')\n , has = require('./_has')\n , cof = require('./_cof')\n , inheritIfRequired = require('./_inherit-if-required')\n , toPrimitive = require('./_to-primitive')\n , fails = require('./_fails')\n , gOPN = require('./_object-gopn').f\n , gOPD = require('./_object-gopd').f\n , dP = require('./_object-dp').f\n , $trim = require('./_string-trim').trim\n , NUMBER = 'Number'\n , $Number = global[NUMBER]\n , Base = $Number\n , proto = $Number.prototype\n // Opera ~12 has broken Object#toString\n , BROKEN_COF = cof(require('./_object-create')(proto)) == NUMBER\n , TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function(argument){\n var it = toPrimitive(argument, false);\n if(typeof it == 'string' && it.length > 2){\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0)\n , third, radix, maxCode;\n if(first === 43 || first === 45){\n third = it.charCodeAt(2);\n if(third === 88 || third === 120)return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if(first === 48){\n switch(it.charCodeAt(1)){\n case 66 : case 98 : radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79 : case 111 : radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default : return +it;\n }\n for(var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++){\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if(code < 48 || code > maxCode)return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif(!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')){\n $Number = function Number(value){\n var it = arguments.length < 1 ? 0 : value\n , that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function(){ proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for(var keys = require('./_descriptors') ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++){\n if(has(Base, key = keys[j]) && !has($Number, key)){\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n require('./_redefine')(global, NUMBER, $Number);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.constructor.js\n ** module id = 87\n ** module chunks = 0\n **/","var isObject = require('./_is-object')\n , setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function(that, target, C){\n var P, S = target.constructor;\n if(S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf){\n setPrototypeOf(that, P);\n } return that;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_inherit-if-required.js\n ** module id = 88\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , toInteger = require('./_to-integer')\n , aNumberValue = require('./_a-number-value')\n , repeat = require('./_string-repeat')\n , $toFixed = 1..toFixed\n , floor = Math.floor\n , data = [0, 0, 0, 0, 0, 0]\n , ERROR = 'Number.toFixed: incorrect invocation!'\n , ZERO = '0';\n\nvar multiply = function(n, c){\n var i = -1\n , c2 = c;\n while(++i < 6){\n c2 += n * data[i];\n data[i] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\nvar divide = function(n){\n var i = 6\n , c = 0;\n while(--i >= 0){\n c += data[i];\n data[i] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\nvar numToString = function(){\n var i = 6\n , s = '';\n while(--i >= 0){\n if(s !== '' || i === 0 || data[i] !== 0){\n var t = String(data[i]);\n s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t;\n }\n } return s;\n};\nvar pow = function(x, n, acc){\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\nvar log = function(x){\n var n = 0\n , x2 = x;\n while(x2 >= 4096){\n n += 12;\n x2 /= 4096;\n }\n while(x2 >= 2){\n n += 1;\n x2 /= 2;\n } return n;\n};\n\n$export($export.P + $export.F * (!!$toFixed && (\n 0.00008.toFixed(3) !== '0.000' ||\n 0.9.toFixed(0) !== '1' ||\n 1.255.toFixed(2) !== '1.25' ||\n 1000000000000000128..toFixed(0) !== '1000000000000000128'\n) || !require('./_fails')(function(){\n // V8 ~ Android 4.3-\n $toFixed.call({});\n})), 'Number', {\n toFixed: function toFixed(fractionDigits){\n var x = aNumberValue(this, ERROR)\n , f = toInteger(fractionDigits)\n , s = ''\n , m = ZERO\n , e, z, j, k;\n if(f < 0 || f > 20)throw RangeError(ERROR);\n if(x != x)return 'NaN';\n if(x <= -1e21 || x >= 1e21)return String(x);\n if(x < 0){\n s = '-';\n x = -x;\n }\n if(x > 1e-21){\n e = log(x * pow(2, 69, 1)) - 69;\n z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if(e > 0){\n multiply(0, z);\n j = f;\n while(j >= 7){\n multiply(1e7, 0);\n j -= 7;\n }\n multiply(pow(10, j, 1), 0);\n j = e - 1;\n while(j >= 23){\n divide(1 << 23);\n j -= 23;\n }\n divide(1 << j);\n multiply(1, 1);\n divide(2);\n m = numToString();\n } else {\n multiply(0, z);\n multiply(1 << -e, 0);\n m = numToString() + repeat.call(ZERO, f);\n }\n }\n if(f > 0){\n k = m.length;\n m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f));\n } else {\n m = s + m;\n } return m;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.to-fixed.js\n ** module id = 89\n ** module chunks = 0\n **/","var cof = require('./_cof');\nmodule.exports = function(it, msg){\n if(typeof it != 'number' && cof(it) != 'Number')throw TypeError(msg);\n return +it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_a-number-value.js\n ** module id = 90\n ** module chunks = 0\n **/","'use strict';\nvar toInteger = require('./_to-integer')\n , defined = require('./_defined');\n\nmodule.exports = function repeat(count){\n var str = String(defined(this))\n , res = ''\n , n = toInteger(count);\n if(n < 0 || n == Infinity)throw RangeError(\"Count can't be negative\");\n for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str;\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_string-repeat.js\n ** module id = 91\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $fails = require('./_fails')\n , aNumberValue = require('./_a-number-value')\n , $toPrecision = 1..toPrecision;\n\n$export($export.P + $export.F * ($fails(function(){\n // IE7-\n return $toPrecision.call(1, undefined) !== '1';\n}) || !$fails(function(){\n // V8 ~ Android 4.3-\n $toPrecision.call({});\n})), 'Number', {\n toPrecision: function toPrecision(precision){\n var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');\n return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision); \n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.to-precision.js\n ** module id = 92\n ** module chunks = 0\n **/","// 20.1.2.1 Number.EPSILON\nvar $export = require('./_export');\n\n$export($export.S, 'Number', {EPSILON: Math.pow(2, -52)});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.epsilon.js\n ** module id = 93\n ** module chunks = 0\n **/","// 20.1.2.2 Number.isFinite(number)\nvar $export = require('./_export')\n , _isFinite = require('./_global').isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it){\n return typeof it == 'number' && _isFinite(it);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.is-finite.js\n ** module id = 94\n ** module chunks = 0\n **/","// 20.1.2.3 Number.isInteger(number)\nvar $export = require('./_export');\n\n$export($export.S, 'Number', {isInteger: require('./_is-integer')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.is-integer.js\n ** module id = 95\n ** module chunks = 0\n **/","// 20.1.2.3 Number.isInteger(number)\nvar isObject = require('./_is-object')\n , floor = Math.floor;\nmodule.exports = function isInteger(it){\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_is-integer.js\n ** module id = 96\n ** module chunks = 0\n **/","// 20.1.2.4 Number.isNaN(number)\nvar $export = require('./_export');\n\n$export($export.S, 'Number', {\n isNaN: function isNaN(number){\n return number != number;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.is-nan.js\n ** module id = 97\n ** module chunks = 0\n **/","// 20.1.2.5 Number.isSafeInteger(number)\nvar $export = require('./_export')\n , isInteger = require('./_is-integer')\n , abs = Math.abs;\n\n$export($export.S, 'Number', {\n isSafeInteger: function isSafeInteger(number){\n return isInteger(number) && abs(number) <= 0x1fffffffffffff;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.is-safe-integer.js\n ** module id = 98\n ** module chunks = 0\n **/","// 20.1.2.6 Number.MAX_SAFE_INTEGER\nvar $export = require('./_export');\n\n$export($export.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.max-safe-integer.js\n ** module id = 99\n ** module chunks = 0\n **/","// 20.1.2.10 Number.MIN_SAFE_INTEGER\nvar $export = require('./_export');\n\n$export($export.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.min-safe-integer.js\n ** module id = 100\n ** module chunks = 0\n **/","var $export = require('./_export')\n , $parseFloat = require('./_parse-float');\n// 20.1.2.12 Number.parseFloat(string)\n$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', {parseFloat: $parseFloat});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.parse-float.js\n ** module id = 101\n ** module chunks = 0\n **/","var $export = require('./_export')\n , $parseInt = require('./_parse-int');\n// 20.1.2.13 Number.parseInt(string, radix)\n$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', {parseInt: $parseInt});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.number.parse-int.js\n ** module id = 102\n ** module chunks = 0\n **/","// 20.2.2.3 Math.acosh(x)\nvar $export = require('./_export')\n , log1p = require('./_math-log1p')\n , sqrt = Math.sqrt\n , $acosh = Math.acosh;\n\n$export($export.S + $export.F * !($acosh\n // V8 bug: https://code.google.com/p/v8/issues/detail?id=3509\n && Math.floor($acosh(Number.MAX_VALUE)) == 710\n // Tor Browser bug: Math.acosh(Infinity) -> NaN \n && $acosh(Infinity) == Infinity\n), 'Math', {\n acosh: function acosh(x){\n return (x = +x) < 1 ? NaN : x > 94906265.62425156\n ? Math.log(x) + Math.LN2\n : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.acosh.js\n ** module id = 103\n ** module chunks = 0\n **/","// 20.2.2.20 Math.log1p(x)\nmodule.exports = Math.log1p || function log1p(x){\n return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_math-log1p.js\n ** module id = 104\n ** module chunks = 0\n **/","// 20.2.2.5 Math.asinh(x)\nvar $export = require('./_export')\n , $asinh = Math.asinh;\n\nfunction asinh(x){\n return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));\n}\n\n// Tor Browser bug: Math.asinh(0) -> -0 \n$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', {asinh: asinh});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.asinh.js\n ** module id = 105\n ** module chunks = 0\n **/","// 20.2.2.7 Math.atanh(x)\nvar $export = require('./_export')\n , $atanh = Math.atanh;\n\n// Tor Browser bug: Math.atanh(-0) -> 0 \n$export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {\n atanh: function atanh(x){\n return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.atanh.js\n ** module id = 106\n ** module chunks = 0\n **/","// 20.2.2.9 Math.cbrt(x)\nvar $export = require('./_export')\n , sign = require('./_math-sign');\n\n$export($export.S, 'Math', {\n cbrt: function cbrt(x){\n return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.cbrt.js\n ** module id = 107\n ** module chunks = 0\n **/","// 20.2.2.28 Math.sign(x)\nmodule.exports = Math.sign || function sign(x){\n return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_math-sign.js\n ** module id = 108\n ** module chunks = 0\n **/","// 20.2.2.11 Math.clz32(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n clz32: function clz32(x){\n return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.clz32.js\n ** module id = 109\n ** module chunks = 0\n **/","// 20.2.2.12 Math.cosh(x)\nvar $export = require('./_export')\n , exp = Math.exp;\n\n$export($export.S, 'Math', {\n cosh: function cosh(x){\n return (exp(x = +x) + exp(-x)) / 2;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.cosh.js\n ** module id = 110\n ** module chunks = 0\n **/","// 20.2.2.14 Math.expm1(x)\nvar $export = require('./_export')\n , $expm1 = require('./_math-expm1');\n\n$export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', {expm1: $expm1});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.expm1.js\n ** module id = 111\n ** module chunks = 0\n **/","// 20.2.2.14 Math.expm1(x)\nvar $expm1 = Math.expm1;\nmodule.exports = (!$expm1\n // Old FF bug\n || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168\n // Tor Browser bug\n || $expm1(-2e-17) != -2e-17\n) ? function expm1(x){\n return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;\n} : $expm1;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_math-expm1.js\n ** module id = 112\n ** module chunks = 0\n **/","// 20.2.2.16 Math.fround(x)\nvar $export = require('./_export')\n , sign = require('./_math-sign')\n , pow = Math.pow\n , EPSILON = pow(2, -52)\n , EPSILON32 = pow(2, -23)\n , MAX32 = pow(2, 127) * (2 - EPSILON32)\n , MIN32 = pow(2, -126);\n\nvar roundTiesToEven = function(n){\n return n + 1 / EPSILON - 1 / EPSILON;\n};\n\n\n$export($export.S, 'Math', {\n fround: function fround(x){\n var $abs = Math.abs(x)\n , $sign = sign(x)\n , a, result;\n if($abs < MIN32)return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;\n a = (1 + EPSILON32 / EPSILON) * $abs;\n result = a - (a - $abs);\n if(result > MAX32 || result != result)return $sign * Infinity;\n return $sign * result;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.fround.js\n ** module id = 113\n ** module chunks = 0\n **/","// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])\nvar $export = require('./_export')\n , abs = Math.abs;\n\n$export($export.S, 'Math', {\n hypot: function hypot(value1, value2){ // eslint-disable-line no-unused-vars\n var sum = 0\n , i = 0\n , aLen = arguments.length\n , larg = 0\n , arg, div;\n while(i < aLen){\n arg = abs(arguments[i++]);\n if(larg < arg){\n div = larg / arg;\n sum = sum * div * div + 1;\n larg = arg;\n } else if(arg > 0){\n div = arg / larg;\n sum += div * div;\n } else sum += arg;\n }\n return larg === Infinity ? Infinity : larg * Math.sqrt(sum);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.hypot.js\n ** module id = 114\n ** module chunks = 0\n **/","// 20.2.2.18 Math.imul(x, y)\nvar $export = require('./_export')\n , $imul = Math.imul;\n\n// some WebKit versions fails with big numbers, some has wrong arity\n$export($export.S + $export.F * require('./_fails')(function(){\n return $imul(0xffffffff, 5) != -5 || $imul.length != 2;\n}), 'Math', {\n imul: function imul(x, y){\n var UINT16 = 0xffff\n , xn = +x\n , yn = +y\n , xl = UINT16 & xn\n , yl = UINT16 & yn;\n return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.imul.js\n ** module id = 115\n ** module chunks = 0\n **/","// 20.2.2.21 Math.log10(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n log10: function log10(x){\n return Math.log(x) / Math.LN10;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.log10.js\n ** module id = 116\n ** module chunks = 0\n **/","// 20.2.2.20 Math.log1p(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {log1p: require('./_math-log1p')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.log1p.js\n ** module id = 117\n ** module chunks = 0\n **/","// 20.2.2.22 Math.log2(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n log2: function log2(x){\n return Math.log(x) / Math.LN2;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.log2.js\n ** module id = 118\n ** module chunks = 0\n **/","// 20.2.2.28 Math.sign(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {sign: require('./_math-sign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.sign.js\n ** module id = 119\n ** module chunks = 0\n **/","// 20.2.2.30 Math.sinh(x)\nvar $export = require('./_export')\n , expm1 = require('./_math-expm1')\n , exp = Math.exp;\n\n// V8 near Chromium 38 has a problem with very small numbers\n$export($export.S + $export.F * require('./_fails')(function(){\n return !Math.sinh(-2e-17) != -2e-17;\n}), 'Math', {\n sinh: function sinh(x){\n return Math.abs(x = +x) < 1\n ? (expm1(x) - expm1(-x)) / 2\n : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.sinh.js\n ** module id = 120\n ** module chunks = 0\n **/","// 20.2.2.33 Math.tanh(x)\nvar $export = require('./_export')\n , expm1 = require('./_math-expm1')\n , exp = Math.exp;\n\n$export($export.S, 'Math', {\n tanh: function tanh(x){\n var a = expm1(x = +x)\n , b = expm1(-x);\n return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.tanh.js\n ** module id = 121\n ** module chunks = 0\n **/","// 20.2.2.34 Math.trunc(x)\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n trunc: function trunc(it){\n return (it > 0 ? Math.floor : Math.ceil)(it);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.math.trunc.js\n ** module id = 122\n ** module chunks = 0\n **/","var $export = require('./_export')\n , toIndex = require('./_to-index')\n , fromCharCode = String.fromCharCode\n , $fromCodePoint = String.fromCodePoint;\n\n// length should be 1, old FF problem\n$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {\n // 21.1.2.2 String.fromCodePoint(...codePoints)\n fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars\n var res = []\n , aLen = arguments.length\n , i = 0\n , code;\n while(aLen > i){\n code = +arguments[i++];\n if(toIndex(code, 0x10ffff) !== code)throw RangeError(code + ' is not a valid code point');\n res.push(code < 0x10000\n ? fromCharCode(code)\n : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)\n );\n } return res.join('');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.from-code-point.js\n ** module id = 123\n ** module chunks = 0\n **/","var $export = require('./_export')\n , toIObject = require('./_to-iobject')\n , toLength = require('./_to-length');\n\n$export($export.S, 'String', {\n // 21.1.2.4 String.raw(callSite, ...substitutions)\n raw: function raw(callSite){\n var tpl = toIObject(callSite.raw)\n , len = toLength(tpl.length)\n , aLen = arguments.length\n , res = []\n , i = 0;\n while(len > i){\n res.push(String(tpl[i++]));\n if(i < aLen)res.push(String(arguments[i]));\n } return res.join('');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.raw.js\n ** module id = 124\n ** module chunks = 0\n **/","'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function($trim){\n return function trim(){\n return $trim(this, 3);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.trim.js\n ** module id = 125\n ** module chunks = 0\n **/","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.iterator.js\n ** module id = 126\n ** module chunks = 0\n **/","var toInteger = require('./_to-integer')\n , defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_string-at.js\n ** module id = 127\n ** module chunks = 0\n **/","'use strict';\nvar LIBRARY = require('./_library')\n , $export = require('./_export')\n , redefine = require('./_redefine')\n , hide = require('./_hide')\n , has = require('./_has')\n , Iterators = require('./_iterators')\n , $iterCreate = require('./_iter-create')\n , setToStringTag = require('./_set-to-string-tag')\n , getPrototypeOf = require('./_object-gpo')\n , ITERATOR = require('./_wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined\n , $anyNative = NAME == 'Array' ? proto.entries || $native : $native\n , methods, key, IteratorPrototype;\n // Fix native\n if($anyNative){\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base));\n if(IteratorPrototype !== Object.prototype){\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_iter-define.js\n ** module id = 128\n ** module chunks = 0\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_iterators.js\n ** module id = 129\n ** module chunks = 0\n **/","'use strict';\nvar create = require('./_object-create')\n , descriptor = require('./_property-desc')\n , setToStringTag = require('./_set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_iter-create.js\n ** module id = 130\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $at = require('./_string-at')(false);\n$export($export.P, 'String', {\n // 21.1.3.3 String.prototype.codePointAt(pos)\n codePointAt: function codePointAt(pos){\n return $at(this, pos);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.code-point-at.js\n ** module id = 131\n ** module chunks = 0\n **/","// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])\n'use strict';\nvar $export = require('./_export')\n , toLength = require('./_to-length')\n , context = require('./_string-context')\n , ENDS_WITH = 'endsWith'\n , $endsWith = ''[ENDS_WITH];\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(ENDS_WITH), 'String', {\n endsWith: function endsWith(searchString /*, endPosition = @length */){\n var that = context(this, searchString, ENDS_WITH)\n , endPosition = arguments.length > 1 ? arguments[1] : undefined\n , len = toLength(that.length)\n , end = endPosition === undefined ? len : Math.min(toLength(endPosition), len)\n , search = String(searchString);\n return $endsWith\n ? $endsWith.call(that, search, end)\n : that.slice(end - search.length, end) === search;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.ends-with.js\n ** module id = 132\n ** module chunks = 0\n **/","// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = require('./_is-regexp')\n , defined = require('./_defined');\n\nmodule.exports = function(that, searchString, NAME){\n if(isRegExp(searchString))throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_string-context.js\n ** module id = 133\n ** module chunks = 0\n **/","// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object')\n , cof = require('./_cof')\n , MATCH = require('./_wks')('match');\nmodule.exports = function(it){\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_is-regexp.js\n ** module id = 134\n ** module chunks = 0\n **/","var MATCH = require('./_wks')('match');\nmodule.exports = function(KEY){\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch(e){\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch(f){ /* empty */ }\n } return true;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_fails-is-regexp.js\n ** module id = 135\n ** module chunks = 0\n **/","// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n'use strict';\nvar $export = require('./_export')\n , context = require('./_string-context')\n , INCLUDES = 'includes';\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', {\n includes: function includes(searchString /*, position = 0 */){\n return !!~context(this, searchString, INCLUDES)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.includes.js\n ** module id = 136\n ** module chunks = 0\n **/","var $export = require('./_export');\n\n$export($export.P, 'String', {\n // 21.1.3.13 String.prototype.repeat(count)\n repeat: require('./_string-repeat')\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.repeat.js\n ** module id = 137\n ** module chunks = 0\n **/","// 21.1.3.18 String.prototype.startsWith(searchString [, position ])\n'use strict';\nvar $export = require('./_export')\n , toLength = require('./_to-length')\n , context = require('./_string-context')\n , STARTS_WITH = 'startsWith'\n , $startsWith = ''[STARTS_WITH];\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(STARTS_WITH), 'String', {\n startsWith: function startsWith(searchString /*, position = 0 */){\n var that = context(this, searchString, STARTS_WITH)\n , index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length))\n , search = String(searchString);\n return $startsWith\n ? $startsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.starts-with.js\n ** module id = 138\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.2 String.prototype.anchor(name)\nrequire('./_string-html')('anchor', function(createHTML){\n return function anchor(name){\n return createHTML(this, 'a', 'name', name);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.anchor.js\n ** module id = 139\n ** module chunks = 0\n **/","var $export = require('./_export')\n , fails = require('./_fails')\n , defined = require('./_defined')\n , quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function(string, tag, attribute, value) {\n var S = String(defined(string))\n , p1 = '<' + tag;\n if(attribute !== '')p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function(NAME, exec){\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function(){\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_string-html.js\n ** module id = 140\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.3 String.prototype.big()\nrequire('./_string-html')('big', function(createHTML){\n return function big(){\n return createHTML(this, 'big', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.big.js\n ** module id = 141\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.4 String.prototype.blink()\nrequire('./_string-html')('blink', function(createHTML){\n return function blink(){\n return createHTML(this, 'blink', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.blink.js\n ** module id = 142\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.5 String.prototype.bold()\nrequire('./_string-html')('bold', function(createHTML){\n return function bold(){\n return createHTML(this, 'b', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.bold.js\n ** module id = 143\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.6 String.prototype.fixed()\nrequire('./_string-html')('fixed', function(createHTML){\n return function fixed(){\n return createHTML(this, 'tt', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.fixed.js\n ** module id = 144\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.7 String.prototype.fontcolor(color)\nrequire('./_string-html')('fontcolor', function(createHTML){\n return function fontcolor(color){\n return createHTML(this, 'font', 'color', color);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.fontcolor.js\n ** module id = 145\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.8 String.prototype.fontsize(size)\nrequire('./_string-html')('fontsize', function(createHTML){\n return function fontsize(size){\n return createHTML(this, 'font', 'size', size);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.fontsize.js\n ** module id = 146\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.9 String.prototype.italics()\nrequire('./_string-html')('italics', function(createHTML){\n return function italics(){\n return createHTML(this, 'i', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.italics.js\n ** module id = 147\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.10 String.prototype.link(url)\nrequire('./_string-html')('link', function(createHTML){\n return function link(url){\n return createHTML(this, 'a', 'href', url);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.link.js\n ** module id = 148\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.11 String.prototype.small()\nrequire('./_string-html')('small', function(createHTML){\n return function small(){\n return createHTML(this, 'small', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.small.js\n ** module id = 149\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.12 String.prototype.strike()\nrequire('./_string-html')('strike', function(createHTML){\n return function strike(){\n return createHTML(this, 'strike', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.strike.js\n ** module id = 150\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.13 String.prototype.sub()\nrequire('./_string-html')('sub', function(createHTML){\n return function sub(){\n return createHTML(this, 'sub', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.sub.js\n ** module id = 151\n ** module chunks = 0\n **/","'use strict';\n// B.2.3.14 String.prototype.sup()\nrequire('./_string-html')('sup', function(createHTML){\n return function sup(){\n return createHTML(this, 'sup', '', '');\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.string.sup.js\n ** module id = 152\n ** module chunks = 0\n **/","// 20.3.3.1 / 15.9.4.4 Date.now()\nvar $export = require('./_export');\n\n$export($export.S, 'Date', {now: function(){ return new Date().getTime(); }});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.date.now.js\n ** module id = 153\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , toObject = require('./_to-object')\n , toPrimitive = require('./_to-primitive');\n\n$export($export.P + $export.F * require('./_fails')(function(){\n return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({toISOString: function(){ return 1; }}) !== 1;\n}), 'Date', {\n toJSON: function toJSON(key){\n var O = toObject(this)\n , pv = toPrimitive(O);\n return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.date.to-json.js\n ** module id = 154\n ** module chunks = 0\n **/","'use strict';\n// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()\nvar $export = require('./_export')\n , fails = require('./_fails')\n , getTime = Date.prototype.getTime;\n\nvar lz = function(num){\n return num > 9 ? num : '0' + num;\n};\n\n// PhantomJS / old WebKit has a broken implementations\n$export($export.P + $export.F * (fails(function(){\n return new Date(-5e13 - 1).toISOString() != '0385-07-25T07:06:39.999Z';\n}) || !fails(function(){\n new Date(NaN).toISOString();\n})), 'Date', {\n toISOString: function toISOString(){\n if(!isFinite(getTime.call(this)))throw RangeError('Invalid time value');\n var d = this\n , y = d.getUTCFullYear()\n , m = d.getUTCMilliseconds()\n , s = y < 0 ? '-' : y > 9999 ? '+' : '';\n return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +\n '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +\n 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +\n ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.date.to-iso-string.js\n ** module id = 155\n ** module chunks = 0\n **/","var DateProto = Date.prototype\n , INVALID_DATE = 'Invalid Date'\n , TO_STRING = 'toString'\n , $toString = DateProto[TO_STRING]\n , getTime = DateProto.getTime;\nif(new Date(NaN) + '' != INVALID_DATE){\n require('./_redefine')(DateProto, TO_STRING, function toString(){\n var value = getTime.call(this);\n return value === value ? $toString.call(this) : INVALID_DATE;\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.date.to-string.js\n ** module id = 156\n ** module chunks = 0\n **/","var TO_PRIMITIVE = require('./_wks')('toPrimitive')\n , proto = Date.prototype;\n\nif(!(TO_PRIMITIVE in proto))require('./_hide')(proto, TO_PRIMITIVE, require('./_date-to-primitive'));\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.date.to-primitive.js\n ** module id = 157\n ** module chunks = 0\n **/","'use strict';\nvar anObject = require('./_an-object')\n , toPrimitive = require('./_to-primitive')\n , NUMBER = 'number';\n\nmodule.exports = function(hint){\n if(hint !== 'string' && hint !== NUMBER && hint !== 'default')throw TypeError('Incorrect hint');\n return toPrimitive(anObject(this), hint != NUMBER);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_date-to-primitive.js\n ** module id = 158\n ** module chunks = 0\n **/","// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\nvar $export = require('./_export');\n\n$export($export.S, 'Array', {isArray: require('./_is-array')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.is-array.js\n ** module id = 159\n ** module chunks = 0\n **/","'use strict';\nvar ctx = require('./_ctx')\n , $export = require('./_export')\n , toObject = require('./_to-object')\n , call = require('./_iter-call')\n , isArrayIter = require('./_is-array-iter')\n , toLength = require('./_to-length')\n , createProperty = require('./_create-property')\n , getIterFn = require('./core.get-iterator-method');\n\n$export($export.S + $export.F * !require('./_iter-detect')(function(iter){ Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){\n var O = toObject(arrayLike)\n , C = typeof this == 'function' ? this : Array\n , aLen = arguments.length\n , mapfn = aLen > 1 ? arguments[1] : undefined\n , mapping = mapfn !== undefined\n , index = 0\n , iterFn = getIterFn(O)\n , length, result, step, iterator;\n if(mapping)mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\n if(iterFn != undefined && !(C == Array && isArrayIter(iterFn))){\n for(iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++){\n createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);\n }\n } else {\n length = toLength(O.length);\n for(result = new C(length); length > index; index++){\n createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);\n }\n }\n result.length = index;\n return result;\n }\n});\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.from.js\n ** module id = 160\n ** module chunks = 0\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_iter-call.js\n ** module id = 161\n ** module chunks = 0\n **/","// check on default Array iterator\nvar Iterators = require('./_iterators')\n , ITERATOR = require('./_wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_is-array-iter.js\n ** module id = 162\n ** module chunks = 0\n **/","'use strict';\nvar $defineProperty = require('./_object-dp')\n , createDesc = require('./_property-desc');\n\nmodule.exports = function(object, index, value){\n if(index in object)$defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_create-property.js\n ** module id = 163\n ** module chunks = 0\n **/","var classof = require('./_classof')\n , ITERATOR = require('./_wks')('iterator')\n , Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.get-iterator-method.js\n ** module id = 164\n ** module chunks = 0\n **/","var ITERATOR = require('./_wks')('iterator')\n , SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function(){ SAFE_CLOSING = true; };\n Array.from(riter, function(){ throw 2; });\n} catch(e){ /* empty */ }\n\nmodule.exports = function(exec, skipClosing){\n if(!skipClosing && !SAFE_CLOSING)return false;\n var safe = false;\n try {\n var arr = [7]\n , iter = arr[ITERATOR]();\n iter.next = function(){ return {done: safe = true}; };\n arr[ITERATOR] = function(){ return iter; };\n exec(arr);\n } catch(e){ /* empty */ }\n return safe;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_iter-detect.js\n ** module id = 165\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , createProperty = require('./_create-property');\n\n// WebKit Array.of isn't generic\n$export($export.S + $export.F * require('./_fails')(function(){\n function F(){}\n return !(Array.of.call(F) instanceof F);\n}), 'Array', {\n // 22.1.2.3 Array.of( ...items)\n of: function of(/* ...args */){\n var index = 0\n , aLen = arguments.length\n , result = new (typeof this == 'function' ? this : Array)(aLen);\n while(aLen > index)createProperty(result, index, arguments[index++]);\n result.length = aLen;\n return result;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.of.js\n ** module id = 166\n ** module chunks = 0\n **/","'use strict';\n// 22.1.3.13 Array.prototype.join(separator)\nvar $export = require('./_export')\n , toIObject = require('./_to-iobject')\n , arrayJoin = [].join;\n\n// fallback for not array-like strings\n$export($export.P + $export.F * (require('./_iobject') != Object || !require('./_strict-method')(arrayJoin)), 'Array', {\n join: function join(separator){\n return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.join.js\n ** module id = 167\n ** module chunks = 0\n **/","var fails = require('./_fails');\n\nmodule.exports = function(method, arg){\n return !!method && fails(function(){\n arg ? method.call(null, function(){}, 1) : method.call(null);\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_strict-method.js\n ** module id = 168\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , html = require('./_html')\n , cof = require('./_cof')\n , toIndex = require('./_to-index')\n , toLength = require('./_to-length')\n , arraySlice = [].slice;\n\n// fallback for not array-like ES3 strings and DOM objects\n$export($export.P + $export.F * require('./_fails')(function(){\n if(html)arraySlice.call(html);\n}), 'Array', {\n slice: function slice(begin, end){\n var len = toLength(this.length)\n , klass = cof(this);\n end = end === undefined ? len : end;\n if(klass == 'Array')return arraySlice.call(this, begin, end);\n var start = toIndex(begin, len)\n , upTo = toIndex(end, len)\n , size = toLength(upTo - start)\n , cloned = Array(size)\n , i = 0;\n for(; i < size; i++)cloned[i] = klass == 'String'\n ? this.charAt(start + i)\n : this[start + i];\n return cloned;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.slice.js\n ** module id = 169\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , aFunction = require('./_a-function')\n , toObject = require('./_to-object')\n , fails = require('./_fails')\n , $sort = [].sort\n , test = [1, 2, 3];\n\n$export($export.P + $export.F * (fails(function(){\n // IE8-\n test.sort(undefined);\n}) || !fails(function(){\n // V8 bug\n test.sort(null);\n // Old WebKit\n}) || !require('./_strict-method')($sort)), 'Array', {\n // 22.1.3.25 Array.prototype.sort(comparefn)\n sort: function sort(comparefn){\n return comparefn === undefined\n ? $sort.call(toObject(this))\n : $sort.call(toObject(this), aFunction(comparefn));\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.sort.js\n ** module id = 170\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $forEach = require('./_array-methods')(0)\n , STRICT = require('./_strict-method')([].forEach, true);\n\n$export($export.P + $export.F * !STRICT, 'Array', {\n // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])\n forEach: function forEach(callbackfn /* , thisArg */){\n return $forEach(this, callbackfn, arguments[1]);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.for-each.js\n ** module id = 171\n ** module chunks = 0\n **/","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx')\n , IObject = require('./_iobject')\n , toObject = require('./_to-object')\n , toLength = require('./_to-length')\n , asc = require('./_array-species-create');\nmodule.exports = function(TYPE, $create){\n var IS_MAP = TYPE == 1\n , IS_FILTER = TYPE == 2\n , IS_SOME = TYPE == 3\n , IS_EVERY = TYPE == 4\n , IS_FIND_INDEX = TYPE == 6\n , NO_HOLES = TYPE == 5 || IS_FIND_INDEX\n , create = $create || asc;\n return function($this, callbackfn, that){\n var O = toObject($this)\n , self = IObject(O)\n , f = ctx(callbackfn, that, 3)\n , length = toLength(self.length)\n , index = 0\n , result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined\n , val, res;\n for(;length > index; index++)if(NO_HOLES || index in self){\n val = self[index];\n res = f(val, index, O);\n if(TYPE){\n if(IS_MAP)result[index] = res; // map\n else if(res)switch(TYPE){\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if(IS_EVERY)return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-methods.js\n ** module id = 172\n ** module chunks = 0\n **/","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function(original, length){\n return new (speciesConstructor(original))(length);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-species-create.js\n ** module id = 173\n ** module chunks = 0\n **/","var isObject = require('./_is-object')\n , isArray = require('./_is-array')\n , SPECIES = require('./_wks')('species');\n\nmodule.exports = function(original){\n var C;\n if(isArray(original)){\n C = original.constructor;\n // cross-realm fallback\n if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined;\n if(isObject(C)){\n C = C[SPECIES];\n if(C === null)C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-species-constructor.js\n ** module id = 174\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */){\n return $map(this, callbackfn, arguments[1]);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.map.js\n ** module id = 175\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */){\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.filter.js\n ** module id = 176\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $some = require('./_array-methods')(3);\n\n$export($export.P + $export.F * !require('./_strict-method')([].some, true), 'Array', {\n // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])\n some: function some(callbackfn /* , thisArg */){\n return $some(this, callbackfn, arguments[1]);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.some.js\n ** module id = 177\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $every = require('./_array-methods')(4);\n\n$export($export.P + $export.F * !require('./_strict-method')([].every, true), 'Array', {\n // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])\n every: function every(callbackfn /* , thisArg */){\n return $every(this, callbackfn, arguments[1]);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.every.js\n ** module id = 178\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $reduce = require('./_array-reduce');\n\n$export($export.P + $export.F * !require('./_strict-method')([].reduce, true), 'Array', {\n // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])\n reduce: function reduce(callbackfn /* , initialValue */){\n return $reduce(this, callbackfn, arguments.length, arguments[1], false);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.reduce.js\n ** module id = 179\n ** module chunks = 0\n **/","var aFunction = require('./_a-function')\n , toObject = require('./_to-object')\n , IObject = require('./_iobject')\n , toLength = require('./_to-length');\n\nmodule.exports = function(that, callbackfn, aLen, memo, isRight){\n aFunction(callbackfn);\n var O = toObject(that)\n , self = IObject(O)\n , length = toLength(O.length)\n , index = isRight ? length - 1 : 0\n , i = isRight ? -1 : 1;\n if(aLen < 2)for(;;){\n if(index in self){\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if(isRight ? index < 0 : length <= index){\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for(;isRight ? index >= 0 : length > index; index += i)if(index in self){\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-reduce.js\n ** module id = 180\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $reduce = require('./_array-reduce');\n\n$export($export.P + $export.F * !require('./_strict-method')([].reduceRight, true), 'Array', {\n // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])\n reduceRight: function reduceRight(callbackfn /* , initialValue */){\n return $reduce(this, callbackfn, arguments.length, arguments[1], true);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.reduce-right.js\n ** module id = 181\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $indexOf = require('./_array-includes')(false)\n , $native = [].indexOf\n , NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /*, fromIndex = 0 */){\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.index-of.js\n ** module id = 182\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , toIObject = require('./_to-iobject')\n , toInteger = require('./_to-integer')\n , toLength = require('./_to-length')\n , $native = [].lastIndexOf\n , NEGATIVE_ZERO = !!$native && 1 / [1].lastIndexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])\n lastIndexOf: function lastIndexOf(searchElement /*, fromIndex = @[*-1] */){\n // convert -0 to +0\n if(NEGATIVE_ZERO)return $native.apply(this, arguments) || 0;\n var O = toIObject(this)\n , length = toLength(O.length)\n , index = length - 1;\n if(arguments.length > 1)index = Math.min(index, toInteger(arguments[1]));\n if(index < 0)index = length + index;\n for(;index >= 0; index--)if(index in O)if(O[index] === searchElement)return index || 0;\n return -1;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.last-index-of.js\n ** module id = 183\n ** module chunks = 0\n **/","// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\nvar $export = require('./_export');\n\n$export($export.P, 'Array', {copyWithin: require('./_array-copy-within')});\n\nrequire('./_add-to-unscopables')('copyWithin');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.copy-within.js\n ** module id = 184\n ** module chunks = 0\n **/","// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\n'use strict';\nvar toObject = require('./_to-object')\n , toIndex = require('./_to-index')\n , toLength = require('./_to-length');\n\nmodule.exports = [].copyWithin || function copyWithin(target/*= 0*/, start/*= 0, end = @length*/){\n var O = toObject(this)\n , len = toLength(O.length)\n , to = toIndex(target, len)\n , from = toIndex(start, len)\n , end = arguments.length > 2 ? arguments[2] : undefined\n , count = Math.min((end === undefined ? len : toIndex(end, len)) - from, len - to)\n , inc = 1;\n if(from < to && to < from + count){\n inc = -1;\n from += count - 1;\n to += count - 1;\n }\n while(count-- > 0){\n if(from in O)O[to] = O[from];\n else delete O[to];\n to += inc;\n from += inc;\n } return O;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-copy-within.js\n ** module id = 185\n ** module chunks = 0\n **/","// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables')\n , ArrayProto = Array.prototype;\nif(ArrayProto[UNSCOPABLES] == undefined)require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function(key){\n ArrayProto[UNSCOPABLES][key] = true;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_add-to-unscopables.js\n ** module id = 186\n ** module chunks = 0\n **/","// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\nvar $export = require('./_export');\n\n$export($export.P, 'Array', {fill: require('./_array-fill')});\n\nrequire('./_add-to-unscopables')('fill');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.fill.js\n ** module id = 187\n ** module chunks = 0\n **/","// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\n'use strict';\nvar toObject = require('./_to-object')\n , toIndex = require('./_to-index')\n , toLength = require('./_to-length');\nmodule.exports = function fill(value /*, start = 0, end = @length */){\n var O = toObject(this)\n , length = toLength(O.length)\n , aLen = arguments.length\n , index = toIndex(aLen > 1 ? arguments[1] : undefined, length)\n , end = aLen > 2 ? arguments[2] : undefined\n , endPos = end === undefined ? length : toIndex(end, length);\n while(endPos > index)O[index++] = value;\n return O;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-fill.js\n ** module id = 188\n ** module chunks = 0\n **/","'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = require('./_export')\n , $find = require('./_array-methods')(5)\n , KEY = 'find'\n , forced = true;\n// Shouldn't skip holes\nif(KEY in [])Array(1)[KEY](function(){ forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn/*, that = undefined */){\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.find.js\n ** module id = 189\n ** module chunks = 0\n **/","'use strict';\n// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)\nvar $export = require('./_export')\n , $find = require('./_array-methods')(6)\n , KEY = 'findIndex'\n , forced = true;\n// Shouldn't skip holes\nif(KEY in [])Array(1)[KEY](function(){ forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n findIndex: function findIndex(callbackfn/*, that = undefined */){\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.find-index.js\n ** module id = 190\n ** module chunks = 0\n **/","require('./_set-species')('Array');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.species.js\n ** module id = 191\n ** module chunks = 0\n **/","'use strict';\nvar global = require('./_global')\n , dP = require('./_object-dp')\n , DESCRIPTORS = require('./_descriptors')\n , SPECIES = require('./_wks')('species');\n\nmodule.exports = function(KEY){\n var C = global[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])dP.f(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_set-species.js\n ** module id = 192\n ** module chunks = 0\n **/","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables')\n , step = require('./_iter-step')\n , Iterators = require('./_iterators')\n , toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.array.iterator.js\n ** module id = 193\n ** module chunks = 0\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_iter-step.js\n ** module id = 194\n ** module chunks = 0\n **/","var global = require('./_global')\n , inheritIfRequired = require('./_inherit-if-required')\n , dP = require('./_object-dp').f\n , gOPN = require('./_object-gopn').f\n , isRegExp = require('./_is-regexp')\n , $flags = require('./_flags')\n , $RegExp = global.RegExp\n , Base = $RegExp\n , proto = $RegExp.prototype\n , re1 = /a/g\n , re2 = /a/g\n // \"new\" creates a new object, old webkit buggy here\n , CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif(require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function(){\n re2[require('./_wks')('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))){\n $RegExp = function RegExp(p, f){\n var tiRE = this instanceof $RegExp\n , piRE = isRegExp(p)\n , fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function(key){\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function(){ return Base[key]; },\n set: function(it){ Base[key] = it; }\n });\n };\n for(var keys = gOPN(Base), i = 0; keys.length > i; )proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n require('./_redefine')(global, 'RegExp', $RegExp);\n}\n\nrequire('./_set-species')('RegExp');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.regexp.constructor.js\n ** module id = 195\n ** module chunks = 0\n **/","'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function(){\n var that = anObject(this)\n , result = '';\n if(that.global) result += 'g';\n if(that.ignoreCase) result += 'i';\n if(that.multiline) result += 'm';\n if(that.unicode) result += 'u';\n if(that.sticky) result += 'y';\n return result;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_flags.js\n ** module id = 196\n ** module chunks = 0\n **/","'use strict';\nrequire('./es6.regexp.flags');\nvar anObject = require('./_an-object')\n , $flags = require('./_flags')\n , DESCRIPTORS = require('./_descriptors')\n , TO_STRING = 'toString'\n , $toString = /./[TO_STRING];\n\nvar define = function(fn){\n require('./_redefine')(RegExp.prototype, TO_STRING, fn, true);\n};\n\n// 21.2.5.14 RegExp.prototype.toString()\nif(require('./_fails')(function(){ return $toString.call({source: 'a', flags: 'b'}) != '/a/b'; })){\n define(function toString(){\n var R = anObject(this);\n return '/'.concat(R.source, '/',\n 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);\n });\n// FF44- RegExp#toString has a wrong name\n} else if($toString.name != TO_STRING){\n define(function toString(){\n return $toString.call(this);\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.regexp.to-string.js\n ** module id = 197\n ** module chunks = 0\n **/","// 21.2.5.3 get RegExp.prototype.flags()\nif(require('./_descriptors') && /./g.flags != 'g')require('./_object-dp').f(RegExp.prototype, 'flags', {\n configurable: true,\n get: require('./_flags')\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.regexp.flags.js\n ** module id = 198\n ** module chunks = 0\n **/","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function(defined, MATCH, $match){\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp){\n 'use strict';\n var O = defined(this)\n , fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.regexp.match.js\n ** module id = 199\n ** module chunks = 0\n **/","'use strict';\nvar hide = require('./_hide')\n , redefine = require('./_redefine')\n , fails = require('./_fails')\n , defined = require('./_defined')\n , wks = require('./_wks');\n\nmodule.exports = function(KEY, length, exec){\n var SYMBOL = wks(KEY)\n , fns = exec(defined, SYMBOL, ''[KEY])\n , strfn = fns[0]\n , rxfn = fns[1];\n if(fails(function(){\n var O = {};\n O[SYMBOL] = function(){ return 7; };\n return ''[KEY](O) != 7;\n })){\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function(string, arg){ return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function(string){ return rxfn.call(string, this); }\n );\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_fix-re-wks.js\n ** module id = 200\n ** module chunks = 0\n **/","// @@replace logic\nrequire('./_fix-re-wks')('replace', 2, function(defined, REPLACE, $replace){\n // 21.1.3.14 String.prototype.replace(searchValue, replaceValue)\n return [function replace(searchValue, replaceValue){\n 'use strict';\n var O = defined(this)\n , fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n }, $replace];\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.regexp.replace.js\n ** module id = 201\n ** module chunks = 0\n **/","// @@search logic\nrequire('./_fix-re-wks')('search', 1, function(defined, SEARCH, $search){\n // 21.1.3.15 String.prototype.search(regexp)\n return [function search(regexp){\n 'use strict';\n var O = defined(this)\n , fn = regexp == undefined ? undefined : regexp[SEARCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));\n }, $search];\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.regexp.search.js\n ** module id = 202\n ** module chunks = 0\n **/","// @@split logic\nrequire('./_fix-re-wks')('split', 2, function(defined, SPLIT, $split){\n 'use strict';\n var isRegExp = require('./_is-regexp')\n , _split = $split\n , $push = [].push\n , $SPLIT = 'split'\n , LENGTH = 'length'\n , LAST_INDEX = 'lastIndex';\n if(\n 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||\n 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||\n 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||\n '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||\n '.'[$SPLIT](/()()/)[LENGTH] > 1 ||\n ''[$SPLIT](/.?/)[LENGTH]\n ){\n var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group\n // based on es5-shim implementation, need to rework it\n $split = function(separator, limit){\n var string = String(this);\n if(separator === undefined && limit === 0)return [];\n // If `separator` is not a regex, use native split\n if(!isRegExp(separator))return _split.call(string, separator, limit);\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var separator2, match, lastIndex, lastLength, i;\n // Doesn't need flags gy, but they don't hurt\n if(!NPCG)separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\\\s)', flags);\n while(match = separatorCopy.exec(string)){\n // `separatorCopy.lastIndex` is not reliable cross-browser\n lastIndex = match.index + match[0][LENGTH];\n if(lastIndex > lastLastIndex){\n output.push(string.slice(lastLastIndex, match.index));\n // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG\n if(!NPCG && match[LENGTH] > 1)match[0].replace(separator2, function(){\n for(i = 1; i < arguments[LENGTH] - 2; i++)if(arguments[i] === undefined)match[i] = undefined;\n });\n if(match[LENGTH] > 1 && match.index < string[LENGTH])$push.apply(output, match.slice(1));\n lastLength = match[0][LENGTH];\n lastLastIndex = lastIndex;\n if(output[LENGTH] >= splitLimit)break;\n }\n if(separatorCopy[LAST_INDEX] === match.index)separatorCopy[LAST_INDEX]++; // Avoid an infinite loop\n }\n if(lastLastIndex === string[LENGTH]){\n if(lastLength || !separatorCopy.test(''))output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;\n };\n // Chakra, V8\n } else if('0'[$SPLIT](undefined, 0)[LENGTH]){\n $split = function(separator, limit){\n return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);\n };\n }\n // 21.1.3.17 String.prototype.split(separator, limit)\n return [function split(separator, limit){\n var O = defined(this)\n , fn = separator == undefined ? undefined : separator[SPLIT];\n return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);\n }, $split];\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.regexp.split.js\n ** module id = 203\n ** module chunks = 0\n **/","'use strict';\nvar LIBRARY = require('./_library')\n , global = require('./_global')\n , ctx = require('./_ctx')\n , classof = require('./_classof')\n , $export = require('./_export')\n , isObject = require('./_is-object')\n , aFunction = require('./_a-function')\n , anInstance = require('./_an-instance')\n , forOf = require('./_for-of')\n , speciesConstructor = require('./_species-constructor')\n , task = require('./_task').set\n , microtask = require('./_microtask')()\n , PROMISE = 'Promise'\n , TypeError = global.TypeError\n , process = global.process\n , $Promise = global[PROMISE]\n , process = global.process\n , isNode = classof(process) == 'process'\n , empty = function(){ /* empty */ }\n , Internal, GenericPromiseCapability, Wrapper;\n\nvar USE_NATIVE = !!function(){\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1)\n , FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function(exec){ exec(empty, empty); };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;\n } catch(e){ /* empty */ }\n}();\n\n// helpers\nvar sameConstructor = function(a, b){\n // with library wrapper special case\n return a === b || a === $Promise && b === Wrapper;\n};\nvar isThenable = function(it){\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar newPromiseCapability = function(C){\n return sameConstructor($Promise, C)\n ? new PromiseCapability(C)\n : new GenericPromiseCapability(C);\n};\nvar PromiseCapability = GenericPromiseCapability = function(C){\n var resolve, reject;\n this.promise = new C(function($$resolve, $$reject){\n if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n};\nvar perform = function(exec){\n try {\n exec();\n } catch(e){\n return {error: e};\n }\n};\nvar notify = function(promise, isReject){\n if(promise._n)return;\n promise._n = true;\n var chain = promise._c;\n microtask(function(){\n var value = promise._v\n , ok = promise._s == 1\n , i = 0;\n var run = function(reaction){\n var handler = ok ? reaction.ok : reaction.fail\n , resolve = reaction.resolve\n , reject = reaction.reject\n , domain = reaction.domain\n , result, then;\n try {\n if(handler){\n if(!ok){\n if(promise._h == 2)onHandleUnhandled(promise);\n promise._h = 1;\n }\n if(handler === true)result = value;\n else {\n if(domain)domain.enter();\n result = handler(value);\n if(domain)domain.exit();\n }\n if(result === reaction.promise){\n reject(TypeError('Promise-chain cycle'));\n } else if(then = isThenable(result)){\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch(e){\n reject(e);\n }\n };\n while(chain.length > i)run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if(isReject && !promise._h)onUnhandled(promise);\n });\n};\nvar onUnhandled = function(promise){\n task.call(global, function(){\n var value = promise._v\n , abrupt, handler, console;\n if(isUnhandled(promise)){\n abrupt = perform(function(){\n if(isNode){\n process.emit('unhandledRejection', value, promise);\n } else if(handler = global.onunhandledrejection){\n handler({promise: promise, reason: value});\n } else if((console = global.console) && console.error){\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if(abrupt)throw abrupt.error;\n });\n};\nvar isUnhandled = function(promise){\n if(promise._h == 1)return false;\n var chain = promise._a || promise._c\n , i = 0\n , reaction;\n while(chain.length > i){\n reaction = chain[i++];\n if(reaction.fail || !isUnhandled(reaction.promise))return false;\n } return true;\n};\nvar onHandleUnhandled = function(promise){\n task.call(global, function(){\n var handler;\n if(isNode){\n process.emit('rejectionHandled', promise);\n } else if(handler = global.onrejectionhandled){\n handler({promise: promise, reason: promise._v});\n }\n });\n};\nvar $reject = function(value){\n var promise = this;\n if(promise._d)return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if(!promise._a)promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function(value){\n var promise = this\n , then;\n if(promise._d)return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if(promise === value)throw TypeError(\"Promise can't be resolved itself\");\n if(then = isThenable(value)){\n microtask(function(){\n var wrapper = {_w: promise, _d: false}; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch(e){\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch(e){\n $reject.call({_w: promise, _d: false}, e); // wrap\n }\n};\n\n// constructor polyfill\nif(!USE_NATIVE){\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor){\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch(err){\n $reject.call(this, err);\n }\n };\n Internal = function Promise(executor){\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected){\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if(this._a)this._a.push(reaction);\n if(this._s)notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function(onRejected){\n return this.then(undefined, onRejected);\n }\n });\n PromiseCapability = function(){\n var promise = new Internal;\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: $Promise});\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r){\n var capability = newPromiseCapability(this)\n , $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x){\n // instanceof instead of internal slot check because we should fix it without replacement native Promise core\n if(x instanceof $Promise && sameConstructor(x.constructor, this))return x;\n var capability = newPromiseCapability(this)\n , $$resolve = capability.resolve;\n $$resolve(x);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function(iter){\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable){\n var C = this\n , capability = newPromiseCapability(C)\n , resolve = capability.resolve\n , reject = capability.reject;\n var abrupt = perform(function(){\n var values = []\n , index = 0\n , remaining = 1;\n forOf(iterable, false, function(promise){\n var $index = index++\n , alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function(value){\n if(alreadyCalled)return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if(abrupt)reject(abrupt.error);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable){\n var C = this\n , capability = newPromiseCapability(C)\n , reject = capability.reject;\n var abrupt = perform(function(){\n forOf(iterable, false, function(promise){\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if(abrupt)reject(abrupt.error);\n return capability.promise;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.promise.js\n ** module id = 204\n ** module chunks = 0\n **/","module.exports = function(it, Constructor, name, forbiddenField){\n if(!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)){\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_an-instance.js\n ** module id = 205\n ** module chunks = 0\n **/","var ctx = require('./_ctx')\n , call = require('./_iter-call')\n , isArrayIter = require('./_is-array-iter')\n , anObject = require('./_an-object')\n , toLength = require('./_to-length')\n , getIterFn = require('./core.get-iterator-method')\n , BREAK = {}\n , RETURN = {};\nvar exports = module.exports = function(iterable, entries, fn, that, ITERATOR){\n var iterFn = ITERATOR ? function(){ return iterable; } : getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator, result;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if(result === BREAK || result === RETURN)return result;\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n result = call(iterator, f, step.value, entries);\n if(result === BREAK || result === RETURN)return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_for-of.js\n ** module id = 206\n ** module chunks = 0\n **/","// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object')\n , aFunction = require('./_a-function')\n , SPECIES = require('./_wks')('species');\nmodule.exports = function(O, D){\n var C = anObject(O).constructor, S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_species-constructor.js\n ** module id = 207\n ** module chunks = 0\n **/","var ctx = require('./_ctx')\n , invoke = require('./_invoke')\n , html = require('./_html')\n , cel = require('./_dom-create')\n , global = require('./_global')\n , process = global.process\n , setTask = global.setImmediate\n , clearTask = global.clearImmediate\n , MessageChannel = global.MessageChannel\n , counter = 0\n , queue = {}\n , ONREADYSTATECHANGE = 'onreadystatechange'\n , defer, channel, port;\nvar run = function(){\n var id = +this;\n if(queue.hasOwnProperty(id)){\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function(event){\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif(!setTask || !clearTask){\n setTask = function setImmediate(fn){\n var args = [], i = 1;\n while(arguments.length > i)args.push(arguments[i++]);\n queue[++counter] = function(){\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id){\n delete queue[id];\n };\n // Node.js 0.8-\n if(require('./_cof')(process) == 'process'){\n defer = function(id){\n process.nextTick(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if(MessageChannel){\n channel = new MessageChannel;\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){\n defer = function(id){\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if(ONREADYSTATECHANGE in cel('script')){\n defer = function(id){\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function(id){\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_task.js\n ** module id = 208\n ** module chunks = 0\n **/","var global = require('./_global')\n , macrotask = require('./_task').set\n , Observer = global.MutationObserver || global.WebKitMutationObserver\n , process = global.process\n , Promise = global.Promise\n , isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function(){\n var head, last, notify;\n\n var flush = function(){\n var parent, fn;\n if(isNode && (parent = process.domain))parent.exit();\n while(head){\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch(e){\n if(head)notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if(parent)parent.enter();\n };\n\n // Node.js\n if(isNode){\n notify = function(){\n process.nextTick(flush);\n };\n // browsers with MutationObserver\n } else if(Observer){\n var toggle = true\n , node = document.createTextNode('');\n new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new\n notify = function(){\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if(Promise && Promise.resolve){\n var promise = Promise.resolve();\n notify = function(){\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function(){\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function(fn){\n var task = {fn: fn, next: undefined};\n if(last)last.next = task;\n if(!head){\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_microtask.js\n ** module id = 209\n ** module chunks = 0\n **/","var redefine = require('./_redefine');\nmodule.exports = function(target, src, safe){\n for(var key in src)redefine(target, key, src[key], safe);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_redefine-all.js\n ** module id = 210\n ** module chunks = 0\n **/","'use strict';\nvar strong = require('./_collection-strong');\n\n// 23.1 Map Objects\nmodule.exports = require('./_collection')('Map', function(get){\n return function Map(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.1.3.6 Map.prototype.get(key)\n get: function get(key){\n var entry = strong.getEntry(this, key);\n return entry && entry.v;\n },\n // 23.1.3.9 Map.prototype.set(key, value)\n set: function set(key, value){\n return strong.def(this, key === 0 ? 0 : key, value);\n }\n}, strong, true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.map.js\n ** module id = 211\n ** module chunks = 0\n **/","'use strict';\nvar dP = require('./_object-dp').f\n , create = require('./_object-create')\n , redefineAll = require('./_redefine-all')\n , ctx = require('./_ctx')\n , anInstance = require('./_an-instance')\n , defined = require('./_defined')\n , forOf = require('./_for-of')\n , $iterDefine = require('./_iter-define')\n , step = require('./_iter-step')\n , setSpecies = require('./_set-species')\n , DESCRIPTORS = require('./_descriptors')\n , fastKey = require('./_meta').fastKey\n , SIZE = DESCRIPTORS ? '_s' : 'size';\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n anInstance(that, C, NAME, '_i');\n that._i = create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n anInstance(this, C, 'forEach');\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)dP(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_collection-strong.js\n ** module id = 212\n ** module chunks = 0\n **/","'use strict';\nvar global = require('./_global')\n , $export = require('./_export')\n , redefine = require('./_redefine')\n , redefineAll = require('./_redefine-all')\n , meta = require('./_meta')\n , forOf = require('./_for-of')\n , anInstance = require('./_an-instance')\n , isObject = require('./_is-object')\n , fails = require('./_fails')\n , $iterDetect = require('./_iter-detect')\n , setToStringTag = require('./_set-to-string-tag')\n , inheritIfRequired = require('./_inherit-if-required');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n var fixMethod = function(KEY){\n var fn = proto[KEY];\n redefine(proto, KEY,\n KEY == 'delete' ? function(a){\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a){\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a){\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a){ fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b){ fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if(typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n meta.NEED = true;\n } else {\n var instance = new C\n // early implementations not supports chaining\n , HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n , THROWS_ON_PRIMITIVES = fails(function(){ instance.has(1); })\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n , ACCEPT_ITERABLES = $iterDetect(function(iter){ new C(iter); }) // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n , BUGGY_ZERO = !IS_WEAK && fails(function(){\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new C()\n , index = 5;\n while(index--)$instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n if(!ACCEPT_ITERABLES){ \n C = wrapper(function(target, iterable){\n anInstance(target, C, NAME);\n var that = inheritIfRequired(new Base, target, C);\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n if(THROWS_ON_PRIMITIVES || BUGGY_ZERO){\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if(BUGGY_ZERO || HASNT_CHAINING)fixMethod(ADDER);\n // weak collections should not contains .clear method\n if(IS_WEAK && proto.clear)delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F * (C != Base), O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_collection.js\n ** module id = 213\n ** module chunks = 0\n **/","'use strict';\nvar strong = require('./_collection-strong');\n\n// 23.2 Set Objects\nmodule.exports = require('./_collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.set.js\n ** module id = 214\n ** module chunks = 0\n **/","'use strict';\nvar each = require('./_array-methods')(0)\n , redefine = require('./_redefine')\n , meta = require('./_meta')\n , assign = require('./_object-assign')\n , weak = require('./_collection-weak')\n , isObject = require('./_is-object')\n , getWeak = meta.getWeak\n , isExtensible = Object.isExtensible\n , uncaughtFrozenStore = weak.ufstore\n , tmp = {}\n , InternalMap;\n\nvar wrapper = function(get){\n return function WeakMap(){\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n};\n\nvar methods = {\n // 23.3.3.3 WeakMap.prototype.get(key)\n get: function get(key){\n if(isObject(key)){\n var data = getWeak(key);\n if(data === true)return uncaughtFrozenStore(this).get(key);\n return data ? data[this._i] : undefined;\n }\n },\n // 23.3.3.5 WeakMap.prototype.set(key, value)\n set: function set(key, value){\n return weak.def(this, key, value);\n }\n};\n\n// 23.3 WeakMap Objects\nvar $WeakMap = module.exports = require('./_collection')('WeakMap', wrapper, methods, weak, true, true);\n\n// IE11 WeakMap frozen keys fix\nif(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){\n InternalMap = weak.getConstructor(wrapper);\n assign(InternalMap.prototype, methods);\n meta.NEED = true;\n each(['delete', 'has', 'get', 'set'], function(key){\n var proto = $WeakMap.prototype\n , method = proto[key];\n redefine(proto, key, function(a, b){\n // store frozen objects on internal weakmap shim\n if(isObject(a) && !isExtensible(a)){\n if(!this._f)this._f = new InternalMap;\n var result = this._f[key](a, b);\n return key == 'set' ? this : result;\n // store all the rest on native weakmap\n } return method.call(this, a, b);\n });\n });\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.weak-map.js\n ** module id = 215\n ** module chunks = 0\n **/","'use strict';\nvar redefineAll = require('./_redefine-all')\n , getWeak = require('./_meta').getWeak\n , anObject = require('./_an-object')\n , isObject = require('./_is-object')\n , anInstance = require('./_an-instance')\n , forOf = require('./_for-of')\n , createArrayMethod = require('./_array-methods')\n , $has = require('./_has')\n , arrayFind = createArrayMethod(5)\n , arrayFindIndex = createArrayMethod(6)\n , id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function(that){\n return that._l || (that._l = new UncaughtFrozenStore);\n};\nvar UncaughtFrozenStore = function(){\n this.a = [];\n};\nvar findUncaughtFrozen = function(store, key){\n return arrayFind(store.a, function(it){\n return it[0] === key;\n });\n};\nUncaughtFrozenStore.prototype = {\n get: function(key){\n var entry = findUncaughtFrozen(this, key);\n if(entry)return entry[1];\n },\n has: function(key){\n return !!findUncaughtFrozen(this, key);\n },\n set: function(key, value){\n var entry = findUncaughtFrozen(this, key);\n if(entry)entry[1] = value;\n else this.a.push([key, value]);\n },\n 'delete': function(key){\n var index = arrayFindIndex(this.a, function(it){\n return it[0] === key;\n });\n if(~index)this.a.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n anInstance(that, C, NAME, '_i');\n that._i = id++; // collection id\n that._l = undefined; // leak store for uncaught frozen objects\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.3.3.2 WeakMap.prototype.delete(key)\n // 23.4.3.3 WeakSet.prototype.delete(value)\n 'delete': function(key){\n if(!isObject(key))return false;\n var data = getWeak(key);\n if(data === true)return uncaughtFrozenStore(this)['delete'](key);\n return data && $has(data, this._i) && delete data[this._i];\n },\n // 23.3.3.4 WeakMap.prototype.has(key)\n // 23.4.3.4 WeakSet.prototype.has(value)\n has: function has(key){\n if(!isObject(key))return false;\n var data = getWeak(key);\n if(data === true)return uncaughtFrozenStore(this).has(key);\n return data && $has(data, this._i);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var data = getWeak(anObject(key), true);\n if(data === true)uncaughtFrozenStore(that).set(key, value);\n else data[that._i] = value;\n return that;\n },\n ufstore: uncaughtFrozenStore\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_collection-weak.js\n ** module id = 216\n ** module chunks = 0\n **/","'use strict';\nvar weak = require('./_collection-weak');\n\n// 23.4 WeakSet Objects\nrequire('./_collection')('WeakSet', function(get){\n return function WeakSet(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.4.3.1 WeakSet.prototype.add(value)\n add: function add(value){\n return weak.def(this, value, true);\n }\n}, weak, false, true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.weak-set.js\n ** module id = 217\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , $typed = require('./_typed')\n , buffer = require('./_typed-buffer')\n , anObject = require('./_an-object')\n , toIndex = require('./_to-index')\n , toLength = require('./_to-length')\n , isObject = require('./_is-object')\n , ArrayBuffer = require('./_global').ArrayBuffer\n , speciesConstructor = require('./_species-constructor')\n , $ArrayBuffer = buffer.ArrayBuffer\n , $DataView = buffer.DataView\n , $isView = $typed.ABV && ArrayBuffer.isView\n , $slice = $ArrayBuffer.prototype.slice\n , VIEW = $typed.VIEW\n , ARRAY_BUFFER = 'ArrayBuffer';\n\n$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), {ArrayBuffer: $ArrayBuffer});\n\n$export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, {\n // 24.1.3.1 ArrayBuffer.isView(arg)\n isView: function isView(it){\n return $isView && $isView(it) || isObject(it) && VIEW in it;\n }\n});\n\n$export($export.P + $export.U + $export.F * require('./_fails')(function(){\n return !new $ArrayBuffer(2).slice(1, undefined).byteLength;\n}), ARRAY_BUFFER, {\n // 24.1.4.3 ArrayBuffer.prototype.slice(start, end)\n slice: function slice(start, end){\n if($slice !== undefined && end === undefined)return $slice.call(anObject(this), start); // FF fix\n var len = anObject(this).byteLength\n , first = toIndex(start, len)\n , final = toIndex(end === undefined ? len : end, len)\n , result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first))\n , viewS = new $DataView(this)\n , viewT = new $DataView(result)\n , index = 0;\n while(first < final){\n viewT.setUint8(index++, viewS.getUint8(first++));\n } return result;\n }\n});\n\nrequire('./_set-species')(ARRAY_BUFFER);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.array-buffer.js\n ** module id = 218\n ** module chunks = 0\n **/","var global = require('./_global')\n , hide = require('./_hide')\n , uid = require('./_uid')\n , TYPED = uid('typed_array')\n , VIEW = uid('view')\n , ABV = !!(global.ArrayBuffer && global.DataView)\n , CONSTR = ABV\n , i = 0, l = 9, Typed;\n\nvar TypedArrayConstructors = (\n 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'\n).split(',');\n\nwhile(i < l){\n if(Typed = global[TypedArrayConstructors[i++]]){\n hide(Typed.prototype, TYPED, true);\n hide(Typed.prototype, VIEW, true);\n } else CONSTR = false;\n}\n\nmodule.exports = {\n ABV: ABV,\n CONSTR: CONSTR,\n TYPED: TYPED,\n VIEW: VIEW\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_typed.js\n ** module id = 219\n ** module chunks = 0\n **/","'use strict';\nvar global = require('./_global')\n , DESCRIPTORS = require('./_descriptors')\n , LIBRARY = require('./_library')\n , $typed = require('./_typed')\n , hide = require('./_hide')\n , redefineAll = require('./_redefine-all')\n , fails = require('./_fails')\n , anInstance = require('./_an-instance')\n , toInteger = require('./_to-integer')\n , toLength = require('./_to-length')\n , gOPN = require('./_object-gopn').f\n , dP = require('./_object-dp').f\n , arrayFill = require('./_array-fill')\n , setToStringTag = require('./_set-to-string-tag')\n , ARRAY_BUFFER = 'ArrayBuffer'\n , DATA_VIEW = 'DataView'\n , PROTOTYPE = 'prototype'\n , WRONG_LENGTH = 'Wrong length!'\n , WRONG_INDEX = 'Wrong index!'\n , $ArrayBuffer = global[ARRAY_BUFFER]\n , $DataView = global[DATA_VIEW]\n , Math = global.Math\n , RangeError = global.RangeError\n , Infinity = global.Infinity\n , BaseBuffer = $ArrayBuffer\n , abs = Math.abs\n , pow = Math.pow\n , floor = Math.floor\n , log = Math.log\n , LN2 = Math.LN2\n , BUFFER = 'buffer'\n , BYTE_LENGTH = 'byteLength'\n , BYTE_OFFSET = 'byteOffset'\n , $BUFFER = DESCRIPTORS ? '_b' : BUFFER\n , $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH\n , $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET;\n\n// IEEE754 conversions based on https://github.com/feross/ieee754\nvar packIEEE754 = function(value, mLen, nBytes){\n var buffer = Array(nBytes)\n , eLen = nBytes * 8 - mLen - 1\n , eMax = (1 << eLen) - 1\n , eBias = eMax >> 1\n , rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0\n , i = 0\n , s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0\n , e, m, c;\n value = abs(value)\n if(value != value || value === Infinity){\n m = value != value ? 1 : 0;\n e = eMax;\n } else {\n e = floor(log(value) / LN2);\n if(value * (c = pow(2, -e)) < 1){\n e--;\n c *= 2;\n }\n if(e + eBias >= 1){\n value += rt / c;\n } else {\n value += rt * pow(2, 1 - eBias);\n }\n if(value * c >= 2){\n e++;\n c /= 2;\n }\n if(e + eBias >= eMax){\n m = 0;\n e = eMax;\n } else if(e + eBias >= 1){\n m = (value * c - 1) * pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * pow(2, eBias - 1) * pow(2, mLen);\n e = 0;\n }\n }\n for(; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8);\n e = e << mLen | m;\n eLen += mLen;\n for(; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8);\n buffer[--i] |= s * 128;\n return buffer;\n};\nvar unpackIEEE754 = function(buffer, mLen, nBytes){\n var eLen = nBytes * 8 - mLen - 1\n , eMax = (1 << eLen) - 1\n , eBias = eMax >> 1\n , nBits = eLen - 7\n , i = nBytes - 1\n , s = buffer[i--]\n , e = s & 127\n , m;\n s >>= 7;\n for(; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8);\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n for(; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8);\n if(e === 0){\n e = 1 - eBias;\n } else if(e === eMax){\n return m ? NaN : s ? -Infinity : Infinity;\n } else {\n m = m + pow(2, mLen);\n e = e - eBias;\n } return (s ? -1 : 1) * m * pow(2, e - mLen);\n};\n\nvar unpackI32 = function(bytes){\n return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0];\n};\nvar packI8 = function(it){\n return [it & 0xff];\n};\nvar packI16 = function(it){\n return [it & 0xff, it >> 8 & 0xff];\n};\nvar packI32 = function(it){\n return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff];\n};\nvar packF64 = function(it){\n return packIEEE754(it, 52, 8);\n};\nvar packF32 = function(it){\n return packIEEE754(it, 23, 4);\n};\n\nvar addGetter = function(C, key, internal){\n dP(C[PROTOTYPE], key, {get: function(){ return this[internal]; }});\n};\n\nvar get = function(view, bytes, index, isLittleEndian){\n var numIndex = +index\n , intIndex = toInteger(numIndex);\n if(numIndex != intIndex || intIndex < 0 || intIndex + bytes > view[$LENGTH])throw RangeError(WRONG_INDEX);\n var store = view[$BUFFER]._b\n , start = intIndex + view[$OFFSET]\n , pack = store.slice(start, start + bytes);\n return isLittleEndian ? pack : pack.reverse();\n};\nvar set = function(view, bytes, index, conversion, value, isLittleEndian){\n var numIndex = +index\n , intIndex = toInteger(numIndex);\n if(numIndex != intIndex || intIndex < 0 || intIndex + bytes > view[$LENGTH])throw RangeError(WRONG_INDEX);\n var store = view[$BUFFER]._b\n , start = intIndex + view[$OFFSET]\n , pack = conversion(+value);\n for(var i = 0; i < bytes; i++)store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];\n};\n\nvar validateArrayBufferArguments = function(that, length){\n anInstance(that, $ArrayBuffer, ARRAY_BUFFER);\n var numberLength = +length\n , byteLength = toLength(numberLength);\n if(numberLength != byteLength)throw RangeError(WRONG_LENGTH);\n return byteLength;\n};\n\nif(!$typed.ABV){\n $ArrayBuffer = function ArrayBuffer(length){\n var byteLength = validateArrayBufferArguments(this, length);\n this._b = arrayFill.call(Array(byteLength), 0);\n this[$LENGTH] = byteLength;\n };\n\n $DataView = function DataView(buffer, byteOffset, byteLength){\n anInstance(this, $DataView, DATA_VIEW);\n anInstance(buffer, $ArrayBuffer, DATA_VIEW);\n var bufferLength = buffer[$LENGTH]\n , offset = toInteger(byteOffset);\n if(offset < 0 || offset > bufferLength)throw RangeError('Wrong offset!');\n byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);\n if(offset + byteLength > bufferLength)throw RangeError(WRONG_LENGTH);\n this[$BUFFER] = buffer;\n this[$OFFSET] = offset;\n this[$LENGTH] = byteLength;\n };\n\n if(DESCRIPTORS){\n addGetter($ArrayBuffer, BYTE_LENGTH, '_l');\n addGetter($DataView, BUFFER, '_b');\n addGetter($DataView, BYTE_LENGTH, '_l');\n addGetter($DataView, BYTE_OFFSET, '_o');\n }\n\n redefineAll($DataView[PROTOTYPE], {\n getInt8: function getInt8(byteOffset){\n return get(this, 1, byteOffset)[0] << 24 >> 24;\n },\n getUint8: function getUint8(byteOffset){\n return get(this, 1, byteOffset)[0];\n },\n getInt16: function getInt16(byteOffset /*, littleEndian */){\n var bytes = get(this, 2, byteOffset, arguments[1]);\n return (bytes[1] << 8 | bytes[0]) << 16 >> 16;\n },\n getUint16: function getUint16(byteOffset /*, littleEndian */){\n var bytes = get(this, 2, byteOffset, arguments[1]);\n return bytes[1] << 8 | bytes[0];\n },\n getInt32: function getInt32(byteOffset /*, littleEndian */){\n return unpackI32(get(this, 4, byteOffset, arguments[1]));\n },\n getUint32: function getUint32(byteOffset /*, littleEndian */){\n return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;\n },\n getFloat32: function getFloat32(byteOffset /*, littleEndian */){\n return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);\n },\n getFloat64: function getFloat64(byteOffset /*, littleEndian */){\n return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);\n },\n setInt8: function setInt8(byteOffset, value){\n set(this, 1, byteOffset, packI8, value);\n },\n setUint8: function setUint8(byteOffset, value){\n set(this, 1, byteOffset, packI8, value);\n },\n setInt16: function setInt16(byteOffset, value /*, littleEndian */){\n set(this, 2, byteOffset, packI16, value, arguments[2]);\n },\n setUint16: function setUint16(byteOffset, value /*, littleEndian */){\n set(this, 2, byteOffset, packI16, value, arguments[2]);\n },\n setInt32: function setInt32(byteOffset, value /*, littleEndian */){\n set(this, 4, byteOffset, packI32, value, arguments[2]);\n },\n setUint32: function setUint32(byteOffset, value /*, littleEndian */){\n set(this, 4, byteOffset, packI32, value, arguments[2]);\n },\n setFloat32: function setFloat32(byteOffset, value /*, littleEndian */){\n set(this, 4, byteOffset, packF32, value, arguments[2]);\n },\n setFloat64: function setFloat64(byteOffset, value /*, littleEndian */){\n set(this, 8, byteOffset, packF64, value, arguments[2]);\n }\n });\n} else {\n if(!fails(function(){\n new $ArrayBuffer; // eslint-disable-line no-new\n }) || !fails(function(){\n new $ArrayBuffer(.5); // eslint-disable-line no-new\n })){\n $ArrayBuffer = function ArrayBuffer(length){\n return new BaseBuffer(validateArrayBufferArguments(this, length));\n };\n var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];\n for(var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j; ){\n if(!((key = keys[j++]) in $ArrayBuffer))hide($ArrayBuffer, key, BaseBuffer[key]);\n };\n if(!LIBRARY)ArrayBufferProto.constructor = $ArrayBuffer;\n }\n // iOS Safari 7.x bug\n var view = new $DataView(new $ArrayBuffer(2))\n , $setInt8 = $DataView[PROTOTYPE].setInt8;\n view.setInt8(0, 2147483648);\n view.setInt8(1, 2147483649);\n if(view.getInt8(0) || !view.getInt8(1))redefineAll($DataView[PROTOTYPE], {\n setInt8: function setInt8(byteOffset, value){\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n },\n setUint8: function setUint8(byteOffset, value){\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n }\n }, true);\n}\nsetToStringTag($ArrayBuffer, ARRAY_BUFFER);\nsetToStringTag($DataView, DATA_VIEW);\nhide($DataView[PROTOTYPE], $typed.VIEW, true);\nexports[ARRAY_BUFFER] = $ArrayBuffer;\nexports[DATA_VIEW] = $DataView;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_typed-buffer.js\n ** module id = 220\n ** module chunks = 0\n **/","var $export = require('./_export');\n$export($export.G + $export.W + $export.F * !require('./_typed').ABV, {\n DataView: require('./_typed-buffer').DataView\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.data-view.js\n ** module id = 221\n ** module chunks = 0\n **/","require('./_typed-array')('Int8', 1, function(init){\n return function Int8Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.int8-array.js\n ** module id = 222\n ** module chunks = 0\n **/","'use strict';\nif(require('./_descriptors')){\n var LIBRARY = require('./_library')\n , global = require('./_global')\n , fails = require('./_fails')\n , $export = require('./_export')\n , $typed = require('./_typed')\n , $buffer = require('./_typed-buffer')\n , ctx = require('./_ctx')\n , anInstance = require('./_an-instance')\n , propertyDesc = require('./_property-desc')\n , hide = require('./_hide')\n , redefineAll = require('./_redefine-all')\n , toInteger = require('./_to-integer')\n , toLength = require('./_to-length')\n , toIndex = require('./_to-index')\n , toPrimitive = require('./_to-primitive')\n , has = require('./_has')\n , same = require('./_same-value')\n , classof = require('./_classof')\n , isObject = require('./_is-object')\n , toObject = require('./_to-object')\n , isArrayIter = require('./_is-array-iter')\n , create = require('./_object-create')\n , getPrototypeOf = require('./_object-gpo')\n , gOPN = require('./_object-gopn').f\n , getIterFn = require('./core.get-iterator-method')\n , uid = require('./_uid')\n , wks = require('./_wks')\n , createArrayMethod = require('./_array-methods')\n , createArrayIncludes = require('./_array-includes')\n , speciesConstructor = require('./_species-constructor')\n , ArrayIterators = require('./es6.array.iterator')\n , Iterators = require('./_iterators')\n , $iterDetect = require('./_iter-detect')\n , setSpecies = require('./_set-species')\n , arrayFill = require('./_array-fill')\n , arrayCopyWithin = require('./_array-copy-within')\n , $DP = require('./_object-dp')\n , $GOPD = require('./_object-gopd')\n , dP = $DP.f\n , gOPD = $GOPD.f\n , RangeError = global.RangeError\n , TypeError = global.TypeError\n , Uint8Array = global.Uint8Array\n , ARRAY_BUFFER = 'ArrayBuffer'\n , SHARED_BUFFER = 'Shared' + ARRAY_BUFFER\n , BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'\n , PROTOTYPE = 'prototype'\n , ArrayProto = Array[PROTOTYPE]\n , $ArrayBuffer = $buffer.ArrayBuffer\n , $DataView = $buffer.DataView\n , arrayForEach = createArrayMethod(0)\n , arrayFilter = createArrayMethod(2)\n , arraySome = createArrayMethod(3)\n , arrayEvery = createArrayMethod(4)\n , arrayFind = createArrayMethod(5)\n , arrayFindIndex = createArrayMethod(6)\n , arrayIncludes = createArrayIncludes(true)\n , arrayIndexOf = createArrayIncludes(false)\n , arrayValues = ArrayIterators.values\n , arrayKeys = ArrayIterators.keys\n , arrayEntries = ArrayIterators.entries\n , arrayLastIndexOf = ArrayProto.lastIndexOf\n , arrayReduce = ArrayProto.reduce\n , arrayReduceRight = ArrayProto.reduceRight\n , arrayJoin = ArrayProto.join\n , arraySort = ArrayProto.sort\n , arraySlice = ArrayProto.slice\n , arrayToString = ArrayProto.toString\n , arrayToLocaleString = ArrayProto.toLocaleString\n , ITERATOR = wks('iterator')\n , TAG = wks('toStringTag')\n , TYPED_CONSTRUCTOR = uid('typed_constructor')\n , DEF_CONSTRUCTOR = uid('def_constructor')\n , ALL_CONSTRUCTORS = $typed.CONSTR\n , TYPED_ARRAY = $typed.TYPED\n , VIEW = $typed.VIEW\n , WRONG_LENGTH = 'Wrong length!';\n\n var $map = createArrayMethod(1, function(O, length){\n return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);\n });\n\n var LITTLE_ENDIAN = fails(function(){\n return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;\n });\n\n var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function(){\n new Uint8Array(1).set({});\n });\n\n var strictToLength = function(it, SAME){\n if(it === undefined)throw TypeError(WRONG_LENGTH);\n var number = +it\n , length = toLength(it);\n if(SAME && !same(number, length))throw RangeError(WRONG_LENGTH);\n return length;\n };\n\n var toOffset = function(it, BYTES){\n var offset = toInteger(it);\n if(offset < 0 || offset % BYTES)throw RangeError('Wrong offset!');\n return offset;\n };\n\n var validate = function(it){\n if(isObject(it) && TYPED_ARRAY in it)return it;\n throw TypeError(it + ' is not a typed array!');\n };\n\n var allocate = function(C, length){\n if(!(isObject(C) && TYPED_CONSTRUCTOR in C)){\n throw TypeError('It is not a typed array constructor!');\n } return new C(length);\n };\n\n var speciesFromList = function(O, list){\n return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);\n };\n\n var fromList = function(C, list){\n var index = 0\n , length = list.length\n , result = allocate(C, length);\n while(length > index)result[index] = list[index++];\n return result;\n };\n\n var addGetter = function(it, key, internal){\n dP(it, key, {get: function(){ return this._d[internal]; }});\n };\n\n var $from = function from(source /*, mapfn, thisArg */){\n var O = toObject(source)\n , aLen = arguments.length\n , mapfn = aLen > 1 ? arguments[1] : undefined\n , mapping = mapfn !== undefined\n , iterFn = getIterFn(O)\n , i, length, values, result, step, iterator;\n if(iterFn != undefined && !isArrayIter(iterFn)){\n for(iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++){\n values.push(step.value);\n } O = values;\n }\n if(mapping && aLen > 2)mapfn = ctx(mapfn, arguments[2], 2);\n for(i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++){\n result[i] = mapping ? mapfn(O[i], i) : O[i];\n }\n return result;\n };\n\n var $of = function of(/*...items*/){\n var index = 0\n , length = arguments.length\n , result = allocate(this, length);\n while(length > index)result[index] = arguments[index++];\n return result;\n };\n\n // iOS Safari 6.x fails here\n var TO_LOCALE_BUG = !!Uint8Array && fails(function(){ arrayToLocaleString.call(new Uint8Array(1)); });\n\n var $toLocaleString = function toLocaleString(){\n return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);\n };\n\n var proto = {\n copyWithin: function copyWithin(target, start /*, end */){\n return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);\n },\n every: function every(callbackfn /*, thisArg */){\n return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n fill: function fill(value /*, start, end */){ // eslint-disable-line no-unused-vars\n return arrayFill.apply(validate(this), arguments);\n },\n filter: function filter(callbackfn /*, thisArg */){\n return speciesFromList(this, arrayFilter(validate(this), callbackfn,\n arguments.length > 1 ? arguments[1] : undefined));\n },\n find: function find(predicate /*, thisArg */){\n return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n },\n findIndex: function findIndex(predicate /*, thisArg */){\n return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n },\n forEach: function forEach(callbackfn /*, thisArg */){\n arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n indexOf: function indexOf(searchElement /*, fromIndex */){\n return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n },\n includes: function includes(searchElement /*, fromIndex */){\n return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n },\n join: function join(separator){ // eslint-disable-line no-unused-vars\n return arrayJoin.apply(validate(this), arguments);\n },\n lastIndexOf: function lastIndexOf(searchElement /*, fromIndex */){ // eslint-disable-line no-unused-vars\n return arrayLastIndexOf.apply(validate(this), arguments);\n },\n map: function map(mapfn /*, thisArg */){\n return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n reduce: function reduce(callbackfn /*, initialValue */){ // eslint-disable-line no-unused-vars\n return arrayReduce.apply(validate(this), arguments);\n },\n reduceRight: function reduceRight(callbackfn /*, initialValue */){ // eslint-disable-line no-unused-vars\n return arrayReduceRight.apply(validate(this), arguments);\n },\n reverse: function reverse(){\n var that = this\n , length = validate(that).length\n , middle = Math.floor(length / 2)\n , index = 0\n , value;\n while(index < middle){\n value = that[index];\n that[index++] = that[--length];\n that[length] = value;\n } return that;\n },\n some: function some(callbackfn /*, thisArg */){\n return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n sort: function sort(comparefn){\n return arraySort.call(validate(this), comparefn);\n },\n subarray: function subarray(begin, end){\n var O = validate(this)\n , length = O.length\n , $begin = toIndex(begin, length);\n return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(\n O.buffer,\n O.byteOffset + $begin * O.BYTES_PER_ELEMENT,\n toLength((end === undefined ? length : toIndex(end, length)) - $begin)\n );\n }\n };\n\n var $slice = function slice(start, end){\n return speciesFromList(this, arraySlice.call(validate(this), start, end));\n };\n\n var $set = function set(arrayLike /*, offset */){\n validate(this);\n var offset = toOffset(arguments[1], 1)\n , length = this.length\n , src = toObject(arrayLike)\n , len = toLength(src.length)\n , index = 0;\n if(len + offset > length)throw RangeError(WRONG_LENGTH);\n while(index < len)this[offset + index] = src[index++];\n };\n\n var $iterators = {\n entries: function entries(){\n return arrayEntries.call(validate(this));\n },\n keys: function keys(){\n return arrayKeys.call(validate(this));\n },\n values: function values(){\n return arrayValues.call(validate(this));\n }\n };\n\n var isTAIndex = function(target, key){\n return isObject(target)\n && target[TYPED_ARRAY]\n && typeof key != 'symbol'\n && key in target\n && String(+key) == String(key);\n };\n var $getDesc = function getOwnPropertyDescriptor(target, key){\n return isTAIndex(target, key = toPrimitive(key, true))\n ? propertyDesc(2, target[key])\n : gOPD(target, key);\n };\n var $setDesc = function defineProperty(target, key, desc){\n if(isTAIndex(target, key = toPrimitive(key, true))\n && isObject(desc)\n && has(desc, 'value')\n && !has(desc, 'get')\n && !has(desc, 'set')\n // TODO: add validation descriptor w/o calling accessors\n && !desc.configurable\n && (!has(desc, 'writable') || desc.writable)\n && (!has(desc, 'enumerable') || desc.enumerable)\n ){\n target[key] = desc.value;\n return target;\n } else return dP(target, key, desc);\n };\n\n if(!ALL_CONSTRUCTORS){\n $GOPD.f = $getDesc;\n $DP.f = $setDesc;\n }\n\n $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {\n getOwnPropertyDescriptor: $getDesc,\n defineProperty: $setDesc\n });\n\n if(fails(function(){ arrayToString.call({}); })){\n arrayToString = arrayToLocaleString = function toString(){\n return arrayJoin.call(this);\n }\n }\n\n var $TypedArrayPrototype$ = redefineAll({}, proto);\n redefineAll($TypedArrayPrototype$, $iterators);\n hide($TypedArrayPrototype$, ITERATOR, $iterators.values);\n redefineAll($TypedArrayPrototype$, {\n slice: $slice,\n set: $set,\n constructor: function(){ /* noop */ },\n toString: arrayToString,\n toLocaleString: $toLocaleString\n });\n addGetter($TypedArrayPrototype$, 'buffer', 'b');\n addGetter($TypedArrayPrototype$, 'byteOffset', 'o');\n addGetter($TypedArrayPrototype$, 'byteLength', 'l');\n addGetter($TypedArrayPrototype$, 'length', 'e');\n dP($TypedArrayPrototype$, TAG, {\n get: function(){ return this[TYPED_ARRAY]; }\n });\n\n module.exports = function(KEY, BYTES, wrapper, CLAMPED){\n CLAMPED = !!CLAMPED;\n var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array'\n , ISNT_UINT8 = NAME != 'Uint8Array'\n , GETTER = 'get' + KEY\n , SETTER = 'set' + KEY\n , TypedArray = global[NAME]\n , Base = TypedArray || {}\n , TAC = TypedArray && getPrototypeOf(TypedArray)\n , FORCED = !TypedArray || !$typed.ABV\n , O = {}\n , TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];\n var getter = function(that, index){\n var data = that._d;\n return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);\n };\n var setter = function(that, index, value){\n var data = that._d;\n if(CLAMPED)value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;\n data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);\n };\n var addElement = function(that, index){\n dP(that, index, {\n get: function(){\n return getter(this, index);\n },\n set: function(value){\n return setter(this, index, value);\n },\n enumerable: true\n });\n };\n if(FORCED){\n TypedArray = wrapper(function(that, data, $offset, $length){\n anInstance(that, TypedArray, NAME, '_d');\n var index = 0\n , offset = 0\n , buffer, byteLength, length, klass;\n if(!isObject(data)){\n length = strictToLength(data, true)\n byteLength = length * BYTES;\n buffer = new $ArrayBuffer(byteLength);\n } else if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n buffer = data;\n offset = toOffset($offset, BYTES);\n var $len = data.byteLength;\n if($length === undefined){\n if($len % BYTES)throw RangeError(WRONG_LENGTH);\n byteLength = $len - offset;\n if(byteLength < 0)throw RangeError(WRONG_LENGTH);\n } else {\n byteLength = toLength($length) * BYTES;\n if(byteLength + offset > $len)throw RangeError(WRONG_LENGTH);\n }\n length = byteLength / BYTES;\n } else if(TYPED_ARRAY in data){\n return fromList(TypedArray, data);\n } else {\n return $from.call(TypedArray, data);\n }\n hide(that, '_d', {\n b: buffer,\n o: offset,\n l: byteLength,\n e: length,\n v: new $DataView(buffer)\n });\n while(index < length)addElement(that, index++);\n });\n TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);\n hide(TypedArrayPrototype, 'constructor', TypedArray);\n } else if(!$iterDetect(function(iter){\n // V8 works with iterators, but fails in many other cases\n // https://code.google.com/p/v8/issues/detail?id=4552\n new TypedArray(null); // eslint-disable-line no-new\n new TypedArray(iter); // eslint-disable-line no-new\n }, true)){\n TypedArray = wrapper(function(that, data, $offset, $length){\n anInstance(that, TypedArray, NAME);\n var klass;\n // `ws` module bug, temporarily remove validation length for Uint8Array\n // https://github.com/websockets/ws/pull/645\n if(!isObject(data))return new Base(strictToLength(data, ISNT_UINT8));\n if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n return $length !== undefined\n ? new Base(data, toOffset($offset, BYTES), $length)\n : $offset !== undefined\n ? new Base(data, toOffset($offset, BYTES))\n : new Base(data);\n }\n if(TYPED_ARRAY in data)return fromList(TypedArray, data);\n return $from.call(TypedArray, data);\n });\n arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function(key){\n if(!(key in TypedArray))hide(TypedArray, key, Base[key]);\n });\n TypedArray[PROTOTYPE] = TypedArrayPrototype;\n if(!LIBRARY)TypedArrayPrototype.constructor = TypedArray;\n }\n var $nativeIterator = TypedArrayPrototype[ITERATOR]\n , CORRECT_ITER_NAME = !!$nativeIterator && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined)\n , $iterator = $iterators.values;\n hide(TypedArray, TYPED_CONSTRUCTOR, true);\n hide(TypedArrayPrototype, TYPED_ARRAY, NAME);\n hide(TypedArrayPrototype, VIEW, true);\n hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);\n\n if(CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)){\n dP(TypedArrayPrototype, TAG, {\n get: function(){ return NAME; }\n });\n }\n\n O[NAME] = TypedArray;\n\n $export($export.G + $export.W + $export.F * (TypedArray != Base), O);\n\n $export($export.S, NAME, {\n BYTES_PER_ELEMENT: BYTES,\n from: $from,\n of: $of\n });\n\n if(!(BYTES_PER_ELEMENT in TypedArrayPrototype))hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);\n\n $export($export.P, NAME, proto);\n\n setSpecies(NAME);\n\n $export($export.P + $export.F * FORCED_SET, NAME, {set: $set});\n\n $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);\n\n $export($export.P + $export.F * (TypedArrayPrototype.toString != arrayToString), NAME, {toString: arrayToString});\n\n $export($export.P + $export.F * fails(function(){\n new TypedArray(1).slice();\n }), NAME, {slice: $slice});\n\n $export($export.P + $export.F * (fails(function(){\n return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString()\n }) || !fails(function(){\n TypedArrayPrototype.toLocaleString.call([1, 2]);\n })), NAME, {toLocaleString: $toLocaleString});\n\n Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;\n if(!LIBRARY && !CORRECT_ITER_NAME)hide(TypedArrayPrototype, ITERATOR, $iterator);\n };\n} else module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_typed-array.js\n ** module id = 223\n ** module chunks = 0\n **/","require('./_typed-array')('Uint8', 1, function(init){\n return function Uint8Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.uint8-array.js\n ** module id = 224\n ** module chunks = 0\n **/","require('./_typed-array')('Uint8', 1, function(init){\n return function Uint8ClampedArray(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n}, true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.uint8-clamped-array.js\n ** module id = 225\n ** module chunks = 0\n **/","require('./_typed-array')('Int16', 2, function(init){\n return function Int16Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.int16-array.js\n ** module id = 226\n ** module chunks = 0\n **/","require('./_typed-array')('Uint16', 2, function(init){\n return function Uint16Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.uint16-array.js\n ** module id = 227\n ** module chunks = 0\n **/","require('./_typed-array')('Int32', 4, function(init){\n return function Int32Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.int32-array.js\n ** module id = 228\n ** module chunks = 0\n **/","require('./_typed-array')('Uint32', 4, function(init){\n return function Uint32Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.uint32-array.js\n ** module id = 229\n ** module chunks = 0\n **/","require('./_typed-array')('Float32', 4, function(init){\n return function Float32Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.float32-array.js\n ** module id = 230\n ** module chunks = 0\n **/","require('./_typed-array')('Float64', 8, function(init){\n return function Float64Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.typed.float64-array.js\n ** module id = 231\n ** module chunks = 0\n **/","// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)\nvar $export = require('./_export')\n , aFunction = require('./_a-function')\n , anObject = require('./_an-object')\n , rApply = (require('./_global').Reflect || {}).apply\n , fApply = Function.apply;\n// MS Edge argumentsList argument is optional\n$export($export.S + $export.F * !require('./_fails')(function(){\n rApply(function(){});\n}), 'Reflect', {\n apply: function apply(target, thisArgument, argumentsList){\n var T = aFunction(target)\n , L = anObject(argumentsList);\n return rApply ? rApply(T, thisArgument, L) : fApply.call(T, thisArgument, L);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.apply.js\n ** module id = 232\n ** module chunks = 0\n **/","// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])\nvar $export = require('./_export')\n , create = require('./_object-create')\n , aFunction = require('./_a-function')\n , anObject = require('./_an-object')\n , isObject = require('./_is-object')\n , fails = require('./_fails')\n , bind = require('./_bind')\n , rConstruct = (require('./_global').Reflect || {}).construct;\n\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails(function(){\n function F(){}\n return !(rConstruct(function(){}, [], F) instanceof F);\n});\nvar ARGS_BUG = !fails(function(){\n rConstruct(function(){});\n});\n\n$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {\n construct: function construct(Target, args /*, newTarget*/){\n aFunction(Target);\n anObject(args);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if(ARGS_BUG && !NEW_TARGET_BUG)return rConstruct(Target, args, newTarget);\n if(Target == newTarget){\n // w/o altered newTarget, optimization for 0-4 arguments\n switch(args.length){\n case 0: return new Target;\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n $args.push.apply($args, args);\n return new (bind.apply(Target, $args));\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype\n , instance = create(isObject(proto) ? proto : Object.prototype)\n , result = Function.apply.call(Target, instance, args);\n return isObject(result) ? result : instance;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.construct.js\n ** module id = 233\n ** module chunks = 0\n **/","// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)\nvar dP = require('./_object-dp')\n , $export = require('./_export')\n , anObject = require('./_an-object')\n , toPrimitive = require('./_to-primitive');\n\n// MS Edge has broken Reflect.defineProperty - throwing instead of returning false\n$export($export.S + $export.F * require('./_fails')(function(){\n Reflect.defineProperty(dP.f({}, 1, {value: 1}), 1, {value: 2});\n}), 'Reflect', {\n defineProperty: function defineProperty(target, propertyKey, attributes){\n anObject(target);\n propertyKey = toPrimitive(propertyKey, true);\n anObject(attributes);\n try {\n dP.f(target, propertyKey, attributes);\n return true;\n } catch(e){\n return false;\n }\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.define-property.js\n ** module id = 234\n ** module chunks = 0\n **/","// 26.1.4 Reflect.deleteProperty(target, propertyKey)\nvar $export = require('./_export')\n , gOPD = require('./_object-gopd').f\n , anObject = require('./_an-object');\n\n$export($export.S, 'Reflect', {\n deleteProperty: function deleteProperty(target, propertyKey){\n var desc = gOPD(anObject(target), propertyKey);\n return desc && !desc.configurable ? false : delete target[propertyKey];\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.delete-property.js\n ** module id = 235\n ** module chunks = 0\n **/","'use strict';\n// 26.1.5 Reflect.enumerate(target)\nvar $export = require('./_export')\n , anObject = require('./_an-object');\nvar Enumerate = function(iterated){\n this._t = anObject(iterated); // target\n this._i = 0; // next index\n var keys = this._k = [] // keys\n , key;\n for(key in iterated)keys.push(key);\n};\nrequire('./_iter-create')(Enumerate, 'Object', function(){\n var that = this\n , keys = that._k\n , key;\n do {\n if(that._i >= keys.length)return {value: undefined, done: true};\n } while(!((key = keys[that._i++]) in that._t));\n return {value: key, done: false};\n});\n\n$export($export.S, 'Reflect', {\n enumerate: function enumerate(target){\n return new Enumerate(target);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.enumerate.js\n ** module id = 236\n ** module chunks = 0\n **/","// 26.1.6 Reflect.get(target, propertyKey [, receiver])\nvar gOPD = require('./_object-gopd')\n , getPrototypeOf = require('./_object-gpo')\n , has = require('./_has')\n , $export = require('./_export')\n , isObject = require('./_is-object')\n , anObject = require('./_an-object');\n\nfunction get(target, propertyKey/*, receiver*/){\n var receiver = arguments.length < 3 ? target : arguments[2]\n , desc, proto;\n if(anObject(target) === receiver)return target[propertyKey];\n if(desc = gOPD.f(target, propertyKey))return has(desc, 'value')\n ? desc.value\n : desc.get !== undefined\n ? desc.get.call(receiver)\n : undefined;\n if(isObject(proto = getPrototypeOf(target)))return get(proto, propertyKey, receiver);\n}\n\n$export($export.S, 'Reflect', {get: get});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.get.js\n ** module id = 237\n ** module chunks = 0\n **/","// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)\nvar gOPD = require('./_object-gopd')\n , $export = require('./_export')\n , anObject = require('./_an-object');\n\n$export($export.S, 'Reflect', {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){\n return gOPD.f(anObject(target), propertyKey);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.get-own-property-descriptor.js\n ** module id = 238\n ** module chunks = 0\n **/","// 26.1.8 Reflect.getPrototypeOf(target)\nvar $export = require('./_export')\n , getProto = require('./_object-gpo')\n , anObject = require('./_an-object');\n\n$export($export.S, 'Reflect', {\n getPrototypeOf: function getPrototypeOf(target){\n return getProto(anObject(target));\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.get-prototype-of.js\n ** module id = 239\n ** module chunks = 0\n **/","// 26.1.9 Reflect.has(target, propertyKey)\nvar $export = require('./_export');\n\n$export($export.S, 'Reflect', {\n has: function has(target, propertyKey){\n return propertyKey in target;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.has.js\n ** module id = 240\n ** module chunks = 0\n **/","// 26.1.10 Reflect.isExtensible(target)\nvar $export = require('./_export')\n , anObject = require('./_an-object')\n , $isExtensible = Object.isExtensible;\n\n$export($export.S, 'Reflect', {\n isExtensible: function isExtensible(target){\n anObject(target);\n return $isExtensible ? $isExtensible(target) : true;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.is-extensible.js\n ** module id = 241\n ** module chunks = 0\n **/","// 26.1.11 Reflect.ownKeys(target)\nvar $export = require('./_export');\n\n$export($export.S, 'Reflect', {ownKeys: require('./_own-keys')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.own-keys.js\n ** module id = 242\n ** module chunks = 0\n **/","// all object keys, includes non-enumerable and symbols\nvar gOPN = require('./_object-gopn')\n , gOPS = require('./_object-gops')\n , anObject = require('./_an-object')\n , Reflect = require('./_global').Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it){\n var keys = gOPN.f(anObject(it))\n , getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_own-keys.js\n ** module id = 243\n ** module chunks = 0\n **/","// 26.1.12 Reflect.preventExtensions(target)\nvar $export = require('./_export')\n , anObject = require('./_an-object')\n , $preventExtensions = Object.preventExtensions;\n\n$export($export.S, 'Reflect', {\n preventExtensions: function preventExtensions(target){\n anObject(target);\n try {\n if($preventExtensions)$preventExtensions(target);\n return true;\n } catch(e){\n return false;\n }\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.prevent-extensions.js\n ** module id = 244\n ** module chunks = 0\n **/","// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])\nvar dP = require('./_object-dp')\n , gOPD = require('./_object-gopd')\n , getPrototypeOf = require('./_object-gpo')\n , has = require('./_has')\n , $export = require('./_export')\n , createDesc = require('./_property-desc')\n , anObject = require('./_an-object')\n , isObject = require('./_is-object');\n\nfunction set(target, propertyKey, V/*, receiver*/){\n var receiver = arguments.length < 4 ? target : arguments[3]\n , ownDesc = gOPD.f(anObject(target), propertyKey)\n , existingDescriptor, proto;\n if(!ownDesc){\n if(isObject(proto = getPrototypeOf(target))){\n return set(proto, propertyKey, V, receiver);\n }\n ownDesc = createDesc(0);\n }\n if(has(ownDesc, 'value')){\n if(ownDesc.writable === false || !isObject(receiver))return false;\n existingDescriptor = gOPD.f(receiver, propertyKey) || createDesc(0);\n existingDescriptor.value = V;\n dP.f(receiver, propertyKey, existingDescriptor);\n return true;\n }\n return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);\n}\n\n$export($export.S, 'Reflect', {set: set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.set.js\n ** module id = 245\n ** module chunks = 0\n **/","// 26.1.14 Reflect.setPrototypeOf(target, proto)\nvar $export = require('./_export')\n , setProto = require('./_set-proto');\n\nif(setProto)$export($export.S, 'Reflect', {\n setPrototypeOf: function setPrototypeOf(target, proto){\n setProto.check(target, proto);\n try {\n setProto.set(target, proto);\n return true;\n } catch(e){\n return false;\n }\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es6.reflect.set-prototype-of.js\n ** module id = 246\n ** module chunks = 0\n **/","'use strict';\n// https://github.com/tc39/Array.prototype.includes\nvar $export = require('./_export')\n , $includes = require('./_array-includes')(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /*, fromIndex = 0 */){\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nrequire('./_add-to-unscopables')('includes');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.array.includes.js\n ** module id = 247\n ** module chunks = 0\n **/","'use strict';\n// https://github.com/mathiasbynens/String.prototype.at\nvar $export = require('./_export')\n , $at = require('./_string-at')(true);\n\n$export($export.P, 'String', {\n at: function at(pos){\n return $at(this, pos);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.string.at.js\n ** module id = 248\n ** module chunks = 0\n **/","'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = require('./_export')\n , $pad = require('./_string-pad');\n\n$export($export.P, 'String', {\n padStart: function padStart(maxLength /*, fillString = ' ' */){\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.string.pad-start.js\n ** module id = 249\n ** module chunks = 0\n **/","// https://github.com/tc39/proposal-string-pad-start-end\nvar toLength = require('./_to-length')\n , repeat = require('./_string-repeat')\n , defined = require('./_defined');\n\nmodule.exports = function(that, maxLength, fillString, left){\n var S = String(defined(that))\n , stringLength = S.length\n , fillStr = fillString === undefined ? ' ' : String(fillString)\n , intMaxLength = toLength(maxLength);\n if(intMaxLength <= stringLength || fillStr == '')return S;\n var fillLen = intMaxLength - stringLength\n , stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));\n if(stringFiller.length > fillLen)stringFiller = stringFiller.slice(0, fillLen);\n return left ? stringFiller + S : S + stringFiller;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_string-pad.js\n ** module id = 250\n ** module chunks = 0\n **/","'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = require('./_export')\n , $pad = require('./_string-pad');\n\n$export($export.P, 'String', {\n padEnd: function padEnd(maxLength /*, fillString = ' ' */){\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.string.pad-end.js\n ** module id = 251\n ** module chunks = 0\n **/","'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\nrequire('./_string-trim')('trimLeft', function($trim){\n return function trimLeft(){\n return $trim(this, 1);\n };\n}, 'trimStart');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.string.trim-left.js\n ** module id = 252\n ** module chunks = 0\n **/","'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\nrequire('./_string-trim')('trimRight', function($trim){\n return function trimRight(){\n return $trim(this, 2);\n };\n}, 'trimEnd');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.string.trim-right.js\n ** module id = 253\n ** module chunks = 0\n **/","'use strict';\n// https://tc39.github.io/String.prototype.matchAll/\nvar $export = require('./_export')\n , defined = require('./_defined')\n , toLength = require('./_to-length')\n , isRegExp = require('./_is-regexp')\n , getFlags = require('./_flags')\n , RegExpProto = RegExp.prototype;\n\nvar $RegExpStringIterator = function(regexp, string){\n this._r = regexp;\n this._s = string;\n};\n\nrequire('./_iter-create')($RegExpStringIterator, 'RegExp String', function next(){\n var match = this._r.exec(this._s);\n return {value: match, done: match === null};\n});\n\n$export($export.P, 'String', {\n matchAll: function matchAll(regexp){\n defined(this);\n if(!isRegExp(regexp))throw TypeError(regexp + ' is not a regexp!');\n var S = String(this)\n , flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp)\n , rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags);\n rx.lastIndex = toLength(regexp.lastIndex);\n return new $RegExpStringIterator(rx, S);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.string.match-all.js\n ** module id = 254\n ** module chunks = 0\n **/","require('./_wks-define')('asyncIterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.symbol.async-iterator.js\n ** module id = 255\n ** module chunks = 0\n **/","require('./_wks-define')('observable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.symbol.observable.js\n ** module id = 256\n ** module chunks = 0\n **/","// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = require('./_export')\n , ownKeys = require('./_own-keys')\n , toIObject = require('./_to-iobject')\n , gOPD = require('./_object-gopd')\n , createProperty = require('./_create-property');\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){\n var O = toIObject(object)\n , getDesc = gOPD.f\n , keys = ownKeys(O)\n , result = {}\n , i = 0\n , key;\n while(keys.length > i)createProperty(result, key = keys[i++], getDesc(O, key));\n return result;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.object.get-own-property-descriptors.js\n ** module id = 257\n ** module chunks = 0\n **/","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export')\n , $values = require('./_object-to-array')(false);\n\n$export($export.S, 'Object', {\n values: function values(it){\n return $values(it);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.object.values.js\n ** module id = 258\n ** module chunks = 0\n **/","var getKeys = require('./_object-keys')\n , toIObject = require('./_to-iobject')\n , isEnum = require('./_object-pie').f;\nmodule.exports = function(isEntries){\n return function(it){\n var O = toIObject(it)\n , keys = getKeys(O)\n , length = keys.length\n , i = 0\n , result = []\n , key;\n while(length > i)if(isEnum.call(O, key = keys[i++])){\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-to-array.js\n ** module id = 259\n ** module chunks = 0\n **/","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export')\n , $entries = require('./_object-to-array')(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it){\n return $entries(it);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.object.entries.js\n ** module id = 260\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , toObject = require('./_to-object')\n , aFunction = require('./_a-function')\n , $defineProperty = require('./_object-dp');\n\n// B.2.2.2 Object.prototype.__defineGetter__(P, getter)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __defineGetter__: function __defineGetter__(P, getter){\n $defineProperty.f(toObject(this), P, {get: aFunction(getter), enumerable: true, configurable: true});\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.object.define-getter.js\n ** module id = 261\n ** module chunks = 0\n **/","// Forced replacement prototype accessors methods\nmodule.exports = require('./_library')|| !require('./_fails')(function(){\n var K = Math.random();\n // In FF throws only define methods\n __defineSetter__.call(null, K, function(){ /* empty */});\n delete require('./_global')[K];\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-forced-pam.js\n ** module id = 262\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , toObject = require('./_to-object')\n , aFunction = require('./_a-function')\n , $defineProperty = require('./_object-dp');\n\n// B.2.2.3 Object.prototype.__defineSetter__(P, setter)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __defineSetter__: function __defineSetter__(P, setter){\n $defineProperty.f(toObject(this), P, {set: aFunction(setter), enumerable: true, configurable: true});\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.object.define-setter.js\n ** module id = 263\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , toObject = require('./_to-object')\n , toPrimitive = require('./_to-primitive')\n , getPrototypeOf = require('./_object-gpo')\n , getOwnPropertyDescriptor = require('./_object-gopd').f;\n\n// B.2.2.4 Object.prototype.__lookupGetter__(P)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __lookupGetter__: function __lookupGetter__(P){\n var O = toObject(this)\n , K = toPrimitive(P, true)\n , D;\n do {\n if(D = getOwnPropertyDescriptor(O, K))return D.get;\n } while(O = getPrototypeOf(O));\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.object.lookup-getter.js\n ** module id = 264\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export')\n , toObject = require('./_to-object')\n , toPrimitive = require('./_to-primitive')\n , getPrototypeOf = require('./_object-gpo')\n , getOwnPropertyDescriptor = require('./_object-gopd').f;\n\n// B.2.2.5 Object.prototype.__lookupSetter__(P)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __lookupSetter__: function __lookupSetter__(P){\n var O = toObject(this)\n , K = toPrimitive(P, true)\n , D;\n do {\n if(D = getOwnPropertyDescriptor(O, K))return D.set;\n } while(O = getPrototypeOf(O));\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.object.lookup-setter.js\n ** module id = 265\n ** module chunks = 0\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./_export');\n\n$export($export.P + $export.R, 'Map', {toJSON: require('./_collection-to-json')('Map')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.map.to-json.js\n ** module id = 266\n ** module chunks = 0\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar classof = require('./_classof')\n , from = require('./_array-from-iterable');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n return from(this);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_collection-to-json.js\n ** module id = 267\n ** module chunks = 0\n **/","var forOf = require('./_for-of');\n\nmodule.exports = function(iter, ITERATOR){\n var result = [];\n forOf(iter, false, result.push, result, ITERATOR);\n return result;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_array-from-iterable.js\n ** module id = 268\n ** module chunks = 0\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./_export');\n\n$export($export.P + $export.R, 'Set', {toJSON: require('./_collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.set.to-json.js\n ** module id = 269\n ** module chunks = 0\n **/","// https://github.com/ljharb/proposal-global\nvar $export = require('./_export');\n\n$export($export.S, 'System', {global: require('./_global')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.system.global.js\n ** module id = 270\n ** module chunks = 0\n **/","// https://github.com/ljharb/proposal-is-error\nvar $export = require('./_export')\n , cof = require('./_cof');\n\n$export($export.S, 'Error', {\n isError: function isError(it){\n return cof(it) === 'Error';\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.error.is-error.js\n ** module id = 271\n ** module chunks = 0\n **/","// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n iaddh: function iaddh(x0, x1, y0, y1){\n var $x0 = x0 >>> 0\n , $x1 = x1 >>> 0\n , $y0 = y0 >>> 0;\n return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.math.iaddh.js\n ** module id = 272\n ** module chunks = 0\n **/","// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n isubh: function isubh(x0, x1, y0, y1){\n var $x0 = x0 >>> 0\n , $x1 = x1 >>> 0\n , $y0 = y0 >>> 0;\n return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.math.isubh.js\n ** module id = 273\n ** module chunks = 0\n **/","// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n imulh: function imulh(u, v){\n var UINT16 = 0xffff\n , $u = +u\n , $v = +v\n , u0 = $u & UINT16\n , v0 = $v & UINT16\n , u1 = $u >> 16\n , v1 = $v >> 16\n , t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);\n return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.math.imulh.js\n ** module id = 274\n ** module chunks = 0\n **/","// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = require('./_export');\n\n$export($export.S, 'Math', {\n umulh: function umulh(u, v){\n var UINT16 = 0xffff\n , $u = +u\n , $v = +v\n , u0 = $u & UINT16\n , v0 = $v & UINT16\n , u1 = $u >>> 16\n , v1 = $v >>> 16\n , t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);\n return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.math.umulh.js\n ** module id = 275\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , toMetaKey = metadata.key\n , ordinaryDefineOwnMetadata = metadata.set;\n\nmetadata.exp({defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey){\n ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.define-metadata.js\n ** module id = 276\n ** module chunks = 0\n **/","var Map = require('./es6.map')\n , $export = require('./_export')\n , shared = require('./_shared')('metadata')\n , store = shared.store || (shared.store = new (require('./es6.weak-map')));\n\nvar getOrCreateMetadataMap = function(target, targetKey, create){\n var targetMetadata = store.get(target);\n if(!targetMetadata){\n if(!create)return undefined;\n store.set(target, targetMetadata = new Map);\n }\n var keyMetadata = targetMetadata.get(targetKey);\n if(!keyMetadata){\n if(!create)return undefined;\n targetMetadata.set(targetKey, keyMetadata = new Map);\n } return keyMetadata;\n};\nvar ordinaryHasOwnMetadata = function(MetadataKey, O, P){\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? false : metadataMap.has(MetadataKey);\n};\nvar ordinaryGetOwnMetadata = function(MetadataKey, O, P){\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);\n};\nvar ordinaryDefineOwnMetadata = function(MetadataKey, MetadataValue, O, P){\n getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);\n};\nvar ordinaryOwnMetadataKeys = function(target, targetKey){\n var metadataMap = getOrCreateMetadataMap(target, targetKey, false)\n , keys = [];\n if(metadataMap)metadataMap.forEach(function(_, key){ keys.push(key); });\n return keys;\n};\nvar toMetaKey = function(it){\n return it === undefined || typeof it == 'symbol' ? it : String(it);\n};\nvar exp = function(O){\n $export($export.S, 'Reflect', O);\n};\n\nmodule.exports = {\n store: store,\n map: getOrCreateMetadataMap,\n has: ordinaryHasOwnMetadata,\n get: ordinaryGetOwnMetadata,\n set: ordinaryDefineOwnMetadata,\n keys: ordinaryOwnMetadataKeys,\n key: toMetaKey,\n exp: exp\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_metadata.js\n ** module id = 277\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , toMetaKey = metadata.key\n , getOrCreateMetadataMap = metadata.map\n , store = metadata.store;\n\nmetadata.exp({deleteMetadata: function deleteMetadata(metadataKey, target /*, targetKey */){\n var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2])\n , metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);\n if(metadataMap === undefined || !metadataMap['delete'](metadataKey))return false;\n if(metadataMap.size)return true;\n var targetMetadata = store.get(target);\n targetMetadata['delete'](targetKey);\n return !!targetMetadata.size || store['delete'](target);\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.delete-metadata.js\n ** module id = 278\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , getPrototypeOf = require('./_object-gpo')\n , ordinaryHasOwnMetadata = metadata.has\n , ordinaryGetOwnMetadata = metadata.get\n , toMetaKey = metadata.key;\n\nvar ordinaryGetMetadata = function(MetadataKey, O, P){\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if(hasOwn)return ordinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;\n};\n\nmetadata.exp({getMetadata: function getMetadata(metadataKey, target /*, targetKey */){\n return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.get-metadata.js\n ** module id = 279\n ** module chunks = 0\n **/","var Set = require('./es6.set')\n , from = require('./_array-from-iterable')\n , metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , getPrototypeOf = require('./_object-gpo')\n , ordinaryOwnMetadataKeys = metadata.keys\n , toMetaKey = metadata.key;\n\nvar ordinaryMetadataKeys = function(O, P){\n var oKeys = ordinaryOwnMetadataKeys(O, P)\n , parent = getPrototypeOf(O);\n if(parent === null)return oKeys;\n var pKeys = ordinaryMetadataKeys(parent, P);\n return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;\n};\n\nmetadata.exp({getMetadataKeys: function getMetadataKeys(target /*, targetKey */){\n return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.get-metadata-keys.js\n ** module id = 280\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , ordinaryGetOwnMetadata = metadata.get\n , toMetaKey = metadata.key;\n\nmetadata.exp({getOwnMetadata: function getOwnMetadata(metadataKey, target /*, targetKey */){\n return ordinaryGetOwnMetadata(metadataKey, anObject(target)\n , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.get-own-metadata.js\n ** module id = 281\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , ordinaryOwnMetadataKeys = metadata.keys\n , toMetaKey = metadata.key;\n\nmetadata.exp({getOwnMetadataKeys: function getOwnMetadataKeys(target /*, targetKey */){\n return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.get-own-metadata-keys.js\n ** module id = 282\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , getPrototypeOf = require('./_object-gpo')\n , ordinaryHasOwnMetadata = metadata.has\n , toMetaKey = metadata.key;\n\nvar ordinaryHasMetadata = function(MetadataKey, O, P){\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if(hasOwn)return true;\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;\n};\n\nmetadata.exp({hasMetadata: function hasMetadata(metadataKey, target /*, targetKey */){\n return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.has-metadata.js\n ** module id = 283\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , ordinaryHasOwnMetadata = metadata.has\n , toMetaKey = metadata.key;\n\nmetadata.exp({hasOwnMetadata: function hasOwnMetadata(metadataKey, target /*, targetKey */){\n return ordinaryHasOwnMetadata(metadataKey, anObject(target)\n , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.has-own-metadata.js\n ** module id = 284\n ** module chunks = 0\n **/","var metadata = require('./_metadata')\n , anObject = require('./_an-object')\n , aFunction = require('./_a-function')\n , toMetaKey = metadata.key\n , ordinaryDefineOwnMetadata = metadata.set;\n\nmetadata.exp({metadata: function metadata(metadataKey, metadataValue){\n return function decorator(target, targetKey){\n ordinaryDefineOwnMetadata(\n metadataKey, metadataValue,\n (targetKey !== undefined ? anObject : aFunction)(target),\n toMetaKey(targetKey)\n );\n };\n}});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.reflect.metadata.js\n ** module id = 285\n ** module chunks = 0\n **/","// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask\nvar $export = require('./_export')\n , microtask = require('./_microtask')()\n , process = require('./_global').process\n , isNode = require('./_cof')(process) == 'process';\n\n$export($export.G, {\n asap: function asap(fn){\n var domain = isNode && process.domain;\n microtask(domain ? domain.bind(fn) : fn);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.asap.js\n ** module id = 286\n ** module chunks = 0\n **/","'use strict';\n// https://github.com/zenparsing/es-observable\nvar $export = require('./_export')\n , global = require('./_global')\n , core = require('./_core')\n , microtask = require('./_microtask')()\n , OBSERVABLE = require('./_wks')('observable')\n , aFunction = require('./_a-function')\n , anObject = require('./_an-object')\n , anInstance = require('./_an-instance')\n , redefineAll = require('./_redefine-all')\n , hide = require('./_hide')\n , forOf = require('./_for-of')\n , RETURN = forOf.RETURN;\n\nvar getMethod = function(fn){\n return fn == null ? undefined : aFunction(fn);\n};\n\nvar cleanupSubscription = function(subscription){\n var cleanup = subscription._c;\n if(cleanup){\n subscription._c = undefined;\n cleanup();\n }\n};\n\nvar subscriptionClosed = function(subscription){\n return subscription._o === undefined;\n};\n\nvar closeSubscription = function(subscription){\n if(!subscriptionClosed(subscription)){\n subscription._o = undefined;\n cleanupSubscription(subscription);\n }\n};\n\nvar Subscription = function(observer, subscriber){\n anObject(observer);\n this._c = undefined;\n this._o = observer;\n observer = new SubscriptionObserver(this);\n try {\n var cleanup = subscriber(observer)\n , subscription = cleanup;\n if(cleanup != null){\n if(typeof cleanup.unsubscribe === 'function')cleanup = function(){ subscription.unsubscribe(); };\n else aFunction(cleanup);\n this._c = cleanup;\n }\n } catch(e){\n observer.error(e);\n return;\n } if(subscriptionClosed(this))cleanupSubscription(this);\n};\n\nSubscription.prototype = redefineAll({}, {\n unsubscribe: function unsubscribe(){ closeSubscription(this); }\n});\n\nvar SubscriptionObserver = function(subscription){\n this._s = subscription;\n};\n\nSubscriptionObserver.prototype = redefineAll({}, {\n next: function next(value){\n var subscription = this._s;\n if(!subscriptionClosed(subscription)){\n var observer = subscription._o;\n try {\n var m = getMethod(observer.next);\n if(m)return m.call(observer, value);\n } catch(e){\n try {\n closeSubscription(subscription);\n } finally {\n throw e;\n }\n }\n }\n },\n error: function error(value){\n var subscription = this._s;\n if(subscriptionClosed(subscription))throw value;\n var observer = subscription._o;\n subscription._o = undefined;\n try {\n var m = getMethod(observer.error);\n if(!m)throw value;\n value = m.call(observer, value);\n } catch(e){\n try {\n cleanupSubscription(subscription);\n } finally {\n throw e;\n }\n } cleanupSubscription(subscription);\n return value;\n },\n complete: function complete(value){\n var subscription = this._s;\n if(!subscriptionClosed(subscription)){\n var observer = subscription._o;\n subscription._o = undefined;\n try {\n var m = getMethod(observer.complete);\n value = m ? m.call(observer, value) : undefined;\n } catch(e){\n try {\n cleanupSubscription(subscription);\n } finally {\n throw e;\n }\n } cleanupSubscription(subscription);\n return value;\n }\n }\n});\n\nvar $Observable = function Observable(subscriber){\n anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber);\n};\n\nredefineAll($Observable.prototype, {\n subscribe: function subscribe(observer){\n return new Subscription(observer, this._f);\n },\n forEach: function forEach(fn){\n var that = this;\n return new (core.Promise || global.Promise)(function(resolve, reject){\n aFunction(fn);\n var subscription = that.subscribe({\n next : function(value){\n try {\n return fn(value);\n } catch(e){\n reject(e);\n subscription.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n });\n }\n});\n\nredefineAll($Observable, {\n from: function from(x){\n var C = typeof this === 'function' ? this : $Observable;\n var method = getMethod(anObject(x)[OBSERVABLE]);\n if(method){\n var observable = anObject(method.call(x));\n return observable.constructor === C ? observable : new C(function(observer){\n return observable.subscribe(observer);\n });\n }\n return new C(function(observer){\n var done = false;\n microtask(function(){\n if(!done){\n try {\n if(forOf(x, false, function(it){\n observer.next(it);\n if(done)return RETURN;\n }) === RETURN)return;\n } catch(e){\n if(done)throw e;\n observer.error(e);\n return;\n } observer.complete();\n }\n });\n return function(){ done = true; };\n });\n },\n of: function of(){\n for(var i = 0, l = arguments.length, items = Array(l); i < l;)items[i] = arguments[i++];\n return new (typeof this === 'function' ? this : $Observable)(function(observer){\n var done = false;\n microtask(function(){\n if(!done){\n for(var i = 0; i < items.length; ++i){\n observer.next(items[i]);\n if(done)return;\n } observer.complete();\n }\n });\n return function(){ done = true; };\n });\n }\n});\n\nhide($Observable.prototype, OBSERVABLE, function(){ return this; });\n\n$export($export.G, {Observable: $Observable});\n\nrequire('./_set-species')('Observable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/es7.observable.js\n ** module id = 287\n ** module chunks = 0\n **/","// ie9- setTimeout & setInterval additional parameters fix\nvar global = require('./_global')\n , $export = require('./_export')\n , invoke = require('./_invoke')\n , partial = require('./_partial')\n , navigator = global.navigator\n , MSIE = !!navigator && /MSIE .\\./.test(navigator.userAgent); // <- dirty ie9- check\nvar wrap = function(set){\n return MSIE ? function(fn, time /*, ...args */){\n return set(invoke(\n partial,\n [].slice.call(arguments, 2),\n typeof fn == 'function' ? fn : Function(fn)\n ), time);\n } : set;\n};\n$export($export.G + $export.B + $export.F * MSIE, {\n setTimeout: wrap(global.setTimeout),\n setInterval: wrap(global.setInterval)\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/web.timers.js\n ** module id = 288\n ** module chunks = 0\n **/","'use strict';\nvar path = require('./_path')\n , invoke = require('./_invoke')\n , aFunction = require('./_a-function');\nmodule.exports = function(/* ...pargs */){\n var fn = aFunction(this)\n , length = arguments.length\n , pargs = Array(length)\n , i = 0\n , _ = path._\n , holder = false;\n while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true;\n return function(/* ...args */){\n var that = this\n , aLen = arguments.length\n , j = 0, k = 0, args;\n if(!holder && !aLen)return invoke(fn, pargs, that);\n args = pargs.slice();\n if(holder)for(;length > j; j++)if(args[j] === _)args[j] = arguments[k++];\n while(aLen > k)args.push(arguments[k++]);\n return invoke(fn, args, that);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_partial.js\n ** module id = 289\n ** module chunks = 0\n **/","module.exports = require('./_global');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_path.js\n ** module id = 290\n ** module chunks = 0\n **/","var $export = require('./_export')\n , $task = require('./_task');\n$export($export.G + $export.B, {\n setImmediate: $task.set,\n clearImmediate: $task.clear\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/web.immediate.js\n ** module id = 291\n ** module chunks = 0\n **/","var $iterators = require('./es6.array.iterator')\n , redefine = require('./_redefine')\n , global = require('./_global')\n , hide = require('./_hide')\n , Iterators = require('./_iterators')\n , wks = require('./_wks')\n , ITERATOR = wks('iterator')\n , TO_STRING_TAG = wks('toStringTag')\n , ArrayValues = Iterators.Array;\n\nfor(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){\n var NAME = collections[i]\n , Collection = global[NAME]\n , proto = Collection && Collection.prototype\n , key;\n if(proto){\n if(!proto[ITERATOR])hide(proto, ITERATOR, ArrayValues);\n if(!proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n for(key in $iterators)if(!proto[key])redefine(proto, key, $iterators[key], true);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/web.dom.iterable.js\n ** module id = 292\n ** module chunks = 0\n **/","'use strict';\nvar ctx = require('./_ctx')\n , $export = require('./_export')\n , createDesc = require('./_property-desc')\n , assign = require('./_object-assign')\n , create = require('./_object-create')\n , getPrototypeOf = require('./_object-gpo')\n , getKeys = require('./_object-keys')\n , dP = require('./_object-dp')\n , keyOf = require('./_keyof')\n , aFunction = require('./_a-function')\n , forOf = require('./_for-of')\n , isIterable = require('./core.is-iterable')\n , $iterCreate = require('./_iter-create')\n , step = require('./_iter-step')\n , isObject = require('./_is-object')\n , toIObject = require('./_to-iobject')\n , DESCRIPTORS = require('./_descriptors')\n , has = require('./_has');\n\n// 0 -> Dict.forEach\n// 1 -> Dict.map\n// 2 -> Dict.filter\n// 3 -> Dict.some\n// 4 -> Dict.every\n// 5 -> Dict.find\n// 6 -> Dict.findKey\n// 7 -> Dict.mapPairs\nvar createDictMethod = function(TYPE){\n var IS_MAP = TYPE == 1\n , IS_EVERY = TYPE == 4;\n return function(object, callbackfn, that /* = undefined */){\n var f = ctx(callbackfn, that, 3)\n , O = toIObject(object)\n , result = IS_MAP || TYPE == 7 || TYPE == 2\n ? new (typeof this == 'function' ? this : Dict) : undefined\n , key, val, res;\n for(key in O)if(has(O, key)){\n val = O[key];\n res = f(val, key, object);\n if(TYPE){\n if(IS_MAP)result[key] = res; // map\n else if(res)switch(TYPE){\n case 2: result[key] = val; break; // filter\n case 3: return true; // some\n case 5: return val; // find\n case 6: return key; // findKey\n case 7: result[res[0]] = res[1]; // mapPairs\n } else if(IS_EVERY)return false; // every\n }\n }\n return TYPE == 3 || IS_EVERY ? IS_EVERY : result;\n };\n};\nvar findKey = createDictMethod(6);\n\nvar createDictIter = function(kind){\n return function(it){\n return new DictIterator(it, kind);\n };\n};\nvar DictIterator = function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._a = getKeys(iterated); // keys\n this._i = 0; // next index\n this._k = kind; // kind\n};\n$iterCreate(DictIterator, 'Dict', function(){\n var that = this\n , O = that._t\n , keys = that._a\n , kind = that._k\n , key;\n do {\n if(that._i >= keys.length){\n that._t = undefined;\n return step(1);\n }\n } while(!has(O, key = keys[that._i++]));\n if(kind == 'keys' )return step(0, key);\n if(kind == 'values')return step(0, O[key]);\n return step(0, [key, O[key]]);\n});\n\nfunction Dict(iterable){\n var dict = create(null);\n if(iterable != undefined){\n if(isIterable(iterable)){\n forOf(iterable, true, function(key, value){\n dict[key] = value;\n });\n } else assign(dict, iterable);\n }\n return dict;\n}\nDict.prototype = null;\n\nfunction reduce(object, mapfn, init){\n aFunction(mapfn);\n var O = toIObject(object)\n , keys = getKeys(O)\n , length = keys.length\n , i = 0\n , memo, key;\n if(arguments.length < 3){\n if(!length)throw TypeError('Reduce of empty object with no initial value');\n memo = O[keys[i++]];\n } else memo = Object(init);\n while(length > i)if(has(O, key = keys[i++])){\n memo = mapfn(memo, O[key], key, object);\n }\n return memo;\n}\n\nfunction includes(object, el){\n return (el == el ? keyOf(object, el) : findKey(object, function(it){\n return it != it;\n })) !== undefined;\n}\n\nfunction get(object, key){\n if(has(object, key))return object[key];\n}\nfunction set(object, key, value){\n if(DESCRIPTORS && key in Object)dP.f(object, key, createDesc(0, value));\n else object[key] = value;\n return object;\n}\n\nfunction isDict(it){\n return isObject(it) && getPrototypeOf(it) === Dict.prototype;\n}\n\n$export($export.G + $export.F, {Dict: Dict});\n\n$export($export.S, 'Dict', {\n keys: createDictIter('keys'),\n values: createDictIter('values'),\n entries: createDictIter('entries'),\n forEach: createDictMethod(0),\n map: createDictMethod(1),\n filter: createDictMethod(2),\n some: createDictMethod(3),\n every: createDictMethod(4),\n find: createDictMethod(5),\n findKey: findKey,\n mapPairs: createDictMethod(7),\n reduce: reduce,\n keyOf: keyOf,\n includes: includes,\n has: has,\n get: get,\n set: set,\n isDict: isDict\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.dict.js\n ** module id = 293\n ** module chunks = 0\n **/","var classof = require('./_classof')\n , ITERATOR = require('./_wks')('iterator')\n , Iterators = require('./_iterators');\nmodule.exports = require('./_core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.is-iterable.js\n ** module id = 294\n ** module chunks = 0\n **/","var anObject = require('./_an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./_core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.get-iterator.js\n ** module id = 295\n ** module chunks = 0\n **/","var global = require('./_global')\n , core = require('./_core')\n , $export = require('./_export')\n , partial = require('./_partial');\n// https://esdiscuss.org/topic/promise-returning-delay-function\n$export($export.G + $export.F, {\n delay: function delay(time){\n return new (core.Promise || global.Promise)(function(resolve){\n setTimeout(partial.call(resolve, true), time);\n });\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.delay.js\n ** module id = 296\n ** module chunks = 0\n **/","var path = require('./_path')\n , $export = require('./_export');\n\n// Placeholder\nrequire('./_core')._ = path._ = path._ || {};\n\n$export($export.P + $export.F, 'Function', {part: require('./_partial')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.function.part.js\n ** module id = 297\n ** module chunks = 0\n **/","var $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', {isObject: require('./_is-object')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.object.is-object.js\n ** module id = 298\n ** module chunks = 0\n **/","var $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', {classof: require('./_classof')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.object.classof.js\n ** module id = 299\n ** module chunks = 0\n **/","var $export = require('./_export')\n , define = require('./_object-define');\n\n$export($export.S + $export.F, 'Object', {define: define});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.object.define.js\n ** module id = 300\n ** module chunks = 0\n **/","var dP = require('./_object-dp')\n , gOPD = require('./_object-gopd')\n , ownKeys = require('./_own-keys')\n , toIObject = require('./_to-iobject');\n\nmodule.exports = function define(target, mixin){\n var keys = ownKeys(toIObject(mixin))\n , length = keys.length\n , i = 0, key;\n while(length > i)dP.f(target, key = keys[i++], gOPD.f(mixin, key));\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_object-define.js\n ** module id = 301\n ** module chunks = 0\n **/","var $export = require('./_export')\n , define = require('./_object-define')\n , create = require('./_object-create');\n\n$export($export.S + $export.F, 'Object', {\n make: function(proto, mixin){\n return define(create(proto), mixin);\n }\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.object.make.js\n ** module id = 302\n ** module chunks = 0\n **/","'use strict';\nrequire('./_iter-define')(Number, 'Number', function(iterated){\n this._l = +iterated;\n this._i = 0;\n}, function(){\n var i = this._i++\n , done = !(i < this._l);\n return {done: done, value: done ? undefined : i};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.number.iterator.js\n ** module id = 303\n ** module chunks = 0\n **/","// https://github.com/benjamingr/RexExp.escape\nvar $export = require('./_export')\n , $re = require('./_replacer')(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\n$export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }});\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.regexp.escape.js\n ** module id = 304\n ** module chunks = 0\n **/","module.exports = function(regExp, replace){\n var replacer = replace === Object(replace) ? function(part){\n return replace[part];\n } : replace;\n return function(it){\n return String(it).replace(regExp, replacer);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/_replacer.js\n ** module id = 305\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export');\nvar $re = require('./_replacer')(/[&<>\"']/g, {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n});\n\n$export($export.P + $export.F, 'String', {escapeHTML: function escapeHTML(){ return $re(this); }});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.string.escape-html.js\n ** module id = 306\n ** module chunks = 0\n **/","'use strict';\nvar $export = require('./_export');\nvar $re = require('./_replacer')(/&(?:amp|lt|gt|quot|apos);/g, {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n});\n\n$export($export.P + $export.F, 'String', {unescapeHTML: function unescapeHTML(){ return $re(this); }});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/modules/core.string.unescape-html.js\n ** module id = 307\n ** module chunks = 0\n **/","/*! *****************************************************************************\r\nCopyright (C) Microsoft. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\nvar Reflect;\r\n(function (Reflect) {\r\n \"use strict\";\r\n var hasOwn = Object.prototype.hasOwnProperty;\r\n // feature test for Object.create support\r\n var supportsCreate = typeof Object.create === \"function\";\r\n // feature test for __proto__ support\r\n var supportsProto = { __proto__: [] } instanceof Array;\r\n // feature test for Symbol support\r\n var supportsSymbol = typeof Symbol === \"function\";\r\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\r\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\r\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\r\n var createDictionary = supportsCreate ? function () { return MakeDictionary(Object.create(null)); } :\r\n supportsProto ? function () { return MakeDictionary({ __proto__: null }); } :\r\n function () { return MakeDictionary({}); };\r\n var HashMap;\r\n (function (HashMap) {\r\n var downLevel = !supportsCreate && !supportsProto;\r\n HashMap.has = downLevel\r\n ? function (map, key) { return hasOwn.call(map, key); }\r\n : function (map, key) { return key in map; };\r\n HashMap.get = downLevel\r\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\r\n : function (map, key) { return map[key]; };\r\n })(HashMap || (HashMap = {}));\r\n // Load global or shim versions of Map, Set, and WeakMap\r\n var functionPrototype = Object.getPrototypeOf(Function);\r\n var _Map = typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\r\n var _Set = typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\r\n var _WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\r\n // [[Metadata]] internal slot\r\n var Metadata = new _WeakMap();\r\n /**\r\n * Applies a set of decorators to a property of a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @param targetKey (Optional) The property key to decorate.\r\n * @param targetDescriptor (Optional) The property descriptor for the target key\r\n * @remarks Decorators are applied in reverse order.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * Example = Reflect.decorate(decoratorsArray, Example);\r\n *\r\n * // property (on constructor)\r\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Object.defineProperty(Example, \"staticMethod\",\r\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\r\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\r\n *\r\n * // method (on prototype)\r\n * Object.defineProperty(Example.prototype, \"method\",\r\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\r\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\r\n *\r\n */\r\n function decorate(decorators, target, targetKey, targetDescriptor) {\r\n if (!IsUndefined(targetKey)) {\r\n if (!IsArray(decorators))\r\n throw new TypeError();\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsObject(targetDescriptor) && !IsUndefined(targetDescriptor) && !IsNull(targetDescriptor))\r\n throw new TypeError();\r\n if (IsNull(targetDescriptor))\r\n targetDescriptor = undefined;\r\n targetKey = ToPropertyKey(targetKey);\r\n return DecorateProperty(decorators, target, targetKey, targetDescriptor);\r\n }\r\n else {\r\n if (!IsArray(decorators))\r\n throw new TypeError();\r\n if (!IsConstructor(target))\r\n throw new TypeError();\r\n return DecorateConstructor(decorators, target);\r\n }\r\n }\r\n Reflect.decorate = decorate;\r\n /**\r\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\r\n * @param metadataKey The key for the metadata entry.\r\n * @param metadataValue The value for the metadata entry.\r\n * @returns A decorator function.\r\n * @remarks\r\n * If `metadataKey` is already defined for the target and target key, the\r\n * metadataValue for that key will be overwritten.\r\n * @example\r\n *\r\n * // constructor\r\n * @Reflect.metadata(key, value)\r\n * class Example {\r\n * }\r\n *\r\n * // property (on constructor, TypeScript only)\r\n * class Example {\r\n * @Reflect.metadata(key, value)\r\n * static staticProperty;\r\n * }\r\n *\r\n * // property (on prototype, TypeScript only)\r\n * class Example {\r\n * @Reflect.metadata(key, value)\r\n * property;\r\n * }\r\n *\r\n * // method (on constructor)\r\n * class Example {\r\n * @Reflect.metadata(key, value)\r\n * static staticMethod() { }\r\n * }\r\n *\r\n * // method (on prototype)\r\n * class Example {\r\n * @Reflect.metadata(key, value)\r\n * method() { }\r\n * }\r\n *\r\n */\r\n function metadata(metadataKey, metadataValue) {\r\n function decorator(target, targetKey) {\r\n if (!IsUndefined(targetKey)) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n targetKey = ToPropertyKey(targetKey);\r\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);\r\n }\r\n else {\r\n if (!IsConstructor(target))\r\n throw new TypeError();\r\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);\r\n }\r\n }\r\n return decorator;\r\n }\r\n Reflect.metadata = metadata;\r\n /**\r\n * Define a unique metadata entry on the target.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param metadataValue A value that contains attached metadata.\r\n * @param target The target object on which to define metadata.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\r\n *\r\n * // property (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): Decorator {\r\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\r\n * }\r\n *\r\n */\r\n function defineMetadata(metadataKey, metadataValue, target, targetKey) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);\r\n }\r\n Reflect.defineMetadata = defineMetadata;\r\n /**\r\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\r\n *\r\n */\r\n function hasMetadata(metadataKey, target, targetKey) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n return OrdinaryHasMetadata(metadataKey, target, targetKey);\r\n }\r\n Reflect.hasMetadata = hasMetadata;\r\n /**\r\n * Gets a value indicating whether the target object has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\r\n *\r\n */\r\n function hasOwnMetadata(metadataKey, target, targetKey) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n Reflect.hasOwnMetadata = hasOwnMetadata;\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\r\n *\r\n */\r\n function getMetadata(metadataKey, target, targetKey) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n return OrdinaryGetMetadata(metadataKey, target, targetKey);\r\n }\r\n Reflect.getMetadata = getMetadata;\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\r\n *\r\n */\r\n function getOwnMetadata(metadataKey, target, targetKey) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n Reflect.getOwnMetadata = getOwnMetadata;\r\n /**\r\n * Gets the metadata keys defined on the target object or its prototype chain.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadataKeys(Example);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\r\n *\r\n */\r\n function getMetadataKeys(target, targetKey) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n return OrdinaryMetadataKeys(target, targetKey);\r\n }\r\n Reflect.getMetadataKeys = getMetadataKeys;\r\n /**\r\n * Gets the unique metadata keys defined on the target object.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadataKeys(Example);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\r\n *\r\n */\r\n function getOwnMetadataKeys(target, targetKey) {\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n return OrdinaryOwnMetadataKeys(target, targetKey);\r\n }\r\n Reflect.getOwnMetadataKeys = getOwnMetadataKeys;\r\n /**\r\n * Deletes the metadata entry from the target object with the provided key.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class Example {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty;\r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { }\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\r\n *\r\n */\r\n function deleteMetadata(metadataKey, target, targetKey) {\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#deletemetadata-metadatakey-p-\r\n if (!IsObject(target))\r\n throw new TypeError();\r\n if (!IsUndefined(targetKey))\r\n targetKey = ToPropertyKey(targetKey);\r\n var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);\r\n if (IsUndefined(metadataMap))\r\n return false;\r\n if (!metadataMap.delete(metadataKey))\r\n return false;\r\n if (metadataMap.size > 0)\r\n return true;\r\n var targetMetadata = Metadata.get(target);\r\n targetMetadata.delete(targetKey);\r\n if (targetMetadata.size > 0)\r\n return true;\r\n Metadata.delete(target);\r\n return true;\r\n }\r\n Reflect.deleteMetadata = deleteMetadata;\r\n function DecorateConstructor(decorators, target) {\r\n for (var i = decorators.length - 1; i >= 0; --i) {\r\n var decorator = decorators[i];\r\n var decorated = decorator(target);\r\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\r\n if (!IsConstructor(decorated))\r\n throw new TypeError();\r\n target = decorated;\r\n }\r\n }\r\n return target;\r\n }\r\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\r\n for (var i = decorators.length - 1; i >= 0; --i) {\r\n var decorator = decorators[i];\r\n var decorated = decorator(target, propertyKey, descriptor);\r\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\r\n if (!IsObject(decorated))\r\n throw new TypeError();\r\n descriptor = decorated;\r\n }\r\n }\r\n return descriptor;\r\n }\r\n function GetOrCreateMetadataMap(O, P, Create) {\r\n var targetMetadata = Metadata.get(O);\r\n if (IsUndefined(targetMetadata)) {\r\n if (!Create)\r\n return undefined;\r\n targetMetadata = new _Map();\r\n Metadata.set(O, targetMetadata);\r\n }\r\n var metadataMap = targetMetadata.get(P);\r\n if (IsUndefined(metadataMap)) {\r\n if (!Create)\r\n return undefined;\r\n metadataMap = new _Map();\r\n targetMetadata.set(P, metadataMap);\r\n }\r\n return metadataMap;\r\n }\r\n // Ordinary Object Internal Methods and Internal Slots\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinary-object-internal-methods-and-internal-slots\r\n // OrdinaryHasMetadata(MetadataKey, O, P)\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinaryhasmetadata--metadatakey-o-p-\r\n function OrdinaryHasMetadata(MetadataKey, O, P) {\r\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn)\r\n return true;\r\n var parent = OrdinaryGetPrototypeOf(O);\r\n if (!IsNull(parent))\r\n return OrdinaryHasMetadata(MetadataKey, parent, P);\r\n return false;\r\n }\r\n // OrdinaryHasOwnMetadata(MetadataKey, O, P)\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-\r\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (IsUndefined(metadataMap))\r\n return false;\r\n return ToBoolean(metadataMap.has(MetadataKey));\r\n }\r\n // OrdinaryGetMetadata(MetadataKey, O, P)\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinarygetmetadata--metadatakey-o-p-\r\n function OrdinaryGetMetadata(MetadataKey, O, P) {\r\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn)\r\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\r\n var parent = OrdinaryGetPrototypeOf(O);\r\n if (!IsNull(parent))\r\n return OrdinaryGetMetadata(MetadataKey, parent, P);\r\n return undefined;\r\n }\r\n // OrdinaryGetOwnMetadata(MetadataKey, O, P)\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinarygetownmetadata--metadatakey-o-p-\r\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (IsUndefined(metadataMap))\r\n return undefined;\r\n return metadataMap.get(MetadataKey);\r\n }\r\n // OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-\r\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);\r\n metadataMap.set(MetadataKey, MetadataValue);\r\n }\r\n // OrdinaryMetadataKeys(O, P)\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinarymetadatakeys--o-p-\r\n function OrdinaryMetadataKeys(O, P) {\r\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\r\n var parent = OrdinaryGetPrototypeOf(O);\r\n if (parent === null)\r\n return ownKeys;\r\n var parentKeys = OrdinaryMetadataKeys(parent, P);\r\n if (parentKeys.length <= 0)\r\n return ownKeys;\r\n if (ownKeys.length <= 0)\r\n return parentKeys;\r\n var set = new _Set();\r\n var keys = [];\r\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\r\n var key = ownKeys_1[_i];\r\n var hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\r\n var key = parentKeys_1[_a];\r\n var hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n return keys;\r\n }\r\n // OrdinaryOwnMetadataKeys(O, P)\r\n // https://github.com/rbuckton/ReflectDecorators/blob/master/spec/metadata.md#ordinaryownmetadatakeys--o-p-\r\n function OrdinaryOwnMetadataKeys(O, P) {\r\n var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n var keys = [];\r\n if (IsUndefined(metadataMap))\r\n return keys;\r\n var keysObj = metadataMap.keys();\r\n var iterator = GetIterator(keysObj);\r\n while (true) {\r\n var next = IteratorStep(iterator);\r\n try {\r\n if (!next)\r\n return keys;\r\n var nextValue = IteratorValue(next);\r\n keys.push(nextValue);\r\n }\r\n catch (e) {\r\n try {\r\n if (next) {\r\n next = false;\r\n IteratorClose(iterator);\r\n }\r\n }\r\n finally {\r\n throw e;\r\n }\r\n }\r\n finally {\r\n if (next)\r\n IteratorClose(iterator);\r\n }\r\n }\r\n }\r\n // ECMAScript Specification\r\n // https://tc39.github.io/ecma262/\r\n // 6 ECMAScript Data Typ0es and Values\r\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\r\n function Type(x) {\r\n if (x === null)\r\n return 1 /* Null */;\r\n switch (typeof x) {\r\n case \"undefined\": return 0 /* Undefined */;\r\n case \"boolean\": return 2 /* Boolean */;\r\n case \"string\": return 3 /* String */;\r\n case \"symbol\": return 4 /* Symbol */;\r\n case \"number\": return 5 /* Number */;\r\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\r\n default: return 6 /* Object */;\r\n }\r\n }\r\n // 6.1.1 The Undefined Type\r\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\r\n function IsUndefined(x) {\r\n return x === undefined;\r\n }\r\n // 6.1.2 The Null Type\r\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\r\n function IsNull(x) {\r\n return x === null;\r\n }\r\n // 6.1.5 The Symbol Type\r\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\r\n function IsSymbol(x) {\r\n return typeof x === \"symbol\";\r\n }\r\n // 6.1.7 The Object Type\r\n // https://tc39.github.io/ecma262/#sec-object-type\r\n function IsObject(x) {\r\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\r\n }\r\n // 7.1 Type Conversion\r\n // https://tc39.github.io/ecma262/#sec-type-conversion\r\n // 7.1.1 ToPrimitive(input [, PreferredType])\r\n // https://tc39.github.io/ecma262/#sec-toprimitive\r\n function ToPrimitive(input, PreferredType) {\r\n switch (Type(input)) {\r\n case 0 /* Undefined */: return input;\r\n case 1 /* Null */: return input;\r\n case 2 /* Boolean */: return input;\r\n case 3 /* String */: return input;\r\n case 4 /* Symbol */: return input;\r\n case 5 /* Number */: return input;\r\n }\r\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\r\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\r\n if (exoticToPrim !== undefined) {\r\n var result = exoticToPrim.call(input, hint);\r\n if (IsObject(result))\r\n throw new TypeError();\r\n return result;\r\n }\r\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\r\n }\r\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\r\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\r\n function OrdinaryToPrimitive(O, hint) {\r\n if (hint === \"string\") {\r\n var toString_1 = O.toString;\r\n if (IsCallable(toString_1)) {\r\n var result = toString_1.call(O);\r\n if (!IsObject(result))\r\n return result;\r\n }\r\n var valueOf = O.valueOf;\r\n if (IsCallable(valueOf)) {\r\n var result = valueOf.call(O);\r\n if (!IsObject(result))\r\n return result;\r\n }\r\n }\r\n else {\r\n var valueOf = O.valueOf;\r\n if (IsCallable(valueOf)) {\r\n var result = valueOf.call(O);\r\n if (!IsObject(result))\r\n return result;\r\n }\r\n var toString_2 = O.toString;\r\n if (IsCallable(toString_2)) {\r\n var result = toString_2.call(O);\r\n if (!IsObject(result))\r\n return result;\r\n }\r\n }\r\n throw new TypeError();\r\n }\r\n // 7.1.2 ToBoolean(argument)\r\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\r\n function ToBoolean(argument) {\r\n return !!argument;\r\n }\r\n // 7.1.12 ToString(argument)\r\n // https://tc39.github.io/ecma262/#sec-tostring\r\n function ToString(argument) {\r\n return \"\" + argument;\r\n }\r\n // 7.1.14 ToPropertyKey(argument)\r\n // https://tc39.github.io/ecma262/#sec-topropertykey\r\n function ToPropertyKey(argument) {\r\n var key = ToPrimitive(argument, 3 /* String */);\r\n if (IsSymbol(key))\r\n return key;\r\n return ToString(key);\r\n }\r\n // 7.2 Testing and Comparison Operations\r\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\r\n // 7.2.2 IsArray(argument)\r\n // https://tc39.github.io/ecma262/#sec-isarray\r\n function IsArray(argument) {\r\n return Array.isArray\r\n ? Array.isArray(argument)\r\n : argument instanceof Object\r\n ? argument instanceof Array\r\n : Object.prototype.toString.call(argument) === \"[object Array]\";\r\n }\r\n // 7.2.3 IsCallable(argument)\r\n // https://tc39.github.io/ecma262/#sec-iscallable\r\n function IsCallable(argument) {\r\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\r\n return typeof argument === \"function\";\r\n }\r\n // 7.2.4 IsConstructor(argument)\r\n // https://tc39.github.io/ecma262/#sec-isconstructor\r\n function IsConstructor(argument) {\r\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\r\n return typeof argument === \"function\";\r\n }\r\n // 7.3 Operations on Objects\r\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\r\n // 7.3.9 GetMethod(V, P)\r\n // https://tc39.github.io/ecma262/#sec-getmethod\r\n function GetMethod(V, P) {\r\n var func = V[P];\r\n if (func === undefined || func === null)\r\n return undefined;\r\n if (!IsCallable(func))\r\n throw new TypeError();\r\n return func;\r\n }\r\n // 7.4 Operations on Iterator Objects\r\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\r\n function GetIterator(obj) {\r\n var method = GetMethod(obj, iteratorSymbol);\r\n if (!IsCallable(method))\r\n throw new TypeError(); // from Call\r\n var iterator = method.call(obj);\r\n if (!IsObject(iterator))\r\n throw new TypeError();\r\n return iterator;\r\n }\r\n // 7.4.4 IteratorValue(iterResult)\r\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\r\n function IteratorValue(iterResult) {\r\n return iterResult.value;\r\n }\r\n // 7.4.5 IteratorStep(iterator)\r\n // https://tc39.github.io/ecma262/#sec-iteratorstep\r\n function IteratorStep(iterator) {\r\n var result = iterator.next();\r\n return result.done ? false : result;\r\n }\r\n // 7.4.6 IteratorClose(iterator, completion)\r\n // https://tc39.github.io/ecma262/#sec-iteratorclose\r\n function IteratorClose(iterator) {\r\n var f = iterator[\"return\"];\r\n if (f)\r\n f.call(iterator);\r\n }\r\n // 9.1 Ordinary Object Internal Methods and Internal Slots\r\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\r\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\r\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\r\n function OrdinaryGetPrototypeOf(O) {\r\n var proto = Object.getPrototypeOf(O);\r\n if (typeof O !== \"function\" || O === functionPrototype)\r\n return proto;\r\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\r\n // Try to determine the superclass constructor. Compatible implementations\r\n // must either set __proto__ on a subclass constructor to the superclass constructor,\r\n // or ensure each class has a valid `constructor` property on its prototype that\r\n // points back to the constructor.\r\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\r\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\r\n if (proto !== functionPrototype)\r\n return proto;\r\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\r\n var prototype = O.prototype;\r\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\r\n if (prototypeProto == null || prototypeProto === Object.prototype)\r\n return proto;\r\n // If the constructor was not a function, then we cannot determine the heritage.\r\n var constructor = prototypeProto.constructor;\r\n if (typeof constructor !== \"function\")\r\n return proto;\r\n // If we have some kind of self-reference, then we cannot determine the heritage.\r\n if (constructor === O)\r\n return proto;\r\n // we have a pretty good guess at the heritage.\r\n return constructor;\r\n }\r\n // naive Map shim\r\n function CreateMapPolyfill() {\r\n var cacheSentinel = {};\r\n var arraySentinel = [];\r\n var MapIterator = (function () {\r\n function MapIterator(keys, values, selector) {\r\n this._index = 0;\r\n this._keys = keys;\r\n this._values = values;\r\n this._selector = selector;\r\n }\r\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\r\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\r\n MapIterator.prototype.next = function () {\r\n var index = this._index;\r\n if (index >= 0 && index < this._keys.length) {\r\n var result = this._selector(this._keys[index], this._values[index]);\r\n if (index + 1 >= this._keys.length) {\r\n this._index = -1;\r\n this._keys = arraySentinel;\r\n this._values = arraySentinel;\r\n }\r\n else {\r\n this._index++;\r\n }\r\n return { value: result, done: false };\r\n }\r\n return { value: undefined, done: true };\r\n };\r\n MapIterator.prototype.throw = function (error) {\r\n if (this._index >= 0) {\r\n this._index = -1;\r\n this._keys = arraySentinel;\r\n this._values = arraySentinel;\r\n }\r\n throw error;\r\n };\r\n MapIterator.prototype.return = function (value) {\r\n if (this._index >= 0) {\r\n this._index = -1;\r\n this._keys = arraySentinel;\r\n this._values = arraySentinel;\r\n }\r\n return { value: value, done: true };\r\n };\r\n return MapIterator;\r\n }());\r\n return (function () {\r\n function Map() {\r\n this._keys = [];\r\n this._values = [];\r\n this._cacheKey = cacheSentinel;\r\n this._cacheIndex = -2;\r\n }\r\n Object.defineProperty(Map.prototype, \"size\", {\r\n get: function () { return this._keys.length; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\r\n Map.prototype.get = function (key) {\r\n var index = this._find(key, /*insert*/ false);\r\n return index >= 0 ? this._values[index] : undefined;\r\n };\r\n Map.prototype.set = function (key, value) {\r\n var index = this._find(key, /*insert*/ true);\r\n this._values[index] = value;\r\n return this;\r\n };\r\n Map.prototype.delete = function (key) {\r\n var index = this._find(key, /*insert*/ false);\r\n if (index >= 0) {\r\n var size = this._keys.length;\r\n for (var i = index + 1; i < size; i++) {\r\n this._keys[i - 1] = this._keys[i];\r\n this._values[i - 1] = this._values[i];\r\n }\r\n this._keys.length--;\r\n this._values.length--;\r\n if (key === this._cacheKey) {\r\n this._cacheKey = cacheSentinel;\r\n this._cacheIndex = -2;\r\n }\r\n return true;\r\n }\r\n return false;\r\n };\r\n Map.prototype.clear = function () {\r\n this._keys.length = 0;\r\n this._values.length = 0;\r\n this._cacheKey = cacheSentinel;\r\n this._cacheIndex = -2;\r\n };\r\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\r\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\r\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\r\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\r\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\r\n Map.prototype._find = function (key, insert) {\r\n if (this._cacheKey === key)\r\n return this._cacheIndex;\r\n var index = this._keys.indexOf(key);\r\n if (index < 0 && insert) {\r\n index = this._keys.length;\r\n this._keys.push(key);\r\n this._values.push(undefined);\r\n }\r\n return this._cacheKey = key, this._cacheIndex = index;\r\n };\r\n return Map;\r\n }());\r\n function getKey(key, _) {\r\n return key;\r\n }\r\n function getValue(_, value) {\r\n return value;\r\n }\r\n function getEntry(key, value) {\r\n return [key, value];\r\n }\r\n }\r\n // naive Set shim\r\n function CreateSetPolyfill() {\r\n return (function () {\r\n function Set() {\r\n this._map = new _Map();\r\n }\r\n Object.defineProperty(Set.prototype, \"size\", {\r\n get: function () { return this._map.size; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Set.prototype.has = function (value) { return this._map.has(value); };\r\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\r\n Set.prototype.delete = function (value) { return this._map.delete(value); };\r\n Set.prototype.clear = function () { this._map.clear(); };\r\n Set.prototype.keys = function () { return this._map.keys(); };\r\n Set.prototype.values = function () { return this._map.values(); };\r\n Set.prototype.entries = function () { return this._map.entries(); };\r\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\r\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\r\n return Set;\r\n }());\r\n }\r\n // naive WeakMap shim\r\n function CreateWeakMapPolyfill() {\r\n var UUID_SIZE = 16;\r\n var keys = createDictionary();\r\n var rootKey = CreateUniqueKey();\r\n return (function () {\r\n function WeakMap() {\r\n this._key = CreateUniqueKey();\r\n }\r\n WeakMap.prototype.has = function (target) {\r\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n return table !== undefined ? HashMap.has(table, this._key) : false;\r\n };\r\n WeakMap.prototype.get = function (target) {\r\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\r\n };\r\n WeakMap.prototype.set = function (target, value) {\r\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\r\n table[this._key] = value;\r\n return this;\r\n };\r\n WeakMap.prototype.delete = function (target) {\r\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n return table !== undefined ? delete table[this._key] : false;\r\n };\r\n WeakMap.prototype.clear = function () {\r\n // NOTE: not a real clear, just makes the previous data unreachable\r\n this._key = CreateUniqueKey();\r\n };\r\n return WeakMap;\r\n }());\r\n function CreateUniqueKey() {\r\n var key;\r\n do\r\n key = \"@@WeakMap@@\" + CreateUUID();\r\n while (HashMap.has(keys, key));\r\n keys[key] = true;\r\n return key;\r\n }\r\n function GetOrCreateWeakMapTable(target, create) {\r\n if (!hasOwn.call(target, rootKey)) {\r\n if (!create)\r\n return undefined;\r\n Object.defineProperty(target, rootKey, { value: createDictionary() });\r\n }\r\n return target[rootKey];\r\n }\r\n function FillRandomBytes(buffer, size) {\r\n for (var i = 0; i < size; ++i)\r\n buffer[i] = Math.random() * 0xff | 0;\r\n return buffer;\r\n }\r\n function GenRandomBytes(size) {\r\n if (typeof Uint8Array === \"function\") {\r\n if (typeof crypto !== \"undefined\")\r\n return crypto.getRandomValues(new Uint8Array(size));\r\n if (typeof msCrypto !== \"undefined\")\r\n return msCrypto.getRandomValues(new Uint8Array(size));\r\n return FillRandomBytes(new Uint8Array(size), size);\r\n }\r\n return FillRandomBytes(new Array(size), size);\r\n }\r\n function CreateUUID() {\r\n var data = GenRandomBytes(UUID_SIZE);\r\n // mark as random - RFC 4122 § 4.4\r\n data[6] = data[6] & 0x4f | 0x40;\r\n data[8] = data[8] & 0xbf | 0x80;\r\n var result = \"\";\r\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\r\n var byte = data[offset];\r\n if (offset === 4 || offset === 6 || offset === 8)\r\n result += \"-\";\r\n if (byte < 16)\r\n result += \"0\";\r\n result += byte.toString(16).toLowerCase();\r\n }\r\n return result;\r\n }\r\n }\r\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\r\n function MakeDictionary(obj) {\r\n obj.__ = undefined;\r\n delete obj.__;\r\n return obj;\r\n }\r\n // patch global Reflect\r\n (function (__global) {\r\n if (typeof __global.Reflect !== \"undefined\") {\r\n if (__global.Reflect !== Reflect) {\r\n for (var p in Reflect) {\r\n if (hasOwn.call(Reflect, p)) {\r\n __global.Reflect[p] = Reflect[p];\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n __global.Reflect = Reflect;\r\n }\r\n })(typeof global !== \"undefined\" ? global :\r\n typeof self !== \"undefined\" ? self :\r\n Function(\"return this;\")());\r\n})(Reflect || (Reflect = {}));\r\n//# sourceMappingURL=Reflect.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/reflect-metadata/Reflect.js\n ** module id = 308\n ** module chunks = 0\n **/","/**\n* @license\n* Copyright Google Inc. All Rights Reserved.\n*\n* Use of this source code is governed by an MIT-style license that can be\n* found in the LICENSE file at https://angular.io/license\n*/\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (factory());\n}(this, (function () { 'use strict';\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\nvar Zone$1 = (function (global) {\n if (global.Zone) {\n throw new Error('Zone already loaded.');\n }\n var Zone = (function () {\n function Zone(parent, zoneSpec) {\n this._properties = null;\n this._parent = parent;\n this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';\n this._properties = zoneSpec && zoneSpec.properties || {};\n this._zoneDelegate =\n new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);\n }\n Zone.assertZonePatched = function () {\n if (global.Promise !== ZoneAwarePromise) {\n throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +\n 'has been overwritten.\\n' +\n 'Most likely cause is that a Promise polyfill has been loaded ' +\n 'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +\n 'If you must load one, do so before loading zone.js.)');\n }\n };\n Object.defineProperty(Zone, \"current\", {\n get: function () {\n return _currentZone;\n },\n enumerable: true,\n configurable: true\n });\n \n Object.defineProperty(Zone, \"currentTask\", {\n get: function () {\n return _currentTask;\n },\n enumerable: true,\n configurable: true\n });\n \n Object.defineProperty(Zone.prototype, \"parent\", {\n get: function () {\n return this._parent;\n },\n enumerable: true,\n configurable: true\n });\n \n Object.defineProperty(Zone.prototype, \"name\", {\n get: function () {\n return this._name;\n },\n enumerable: true,\n configurable: true\n });\n \n Zone.prototype.get = function (key) {\n var zone = this.getZoneWith(key);\n if (zone)\n return zone._properties[key];\n };\n Zone.prototype.getZoneWith = function (key) {\n var current = this;\n while (current) {\n if (current._properties.hasOwnProperty(key)) {\n return current;\n }\n current = current._parent;\n }\n return null;\n };\n Zone.prototype.fork = function (zoneSpec) {\n if (!zoneSpec)\n throw new Error('ZoneSpec required!');\n return this._zoneDelegate.fork(this, zoneSpec);\n };\n Zone.prototype.wrap = function (callback, source) {\n if (typeof callback !== 'function') {\n throw new Error('Expecting function got: ' + callback);\n }\n var _callback = this._zoneDelegate.intercept(this, callback, source);\n var zone = this;\n return function () {\n return zone.runGuarded(_callback, this, arguments, source);\n };\n };\n Zone.prototype.run = function (callback, applyThis, applyArgs, source) {\n if (applyThis === void 0) { applyThis = null; }\n if (applyArgs === void 0) { applyArgs = null; }\n if (source === void 0) { source = null; }\n var oldZone = _currentZone;\n _currentZone = this;\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n finally {\n _currentZone = oldZone;\n }\n };\n Zone.prototype.runGuarded = function (callback, applyThis, applyArgs, source) {\n if (applyThis === void 0) { applyThis = null; }\n if (applyArgs === void 0) { applyArgs = null; }\n if (source === void 0) { source = null; }\n var oldZone = _currentZone;\n _currentZone = this;\n try {\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n _currentZone = oldZone;\n }\n };\n Zone.prototype.runTask = function (task, applyThis, applyArgs) {\n task.runCount++;\n if (task.zone != this)\n throw new Error('A task can only be run in the zone which created it! (Creation: ' + task.zone.name +\n '; Execution: ' + this.name + ')');\n var previousTask = _currentTask;\n _currentTask = task;\n var oldZone = _currentZone;\n _currentZone = this;\n try {\n if (task.type == 'macroTask' && task.data && !task.data.isPeriodic) {\n task.cancelFn = null;\n }\n try {\n return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n _currentZone = oldZone;\n _currentTask = previousTask;\n }\n };\n Zone.prototype.scheduleMicroTask = function (source, callback, data, customSchedule) {\n return this._zoneDelegate.scheduleTask(this, new ZoneTask('microTask', this, source, callback, data, customSchedule, null));\n };\n Zone.prototype.scheduleMacroTask = function (source, callback, data, customSchedule, customCancel) {\n return this._zoneDelegate.scheduleTask(this, new ZoneTask('macroTask', this, source, callback, data, customSchedule, customCancel));\n };\n Zone.prototype.scheduleEventTask = function (source, callback, data, customSchedule, customCancel) {\n return this._zoneDelegate.scheduleTask(this, new ZoneTask('eventTask', this, source, callback, data, customSchedule, customCancel));\n };\n Zone.prototype.cancelTask = function (task) {\n var value = this._zoneDelegate.cancelTask(this, task);\n task.runCount = -1;\n task.cancelFn = null;\n return value;\n };\n Zone.__symbol__ = __symbol__;\n return Zone;\n }());\n \n var ZoneDelegate = (function () {\n function ZoneDelegate(zone, parentDelegate, zoneSpec) {\n this._taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 };\n this.zone = zone;\n this._parentDelegate = parentDelegate;\n this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);\n this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);\n this._interceptZS =\n zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);\n this._interceptDlgt =\n zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);\n this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);\n this._invokeDlgt =\n zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);\n this._handleErrorZS =\n zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);\n this._handleErrorDlgt =\n zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);\n this._scheduleTaskZS =\n zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);\n this._scheduleTaskDlgt =\n zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);\n this._invokeTaskZS =\n zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);\n this._invokeTaskDlgt =\n zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);\n this._cancelTaskZS =\n zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);\n this._cancelTaskDlgt =\n zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);\n this._hasTaskZS = zoneSpec && (zoneSpec.onHasTask ? zoneSpec : parentDelegate._hasTaskZS);\n this._hasTaskDlgt =\n zoneSpec && (zoneSpec.onHasTask ? parentDelegate : parentDelegate._hasTaskDlgt);\n }\n ZoneDelegate.prototype.fork = function (targetZone, zoneSpec) {\n return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) :\n new Zone(targetZone, zoneSpec);\n };\n ZoneDelegate.prototype.intercept = function (targetZone, callback, source) {\n return this._interceptZS ?\n this._interceptZS.onIntercept(this._interceptDlgt, this.zone, targetZone, callback, source) :\n callback;\n };\n ZoneDelegate.prototype.invoke = function (targetZone, callback, applyThis, applyArgs, source) {\n return this._invokeZS ?\n this._invokeZS.onInvoke(this._invokeDlgt, this.zone, targetZone, callback, applyThis, applyArgs, source) :\n callback.apply(applyThis, applyArgs);\n };\n ZoneDelegate.prototype.handleError = function (targetZone, error) {\n return this._handleErrorZS ?\n this._handleErrorZS.onHandleError(this._handleErrorDlgt, this.zone, targetZone, error) :\n true;\n };\n ZoneDelegate.prototype.scheduleTask = function (targetZone, task) {\n try {\n if (this._scheduleTaskZS) {\n return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this.zone, targetZone, task);\n }\n else if (task.scheduleFn) {\n task.scheduleFn(task);\n }\n else if (task.type == 'microTask') {\n scheduleMicroTask(task);\n }\n else {\n throw new Error('Task is missing scheduleFn.');\n }\n return task;\n }\n finally {\n if (targetZone == this.zone) {\n this._updateTaskCount(task.type, 1);\n }\n }\n };\n ZoneDelegate.prototype.invokeTask = function (targetZone, task, applyThis, applyArgs) {\n try {\n return this._invokeTaskZS ?\n this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this.zone, targetZone, task, applyThis, applyArgs) :\n task.callback.apply(applyThis, applyArgs);\n }\n finally {\n if (targetZone == this.zone && (task.type != 'eventTask') &&\n !(task.data && task.data.isPeriodic)) {\n this._updateTaskCount(task.type, -1);\n }\n }\n };\n ZoneDelegate.prototype.cancelTask = function (targetZone, task) {\n var value;\n if (this._cancelTaskZS) {\n value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this.zone, targetZone, task);\n }\n else if (!task.cancelFn) {\n throw new Error('Task does not support cancellation, or is already canceled.');\n }\n else {\n value = task.cancelFn(task);\n }\n if (targetZone == this.zone) {\n // this should not be in the finally block, because exceptions assume not canceled.\n this._updateTaskCount(task.type, -1);\n }\n return value;\n };\n ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) {\n return this._hasTaskZS &&\n this._hasTaskZS.onHasTask(this._hasTaskDlgt, this.zone, targetZone, isEmpty);\n };\n ZoneDelegate.prototype._updateTaskCount = function (type, count) {\n var counts = this._taskCounts;\n var prev = counts[type];\n var next = counts[type] = prev + count;\n if (next < 0) {\n throw new Error('More tasks executed then were scheduled.');\n }\n if (prev == 0 || next == 0) {\n var isEmpty = {\n microTask: counts.microTask > 0,\n macroTask: counts.macroTask > 0,\n eventTask: counts.eventTask > 0,\n change: type\n };\n try {\n this.hasTask(this.zone, isEmpty);\n }\n finally {\n if (this._parentDelegate) {\n this._parentDelegate._updateTaskCount(type, count);\n }\n }\n }\n };\n return ZoneDelegate;\n }());\n var ZoneTask = (function () {\n function ZoneTask(type, zone, source, callback, options, scheduleFn, cancelFn) {\n this.runCount = 0;\n this.type = type;\n this.zone = zone;\n this.source = source;\n this.data = options;\n this.scheduleFn = scheduleFn;\n this.cancelFn = cancelFn;\n this.callback = callback;\n var self = this;\n this.invoke = function () {\n _numberOfNestedTaskFrames++;\n try {\n return zone.runTask(self, this, arguments);\n }\n finally {\n if (_numberOfNestedTaskFrames == 1) {\n drainMicroTaskQueue();\n }\n _numberOfNestedTaskFrames--;\n }\n };\n }\n ZoneTask.prototype.toString = function () {\n if (this.data && typeof this.data.handleId !== 'undefined') {\n return this.data.handleId;\n }\n else {\n return Object.prototype.toString.call(this);\n }\n };\n return ZoneTask;\n }());\n function __symbol__(name) {\n return '__zone_symbol__' + name;\n }\n \n var symbolSetTimeout = __symbol__('setTimeout');\n var symbolPromise = __symbol__('Promise');\n var symbolThen = __symbol__('then');\n var _currentZone = new Zone(null, null);\n var _currentTask = null;\n var _microTaskQueue = [];\n var _isDrainingMicrotaskQueue = false;\n var _uncaughtPromiseErrors = [];\n var _numberOfNestedTaskFrames = 0;\n function scheduleQueueDrain() {\n // if we are not running in any task, and there has not been anything scheduled\n // we must bootstrap the initial task creation by manually scheduling the drain\n if (_numberOfNestedTaskFrames == 0 && _microTaskQueue.length == 0) {\n // We are not running in Task, so we need to kickstart the microtask queue.\n if (global[symbolPromise]) {\n global[symbolPromise].resolve(0)[symbolThen](drainMicroTaskQueue);\n }\n else {\n global[symbolSetTimeout](drainMicroTaskQueue, 0);\n }\n }\n }\n function scheduleMicroTask(task) {\n scheduleQueueDrain();\n _microTaskQueue.push(task);\n }\n function consoleError(e) {\n var rejection = e && e.rejection;\n if (rejection) {\n console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);\n }\n console.error(e);\n }\n function drainMicroTaskQueue() {\n if (!_isDrainingMicrotaskQueue) {\n _isDrainingMicrotaskQueue = true;\n while (_microTaskQueue.length) {\n var queue = _microTaskQueue;\n _microTaskQueue = [];\n for (var i = 0; i < queue.length; i++) {\n var task = queue[i];\n try {\n task.zone.runTask(task, null, null);\n }\n catch (e) {\n consoleError(e);\n }\n }\n }\n while (_uncaughtPromiseErrors.length) {\n var _loop_1 = function() {\n var uncaughtPromiseError = _uncaughtPromiseErrors.shift();\n try {\n uncaughtPromiseError.zone.runGuarded(function () {\n throw uncaughtPromiseError;\n });\n }\n catch (e) {\n consoleError(e);\n }\n };\n while (_uncaughtPromiseErrors.length) {\n _loop_1();\n }\n }\n _isDrainingMicrotaskQueue = false;\n }\n }\n function isThenable(value) {\n return value && value.then;\n }\n function forwardResolution(value) {\n return value;\n }\n function forwardRejection(rejection) {\n return ZoneAwarePromise.reject(rejection);\n }\n var symbolState = __symbol__('state');\n var symbolValue = __symbol__('value');\n var source = 'Promise.then';\n var UNRESOLVED = null;\n var RESOLVED = true;\n var REJECTED = false;\n var REJECTED_NO_CATCH = 0;\n function makeResolver(promise, state) {\n return function (v) {\n resolvePromise(promise, state, v);\n // Do not return value or you will break the Promise spec.\n };\n }\n function resolvePromise(promise, state, value) {\n if (promise[symbolState] === UNRESOLVED) {\n if (value instanceof ZoneAwarePromise && value[symbolState] !== UNRESOLVED) {\n clearRejectedNoCatch(value);\n resolvePromise(promise, value[symbolState], value[symbolValue]);\n }\n else if (isThenable(value)) {\n value.then(makeResolver(promise, state), makeResolver(promise, false));\n }\n else {\n promise[symbolState] = state;\n var queue = promise[symbolValue];\n promise[symbolValue] = value;\n for (var i = 0; i < queue.length;) {\n scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);\n }\n if (queue.length == 0 && state == REJECTED) {\n promise[symbolState] = REJECTED_NO_CATCH;\n try {\n throw new Error('Uncaught (in promise): ' + value +\n (value && value.stack ? '\\n' + value.stack : ''));\n }\n catch (e) {\n var error_1 = e;\n error_1.rejection = value;\n error_1.promise = promise;\n error_1.zone = Zone.current;\n error_1.task = Zone.currentTask;\n _uncaughtPromiseErrors.push(error_1);\n scheduleQueueDrain();\n }\n }\n }\n }\n // Resolving an already resolved promise is a noop.\n return promise;\n }\n function clearRejectedNoCatch(promise) {\n if (promise[symbolState] === REJECTED_NO_CATCH) {\n promise[symbolState] = REJECTED;\n for (var i = 0; i < _uncaughtPromiseErrors.length; i++) {\n if (promise === _uncaughtPromiseErrors[i].promise) {\n _uncaughtPromiseErrors.splice(i, 1);\n break;\n }\n }\n }\n }\n function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {\n clearRejectedNoCatch(promise);\n var delegate = promise[symbolState] ? onFulfilled || forwardResolution : onRejected || forwardRejection;\n zone.scheduleMicroTask(source, function () {\n try {\n resolvePromise(chainPromise, true, zone.run(delegate, null, [promise[symbolValue]]));\n }\n catch (error) {\n resolvePromise(chainPromise, false, error);\n }\n });\n }\n var ZoneAwarePromise = (function () {\n function ZoneAwarePromise(executor) {\n var promise = this;\n if (!(promise instanceof ZoneAwarePromise)) {\n throw new Error('Must be an instanceof Promise.');\n }\n promise[symbolState] = UNRESOLVED;\n promise[symbolValue] = []; // queue;\n try {\n executor && executor(makeResolver(promise, RESOLVED), makeResolver(promise, REJECTED));\n }\n catch (e) {\n resolvePromise(promise, false, e);\n }\n }\n ZoneAwarePromise.resolve = function (value) {\n return resolvePromise(new this(null), RESOLVED, value);\n };\n ZoneAwarePromise.reject = function (error) {\n return resolvePromise(new this(null), REJECTED, error);\n };\n ZoneAwarePromise.race = function (values) {\n var resolve;\n var reject;\n var promise = new this(function (res, rej) {\n _a = [res, rej], resolve = _a[0], reject = _a[1];\n var _a;\n });\n function onResolve(value) {\n promise && (promise = null || resolve(value));\n }\n function onReject(error) {\n promise && (promise = null || reject(error));\n }\n for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {\n var value = values_1[_i];\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n value.then(onResolve, onReject);\n }\n return promise;\n };\n ZoneAwarePromise.all = function (values) {\n var resolve;\n var reject;\n var promise = new this(function (res, rej) {\n resolve = res;\n reject = rej;\n });\n var count = 0;\n var resolvedValues = [];\n for (var _i = 0, values_2 = values; _i < values_2.length; _i++) {\n var value = values_2[_i];\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n value.then((function (index) { return function (value) {\n resolvedValues[index] = value;\n count--;\n if (!count) {\n resolve(resolvedValues);\n }\n }; })(count), reject);\n count++;\n }\n if (!count)\n resolve(resolvedValues);\n return promise;\n };\n ZoneAwarePromise.prototype.then = function (onFulfilled, onRejected) {\n var chainPromise = new this.constructor(null);\n var zone = Zone.current;\n if (this[symbolState] == UNRESOLVED) {\n this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);\n }\n else {\n scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);\n }\n return chainPromise;\n };\n ZoneAwarePromise.prototype.catch = function (onRejected) {\n return this.then(null, onRejected);\n };\n return ZoneAwarePromise;\n }());\n // Protect against aggressive optimizers dropping seemingly unused properties.\n // E.g. Closure Compiler in advanced mode.\n ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;\n ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;\n ZoneAwarePromise['race'] = ZoneAwarePromise.race;\n ZoneAwarePromise['all'] = ZoneAwarePromise.all;\n var NativePromise = global[__symbol__('Promise')] = global.Promise;\n global.Promise = ZoneAwarePromise;\n function patchThen(NativePromise) {\n var NativePromiseProtototype = NativePromise.prototype;\n var NativePromiseThen = NativePromiseProtototype[__symbol__('then')] =\n NativePromiseProtototype.then;\n NativePromiseProtototype.then = function (onResolve, onReject) {\n var nativePromise = this;\n return new ZoneAwarePromise(function (resolve, reject) {\n NativePromiseThen.call(nativePromise, resolve, reject);\n })\n .then(onResolve, onReject);\n };\n }\n if (NativePromise) {\n patchThen(NativePromise);\n if (typeof global['fetch'] !== 'undefined') {\n var fetchPromise = void 0;\n try {\n // In MS Edge this throws\n fetchPromise = global['fetch']();\n }\n catch (e) {\n // In Chrome this throws instead.\n fetchPromise = global['fetch']('about:blank');\n }\n // ignore output to prevent error;\n fetchPromise.then(function () { return null; }, function () { return null; });\n if (fetchPromise.constructor != NativePromise &&\n fetchPromise.constructor != ZoneAwarePromise) {\n patchThen(fetchPromise.constructor);\n }\n }\n }\n // This is not part of public API, but it is usefull for tests, so we expose it.\n Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;\n return global.Zone = Zone;\n})(typeof window === 'object' && window || typeof self === 'object' && self || global);\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nvar zoneSymbol = Zone['__symbol__'];\nvar _global$1 = typeof window === 'object' && window || typeof self === 'object' && self || global;\nfunction bindArguments(args, source) {\n for (var i = args.length - 1; i >= 0; i--) {\n if (typeof args[i] === 'function') {\n args[i] = Zone.current.wrap(args[i], source + '_' + i);\n }\n }\n return args;\n}\n\nfunction patchPrototype(prototype, fnNames) {\n var source = prototype.constructor['name'];\n var _loop_1 = function(i) {\n var name_1 = fnNames[i];\n var delegate = prototype[name_1];\n if (delegate) {\n prototype[name_1] = (function (delegate) {\n return function () {\n return delegate.apply(this, bindArguments(arguments, source + '.' + name_1));\n };\n })(delegate);\n }\n };\n for (var i = 0; i < fnNames.length; i++) {\n _loop_1(i);\n }\n}\n\nvar isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);\nvar isNode = (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]');\nvar isBrowser = !isNode && !isWebWorker && !!(typeof window !== 'undefined' && window['HTMLElement']);\nfunction patchProperty(obj, prop) {\n var desc = Object.getOwnPropertyDescriptor(obj, prop) || { enumerable: true, configurable: true };\n // A property descriptor cannot have getter/setter and be writable\n // deleting the writable and value properties avoids this error:\n //\n // TypeError: property descriptors must not specify a value or be writable when a\n // getter or setter has been specified\n delete desc.writable;\n delete desc.value;\n // substr(2) cuz 'onclick' -> 'click', etc\n var eventName = prop.substr(2);\n var _prop = '_' + prop;\n desc.set = function (fn) {\n if (this[_prop]) {\n this.removeEventListener(eventName, this[_prop]);\n }\n if (typeof fn === 'function') {\n var wrapFn = function (event) {\n var result;\n result = fn.apply(this, arguments);\n if (result != undefined && !result)\n event.preventDefault();\n };\n this[_prop] = wrapFn;\n this.addEventListener(eventName, wrapFn, false);\n }\n else {\n this[_prop] = null;\n }\n };\n // The getter would return undefined for unassigned properties but the default value of an\n // unassigned property is null\n desc.get = function () {\n return this[_prop] || null;\n };\n Object.defineProperty(obj, prop, desc);\n}\n\nfunction patchOnProperties(obj, properties) {\n var onProperties = [];\n for (var prop in obj) {\n if (prop.substr(0, 2) == 'on') {\n onProperties.push(prop);\n }\n }\n for (var j = 0; j < onProperties.length; j++) {\n patchProperty(obj, onProperties[j]);\n }\n if (properties) {\n for (var i = 0; i < properties.length; i++) {\n patchProperty(obj, 'on' + properties[i]);\n }\n }\n}\n\nvar EVENT_TASKS = zoneSymbol('eventTasks');\n// For EventTarget\nvar ADD_EVENT_LISTENER = 'addEventListener';\nvar REMOVE_EVENT_LISTENER = 'removeEventListener';\nfunction findExistingRegisteredTask(target, handler, name, capture, remove) {\n var eventTasks = target[EVENT_TASKS];\n if (eventTasks) {\n for (var i = 0; i < eventTasks.length; i++) {\n var eventTask = eventTasks[i];\n var data = eventTask.data;\n if (data.handler === handler && data.useCapturing === capture && data.eventName === name) {\n if (remove) {\n eventTasks.splice(i, 1);\n }\n return eventTask;\n }\n }\n }\n return null;\n}\nfunction attachRegisteredEvent(target, eventTask) {\n var eventTasks = target[EVENT_TASKS];\n if (!eventTasks) {\n eventTasks = target[EVENT_TASKS] = [];\n }\n eventTasks.push(eventTask);\n}\nfunction makeZoneAwareAddListener(addFnName, removeFnName, useCapturingParam, allowDuplicates) {\n if (useCapturingParam === void 0) { useCapturingParam = true; }\n if (allowDuplicates === void 0) { allowDuplicates = false; }\n var addFnSymbol = zoneSymbol(addFnName);\n var removeFnSymbol = zoneSymbol(removeFnName);\n var defaultUseCapturing = useCapturingParam ? false : undefined;\n function scheduleEventListener(eventTask) {\n var meta = eventTask.data;\n attachRegisteredEvent(meta.target, eventTask);\n return meta.target[addFnSymbol](meta.eventName, eventTask.invoke, meta.useCapturing);\n }\n function cancelEventListener(eventTask) {\n var meta = eventTask.data;\n findExistingRegisteredTask(meta.target, eventTask.invoke, meta.eventName, meta.useCapturing, true);\n meta.target[removeFnSymbol](meta.eventName, eventTask.invoke, meta.useCapturing);\n }\n return function zoneAwareAddListener(self, args) {\n var eventName = args[0];\n var handler = args[1];\n var useCapturing = args[2] || defaultUseCapturing;\n // - Inside a Web Worker, `this` is undefined, the context is `global`\n // - When `addEventListener` is called on the global context in strict mode, `this` is undefined\n // see https://github.com/angular/zone.js/issues/190\n var target = self || _global$1;\n var delegate = null;\n if (typeof handler == 'function') {\n delegate = handler;\n }\n else if (handler && handler.handleEvent) {\n delegate = function (event) { return handler.handleEvent(event); };\n }\n var validZoneHandler = false;\n try {\n // In cross site contexts (such as WebDriver frameworks like Selenium),\n // accessing the handler object here will cause an exception to be thrown which\n // will fail tests prematurely.\n validZoneHandler = handler && handler.toString() === '[object FunctionWrapper]';\n }\n catch (e) {\n // Returning nothing here is fine, because objects in a cross-site context are unusable\n return;\n }\n // Ignore special listeners of IE11 & Edge dev tools, see\n // https://github.com/angular/zone.js/issues/150\n if (!delegate || validZoneHandler) {\n return target[addFnSymbol](eventName, handler, useCapturing);\n }\n if (!allowDuplicates) {\n var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, false);\n if (eventTask) {\n // we already registered, so this will have noop.\n return target[addFnSymbol](eventName, eventTask.invoke, useCapturing);\n }\n }\n var zone = Zone.current;\n var source = target.constructor['name'] + '.' + addFnName + ':' + eventName;\n var data = {\n target: target,\n eventName: eventName,\n name: eventName,\n useCapturing: useCapturing,\n handler: handler\n };\n zone.scheduleEventTask(source, delegate, data, scheduleEventListener, cancelEventListener);\n };\n}\nfunction makeZoneAwareRemoveListener(fnName, useCapturingParam) {\n if (useCapturingParam === void 0) { useCapturingParam = true; }\n var symbol = zoneSymbol(fnName);\n var defaultUseCapturing = useCapturingParam ? false : undefined;\n return function zoneAwareRemoveListener(self, args) {\n var eventName = args[0];\n var handler = args[1];\n var useCapturing = args[2] || defaultUseCapturing;\n // - Inside a Web Worker, `this` is undefined, the context is `global`\n // - When `addEventListener` is called on the global context in strict mode, `this` is undefined\n // see https://github.com/angular/zone.js/issues/190\n var target = self || _global$1;\n var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, true);\n if (eventTask) {\n eventTask.zone.cancelTask(eventTask);\n }\n else {\n target[symbol](eventName, handler, useCapturing);\n }\n };\n}\n\nvar zoneAwareAddEventListener = makeZoneAwareAddListener(ADD_EVENT_LISTENER, REMOVE_EVENT_LISTENER);\nvar zoneAwareRemoveEventListener = makeZoneAwareRemoveListener(REMOVE_EVENT_LISTENER);\nfunction patchEventTargetMethods(obj) {\n if (obj && obj.addEventListener) {\n patchMethod(obj, ADD_EVENT_LISTENER, function () { return zoneAwareAddEventListener; });\n patchMethod(obj, REMOVE_EVENT_LISTENER, function () { return zoneAwareRemoveEventListener; });\n return true;\n }\n else {\n return false;\n }\n}\nvar originalInstanceKey = zoneSymbol('originalInstance');\n// wrap some native API on `window`\nfunction patchClass(className) {\n var OriginalClass = _global$1[className];\n if (!OriginalClass)\n return;\n _global$1[className] = function () {\n var a = bindArguments(arguments, className);\n switch (a.length) {\n case 0:\n this[originalInstanceKey] = new OriginalClass();\n break;\n case 1:\n this[originalInstanceKey] = new OriginalClass(a[0]);\n break;\n case 2:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1]);\n break;\n case 3:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);\n break;\n case 4:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);\n break;\n default:\n throw new Error('Arg list too long.');\n }\n };\n var instance = new OriginalClass(function () { });\n var prop;\n for (prop in instance) {\n // https://bugs.webkit.org/show_bug.cgi?id=44721\n if (className === 'XMLHttpRequest' && prop === 'responseBlob')\n continue;\n (function (prop) {\n if (typeof instance[prop] === 'function') {\n _global$1[className].prototype[prop] = function () {\n return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);\n };\n }\n else {\n Object.defineProperty(_global$1[className].prototype, prop, {\n set: function (fn) {\n if (typeof fn === 'function') {\n this[originalInstanceKey][prop] = Zone.current.wrap(fn, className + '.' + prop);\n }\n else {\n this[originalInstanceKey][prop] = fn;\n }\n },\n get: function () {\n return this[originalInstanceKey][prop];\n }\n });\n }\n }(prop));\n }\n for (prop in OriginalClass) {\n if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {\n _global$1[className][prop] = OriginalClass[prop];\n }\n }\n}\n\nfunction createNamedFn(name, delegate) {\n try {\n return (Function('f', \"return function \" + name + \"(){return f(this, arguments)}\"))(delegate);\n }\n catch (e) {\n // if we fail, we must be CSP, just return delegate.\n return function () {\n return delegate(this, arguments);\n };\n }\n}\nfunction patchMethod(target, name, patchFn) {\n var proto = target;\n while (proto && Object.getOwnPropertyNames(proto).indexOf(name) === -1) {\n proto = Object.getPrototypeOf(proto);\n }\n if (!proto && target[name]) {\n // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n proto = target;\n }\n var delegateName = zoneSymbol(name);\n var delegate;\n if (proto && !(delegate = proto[delegateName])) {\n delegate = proto[delegateName] = proto[name];\n proto[name] = createNamedFn(name, patchFn(delegate, delegateName, name));\n }\n return delegate;\n}\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction patchTimer(window, setName, cancelName, nameSuffix) {\n var setNative = null;\n var clearNative = null;\n setName += nameSuffix;\n cancelName += nameSuffix;\n var tasksByHandleId = {};\n function scheduleTask(task) {\n var data = task.data;\n data.args[0] = function () {\n task.invoke.apply(this, arguments);\n delete tasksByHandleId[data.handleId];\n };\n data.handleId = setNative.apply(window, data.args);\n tasksByHandleId[data.handleId] = task;\n return task;\n }\n function clearTask(task) {\n delete tasksByHandleId[task.data.handleId];\n return clearNative(task.data.handleId);\n }\n setNative =\n patchMethod(window, setName, function (delegate) { return function (self, args) {\n if (typeof args[0] === 'function') {\n var zone = Zone.current;\n var options = {\n handleId: null,\n isPeriodic: nameSuffix === 'Interval',\n delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 : null,\n args: args\n };\n var task = zone.scheduleMacroTask(setName, args[0], options, scheduleTask, clearTask);\n if (!task) {\n return task;\n }\n // Node.js must additionally support the ref and unref functions.\n var handle = task.data.handleId;\n if (handle.ref && handle.unref) {\n task.ref = handle.ref.bind(handle);\n task.unref = handle.unref.bind(handle);\n }\n return task;\n }\n else {\n // cause an error by calling it directly.\n return delegate.apply(window, args);\n }\n }; });\n clearNative =\n patchMethod(window, cancelName, function (delegate) { return function (self, args) {\n var task = typeof args[0] === 'number' ? tasksByHandleId[args[0]] : args[0];\n if (task && typeof task.type === 'string') {\n if (task.cancelFn && task.data.isPeriodic || task.runCount === 0) {\n // Do not cancel already canceled functions\n task.zone.cancelTask(task);\n }\n }\n else {\n // cause an error by calling it directly.\n delegate.apply(window, args);\n }\n }; });\n}\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/*\n * This is necessary for Chrome and Chrome mobile, to enable\n * things like redefining `createdCallback` on an element.\n */\nvar _defineProperty = Object[zoneSymbol('defineProperty')] = Object.defineProperty;\nvar _getOwnPropertyDescriptor = Object[zoneSymbol('getOwnPropertyDescriptor')] =\n Object.getOwnPropertyDescriptor;\nvar _create = Object.create;\nvar unconfigurablesKey = zoneSymbol('unconfigurables');\nfunction propertyPatch() {\n Object.defineProperty = function (obj, prop, desc) {\n if (isUnconfigurable(obj, prop)) {\n throw new TypeError('Cannot assign to read only property \\'' + prop + '\\' of ' + obj);\n }\n var originalConfigurableFlag = desc.configurable;\n if (prop !== 'prototype') {\n desc = rewriteDescriptor(obj, prop, desc);\n }\n return _tryDefineProperty(obj, prop, desc, originalConfigurableFlag);\n };\n Object.defineProperties = function (obj, props) {\n Object.keys(props).forEach(function (prop) {\n Object.defineProperty(obj, prop, props[prop]);\n });\n return obj;\n };\n Object.create = function (obj, proto) {\n if (typeof proto === 'object' && !Object.isFrozen(proto)) {\n Object.keys(proto).forEach(function (prop) {\n proto[prop] = rewriteDescriptor(obj, prop, proto[prop]);\n });\n }\n return _create(obj, proto);\n };\n Object.getOwnPropertyDescriptor = function (obj, prop) {\n var desc = _getOwnPropertyDescriptor(obj, prop);\n if (isUnconfigurable(obj, prop)) {\n desc.configurable = false;\n }\n return desc;\n };\n}\n\nfunction _redefineProperty(obj, prop, desc) {\n var originalConfigurableFlag = desc.configurable;\n desc = rewriteDescriptor(obj, prop, desc);\n return _tryDefineProperty(obj, prop, desc, originalConfigurableFlag);\n}\n\nfunction isUnconfigurable(obj, prop) {\n return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];\n}\nfunction rewriteDescriptor(obj, prop, desc) {\n desc.configurable = true;\n if (!desc.configurable) {\n if (!obj[unconfigurablesKey]) {\n _defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });\n }\n obj[unconfigurablesKey][prop] = true;\n }\n return desc;\n}\nfunction _tryDefineProperty(obj, prop, desc, originalConfigurableFlag) {\n try {\n return _defineProperty(obj, prop, desc);\n }\n catch (e) {\n if (desc.configurable) {\n // In case of errors, when the configurable flag was likely set by rewriteDescriptor(), let's\n // retry with the original flag value\n if (typeof originalConfigurableFlag == 'undefined') {\n delete desc.configurable;\n }\n else {\n desc.configurable = originalConfigurableFlag;\n }\n try {\n return _defineProperty(obj, prop, desc);\n }\n catch (e) {\n var descJson = null;\n try {\n descJson = JSON.stringify(desc);\n }\n catch (e) {\n descJson = descJson.toString();\n }\n console.log(\"Attempting to configure '\" + prop + \"' with descriptor '\" + descJson + \"' on object '\" + obj + \"' and got error, giving up: \" + e);\n }\n }\n else {\n throw e;\n }\n }\n}\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nvar WTF_ISSUE_555 = 'Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video';\nvar NO_EVENT_TARGET = 'ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex'\n .split(',');\nvar EVENT_TARGET = 'EventTarget';\nfunction eventTargetPatch(_global) {\n var apis = [];\n var isWtf = _global['wtf'];\n if (isWtf) {\n // Workaround for: https://github.com/google/tracing-framework/issues/555\n apis = WTF_ISSUE_555.split(',').map(function (v) { return 'HTML' + v + 'Element'; }).concat(NO_EVENT_TARGET);\n }\n else if (_global[EVENT_TARGET]) {\n apis.push(EVENT_TARGET);\n }\n else {\n // Note: EventTarget is not available in all browsers,\n // if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget\n apis = NO_EVENT_TARGET;\n }\n for (var i = 0; i < apis.length; i++) {\n var type = _global[apis[i]];\n patchEventTargetMethods(type && type.prototype);\n }\n}\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n// we have to patch the instance since the proto is non-configurable\nfunction apply(_global) {\n var WS = _global.WebSocket;\n // On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener\n // On older Chrome, no need since EventTarget was already patched\n if (!_global.EventTarget) {\n patchEventTargetMethods(WS.prototype);\n }\n _global.WebSocket = function (a, b) {\n var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);\n var proxySocket;\n // Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance\n var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage');\n if (onmessageDesc && onmessageDesc.configurable === false) {\n proxySocket = Object.create(socket);\n ['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function (propName) {\n proxySocket[propName] = function () {\n return socket[propName].apply(socket, arguments);\n };\n });\n }\n else {\n // we can patch the real socket\n proxySocket = socket;\n }\n patchOnProperties(proxySocket, ['close', 'error', 'message', 'open']);\n return proxySocket;\n };\n for (var prop in WS) {\n _global.WebSocket[prop] = WS[prop];\n }\n}\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nvar eventNames = 'copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror'\n .split(' ');\nfunction propertyDescriptorPatch(_global) {\n if (isNode) {\n return;\n }\n var supportsWebSocket = typeof WebSocket !== 'undefined';\n if (canPatchViaPropertyDescriptor()) {\n // for browsers that we can patch the descriptor: Chrome & Firefox\n if (isBrowser) {\n patchOnProperties(HTMLElement.prototype, eventNames);\n }\n patchOnProperties(XMLHttpRequest.prototype, null);\n if (typeof IDBIndex !== 'undefined') {\n patchOnProperties(IDBIndex.prototype, null);\n patchOnProperties(IDBRequest.prototype, null);\n patchOnProperties(IDBOpenDBRequest.prototype, null);\n patchOnProperties(IDBDatabase.prototype, null);\n patchOnProperties(IDBTransaction.prototype, null);\n patchOnProperties(IDBCursor.prototype, null);\n }\n if (supportsWebSocket) {\n patchOnProperties(WebSocket.prototype, null);\n }\n }\n else {\n // Safari, Android browsers (Jelly Bean)\n patchViaCapturingAllTheEvents();\n patchClass('XMLHttpRequest');\n if (supportsWebSocket) {\n apply(_global);\n }\n }\n}\nfunction canPatchViaPropertyDescriptor() {\n if (isBrowser && !Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick') &&\n typeof Element !== 'undefined') {\n // WebKit https://bugs.webkit.org/show_bug.cgi?id=134364\n // IDL interface attributes are not configurable\n var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick');\n if (desc && !desc.configurable)\n return false;\n }\n Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {\n get: function () {\n return true;\n }\n });\n var req = new XMLHttpRequest();\n var result = !!req.onreadystatechange;\n Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {});\n return result;\n}\n\nvar unboundKey = zoneSymbol('unbound');\n// Whenever any eventListener fires, we check the eventListener target and all parents\n// for `onwhatever` properties and replace them with zone-bound functions\n// - Chrome (for now)\nfunction patchViaCapturingAllTheEvents() {\n var _loop_1 = function(i) {\n var property = eventNames[i];\n var onproperty = 'on' + property;\n self.addEventListener(property, function (event) {\n var elt = event.target, bound, source;\n if (elt) {\n source = elt.constructor['name'] + '.' + onproperty;\n }\n else {\n source = 'unknown.' + onproperty;\n }\n while (elt) {\n if (elt[onproperty] && !elt[onproperty][unboundKey]) {\n bound = Zone.current.wrap(elt[onproperty], source);\n bound[unboundKey] = elt[onproperty];\n elt[onproperty] = bound;\n }\n elt = elt.parentElement;\n }\n }, true);\n };\n for (var i = 0; i < eventNames.length; i++) {\n _loop_1(i);\n }\n \n}\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nfunction registerElementPatch(_global) {\n if (!isBrowser || !('registerElement' in _global.document)) {\n return;\n }\n var _registerElement = document.registerElement;\n var callbacks = ['createdCallback', 'attachedCallback', 'detachedCallback', 'attributeChangedCallback'];\n document.registerElement = function (name, opts) {\n if (opts && opts.prototype) {\n callbacks.forEach(function (callback) {\n var source = 'Document.registerElement::' + callback;\n if (opts.prototype.hasOwnProperty(callback)) {\n var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);\n if (descriptor && descriptor.value) {\n descriptor.value = Zone.current.wrap(descriptor.value, source);\n _redefineProperty(opts.prototype, callback, descriptor);\n }\n else {\n opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);\n }\n }\n else if (opts.prototype[callback]) {\n opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);\n }\n });\n }\n return _registerElement.apply(document, [name, opts]);\n };\n}\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nvar set = 'set';\nvar clear = 'clear';\nvar blockingMethods = ['alert', 'prompt', 'confirm'];\nvar _global = typeof window === 'object' && window || typeof self === 'object' && self || global;\npatchTimer(_global, set, clear, 'Timeout');\npatchTimer(_global, set, clear, 'Interval');\npatchTimer(_global, set, clear, 'Immediate');\npatchTimer(_global, 'request', 'cancel', 'AnimationFrame');\npatchTimer(_global, 'mozRequest', 'mozCancel', 'AnimationFrame');\npatchTimer(_global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');\nfor (var i = 0; i < blockingMethods.length; i++) {\n var name = blockingMethods[i];\n patchMethod(_global, name, function (delegate, symbol, name) {\n return function (s, args) {\n return Zone.current.run(delegate, _global, args, name);\n };\n });\n}\neventTargetPatch(_global);\npropertyDescriptorPatch(_global);\npatchClass('MutationObserver');\npatchClass('WebKitMutationObserver');\npatchClass('FileReader');\npropertyPatch();\nregisterElementPatch(_global);\n// Treat XMLHTTPRequest as a macrotask.\npatchXHR(_global);\nvar XHR_TASK = zoneSymbol('xhrTask');\nvar XHR_SYNC = zoneSymbol('xhrSync');\nfunction patchXHR(window) {\n function findPendingTask(target) {\n var pendingTask = target[XHR_TASK];\n return pendingTask;\n }\n function scheduleTask(task) {\n var data = task.data;\n data.target.addEventListener('readystatechange', function () {\n if (data.target.readyState === data.target.DONE) {\n if (!data.aborted) {\n task.invoke();\n }\n }\n });\n var storedTask = data.target[XHR_TASK];\n if (!storedTask) {\n data.target[XHR_TASK] = task;\n }\n sendNative.apply(data.target, data.args);\n return task;\n }\n function placeholderCallback() { }\n function clearTask(task) {\n var data = task.data;\n // Note - ideally, we would call data.target.removeEventListener here, but it's too late\n // to prevent it from firing. So instead, we store info for the event listener.\n data.aborted = true;\n return abortNative.apply(data.target, data.args);\n }\n var openNative = patchMethod(window.XMLHttpRequest.prototype, 'open', function () { return function (self, args) {\n self[XHR_SYNC] = args[2] == false;\n return openNative.apply(self, args);\n }; });\n var sendNative = patchMethod(window.XMLHttpRequest.prototype, 'send', function () { return function (self, args) {\n var zone = Zone.current;\n if (self[XHR_SYNC]) {\n // if the XHR is sync there is no task to schedule, just execute the code.\n return sendNative.apply(self, args);\n }\n else {\n var options = { target: self, isPeriodic: false, delay: null, args: args, aborted: false };\n return zone.scheduleMacroTask('XMLHttpRequest.send', placeholderCallback, options, scheduleTask, clearTask);\n }\n }; });\n var abortNative = patchMethod(window.XMLHttpRequest.prototype, 'abort', function (delegate) { return function (self, args) {\n var task = findPendingTask(self);\n if (task && typeof task.type == 'string') {\n // If the XHR has already completed, do nothing.\n if (task.cancelFn == null) {\n return;\n }\n task.zone.cancelTask(task);\n }\n // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no task\n // to cancel. Do nothing.\n }; });\n}\n/// GEO_LOCATION\nif (_global['navigator'] && _global['navigator'].geolocation) {\n patchPrototype(_global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);\n}\n\n})));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/zone.js/dist/zone.js\n ** module id = 309\n ** module chunks = 0\n **/","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/process/browser.js\n ** module id = 310\n ** module chunks = 0\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler'), require('@angular/core'), require('@angular/platform-browser')) :\n typeof define === 'function' && define.amd ? define(['exports', '@angular/compiler', '@angular/core', '@angular/platform-browser'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.platformBrowserDynamic = global.ng.platformBrowserDynamic || {}),global.ng.compiler,global.ng.core,global.ng.platformBrowser));\n}(this, function (exports,_angular_compiler,_angular_core,_angular_platformBrowser) { 'use strict';\n\n var INTERNAL_BROWSER_PLATFORM_PROVIDERS = _angular_platformBrowser.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS;\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var globalScope;\n if (typeof window === 'undefined') {\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\n globalScope = self;\n }\n else {\n globalScope = global;\n }\n }\n else {\n globalScope = window;\n }\n // Need to declare a new variable for global here since TypeScript\n // exports the original value of the symbol.\n var global$1 = globalScope;\n // TODO: remove calls to assert in production environment\n // Note: Can't just export this and import in in other files\n // as `assert` is a reserved keyword in Dart\n global$1.assert = function assert(condition) {\n // TODO: to be fixed properly via #2830, noop for now\n };\n function isPresent(obj) {\n return obj !== undefined && obj !== null;\n }\n var NumberWrapper = (function () {\n function NumberWrapper() {\n }\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\n NumberWrapper.equal = function (a, b) { return a === b; };\n NumberWrapper.parseIntAutoRadix = function (text) {\n var result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n };\n NumberWrapper.parseInt = function (text, radix) {\n if (radix == 10) {\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else if (radix == 16) {\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else {\n var result = parseInt(text, radix);\n if (!isNaN(result)) {\n return result;\n }\n }\n throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);\n };\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\n Object.defineProperty(NumberWrapper, \"NaN\", {\n get: function () { return NaN; },\n enumerable: true,\n configurable: true\n });\n NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\n return NumberWrapper;\n }());\n\n var __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 };\n var ResourceLoaderImpl = (function (_super) {\n __extends(ResourceLoaderImpl, _super);\n function ResourceLoaderImpl() {\n _super.apply(this, arguments);\n }\n ResourceLoaderImpl.prototype.get = function (url) {\n var resolve;\n var reject;\n var promise = new Promise(function (res, rej) {\n resolve = res;\n reject = rej;\n });\n var xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n xhr.onload = function () {\n // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\n // by IE10)\n var response = isPresent(xhr.response) ? xhr.response : xhr.responseText;\n // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n var status = xhr.status === 1223 ? 204 : xhr.status;\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = response ? 200 : 0;\n }\n if (200 <= status && status <= 300) {\n resolve(response);\n }\n else {\n reject(\"Failed to load \" + url);\n }\n };\n xhr.onerror = function () { reject(\"Failed to load \" + url); };\n xhr.send();\n return promise;\n };\n ResourceLoaderImpl.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n ResourceLoaderImpl.ctorParameters = [];\n return ResourceLoaderImpl;\n }(_angular_compiler.ResourceLoader));\n\n var INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [\n INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n {\n provide: _angular_core.COMPILER_OPTIONS,\n useValue: { providers: [{ provide: _angular_compiler.ResourceLoader, useClass: ResourceLoaderImpl }] },\n multi: true\n },\n ];\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n /**\n * An implementation of ResourceLoader that uses a template cache to avoid doing an actual\n * ResourceLoader.\n *\n * The template cache needs to be built and loaded into window.$templateCache\n * via a separate mechanism.\n */\n var CachedResourceLoader = (function (_super) {\n __extends$1(CachedResourceLoader, _super);\n function CachedResourceLoader() {\n _super.call(this);\n this._cache = global$1.$templateCache;\n if (this._cache == null) {\n throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');\n }\n }\n CachedResourceLoader.prototype.get = function (url) {\n if (this._cache.hasOwnProperty(url)) {\n return Promise.resolve(this._cache[url]);\n }\n else {\n return Promise.reject('CachedResourceLoader: Did not find cached template for ' + url);\n }\n };\n return CachedResourceLoader;\n }(_angular_compiler.ResourceLoader));\n\n var __platform_browser_dynamic_private__ = {\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n ResourceLoaderImpl: ResourceLoaderImpl\n };\n\n /**\n * @experimental\n */\n var RESOURCE_CACHE_PROVIDER = [{ provide: _angular_compiler.ResourceLoader, useClass: CachedResourceLoader }];\n /**\n * @experimental API related to bootstrapping are still under review.\n */\n var platformBrowserDynamic = _angular_core.createPlatformFactory(_angular_compiler.platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);\n\n exports.RESOURCE_CACHE_PROVIDER = RESOURCE_CACHE_PROVIDER;\n exports.platformBrowserDynamic = platformBrowserDynamic;\n exports.__platform_browser_dynamic_private__ = __platform_browser_dynamic_private__;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js\n ** module id = 311\n ** module chunks = 0\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :\n typeof define === 'function' && define.amd ? define(['exports', '@angular/core'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.compiler = global.ng.compiler || {}),global.ng.core));\n}(this, function (exports,_angular_core) { 'use strict';\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var globalScope;\n if (typeof window === 'undefined') {\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\n globalScope = self;\n }\n else {\n globalScope = global;\n }\n }\n else {\n globalScope = window;\n }\n // Need to declare a new variable for global here since TypeScript\n // exports the original value of the symbol.\n var global$1 = globalScope;\n // TODO: remove calls to assert in production environment\n // Note: Can't just export this and import in in other files\n // as `assert` is a reserved keyword in Dart\n global$1.assert = function assert(condition) {\n // TODO: to be fixed properly via #2830, noop for now\n };\n function isPresent(obj) {\n return obj !== undefined && obj !== null;\n }\n function isBlank(obj) {\n return obj === undefined || obj === null;\n }\n function isString(obj) {\n return typeof obj === 'string';\n }\n function isStringMap(obj) {\n return typeof obj === 'object' && obj !== null;\n }\n var STRING_MAP_PROTO = Object.getPrototypeOf({});\n function isStrictStringMap(obj) {\n return isStringMap(obj) && Object.getPrototypeOf(obj) === STRING_MAP_PROTO;\n }\n function isArray(obj) {\n return Array.isArray(obj);\n }\n function stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (token === undefined || token === null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return token.overriddenName;\n }\n if (token.name) {\n return token.name;\n }\n var res = token.toString();\n var newLineIndex = res.indexOf('\\n');\n return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);\n }\n var StringWrapper = (function () {\n function StringWrapper() {\n }\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\n StringWrapper.equals = function (s, s2) { return s === s2; };\n StringWrapper.stripLeft = function (s, charVal) {\n if (s && s.length) {\n var pos = 0;\n for (var i = 0; i < s.length; i++) {\n if (s[i] != charVal)\n break;\n pos++;\n }\n s = s.substring(pos);\n }\n return s;\n };\n StringWrapper.stripRight = function (s, charVal) {\n if (s && s.length) {\n var pos = s.length;\n for (var i = s.length - 1; i >= 0; i--) {\n if (s[i] != charVal)\n break;\n pos--;\n }\n s = s.substring(0, pos);\n }\n return s;\n };\n StringWrapper.replace = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.replaceAll = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.slice = function (s, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return s.slice(from, to === null ? undefined : to);\n };\n StringWrapper.replaceAllMapped = function (s, from, cb) {\n return s.replace(from, function () {\n var matches = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n matches[_i - 0] = arguments[_i];\n }\n // Remove offset & string from the result array\n matches.splice(-2, 2);\n // The callback receives match, p1, ..., pn\n return cb(matches);\n });\n };\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\n StringWrapper.compare = function (a, b) {\n if (a < b) {\n return -1;\n }\n else if (a > b) {\n return 1;\n }\n else {\n return 0;\n }\n };\n return StringWrapper;\n }());\n var StringJoiner = (function () {\n function StringJoiner(parts) {\n if (parts === void 0) { parts = []; }\n this.parts = parts;\n }\n StringJoiner.prototype.add = function (part) { this.parts.push(part); };\n StringJoiner.prototype.toString = function () { return this.parts.join(''); };\n return StringJoiner;\n }());\n var NumberWrapper = (function () {\n function NumberWrapper() {\n }\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\n NumberWrapper.equal = function (a, b) { return a === b; };\n NumberWrapper.parseIntAutoRadix = function (text) {\n var result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n };\n NumberWrapper.parseInt = function (text, radix) {\n if (radix == 10) {\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else if (radix == 16) {\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else {\n var result = parseInt(text, radix);\n if (!isNaN(result)) {\n return result;\n }\n }\n throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);\n };\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\n Object.defineProperty(NumberWrapper, \"NaN\", {\n get: function () { return NaN; },\n enumerable: true,\n configurable: true\n });\n NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\n return NumberWrapper;\n }());\n function normalizeBlank(obj) {\n return isBlank(obj) ? null : obj;\n }\n function normalizeBool(obj) {\n return isBlank(obj) ? false : obj;\n }\n function isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n }\n function evalExpression(sourceUrl, expr, declarations, vars) {\n var fnBody = declarations + \"\\nreturn \" + expr + \"\\n//# sourceURL=\" + sourceUrl;\n var fnArgNames = [];\n var fnArgValues = [];\n for (var argName in vars) {\n fnArgNames.push(argName);\n fnArgValues.push(vars[argName]);\n }\n return new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat(fnBody))))().apply(void 0, fnArgValues);\n }\n function isPrimitive(obj) {\n return !isJsObject(obj);\n }\n function escapeRegExp(s) {\n return s.replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n }\n\n /**\n * A segment of text within the template.\n */\n var TextAst = (function () {\n function TextAst(value, ngContentIndex, sourceSpan) {\n this.value = value;\n this.ngContentIndex = ngContentIndex;\n this.sourceSpan = sourceSpan;\n }\n TextAst.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\n return TextAst;\n }());\n /**\n * A bound expression within the text of a template.\n */\n var BoundTextAst = (function () {\n function BoundTextAst(value, ngContentIndex, sourceSpan) {\n this.value = value;\n this.ngContentIndex = ngContentIndex;\n this.sourceSpan = sourceSpan;\n }\n BoundTextAst.prototype.visit = function (visitor, context) {\n return visitor.visitBoundText(this, context);\n };\n return BoundTextAst;\n }());\n /**\n * A plain attribute on an element.\n */\n var AttrAst = (function () {\n function AttrAst(name, value, sourceSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n AttrAst.prototype.visit = function (visitor, context) { return visitor.visitAttr(this, context); };\n return AttrAst;\n }());\n /**\n * A binding for an element property (e.g. `[property]=\"expression\"`).\n */\n var BoundElementPropertyAst = (function () {\n function BoundElementPropertyAst(name, type, securityContext, value, unit, sourceSpan) {\n this.name = name;\n this.type = type;\n this.securityContext = securityContext;\n this.value = value;\n this.unit = unit;\n this.sourceSpan = sourceSpan;\n }\n BoundElementPropertyAst.prototype.visit = function (visitor, context) {\n return visitor.visitElementProperty(this, context);\n };\n return BoundElementPropertyAst;\n }());\n /**\n * A binding for an element event (e.g. `(event)=\"handler()\"`).\n */\n var BoundEventAst = (function () {\n function BoundEventAst(name, target, handler, sourceSpan) {\n this.name = name;\n this.target = target;\n this.handler = handler;\n this.sourceSpan = sourceSpan;\n }\n BoundEventAst.prototype.visit = function (visitor, context) {\n return visitor.visitEvent(this, context);\n };\n Object.defineProperty(BoundEventAst.prototype, \"fullName\", {\n get: function () {\n if (isPresent(this.target)) {\n return this.target + \":\" + this.name;\n }\n else {\n return this.name;\n }\n },\n enumerable: true,\n configurable: true\n });\n return BoundEventAst;\n }());\n /**\n * A reference declaration on an element (e.g. `let someName=\"expression\"`).\n */\n var ReferenceAst = (function () {\n function ReferenceAst(name, value, sourceSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n ReferenceAst.prototype.visit = function (visitor, context) {\n return visitor.visitReference(this, context);\n };\n return ReferenceAst;\n }());\n /**\n * A variable declaration on a <template> (e.g. `var-someName=\"someLocalName\"`).\n */\n var VariableAst = (function () {\n function VariableAst(name, value, sourceSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n VariableAst.prototype.visit = function (visitor, context) {\n return visitor.visitVariable(this, context);\n };\n return VariableAst;\n }());\n /**\n * An element declaration in a template.\n */\n var ElementAst = (function () {\n function ElementAst(name, attrs, inputs, outputs, references, directives, providers, hasViewContainer, children, ngContentIndex, sourceSpan) {\n this.name = name;\n this.attrs = attrs;\n this.inputs = inputs;\n this.outputs = outputs;\n this.references = references;\n this.directives = directives;\n this.providers = providers;\n this.hasViewContainer = hasViewContainer;\n this.children = children;\n this.ngContentIndex = ngContentIndex;\n this.sourceSpan = sourceSpan;\n }\n ElementAst.prototype.visit = function (visitor, context) {\n return visitor.visitElement(this, context);\n };\n return ElementAst;\n }());\n /**\n * A `<template>` element included in an Angular template.\n */\n var EmbeddedTemplateAst = (function () {\n function EmbeddedTemplateAst(attrs, outputs, references, variables, directives, providers, hasViewContainer, children, ngContentIndex, sourceSpan) {\n this.attrs = attrs;\n this.outputs = outputs;\n this.references = references;\n this.variables = variables;\n this.directives = directives;\n this.providers = providers;\n this.hasViewContainer = hasViewContainer;\n this.children = children;\n this.ngContentIndex = ngContentIndex;\n this.sourceSpan = sourceSpan;\n }\n EmbeddedTemplateAst.prototype.visit = function (visitor, context) {\n return visitor.visitEmbeddedTemplate(this, context);\n };\n return EmbeddedTemplateAst;\n }());\n /**\n * A directive property with a bound value (e.g. `*ngIf=\"condition\").\n */\n var BoundDirectivePropertyAst = (function () {\n function BoundDirectivePropertyAst(directiveName, templateName, value, sourceSpan) {\n this.directiveName = directiveName;\n this.templateName = templateName;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n BoundDirectivePropertyAst.prototype.visit = function (visitor, context) {\n return visitor.visitDirectiveProperty(this, context);\n };\n return BoundDirectivePropertyAst;\n }());\n /**\n * A directive declared on an element.\n */\n var DirectiveAst = (function () {\n function DirectiveAst(directive, inputs, hostProperties, hostEvents, sourceSpan) {\n this.directive = directive;\n this.inputs = inputs;\n this.hostProperties = hostProperties;\n this.hostEvents = hostEvents;\n this.sourceSpan = sourceSpan;\n }\n DirectiveAst.prototype.visit = function (visitor, context) {\n return visitor.visitDirective(this, context);\n };\n return DirectiveAst;\n }());\n /**\n * A provider declared on an element\n */\n var ProviderAst = (function () {\n function ProviderAst(token, multiProvider, eager, providers, providerType, lifecycleHooks, sourceSpan) {\n this.token = token;\n this.multiProvider = multiProvider;\n this.eager = eager;\n this.providers = providers;\n this.providerType = providerType;\n this.lifecycleHooks = lifecycleHooks;\n this.sourceSpan = sourceSpan;\n }\n ProviderAst.prototype.visit = function (visitor, context) {\n // No visit method in the visitor for now...\n return null;\n };\n return ProviderAst;\n }());\n exports.ProviderAstType;\n (function (ProviderAstType) {\n ProviderAstType[ProviderAstType[\"PublicService\"] = 0] = \"PublicService\";\n ProviderAstType[ProviderAstType[\"PrivateService\"] = 1] = \"PrivateService\";\n ProviderAstType[ProviderAstType[\"Component\"] = 2] = \"Component\";\n ProviderAstType[ProviderAstType[\"Directive\"] = 3] = \"Directive\";\n ProviderAstType[ProviderAstType[\"Builtin\"] = 4] = \"Builtin\";\n })(exports.ProviderAstType || (exports.ProviderAstType = {}));\n /**\n * Position where content is to be projected (instance of `<ng-content>` in a template).\n */\n var NgContentAst = (function () {\n function NgContentAst(index, ngContentIndex, sourceSpan) {\n this.index = index;\n this.ngContentIndex = ngContentIndex;\n this.sourceSpan = sourceSpan;\n }\n NgContentAst.prototype.visit = function (visitor, context) {\n return visitor.visitNgContent(this, context);\n };\n return NgContentAst;\n }());\n /**\n * Enumeration of types of property bindings.\n */\n exports.PropertyBindingType;\n (function (PropertyBindingType) {\n /**\n * A normal binding to a property (e.g. `[property]=\"expression\"`).\n */\n PropertyBindingType[PropertyBindingType[\"Property\"] = 0] = \"Property\";\n /**\n * A binding to an element attribute (e.g. `[attr.name]=\"expression\"`).\n */\n PropertyBindingType[PropertyBindingType[\"Attribute\"] = 1] = \"Attribute\";\n /**\n * A binding to a CSS class (e.g. `[class.name]=\"condition\"`).\n */\n PropertyBindingType[PropertyBindingType[\"Class\"] = 2] = \"Class\";\n /**\n * A binding to a style rule (e.g. `[style.rule]=\"expression\"`).\n */\n PropertyBindingType[PropertyBindingType[\"Style\"] = 3] = \"Style\";\n /**\n * A binding to an animation reference (e.g. `[animate.key]=\"expression\"`).\n */\n PropertyBindingType[PropertyBindingType[\"Animation\"] = 4] = \"Animation\";\n })(exports.PropertyBindingType || (exports.PropertyBindingType = {}));\n /**\n * Visit every node in a list of {@link TemplateAst}s with the given {@link TemplateAstVisitor}.\n */\n function templateVisitAll(visitor, asts, context) {\n if (context === void 0) { context = null; }\n var result = [];\n asts.forEach(function (ast) {\n var astResult = ast.visit(visitor, context);\n if (isPresent(astResult)) {\n result.push(astResult);\n }\n });\n return result;\n }\n\n var Map$1 = global$1.Map;\n var Set$1 = global$1.Set;\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Map constructor. We work around that by manually adding the items.\n var createMapFromPairs = (function () {\n try {\n if (new Map$1([[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs) { return new Map$1(pairs); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromPairs(pairs) {\n var map = new Map$1();\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n map.set(pair[0], pair[1]);\n }\n return map;\n };\n })();\n var createMapFromMap = (function () {\n try {\n if (new Map$1(new Map$1())) {\n return function createMapFromMap(m) { return new Map$1(m); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromMap(m) {\n var map = new Map$1();\n m.forEach(function (v, k) { map.set(k, v); });\n return map;\n };\n })();\n var _clearValues = (function () {\n if ((new Map$1()).keys().next) {\n return function _clearValues(m) {\n var keyIterator = m.keys();\n var k;\n while (!((k = keyIterator.next()).done)) {\n m.set(k.value, null);\n }\n };\n }\n else {\n return function _clearValuesWithForeEach(m) {\n m.forEach(function (v, k) { m.set(k, null); });\n };\n }\n })();\n // Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\n // TODO(mlaval): remove the work around once we have a working polyfill of Array.from\n var _arrayFromMap = (function () {\n try {\n if ((new Map$1()).values().next) {\n return function createArrayFromMap(m, getValues) {\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\n };\n }\n }\n catch (e) {\n }\n return function createArrayFromMapWithForeach(m, getValues) {\n var res = ListWrapper.createFixedSize(m.size), i = 0;\n m.forEach(function (v, k) {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n })();\n var MapWrapper = (function () {\n function MapWrapper() {\n }\n MapWrapper.clone = function (m) { return createMapFromMap(m); };\n MapWrapper.createFromStringMap = function (stringMap) {\n var result = new Map$1();\n for (var prop in stringMap) {\n result.set(prop, stringMap[prop]);\n }\n return result;\n };\n MapWrapper.toStringMap = function (m) {\n var r = {};\n m.forEach(function (v, k) { return r[k] = v; });\n return r;\n };\n MapWrapper.createFromPairs = function (pairs) { return createMapFromPairs(pairs); };\n MapWrapper.clearValues = function (m) { _clearValues(m); };\n MapWrapper.iterable = function (m) { return m; };\n MapWrapper.keys = function (m) { return _arrayFromMap(m, false); };\n MapWrapper.values = function (m) { return _arrayFromMap(m, true); };\n return MapWrapper;\n }());\n /**\n * Wraps Javascript Objects\n */\n var StringMapWrapper = (function () {\n function StringMapWrapper() {\n }\n StringMapWrapper.create = function () {\n // Note: We are not using Object.create(null) here due to\n // performance!\n // http://jsperf.com/ng2-object-create-null\n return {};\n };\n StringMapWrapper.contains = function (map, key) {\n return map.hasOwnProperty(key);\n };\n StringMapWrapper.get = function (map, key) {\n return map.hasOwnProperty(key) ? map[key] : undefined;\n };\n StringMapWrapper.set = function (map, key, value) { map[key] = value; };\n StringMapWrapper.keys = function (map) { return Object.keys(map); };\n StringMapWrapper.values = function (map) {\n return Object.keys(map).map(function (k) { return map[k]; });\n };\n StringMapWrapper.isEmpty = function (map) {\n for (var prop in map) {\n return false;\n }\n return true;\n };\n StringMapWrapper.delete = function (map, key) { delete map[key]; };\n StringMapWrapper.forEach = function (map, callback) {\n for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) {\n var k = _a[_i];\n callback(map[k], k);\n }\n };\n StringMapWrapper.merge = function (m1, m2) {\n var m = {};\n for (var _i = 0, _a = Object.keys(m1); _i < _a.length; _i++) {\n var k = _a[_i];\n m[k] = m1[k];\n }\n for (var _b = 0, _c = Object.keys(m2); _b < _c.length; _b++) {\n var k = _c[_b];\n m[k] = m2[k];\n }\n return m;\n };\n StringMapWrapper.equals = function (m1, m2) {\n var k1 = Object.keys(m1);\n var k2 = Object.keys(m2);\n if (k1.length != k2.length) {\n return false;\n }\n var key;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (m1[key] !== m2[key]) {\n return false;\n }\n }\n return true;\n };\n return StringMapWrapper;\n }());\n var ListWrapper = (function () {\n function ListWrapper() {\n }\n // JS has no way to express a statically fixed size list, but dart does so we\n // keep both methods.\n ListWrapper.createFixedSize = function (size) { return new Array(size); };\n ListWrapper.createGrowableSize = function (size) { return new Array(size); };\n ListWrapper.clone = function (array) { return array.slice(0); };\n ListWrapper.forEachWithIndex = function (array, fn) {\n for (var i = 0; i < array.length; i++) {\n fn(array[i], i);\n }\n };\n ListWrapper.first = function (array) {\n if (!array)\n return null;\n return array[0];\n };\n ListWrapper.last = function (array) {\n if (!array || array.length == 0)\n return null;\n return array[array.length - 1];\n };\n ListWrapper.indexOf = function (array, value, startIndex) {\n if (startIndex === void 0) { startIndex = 0; }\n return array.indexOf(value, startIndex);\n };\n ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; };\n ListWrapper.reversed = function (array) {\n var a = ListWrapper.clone(array);\n return a.reverse();\n };\n ListWrapper.concat = function (a, b) { return a.concat(b); };\n ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); };\n ListWrapper.removeAt = function (list, index) {\n var res = list[index];\n list.splice(index, 1);\n return res;\n };\n ListWrapper.removeAll = function (list, items) {\n for (var i = 0; i < items.length; ++i) {\n var index = list.indexOf(items[i]);\n list.splice(index, 1);\n }\n };\n ListWrapper.remove = function (list, el) {\n var index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n return true;\n }\n return false;\n };\n ListWrapper.clear = function (list) { list.length = 0; };\n ListWrapper.isEmpty = function (list) { return list.length == 0; };\n ListWrapper.fill = function (list, value, start, end) {\n if (start === void 0) { start = 0; }\n if (end === void 0) { end = null; }\n list.fill(value, start, end === null ? list.length : end);\n };\n ListWrapper.equals = function (a, b) {\n if (a.length != b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n };\n ListWrapper.slice = function (l, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return l.slice(from, to === null ? undefined : to);\n };\n ListWrapper.splice = function (l, from, length) { return l.splice(from, length); };\n ListWrapper.sort = function (l, compareFn) {\n if (isPresent(compareFn)) {\n l.sort(compareFn);\n }\n else {\n l.sort();\n }\n };\n ListWrapper.toString = function (l) { return l.toString(); };\n ListWrapper.toJSON = function (l) { return JSON.stringify(l); };\n ListWrapper.maximum = function (list, predicate) {\n if (list.length == 0) {\n return null;\n }\n var solution = null;\n var maxValue = -Infinity;\n for (var index = 0; index < list.length; index++) {\n var candidate = list[index];\n if (isBlank(candidate)) {\n continue;\n }\n var candidateValue = predicate(candidate);\n if (candidateValue > maxValue) {\n solution = candidate;\n maxValue = candidateValue;\n }\n }\n return solution;\n };\n ListWrapper.flatten = function (list) {\n var target = [];\n _flattenArray(list, target);\n return target;\n };\n ListWrapper.addAll = function (list, source) {\n for (var i = 0; i < source.length; i++) {\n list.push(source[i]);\n }\n };\n return ListWrapper;\n }());\n function _flattenArray(source, target) {\n if (isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (isArray(item)) {\n _flattenArray(item, target);\n }\n else {\n target.push(item);\n }\n }\n }\n return target;\n }\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Set constructor. We work around that by manually adding the items.\n var createSetFromList = (function () {\n var test = new Set$1([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst) { return new Set$1(lst); };\n }\n else {\n return function createSetAndPopulateFromList(lst) {\n var res = new Set$1(lst);\n if (res.size !== lst.length) {\n for (var i = 0; i < lst.length; i++) {\n res.add(lst[i]);\n }\n }\n return res;\n };\n }\n })();\n var SetWrapper = (function () {\n function SetWrapper() {\n }\n SetWrapper.createFromList = function (lst) { return createSetFromList(lst); };\n SetWrapper.has = function (s, key) { return s.has(key); };\n SetWrapper.delete = function (m, k) { m.delete(k); };\n return SetWrapper;\n }());\n\n var _EMPTY_ATTR_VALUE = '';\n var _SELECTOR_REGEXP = new RegExp('(\\\\:not\\\\()|' +\n '([-\\\\w]+)|' +\n '(?:\\\\.([-\\\\w]+))|' +\n '(?:\\\\[([-\\\\w*]+)(?:=([^\\\\]]*))?\\\\])|' +\n '(\\\\))|' +\n '(\\\\s*,\\\\s*)', // \",\"\n 'g');\n /**\n * A css selector contains an element name,\n * css classes and attribute/value pairs with the purpose\n * of selecting subsets out of them.\n */\n var CssSelector = (function () {\n function CssSelector() {\n this.element = null;\n this.classNames = [];\n this.attrs = [];\n this.notSelectors = [];\n }\n CssSelector.parse = function (selector) {\n var results = [];\n var _addResult = function (res, cssSel) {\n if (cssSel.notSelectors.length > 0 && isBlank(cssSel.element) &&\n ListWrapper.isEmpty(cssSel.classNames) && ListWrapper.isEmpty(cssSel.attrs)) {\n cssSel.element = '*';\n }\n res.push(cssSel);\n };\n var cssSelector = new CssSelector();\n var match;\n var current = cssSelector;\n var inNot = false;\n _SELECTOR_REGEXP.lastIndex = 0;\n while (isPresent(match = _SELECTOR_REGEXP.exec(selector))) {\n if (isPresent(match[1])) {\n if (inNot) {\n throw new Error('Nesting :not is not allowed in a selector');\n }\n inNot = true;\n current = new CssSelector();\n cssSelector.notSelectors.push(current);\n }\n if (isPresent(match[2])) {\n current.setElement(match[2]);\n }\n if (isPresent(match[3])) {\n current.addClassName(match[3]);\n }\n if (isPresent(match[4])) {\n current.addAttribute(match[4], match[5]);\n }\n if (isPresent(match[6])) {\n inNot = false;\n current = cssSelector;\n }\n if (isPresent(match[7])) {\n if (inNot) {\n throw new Error('Multiple selectors in :not are not supported');\n }\n _addResult(results, cssSelector);\n cssSelector = current = new CssSelector();\n }\n }\n _addResult(results, cssSelector);\n return results;\n };\n CssSelector.prototype.isElementSelector = function () {\n return this.hasElementSelector() && this.classNames.length == 0 && this.attrs.length == 0 &&\n this.notSelectors.length === 0;\n };\n CssSelector.prototype.hasElementSelector = function () { return !!this.element; };\n CssSelector.prototype.setElement = function (element) {\n if (element === void 0) { element = null; }\n this.element = element;\n };\n /** Gets a template string for an element that matches the selector. */\n CssSelector.prototype.getMatchingElementTemplate = function () {\n var tagName = isPresent(this.element) ? this.element : 'div';\n var classAttr = this.classNames.length > 0 ? \" class=\\\"\" + this.classNames.join(' ') + \"\\\"\" : '';\n var attrs = '';\n for (var i = 0; i < this.attrs.length; i += 2) {\n var attrName = this.attrs[i];\n var attrValue = this.attrs[i + 1] !== '' ? \"=\\\"\" + this.attrs[i + 1] + \"\\\"\" : '';\n attrs += \" \" + attrName + attrValue;\n }\n return \"<\" + tagName + classAttr + attrs + \"></\" + tagName + \">\";\n };\n CssSelector.prototype.addAttribute = function (name, value) {\n if (value === void 0) { value = _EMPTY_ATTR_VALUE; }\n this.attrs.push(name);\n if (isPresent(value)) {\n value = value.toLowerCase();\n }\n else {\n value = _EMPTY_ATTR_VALUE;\n }\n this.attrs.push(value);\n };\n CssSelector.prototype.addClassName = function (name) { this.classNames.push(name.toLowerCase()); };\n CssSelector.prototype.toString = function () {\n var res = '';\n if (isPresent(this.element)) {\n res += this.element;\n }\n if (isPresent(this.classNames)) {\n for (var i = 0; i < this.classNames.length; i++) {\n res += '.' + this.classNames[i];\n }\n }\n if (isPresent(this.attrs)) {\n for (var i = 0; i < this.attrs.length;) {\n var attrName = this.attrs[i++];\n var attrValue = this.attrs[i++];\n res += '[' + attrName;\n if (attrValue.length > 0) {\n res += '=' + attrValue;\n }\n res += ']';\n }\n }\n this.notSelectors.forEach(function (notSelector) { return res += \":not(\" + notSelector + \")\"; });\n return res;\n };\n return CssSelector;\n }());\n /**\n * Reads a list of CssSelectors and allows to calculate which ones\n * are contained in a given CssSelector.\n */\n var SelectorMatcher = (function () {\n function SelectorMatcher() {\n this._elementMap = new Map();\n this._elementPartialMap = new Map();\n this._classMap = new Map();\n this._classPartialMap = new Map();\n this._attrValueMap = new Map();\n this._attrValuePartialMap = new Map();\n this._listContexts = [];\n }\n SelectorMatcher.createNotMatcher = function (notSelectors) {\n var notMatcher = new SelectorMatcher();\n notMatcher.addSelectables(notSelectors, null);\n return notMatcher;\n };\n SelectorMatcher.prototype.addSelectables = function (cssSelectors, callbackCtxt) {\n var listContext = null;\n if (cssSelectors.length > 1) {\n listContext = new SelectorListContext(cssSelectors);\n this._listContexts.push(listContext);\n }\n for (var i = 0; i < cssSelectors.length; i++) {\n this._addSelectable(cssSelectors[i], callbackCtxt, listContext);\n }\n };\n /**\n * Add an object that can be found later on by calling `match`.\n * @param cssSelector A css selector\n * @param callbackCtxt An opaque object that will be given to the callback of the `match` function\n */\n SelectorMatcher.prototype._addSelectable = function (cssSelector, callbackCtxt, listContext) {\n var matcher = this;\n var element = cssSelector.element;\n var classNames = cssSelector.classNames;\n var attrs = cssSelector.attrs;\n var selectable = new SelectorContext(cssSelector, callbackCtxt, listContext);\n if (isPresent(element)) {\n var isTerminal = attrs.length === 0 && classNames.length === 0;\n if (isTerminal) {\n this._addTerminal(matcher._elementMap, element, selectable);\n }\n else {\n matcher = this._addPartial(matcher._elementPartialMap, element);\n }\n }\n if (isPresent(classNames)) {\n for (var index = 0; index < classNames.length; index++) {\n var isTerminal = attrs.length === 0 && index === classNames.length - 1;\n var className = classNames[index];\n if (isTerminal) {\n this._addTerminal(matcher._classMap, className, selectable);\n }\n else {\n matcher = this._addPartial(matcher._classPartialMap, className);\n }\n }\n }\n if (isPresent(attrs)) {\n for (var index = 0; index < attrs.length;) {\n var isTerminal = index === attrs.length - 2;\n var attrName = attrs[index++];\n var attrValue = attrs[index++];\n if (isTerminal) {\n var terminalMap = matcher._attrValueMap;\n var terminalValuesMap = terminalMap.get(attrName);\n if (isBlank(terminalValuesMap)) {\n terminalValuesMap = new Map();\n terminalMap.set(attrName, terminalValuesMap);\n }\n this._addTerminal(terminalValuesMap, attrValue, selectable);\n }\n else {\n var parttialMap = matcher._attrValuePartialMap;\n var partialValuesMap = parttialMap.get(attrName);\n if (isBlank(partialValuesMap)) {\n partialValuesMap = new Map();\n parttialMap.set(attrName, partialValuesMap);\n }\n matcher = this._addPartial(partialValuesMap, attrValue);\n }\n }\n }\n };\n SelectorMatcher.prototype._addTerminal = function (map, name, selectable) {\n var terminalList = map.get(name);\n if (isBlank(terminalList)) {\n terminalList = [];\n map.set(name, terminalList);\n }\n terminalList.push(selectable);\n };\n SelectorMatcher.prototype._addPartial = function (map, name) {\n var matcher = map.get(name);\n if (isBlank(matcher)) {\n matcher = new SelectorMatcher();\n map.set(name, matcher);\n }\n return matcher;\n };\n /**\n * Find the objects that have been added via `addSelectable`\n * whose css selector is contained in the given css selector.\n * @param cssSelector A css selector\n * @param matchedCallback This callback will be called with the object handed into `addSelectable`\n * @return boolean true if a match was found\n */\n SelectorMatcher.prototype.match = function (cssSelector, matchedCallback) {\n var result = false;\n var element = cssSelector.element;\n var classNames = cssSelector.classNames;\n var attrs = cssSelector.attrs;\n for (var i = 0; i < this._listContexts.length; i++) {\n this._listContexts[i].alreadyMatched = false;\n }\n result = this._matchTerminal(this._elementMap, element, cssSelector, matchedCallback) || result;\n result = this._matchPartial(this._elementPartialMap, element, cssSelector, matchedCallback) ||\n result;\n if (isPresent(classNames)) {\n for (var index = 0; index < classNames.length; index++) {\n var className = classNames[index];\n result =\n this._matchTerminal(this._classMap, className, cssSelector, matchedCallback) || result;\n result =\n this._matchPartial(this._classPartialMap, className, cssSelector, matchedCallback) ||\n result;\n }\n }\n if (isPresent(attrs)) {\n for (var index = 0; index < attrs.length;) {\n var attrName = attrs[index++];\n var attrValue = attrs[index++];\n var terminalValuesMap = this._attrValueMap.get(attrName);\n if (!StringWrapper.equals(attrValue, _EMPTY_ATTR_VALUE)) {\n result = this._matchTerminal(terminalValuesMap, _EMPTY_ATTR_VALUE, cssSelector, matchedCallback) ||\n result;\n }\n result = this._matchTerminal(terminalValuesMap, attrValue, cssSelector, matchedCallback) ||\n result;\n var partialValuesMap = this._attrValuePartialMap.get(attrName);\n if (!StringWrapper.equals(attrValue, _EMPTY_ATTR_VALUE)) {\n result = this._matchPartial(partialValuesMap, _EMPTY_ATTR_VALUE, cssSelector, matchedCallback) ||\n result;\n }\n result =\n this._matchPartial(partialValuesMap, attrValue, cssSelector, matchedCallback) || result;\n }\n }\n return result;\n };\n /** @internal */\n SelectorMatcher.prototype._matchTerminal = function (map, name, cssSelector, matchedCallback) {\n if (isBlank(map) || isBlank(name)) {\n return false;\n }\n var selectables = map.get(name);\n var starSelectables = map.get('*');\n if (isPresent(starSelectables)) {\n selectables = selectables.concat(starSelectables);\n }\n if (isBlank(selectables)) {\n return false;\n }\n var selectable;\n var result = false;\n for (var index = 0; index < selectables.length; index++) {\n selectable = selectables[index];\n result = selectable.finalize(cssSelector, matchedCallback) || result;\n }\n return result;\n };\n /** @internal */\n SelectorMatcher.prototype._matchPartial = function (map, name, cssSelector, matchedCallback) {\n if (isBlank(map) || isBlank(name)) {\n return false;\n }\n var nestedSelector = map.get(name);\n if (isBlank(nestedSelector)) {\n return false;\n }\n // TODO(perf): get rid of recursion and measure again\n // TODO(perf): don't pass the whole selector into the recursion,\n // but only the not processed parts\n return nestedSelector.match(cssSelector, matchedCallback);\n };\n return SelectorMatcher;\n }());\n var SelectorListContext = (function () {\n function SelectorListContext(selectors) {\n this.selectors = selectors;\n this.alreadyMatched = false;\n }\n return SelectorListContext;\n }());\n // Store context to pass back selector and context when a selector is matched\n var SelectorContext = (function () {\n function SelectorContext(selector, cbContext, listContext) {\n this.selector = selector;\n this.cbContext = cbContext;\n this.listContext = listContext;\n this.notSelectors = selector.notSelectors;\n }\n SelectorContext.prototype.finalize = function (cssSelector, callback) {\n var result = true;\n if (this.notSelectors.length > 0 &&\n (isBlank(this.listContext) || !this.listContext.alreadyMatched)) {\n var notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);\n result = !notMatcher.match(cssSelector, null);\n }\n if (result && isPresent(callback) &&\n (isBlank(this.listContext) || !this.listContext.alreadyMatched)) {\n if (isPresent(this.listContext)) {\n this.listContext.alreadyMatched = true;\n }\n callback(this.selector, this.cbContext);\n }\n return result;\n };\n return SelectorContext;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$2 = (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 };\n //// Types\n var TypeModifier;\n (function (TypeModifier) {\n TypeModifier[TypeModifier[\"Const\"] = 0] = \"Const\";\n })(TypeModifier || (TypeModifier = {}));\n var Type$1 = (function () {\n function Type(modifiers) {\n if (modifiers === void 0) { modifiers = null; }\n this.modifiers = modifiers;\n if (isBlank(modifiers)) {\n this.modifiers = [];\n }\n }\n Type.prototype.hasModifier = function (modifier) { return this.modifiers.indexOf(modifier) !== -1; };\n return Type;\n }());\n var BuiltinTypeName;\n (function (BuiltinTypeName) {\n BuiltinTypeName[BuiltinTypeName[\"Dynamic\"] = 0] = \"Dynamic\";\n BuiltinTypeName[BuiltinTypeName[\"Bool\"] = 1] = \"Bool\";\n BuiltinTypeName[BuiltinTypeName[\"String\"] = 2] = \"String\";\n BuiltinTypeName[BuiltinTypeName[\"Int\"] = 3] = \"Int\";\n BuiltinTypeName[BuiltinTypeName[\"Number\"] = 4] = \"Number\";\n BuiltinTypeName[BuiltinTypeName[\"Function\"] = 5] = \"Function\";\n })(BuiltinTypeName || (BuiltinTypeName = {}));\n var BuiltinType = (function (_super) {\n __extends$2(BuiltinType, _super);\n function BuiltinType(name, modifiers) {\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, modifiers);\n this.name = name;\n }\n BuiltinType.prototype.visitType = function (visitor, context) {\n return visitor.visitBuiltintType(this, context);\n };\n return BuiltinType;\n }(Type$1));\n var ExternalType = (function (_super) {\n __extends$2(ExternalType, _super);\n function ExternalType(value, typeParams, modifiers) {\n if (typeParams === void 0) { typeParams = null; }\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, modifiers);\n this.value = value;\n this.typeParams = typeParams;\n }\n ExternalType.prototype.visitType = function (visitor, context) {\n return visitor.visitExternalType(this, context);\n };\n return ExternalType;\n }(Type$1));\n var ArrayType = (function (_super) {\n __extends$2(ArrayType, _super);\n function ArrayType(of, modifiers) {\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, modifiers);\n this.of = of;\n }\n ArrayType.prototype.visitType = function (visitor, context) {\n return visitor.visitArrayType(this, context);\n };\n return ArrayType;\n }(Type$1));\n var MapType = (function (_super) {\n __extends$2(MapType, _super);\n function MapType(valueType, modifiers) {\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, modifiers);\n this.valueType = valueType;\n }\n MapType.prototype.visitType = function (visitor, context) { return visitor.visitMapType(this, context); };\n return MapType;\n }(Type$1));\n var DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);\n var BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);\n var INT_TYPE = new BuiltinType(BuiltinTypeName.Int);\n var NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);\n var STRING_TYPE = new BuiltinType(BuiltinTypeName.String);\n var FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);\n ///// Expressions\n var BinaryOperator;\n (function (BinaryOperator) {\n BinaryOperator[BinaryOperator[\"Equals\"] = 0] = \"Equals\";\n BinaryOperator[BinaryOperator[\"NotEquals\"] = 1] = \"NotEquals\";\n BinaryOperator[BinaryOperator[\"Identical\"] = 2] = \"Identical\";\n BinaryOperator[BinaryOperator[\"NotIdentical\"] = 3] = \"NotIdentical\";\n BinaryOperator[BinaryOperator[\"Minus\"] = 4] = \"Minus\";\n BinaryOperator[BinaryOperator[\"Plus\"] = 5] = \"Plus\";\n BinaryOperator[BinaryOperator[\"Divide\"] = 6] = \"Divide\";\n BinaryOperator[BinaryOperator[\"Multiply\"] = 7] = \"Multiply\";\n BinaryOperator[BinaryOperator[\"Modulo\"] = 8] = \"Modulo\";\n BinaryOperator[BinaryOperator[\"And\"] = 9] = \"And\";\n BinaryOperator[BinaryOperator[\"Or\"] = 10] = \"Or\";\n BinaryOperator[BinaryOperator[\"Lower\"] = 11] = \"Lower\";\n BinaryOperator[BinaryOperator[\"LowerEquals\"] = 12] = \"LowerEquals\";\n BinaryOperator[BinaryOperator[\"Bigger\"] = 13] = \"Bigger\";\n BinaryOperator[BinaryOperator[\"BiggerEquals\"] = 14] = \"BiggerEquals\";\n })(BinaryOperator || (BinaryOperator = {}));\n var Expression = (function () {\n function Expression(type) {\n this.type = type;\n }\n Expression.prototype.prop = function (name) { return new ReadPropExpr(this, name); };\n Expression.prototype.key = function (index, type) {\n if (type === void 0) { type = null; }\n return new ReadKeyExpr(this, index, type);\n };\n Expression.prototype.callMethod = function (name, params) {\n return new InvokeMethodExpr(this, name, params);\n };\n Expression.prototype.callFn = function (params) { return new InvokeFunctionExpr(this, params); };\n Expression.prototype.instantiate = function (params, type) {\n if (type === void 0) { type = null; }\n return new InstantiateExpr(this, params, type);\n };\n Expression.prototype.conditional = function (trueCase, falseCase) {\n if (falseCase === void 0) { falseCase = null; }\n return new ConditionalExpr(this, trueCase, falseCase);\n };\n Expression.prototype.equals = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs);\n };\n Expression.prototype.notEquals = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs);\n };\n Expression.prototype.identical = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs);\n };\n Expression.prototype.notIdentical = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs);\n };\n Expression.prototype.minus = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs);\n };\n Expression.prototype.plus = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs);\n };\n Expression.prototype.divide = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs);\n };\n Expression.prototype.multiply = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs);\n };\n Expression.prototype.modulo = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs);\n };\n Expression.prototype.and = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.And, this, rhs);\n };\n Expression.prototype.or = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs);\n };\n Expression.prototype.lower = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs);\n };\n Expression.prototype.lowerEquals = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs);\n };\n Expression.prototype.bigger = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs);\n };\n Expression.prototype.biggerEquals = function (rhs) {\n return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs);\n };\n Expression.prototype.isBlank = function () {\n // Note: We use equals by purpose here to compare to null and undefined in JS.\n return this.equals(NULL_EXPR);\n };\n Expression.prototype.cast = function (type) { return new CastExpr(this, type); };\n Expression.prototype.toStmt = function () { return new ExpressionStatement(this); };\n return Expression;\n }());\n var BuiltinVar;\n (function (BuiltinVar) {\n BuiltinVar[BuiltinVar[\"This\"] = 0] = \"This\";\n BuiltinVar[BuiltinVar[\"Super\"] = 1] = \"Super\";\n BuiltinVar[BuiltinVar[\"CatchError\"] = 2] = \"CatchError\";\n BuiltinVar[BuiltinVar[\"CatchStack\"] = 3] = \"CatchStack\";\n })(BuiltinVar || (BuiltinVar = {}));\n var ReadVarExpr = (function (_super) {\n __extends$2(ReadVarExpr, _super);\n function ReadVarExpr(name, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n if (isString(name)) {\n this.name = name;\n this.builtin = null;\n }\n else {\n this.name = null;\n this.builtin = name;\n }\n }\n ReadVarExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitReadVarExpr(this, context);\n };\n ReadVarExpr.prototype.set = function (value) { return new WriteVarExpr(this.name, value); };\n return ReadVarExpr;\n }(Expression));\n var WriteVarExpr = (function (_super) {\n __extends$2(WriteVarExpr, _super);\n function WriteVarExpr(name, value, type) {\n if (type === void 0) { type = null; }\n _super.call(this, isPresent(type) ? type : value.type);\n this.name = name;\n this.value = value;\n }\n WriteVarExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitWriteVarExpr(this, context);\n };\n WriteVarExpr.prototype.toDeclStmt = function (type, modifiers) {\n if (type === void 0) { type = null; }\n if (modifiers === void 0) { modifiers = null; }\n return new DeclareVarStmt(this.name, this.value, type, modifiers);\n };\n return WriteVarExpr;\n }(Expression));\n var WriteKeyExpr = (function (_super) {\n __extends$2(WriteKeyExpr, _super);\n function WriteKeyExpr(receiver, index, value, type) {\n if (type === void 0) { type = null; }\n _super.call(this, isPresent(type) ? type : value.type);\n this.receiver = receiver;\n this.index = index;\n this.value = value;\n }\n WriteKeyExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitWriteKeyExpr(this, context);\n };\n return WriteKeyExpr;\n }(Expression));\n var WritePropExpr = (function (_super) {\n __extends$2(WritePropExpr, _super);\n function WritePropExpr(receiver, name, value, type) {\n if (type === void 0) { type = null; }\n _super.call(this, isPresent(type) ? type : value.type);\n this.receiver = receiver;\n this.name = name;\n this.value = value;\n }\n WritePropExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitWritePropExpr(this, context);\n };\n return WritePropExpr;\n }(Expression));\n var BuiltinMethod;\n (function (BuiltinMethod) {\n BuiltinMethod[BuiltinMethod[\"ConcatArray\"] = 0] = \"ConcatArray\";\n BuiltinMethod[BuiltinMethod[\"SubscribeObservable\"] = 1] = \"SubscribeObservable\";\n BuiltinMethod[BuiltinMethod[\"Bind\"] = 2] = \"Bind\";\n })(BuiltinMethod || (BuiltinMethod = {}));\n var InvokeMethodExpr = (function (_super) {\n __extends$2(InvokeMethodExpr, _super);\n function InvokeMethodExpr(receiver, method, args, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.receiver = receiver;\n this.args = args;\n if (isString(method)) {\n this.name = method;\n this.builtin = null;\n }\n else {\n this.name = null;\n this.builtin = method;\n }\n }\n InvokeMethodExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitInvokeMethodExpr(this, context);\n };\n return InvokeMethodExpr;\n }(Expression));\n var InvokeFunctionExpr = (function (_super) {\n __extends$2(InvokeFunctionExpr, _super);\n function InvokeFunctionExpr(fn, args, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.fn = fn;\n this.args = args;\n }\n InvokeFunctionExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitInvokeFunctionExpr(this, context);\n };\n return InvokeFunctionExpr;\n }(Expression));\n var InstantiateExpr = (function (_super) {\n __extends$2(InstantiateExpr, _super);\n function InstantiateExpr(classExpr, args, type) {\n _super.call(this, type);\n this.classExpr = classExpr;\n this.args = args;\n }\n InstantiateExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitInstantiateExpr(this, context);\n };\n return InstantiateExpr;\n }(Expression));\n var LiteralExpr = (function (_super) {\n __extends$2(LiteralExpr, _super);\n function LiteralExpr(value, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.value = value;\n }\n LiteralExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitLiteralExpr(this, context);\n };\n return LiteralExpr;\n }(Expression));\n var ExternalExpr = (function (_super) {\n __extends$2(ExternalExpr, _super);\n function ExternalExpr(value, type, typeParams) {\n if (type === void 0) { type = null; }\n if (typeParams === void 0) { typeParams = null; }\n _super.call(this, type);\n this.value = value;\n this.typeParams = typeParams;\n }\n ExternalExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitExternalExpr(this, context);\n };\n return ExternalExpr;\n }(Expression));\n var ConditionalExpr = (function (_super) {\n __extends$2(ConditionalExpr, _super);\n function ConditionalExpr(condition, trueCase, falseCase, type) {\n if (falseCase === void 0) { falseCase = null; }\n if (type === void 0) { type = null; }\n _super.call(this, isPresent(type) ? type : trueCase.type);\n this.condition = condition;\n this.falseCase = falseCase;\n this.trueCase = trueCase;\n }\n ConditionalExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitConditionalExpr(this, context);\n };\n return ConditionalExpr;\n }(Expression));\n var NotExpr = (function (_super) {\n __extends$2(NotExpr, _super);\n function NotExpr(condition) {\n _super.call(this, BOOL_TYPE);\n this.condition = condition;\n }\n NotExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitNotExpr(this, context);\n };\n return NotExpr;\n }(Expression));\n var CastExpr = (function (_super) {\n __extends$2(CastExpr, _super);\n function CastExpr(value, type) {\n _super.call(this, type);\n this.value = value;\n }\n CastExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitCastExpr(this, context);\n };\n return CastExpr;\n }(Expression));\n var FnParam = (function () {\n function FnParam(name, type) {\n if (type === void 0) { type = null; }\n this.name = name;\n this.type = type;\n }\n return FnParam;\n }());\n var FunctionExpr = (function (_super) {\n __extends$2(FunctionExpr, _super);\n function FunctionExpr(params, statements, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.params = params;\n this.statements = statements;\n }\n FunctionExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitFunctionExpr(this, context);\n };\n FunctionExpr.prototype.toDeclStmt = function (name, modifiers) {\n if (modifiers === void 0) { modifiers = null; }\n return new DeclareFunctionStmt(name, this.params, this.statements, this.type, modifiers);\n };\n return FunctionExpr;\n }(Expression));\n var BinaryOperatorExpr = (function (_super) {\n __extends$2(BinaryOperatorExpr, _super);\n function BinaryOperatorExpr(operator, lhs, rhs, type) {\n if (type === void 0) { type = null; }\n _super.call(this, isPresent(type) ? type : lhs.type);\n this.operator = operator;\n this.rhs = rhs;\n this.lhs = lhs;\n }\n BinaryOperatorExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitBinaryOperatorExpr(this, context);\n };\n return BinaryOperatorExpr;\n }(Expression));\n var ReadPropExpr = (function (_super) {\n __extends$2(ReadPropExpr, _super);\n function ReadPropExpr(receiver, name, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.receiver = receiver;\n this.name = name;\n }\n ReadPropExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitReadPropExpr(this, context);\n };\n ReadPropExpr.prototype.set = function (value) {\n return new WritePropExpr(this.receiver, this.name, value);\n };\n return ReadPropExpr;\n }(Expression));\n var ReadKeyExpr = (function (_super) {\n __extends$2(ReadKeyExpr, _super);\n function ReadKeyExpr(receiver, index, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.receiver = receiver;\n this.index = index;\n }\n ReadKeyExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitReadKeyExpr(this, context);\n };\n ReadKeyExpr.prototype.set = function (value) {\n return new WriteKeyExpr(this.receiver, this.index, value);\n };\n return ReadKeyExpr;\n }(Expression));\n var LiteralArrayExpr = (function (_super) {\n __extends$2(LiteralArrayExpr, _super);\n function LiteralArrayExpr(entries, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.entries = entries;\n }\n LiteralArrayExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitLiteralArrayExpr(this, context);\n };\n return LiteralArrayExpr;\n }(Expression));\n var LiteralMapExpr = (function (_super) {\n __extends$2(LiteralMapExpr, _super);\n function LiteralMapExpr(entries, type) {\n if (type === void 0) { type = null; }\n _super.call(this, type);\n this.entries = entries;\n this.valueType = null;\n if (isPresent(type)) {\n this.valueType = type.valueType;\n }\n }\n LiteralMapExpr.prototype.visitExpression = function (visitor, context) {\n return visitor.visitLiteralMapExpr(this, context);\n };\n return LiteralMapExpr;\n }(Expression));\n var THIS_EXPR = new ReadVarExpr(BuiltinVar.This);\n var SUPER_EXPR = new ReadVarExpr(BuiltinVar.Super);\n var CATCH_ERROR_VAR = new ReadVarExpr(BuiltinVar.CatchError);\n var CATCH_STACK_VAR = new ReadVarExpr(BuiltinVar.CatchStack);\n var NULL_EXPR = new LiteralExpr(null, null);\n //// Statements\n var StmtModifier;\n (function (StmtModifier) {\n StmtModifier[StmtModifier[\"Final\"] = 0] = \"Final\";\n StmtModifier[StmtModifier[\"Private\"] = 1] = \"Private\";\n })(StmtModifier || (StmtModifier = {}));\n var Statement = (function () {\n function Statement(modifiers) {\n if (modifiers === void 0) { modifiers = null; }\n this.modifiers = modifiers;\n if (isBlank(modifiers)) {\n this.modifiers = [];\n }\n }\n Statement.prototype.hasModifier = function (modifier) { return this.modifiers.indexOf(modifier) !== -1; };\n return Statement;\n }());\n var DeclareVarStmt = (function (_super) {\n __extends$2(DeclareVarStmt, _super);\n function DeclareVarStmt(name, value, type, modifiers) {\n if (type === void 0) { type = null; }\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, modifiers);\n this.name = name;\n this.value = value;\n this.type = isPresent(type) ? type : value.type;\n }\n DeclareVarStmt.prototype.visitStatement = function (visitor, context) {\n return visitor.visitDeclareVarStmt(this, context);\n };\n return DeclareVarStmt;\n }(Statement));\n var DeclareFunctionStmt = (function (_super) {\n __extends$2(DeclareFunctionStmt, _super);\n function DeclareFunctionStmt(name, params, statements, type, modifiers) {\n if (type === void 0) { type = null; }\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, modifiers);\n this.name = name;\n this.params = params;\n this.statements = statements;\n this.type = type;\n }\n DeclareFunctionStmt.prototype.visitStatement = function (visitor, context) {\n return visitor.visitDeclareFunctionStmt(this, context);\n };\n return DeclareFunctionStmt;\n }(Statement));\n var ExpressionStatement = (function (_super) {\n __extends$2(ExpressionStatement, _super);\n function ExpressionStatement(expr) {\n _super.call(this);\n this.expr = expr;\n }\n ExpressionStatement.prototype.visitStatement = function (visitor, context) {\n return visitor.visitExpressionStmt(this, context);\n };\n return ExpressionStatement;\n }(Statement));\n var ReturnStatement = (function (_super) {\n __extends$2(ReturnStatement, _super);\n function ReturnStatement(value) {\n _super.call(this);\n this.value = value;\n }\n ReturnStatement.prototype.visitStatement = function (visitor, context) {\n return visitor.visitReturnStmt(this, context);\n };\n return ReturnStatement;\n }(Statement));\n var AbstractClassPart = (function () {\n function AbstractClassPart(type, modifiers) {\n if (type === void 0) { type = null; }\n this.type = type;\n this.modifiers = modifiers;\n if (isBlank(modifiers)) {\n this.modifiers = [];\n }\n }\n AbstractClassPart.prototype.hasModifier = function (modifier) { return this.modifiers.indexOf(modifier) !== -1; };\n return AbstractClassPart;\n }());\n var ClassField = (function (_super) {\n __extends$2(ClassField, _super);\n function ClassField(name, type, modifiers) {\n if (type === void 0) { type = null; }\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, type, modifiers);\n this.name = name;\n }\n return ClassField;\n }(AbstractClassPart));\n var ClassMethod = (function (_super) {\n __extends$2(ClassMethod, _super);\n function ClassMethod(name, params, body, type, modifiers) {\n if (type === void 0) { type = null; }\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, type, modifiers);\n this.name = name;\n this.params = params;\n this.body = body;\n }\n return ClassMethod;\n }(AbstractClassPart));\n var ClassGetter = (function (_super) {\n __extends$2(ClassGetter, _super);\n function ClassGetter(name, body, type, modifiers) {\n if (type === void 0) { type = null; }\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, type, modifiers);\n this.name = name;\n this.body = body;\n }\n return ClassGetter;\n }(AbstractClassPart));\n var ClassStmt = (function (_super) {\n __extends$2(ClassStmt, _super);\n function ClassStmt(name, parent, fields, getters, constructorMethod, methods, modifiers) {\n if (modifiers === void 0) { modifiers = null; }\n _super.call(this, modifiers);\n this.name = name;\n this.parent = parent;\n this.fields = fields;\n this.getters = getters;\n this.constructorMethod = constructorMethod;\n this.methods = methods;\n }\n ClassStmt.prototype.visitStatement = function (visitor, context) {\n return visitor.visitDeclareClassStmt(this, context);\n };\n return ClassStmt;\n }(Statement));\n var IfStmt = (function (_super) {\n __extends$2(IfStmt, _super);\n function IfStmt(condition, trueCase, falseCase) {\n if (falseCase === void 0) { falseCase = []; }\n _super.call(this);\n this.condition = condition;\n this.trueCase = trueCase;\n this.falseCase = falseCase;\n }\n IfStmt.prototype.visitStatement = function (visitor, context) {\n return visitor.visitIfStmt(this, context);\n };\n return IfStmt;\n }(Statement));\n var CommentStmt = (function (_super) {\n __extends$2(CommentStmt, _super);\n function CommentStmt(comment) {\n _super.call(this);\n this.comment = comment;\n }\n CommentStmt.prototype.visitStatement = function (visitor, context) {\n return visitor.visitCommentStmt(this, context);\n };\n return CommentStmt;\n }(Statement));\n var TryCatchStmt = (function (_super) {\n __extends$2(TryCatchStmt, _super);\n function TryCatchStmt(bodyStmts, catchStmts) {\n _super.call(this);\n this.bodyStmts = bodyStmts;\n this.catchStmts = catchStmts;\n }\n TryCatchStmt.prototype.visitStatement = function (visitor, context) {\n return visitor.visitTryCatchStmt(this, context);\n };\n return TryCatchStmt;\n }(Statement));\n var ThrowStmt = (function (_super) {\n __extends$2(ThrowStmt, _super);\n function ThrowStmt(error) {\n _super.call(this);\n this.error = error;\n }\n ThrowStmt.prototype.visitStatement = function (visitor, context) {\n return visitor.visitThrowStmt(this, context);\n };\n return ThrowStmt;\n }(Statement));\n var ExpressionTransformer = (function () {\n function ExpressionTransformer() {\n }\n ExpressionTransformer.prototype.visitReadVarExpr = function (ast, context) { return ast; };\n ExpressionTransformer.prototype.visitWriteVarExpr = function (expr, context) {\n return new WriteVarExpr(expr.name, expr.value.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitWriteKeyExpr = function (expr, context) {\n return new WriteKeyExpr(expr.receiver.visitExpression(this, context), expr.index.visitExpression(this, context), expr.value.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitWritePropExpr = function (expr, context) {\n return new WritePropExpr(expr.receiver.visitExpression(this, context), expr.name, expr.value.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitInvokeMethodExpr = function (ast, context) {\n var method = isPresent(ast.builtin) ? ast.builtin : ast.name;\n return new InvokeMethodExpr(ast.receiver.visitExpression(this, context), method, this.visitAllExpressions(ast.args, context), ast.type);\n };\n ExpressionTransformer.prototype.visitInvokeFunctionExpr = function (ast, context) {\n return new InvokeFunctionExpr(ast.fn.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type);\n };\n ExpressionTransformer.prototype.visitInstantiateExpr = function (ast, context) {\n return new InstantiateExpr(ast.classExpr.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type);\n };\n ExpressionTransformer.prototype.visitLiteralExpr = function (ast, context) { return ast; };\n ExpressionTransformer.prototype.visitExternalExpr = function (ast, context) { return ast; };\n ExpressionTransformer.prototype.visitConditionalExpr = function (ast, context) {\n return new ConditionalExpr(ast.condition.visitExpression(this, context), ast.trueCase.visitExpression(this, context), ast.falseCase.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitNotExpr = function (ast, context) {\n return new NotExpr(ast.condition.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitCastExpr = function (ast, context) {\n return new CastExpr(ast.value.visitExpression(this, context), context);\n };\n ExpressionTransformer.prototype.visitFunctionExpr = function (ast, context) {\n // Don't descend into nested functions\n return ast;\n };\n ExpressionTransformer.prototype.visitBinaryOperatorExpr = function (ast, context) {\n return new BinaryOperatorExpr(ast.operator, ast.lhs.visitExpression(this, context), ast.rhs.visitExpression(this, context), ast.type);\n };\n ExpressionTransformer.prototype.visitReadPropExpr = function (ast, context) {\n return new ReadPropExpr(ast.receiver.visitExpression(this, context), ast.name, ast.type);\n };\n ExpressionTransformer.prototype.visitReadKeyExpr = function (ast, context) {\n return new ReadKeyExpr(ast.receiver.visitExpression(this, context), ast.index.visitExpression(this, context), ast.type);\n };\n ExpressionTransformer.prototype.visitLiteralArrayExpr = function (ast, context) {\n return new LiteralArrayExpr(this.visitAllExpressions(ast.entries, context));\n };\n ExpressionTransformer.prototype.visitLiteralMapExpr = function (ast, context) {\n var _this = this;\n return new LiteralMapExpr(ast.entries.map(function (entry) { return [entry[0], entry[1].visitExpression(_this, context)]; }));\n };\n ExpressionTransformer.prototype.visitAllExpressions = function (exprs, context) {\n var _this = this;\n return exprs.map(function (expr) { return expr.visitExpression(_this, context); });\n };\n ExpressionTransformer.prototype.visitDeclareVarStmt = function (stmt, context) {\n return new DeclareVarStmt(stmt.name, stmt.value.visitExpression(this, context), stmt.type, stmt.modifiers);\n };\n ExpressionTransformer.prototype.visitDeclareFunctionStmt = function (stmt, context) {\n // Don't descend into nested functions\n return stmt;\n };\n ExpressionTransformer.prototype.visitExpressionStmt = function (stmt, context) {\n return new ExpressionStatement(stmt.expr.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitReturnStmt = function (stmt, context) {\n return new ReturnStatement(stmt.value.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitDeclareClassStmt = function (stmt, context) {\n // Don't descend into nested functions\n return stmt;\n };\n ExpressionTransformer.prototype.visitIfStmt = function (stmt, context) {\n return new IfStmt(stmt.condition.visitExpression(this, context), this.visitAllStatements(stmt.trueCase, context), this.visitAllStatements(stmt.falseCase, context));\n };\n ExpressionTransformer.prototype.visitTryCatchStmt = function (stmt, context) {\n return new TryCatchStmt(this.visitAllStatements(stmt.bodyStmts, context), this.visitAllStatements(stmt.catchStmts, context));\n };\n ExpressionTransformer.prototype.visitThrowStmt = function (stmt, context) {\n return new ThrowStmt(stmt.error.visitExpression(this, context));\n };\n ExpressionTransformer.prototype.visitCommentStmt = function (stmt, context) { return stmt; };\n ExpressionTransformer.prototype.visitAllStatements = function (stmts, context) {\n var _this = this;\n return stmts.map(function (stmt) { return stmt.visitStatement(_this, context); });\n };\n return ExpressionTransformer;\n }());\n var RecursiveExpressionVisitor = (function () {\n function RecursiveExpressionVisitor() {\n }\n RecursiveExpressionVisitor.prototype.visitReadVarExpr = function (ast, context) { return ast; };\n RecursiveExpressionVisitor.prototype.visitWriteVarExpr = function (expr, context) {\n expr.value.visitExpression(this, context);\n return expr;\n };\n RecursiveExpressionVisitor.prototype.visitWriteKeyExpr = function (expr, context) {\n expr.receiver.visitExpression(this, context);\n expr.index.visitExpression(this, context);\n expr.value.visitExpression(this, context);\n return expr;\n };\n RecursiveExpressionVisitor.prototype.visitWritePropExpr = function (expr, context) {\n expr.receiver.visitExpression(this, context);\n expr.value.visitExpression(this, context);\n return expr;\n };\n RecursiveExpressionVisitor.prototype.visitInvokeMethodExpr = function (ast, context) {\n ast.receiver.visitExpression(this, context);\n this.visitAllExpressions(ast.args, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitInvokeFunctionExpr = function (ast, context) {\n ast.fn.visitExpression(this, context);\n this.visitAllExpressions(ast.args, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitInstantiateExpr = function (ast, context) {\n ast.classExpr.visitExpression(this, context);\n this.visitAllExpressions(ast.args, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitLiteralExpr = function (ast, context) { return ast; };\n RecursiveExpressionVisitor.prototype.visitExternalExpr = function (ast, context) { return ast; };\n RecursiveExpressionVisitor.prototype.visitConditionalExpr = function (ast, context) {\n ast.condition.visitExpression(this, context);\n ast.trueCase.visitExpression(this, context);\n ast.falseCase.visitExpression(this, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitNotExpr = function (ast, context) {\n ast.condition.visitExpression(this, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitCastExpr = function (ast, context) {\n ast.value.visitExpression(this, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitFunctionExpr = function (ast, context) { return ast; };\n RecursiveExpressionVisitor.prototype.visitBinaryOperatorExpr = function (ast, context) {\n ast.lhs.visitExpression(this, context);\n ast.rhs.visitExpression(this, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitReadPropExpr = function (ast, context) {\n ast.receiver.visitExpression(this, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitReadKeyExpr = function (ast, context) {\n ast.receiver.visitExpression(this, context);\n ast.index.visitExpression(this, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitLiteralArrayExpr = function (ast, context) {\n this.visitAllExpressions(ast.entries, context);\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitLiteralMapExpr = function (ast, context) {\n var _this = this;\n ast.entries.forEach(function (entry) { return entry[1].visitExpression(_this, context); });\n return ast;\n };\n RecursiveExpressionVisitor.prototype.visitAllExpressions = function (exprs, context) {\n var _this = this;\n exprs.forEach(function (expr) { return expr.visitExpression(_this, context); });\n };\n RecursiveExpressionVisitor.prototype.visitDeclareVarStmt = function (stmt, context) {\n stmt.value.visitExpression(this, context);\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitDeclareFunctionStmt = function (stmt, context) {\n // Don't descend into nested functions\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitExpressionStmt = function (stmt, context) {\n stmt.expr.visitExpression(this, context);\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitReturnStmt = function (stmt, context) {\n stmt.value.visitExpression(this, context);\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitDeclareClassStmt = function (stmt, context) {\n // Don't descend into nested functions\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitIfStmt = function (stmt, context) {\n stmt.condition.visitExpression(this, context);\n this.visitAllStatements(stmt.trueCase, context);\n this.visitAllStatements(stmt.falseCase, context);\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitTryCatchStmt = function (stmt, context) {\n this.visitAllStatements(stmt.bodyStmts, context);\n this.visitAllStatements(stmt.catchStmts, context);\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitThrowStmt = function (stmt, context) {\n stmt.error.visitExpression(this, context);\n return stmt;\n };\n RecursiveExpressionVisitor.prototype.visitCommentStmt = function (stmt, context) { return stmt; };\n RecursiveExpressionVisitor.prototype.visitAllStatements = function (stmts, context) {\n var _this = this;\n stmts.forEach(function (stmt) { return stmt.visitStatement(_this, context); });\n };\n return RecursiveExpressionVisitor;\n }());\n function replaceVarInExpression(varName, newValue, expression) {\n var transformer = new _ReplaceVariableTransformer(varName, newValue);\n return expression.visitExpression(transformer, null);\n }\n var _ReplaceVariableTransformer = (function (_super) {\n __extends$2(_ReplaceVariableTransformer, _super);\n function _ReplaceVariableTransformer(_varName, _newValue) {\n _super.call(this);\n this._varName = _varName;\n this._newValue = _newValue;\n }\n _ReplaceVariableTransformer.prototype.visitReadVarExpr = function (ast, context) {\n return ast.name == this._varName ? this._newValue : ast;\n };\n return _ReplaceVariableTransformer;\n }(ExpressionTransformer));\n function findReadVarNames(stmts) {\n var finder = new _VariableFinder();\n finder.visitAllStatements(stmts, null);\n return finder.varNames;\n }\n var _VariableFinder = (function (_super) {\n __extends$2(_VariableFinder, _super);\n function _VariableFinder() {\n _super.apply(this, arguments);\n this.varNames = new Set();\n }\n _VariableFinder.prototype.visitReadVarExpr = function (ast, context) {\n this.varNames.add(ast.name);\n return null;\n };\n return _VariableFinder;\n }(RecursiveExpressionVisitor));\n function variable(name, type) {\n if (type === void 0) { type = null; }\n return new ReadVarExpr(name, type);\n }\n function importExpr(id, typeParams) {\n if (typeParams === void 0) { typeParams = null; }\n return new ExternalExpr(id, null, typeParams);\n }\n function importType(id, typeParams, typeModifiers) {\n if (typeParams === void 0) { typeParams = null; }\n if (typeModifiers === void 0) { typeModifiers = null; }\n return isPresent(id) ? new ExternalType(id, typeParams, typeModifiers) : null;\n }\n function literalArr(values, type) {\n if (type === void 0) { type = null; }\n return new LiteralArrayExpr(values, type);\n }\n function literalMap(values, type) {\n if (type === void 0) { type = null; }\n return new LiteralMapExpr(values, type);\n }\n function not(expr) {\n return new NotExpr(expr);\n }\n function fn(params, body, type) {\n if (type === void 0) { type = null; }\n return new FunctionExpr(params, body, type);\n }\n function literal(value, type) {\n if (type === void 0) { type = null; }\n return new LiteralExpr(value, type);\n }\n\n var MODULE_SUFFIX = '';\n var CAMEL_CASE_REGEXP = /([A-Z])/g;\n function camelCaseToDashCase(input) {\n return StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function (m) { return '-' + m[1].toLowerCase(); });\n }\n function splitAtColon(input, defaultValues) {\n var colonIndex = input.indexOf(':');\n if (colonIndex == -1)\n return defaultValues;\n return [input.slice(0, colonIndex).trim(), input.slice(colonIndex + 1).trim()];\n }\n function sanitizeIdentifier(name) {\n return StringWrapper.replaceAll(name, /\\W/g, '_');\n }\n function visitValue(value, visitor, context) {\n if (isArray(value)) {\n return visitor.visitArray(value, context);\n }\n else if (isStrictStringMap(value)) {\n return visitor.visitStringMap(value, context);\n }\n else if (isBlank(value) || isPrimitive(value)) {\n return visitor.visitPrimitive(value, context);\n }\n else {\n return visitor.visitOther(value, context);\n }\n }\n var ValueTransformer = (function () {\n function ValueTransformer() {\n }\n ValueTransformer.prototype.visitArray = function (arr, context) {\n var _this = this;\n return arr.map(function (value) { return visitValue(value, _this, context); });\n };\n ValueTransformer.prototype.visitStringMap = function (map, context) {\n var _this = this;\n var result = {};\n StringMapWrapper.forEach(map, function (value /** TODO #9100 */, key /** TODO #9100 */) {\n result[key] = visitValue(value, _this, context);\n });\n return result;\n };\n ValueTransformer.prototype.visitPrimitive = function (value, context) { return value; };\n ValueTransformer.prototype.visitOther = function (value, context) { return value; };\n return ValueTransformer;\n }());\n function assetUrl(pkg, path, type) {\n if (path === void 0) { path = null; }\n if (type === void 0) { type = 'src'; }\n if (path == null) {\n return \"asset:@angular/lib/\" + pkg + \"/index\";\n }\n else {\n return \"asset:@angular/lib/\" + pkg + \"/src/\" + path;\n }\n }\n function createDiTokenExpression(token) {\n if (isPresent(token.value)) {\n return literal(token.value);\n }\n else if (token.identifierIsInstance) {\n return importExpr(token.identifier)\n .instantiate([], importType(token.identifier, [], [TypeModifier.Const]));\n }\n else {\n return importExpr(token.identifier);\n }\n }\n var SyncAsyncResult = (function () {\n function SyncAsyncResult(syncResult, asyncResult) {\n if (asyncResult === void 0) { asyncResult = null; }\n this.syncResult = syncResult;\n this.asyncResult = asyncResult;\n if (!asyncResult) {\n this.asyncResult = Promise.resolve(syncResult);\n }\n }\n return SyncAsyncResult;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n function unimplemented() {\n throw new Error('unimplemented');\n }\n // group 0: \"[prop] or (event) or @trigger\"\n // group 1: \"prop\" from \"[prop]\"\n // group 2: \"event\" from \"(event)\"\n // group 3: \"@trigger\" from \"@trigger\"\n var HOST_REG_EXP = /^(?:(?:\\[([^\\]]+)\\])|(?:\\(([^\\)]+)\\)))|(\\@[-\\w]+)$/;\n var CompileMetadataWithIdentifier = (function () {\n function CompileMetadataWithIdentifier() {\n }\n Object.defineProperty(CompileMetadataWithIdentifier.prototype, \"identifier\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n return CompileMetadataWithIdentifier;\n }());\n var CompileAnimationEntryMetadata = (function () {\n function CompileAnimationEntryMetadata(name, definitions) {\n if (name === void 0) { name = null; }\n if (definitions === void 0) { definitions = null; }\n this.name = name;\n this.definitions = definitions;\n }\n return CompileAnimationEntryMetadata;\n }());\n var CompileAnimationStateMetadata = (function () {\n function CompileAnimationStateMetadata() {\n }\n return CompileAnimationStateMetadata;\n }());\n var CompileAnimationStateDeclarationMetadata = (function (_super) {\n __extends$1(CompileAnimationStateDeclarationMetadata, _super);\n function CompileAnimationStateDeclarationMetadata(stateNameExpr, styles) {\n _super.call(this);\n this.stateNameExpr = stateNameExpr;\n this.styles = styles;\n }\n return CompileAnimationStateDeclarationMetadata;\n }(CompileAnimationStateMetadata));\n var CompileAnimationStateTransitionMetadata = (function (_super) {\n __extends$1(CompileAnimationStateTransitionMetadata, _super);\n function CompileAnimationStateTransitionMetadata(stateChangeExpr, steps) {\n _super.call(this);\n this.stateChangeExpr = stateChangeExpr;\n this.steps = steps;\n }\n return CompileAnimationStateTransitionMetadata;\n }(CompileAnimationStateMetadata));\n var CompileAnimationMetadata = (function () {\n function CompileAnimationMetadata() {\n }\n return CompileAnimationMetadata;\n }());\n var CompileAnimationKeyframesSequenceMetadata = (function (_super) {\n __extends$1(CompileAnimationKeyframesSequenceMetadata, _super);\n function CompileAnimationKeyframesSequenceMetadata(steps) {\n if (steps === void 0) { steps = []; }\n _super.call(this);\n this.steps = steps;\n }\n return CompileAnimationKeyframesSequenceMetadata;\n }(CompileAnimationMetadata));\n var CompileAnimationStyleMetadata = (function (_super) {\n __extends$1(CompileAnimationStyleMetadata, _super);\n function CompileAnimationStyleMetadata(offset, styles) {\n if (styles === void 0) { styles = null; }\n _super.call(this);\n this.offset = offset;\n this.styles = styles;\n }\n return CompileAnimationStyleMetadata;\n }(CompileAnimationMetadata));\n var CompileAnimationAnimateMetadata = (function (_super) {\n __extends$1(CompileAnimationAnimateMetadata, _super);\n function CompileAnimationAnimateMetadata(timings, styles) {\n if (timings === void 0) { timings = 0; }\n if (styles === void 0) { styles = null; }\n _super.call(this);\n this.timings = timings;\n this.styles = styles;\n }\n return CompileAnimationAnimateMetadata;\n }(CompileAnimationMetadata));\n var CompileAnimationWithStepsMetadata = (function (_super) {\n __extends$1(CompileAnimationWithStepsMetadata, _super);\n function CompileAnimationWithStepsMetadata(steps) {\n if (steps === void 0) { steps = null; }\n _super.call(this);\n this.steps = steps;\n }\n return CompileAnimationWithStepsMetadata;\n }(CompileAnimationMetadata));\n var CompileAnimationSequenceMetadata = (function (_super) {\n __extends$1(CompileAnimationSequenceMetadata, _super);\n function CompileAnimationSequenceMetadata(steps) {\n if (steps === void 0) { steps = null; }\n _super.call(this, steps);\n }\n return CompileAnimationSequenceMetadata;\n }(CompileAnimationWithStepsMetadata));\n var CompileAnimationGroupMetadata = (function (_super) {\n __extends$1(CompileAnimationGroupMetadata, _super);\n function CompileAnimationGroupMetadata(steps) {\n if (steps === void 0) { steps = null; }\n _super.call(this, steps);\n }\n return CompileAnimationGroupMetadata;\n }(CompileAnimationWithStepsMetadata));\n var CompileIdentifierMetadata = (function () {\n function CompileIdentifierMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, reference = _b.reference, name = _b.name, moduleUrl = _b.moduleUrl, prefix = _b.prefix, value = _b.value;\n this.reference = reference;\n this.name = name;\n this.prefix = prefix;\n this.moduleUrl = moduleUrl;\n this.value = value;\n }\n Object.defineProperty(CompileIdentifierMetadata.prototype, \"identifier\", {\n get: function () { return this; },\n enumerable: true,\n configurable: true\n });\n return CompileIdentifierMetadata;\n }());\n var CompileDiDependencyMetadata = (function () {\n function CompileDiDependencyMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, isAttribute = _b.isAttribute, isSelf = _b.isSelf, isHost = _b.isHost, isSkipSelf = _b.isSkipSelf, isOptional = _b.isOptional, isValue = _b.isValue, query = _b.query, viewQuery = _b.viewQuery, token = _b.token, value = _b.value;\n this.isAttribute = normalizeBool(isAttribute);\n this.isSelf = normalizeBool(isSelf);\n this.isHost = normalizeBool(isHost);\n this.isSkipSelf = normalizeBool(isSkipSelf);\n this.isOptional = normalizeBool(isOptional);\n this.isValue = normalizeBool(isValue);\n this.query = query;\n this.viewQuery = viewQuery;\n this.token = token;\n this.value = value;\n }\n return CompileDiDependencyMetadata;\n }());\n var CompileProviderMetadata = (function () {\n function CompileProviderMetadata(_a) {\n var token = _a.token, useClass = _a.useClass, useValue = _a.useValue, useExisting = _a.useExisting, useFactory = _a.useFactory, deps = _a.deps, multi = _a.multi;\n this.token = token;\n this.useClass = useClass;\n this.useValue = useValue;\n this.useExisting = useExisting;\n this.useFactory = useFactory;\n this.deps = normalizeBlank(deps);\n this.multi = normalizeBool(multi);\n }\n return CompileProviderMetadata;\n }());\n var CompileFactoryMetadata = (function (_super) {\n __extends$1(CompileFactoryMetadata, _super);\n function CompileFactoryMetadata(_a) {\n var reference = _a.reference, name = _a.name, moduleUrl = _a.moduleUrl, prefix = _a.prefix, diDeps = _a.diDeps, value = _a.value;\n _super.call(this, { reference: reference, name: name, prefix: prefix, moduleUrl: moduleUrl, value: value });\n this.diDeps = _normalizeArray(diDeps);\n }\n return CompileFactoryMetadata;\n }(CompileIdentifierMetadata));\n var CompileTokenMetadata = (function () {\n function CompileTokenMetadata(_a) {\n var value = _a.value, identifier = _a.identifier, identifierIsInstance = _a.identifierIsInstance;\n this.value = value;\n this.identifier = identifier;\n this.identifierIsInstance = normalizeBool(identifierIsInstance);\n }\n Object.defineProperty(CompileTokenMetadata.prototype, \"reference\", {\n get: function () {\n if (isPresent(this.identifier)) {\n return this.identifier.reference;\n }\n else {\n return this.value;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CompileTokenMetadata.prototype, \"name\", {\n get: function () {\n return isPresent(this.value) ? sanitizeIdentifier(this.value) : this.identifier.name;\n },\n enumerable: true,\n configurable: true\n });\n return CompileTokenMetadata;\n }());\n /**\n * Metadata regarding compilation of a type.\n */\n var CompileTypeMetadata = (function (_super) {\n __extends$1(CompileTypeMetadata, _super);\n function CompileTypeMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, reference = _b.reference, name = _b.name, moduleUrl = _b.moduleUrl, prefix = _b.prefix, isHost = _b.isHost, value = _b.value, diDeps = _b.diDeps, lifecycleHooks = _b.lifecycleHooks;\n _super.call(this, { reference: reference, name: name, moduleUrl: moduleUrl, prefix: prefix, value: value });\n this.isHost = normalizeBool(isHost);\n this.diDeps = _normalizeArray(diDeps);\n this.lifecycleHooks = _normalizeArray(lifecycleHooks);\n }\n return CompileTypeMetadata;\n }(CompileIdentifierMetadata));\n var CompileQueryMetadata = (function () {\n function CompileQueryMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, selectors = _b.selectors, descendants = _b.descendants, first = _b.first, propertyName = _b.propertyName, read = _b.read;\n this.selectors = selectors;\n this.descendants = normalizeBool(descendants);\n this.first = normalizeBool(first);\n this.propertyName = propertyName;\n this.read = read;\n }\n return CompileQueryMetadata;\n }());\n /**\n * Metadata about a stylesheet\n */\n var CompileStylesheetMetadata = (function () {\n function CompileStylesheetMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, moduleUrl = _b.moduleUrl, styles = _b.styles, styleUrls = _b.styleUrls;\n this.moduleUrl = moduleUrl;\n this.styles = _normalizeArray(styles);\n this.styleUrls = _normalizeArray(styleUrls);\n }\n return CompileStylesheetMetadata;\n }());\n /**\n * Metadata regarding compilation of a template.\n */\n var CompileTemplateMetadata = (function () {\n function CompileTemplateMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, encapsulation = _b.encapsulation, template = _b.template, templateUrl = _b.templateUrl, styles = _b.styles, styleUrls = _b.styleUrls, externalStylesheets = _b.externalStylesheets, animations = _b.animations, ngContentSelectors = _b.ngContentSelectors, interpolation = _b.interpolation;\n this.encapsulation = encapsulation;\n this.template = template;\n this.templateUrl = templateUrl;\n this.styles = _normalizeArray(styles);\n this.styleUrls = _normalizeArray(styleUrls);\n this.externalStylesheets = _normalizeArray(externalStylesheets);\n this.animations = isPresent(animations) ? ListWrapper.flatten(animations) : [];\n this.ngContentSelectors = isPresent(ngContentSelectors) ? ngContentSelectors : [];\n if (isPresent(interpolation) && interpolation.length != 2) {\n throw new Error(\"'interpolation' should have a start and an end symbol.\");\n }\n this.interpolation = interpolation;\n }\n return CompileTemplateMetadata;\n }());\n /**\n * Metadata regarding compilation of a directive.\n */\n var CompileDirectiveMetadata = (function () {\n function CompileDirectiveMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, type = _b.type, isComponent = _b.isComponent, selector = _b.selector, exportAs = _b.exportAs, changeDetection = _b.changeDetection, inputs = _b.inputs, outputs = _b.outputs, hostListeners = _b.hostListeners, hostProperties = _b.hostProperties, hostAttributes = _b.hostAttributes, providers = _b.providers, viewProviders = _b.viewProviders, queries = _b.queries, viewQueries = _b.viewQueries, entryComponents = _b.entryComponents, template = _b.template;\n this.type = type;\n this.isComponent = isComponent;\n this.selector = selector;\n this.exportAs = exportAs;\n this.changeDetection = changeDetection;\n this.inputs = inputs;\n this.outputs = outputs;\n this.hostListeners = hostListeners;\n this.hostProperties = hostProperties;\n this.hostAttributes = hostAttributes;\n this.providers = _normalizeArray(providers);\n this.viewProviders = _normalizeArray(viewProviders);\n this.queries = _normalizeArray(queries);\n this.viewQueries = _normalizeArray(viewQueries);\n this.entryComponents = _normalizeArray(entryComponents);\n this.template = template;\n }\n CompileDirectiveMetadata.create = function (_a) {\n var _b = _a === void 0 ? {} : _a, type = _b.type, isComponent = _b.isComponent, selector = _b.selector, exportAs = _b.exportAs, changeDetection = _b.changeDetection, inputs = _b.inputs, outputs = _b.outputs, host = _b.host, providers = _b.providers, viewProviders = _b.viewProviders, queries = _b.queries, viewQueries = _b.viewQueries, entryComponents = _b.entryComponents, template = _b.template;\n var hostListeners = {};\n var hostProperties = {};\n var hostAttributes = {};\n if (isPresent(host)) {\n StringMapWrapper.forEach(host, function (value, key) {\n var matches = key.match(HOST_REG_EXP);\n if (matches === null) {\n hostAttributes[key] = value;\n }\n else if (isPresent(matches[1])) {\n hostProperties[matches[1]] = value;\n }\n else if (isPresent(matches[2])) {\n hostListeners[matches[2]] = value;\n }\n });\n }\n var inputsMap = {};\n if (isPresent(inputs)) {\n inputs.forEach(function (bindConfig) {\n // canonical syntax: `dirProp: elProp`\n // if there is no `:`, use dirProp = elProp\n var parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);\n inputsMap[parts[0]] = parts[1];\n });\n }\n var outputsMap = {};\n if (isPresent(outputs)) {\n outputs.forEach(function (bindConfig) {\n // canonical syntax: `dirProp: elProp`\n // if there is no `:`, use dirProp = elProp\n var parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);\n outputsMap[parts[0]] = parts[1];\n });\n }\n return new CompileDirectiveMetadata({\n type: type,\n isComponent: normalizeBool(isComponent), selector: selector, exportAs: exportAs, changeDetection: changeDetection,\n inputs: inputsMap,\n outputs: outputsMap,\n hostListeners: hostListeners,\n hostProperties: hostProperties,\n hostAttributes: hostAttributes,\n providers: providers,\n viewProviders: viewProviders,\n queries: queries,\n viewQueries: viewQueries,\n entryComponents: entryComponents,\n template: template,\n });\n };\n Object.defineProperty(CompileDirectiveMetadata.prototype, \"identifier\", {\n get: function () { return this.type; },\n enumerable: true,\n configurable: true\n });\n return CompileDirectiveMetadata;\n }());\n /**\n * Construct {@link CompileDirectiveMetadata} from {@link ComponentTypeMetadata} and a selector.\n */\n function createHostComponentMeta(compMeta) {\n var template = CssSelector.parse(compMeta.selector)[0].getMatchingElementTemplate();\n return CompileDirectiveMetadata.create({\n type: new CompileTypeMetadata({\n reference: Object,\n name: compMeta.type.name + \"_Host\",\n moduleUrl: compMeta.type.moduleUrl,\n isHost: true\n }),\n template: new CompileTemplateMetadata({\n encapsulation: _angular_core.ViewEncapsulation.None,\n template: template,\n templateUrl: '',\n styles: [],\n styleUrls: [],\n ngContentSelectors: [],\n animations: []\n }),\n changeDetection: _angular_core.ChangeDetectionStrategy.Default,\n inputs: [],\n outputs: [],\n host: {},\n isComponent: true,\n selector: '*',\n providers: [],\n viewProviders: [],\n queries: [],\n viewQueries: []\n });\n }\n var CompilePipeMetadata = (function () {\n function CompilePipeMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, type = _b.type, name = _b.name, pure = _b.pure;\n this.type = type;\n this.name = name;\n this.pure = normalizeBool(pure);\n }\n Object.defineProperty(CompilePipeMetadata.prototype, \"identifier\", {\n get: function () { return this.type; },\n enumerable: true,\n configurable: true\n });\n return CompilePipeMetadata;\n }());\n /**\n * Metadata regarding compilation of a directive.\n */\n var CompileNgModuleMetadata = (function () {\n function CompileNgModuleMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, type = _b.type, providers = _b.providers, declaredDirectives = _b.declaredDirectives, exportedDirectives = _b.exportedDirectives, declaredPipes = _b.declaredPipes, exportedPipes = _b.exportedPipes, entryComponents = _b.entryComponents, bootstrapComponents = _b.bootstrapComponents, importedModules = _b.importedModules, exportedModules = _b.exportedModules, schemas = _b.schemas, transitiveModule = _b.transitiveModule;\n this.type = type;\n this.declaredDirectives = _normalizeArray(declaredDirectives);\n this.exportedDirectives = _normalizeArray(exportedDirectives);\n this.declaredPipes = _normalizeArray(declaredPipes);\n this.exportedPipes = _normalizeArray(exportedPipes);\n this.providers = _normalizeArray(providers);\n this.entryComponents = _normalizeArray(entryComponents);\n this.bootstrapComponents = _normalizeArray(bootstrapComponents);\n this.importedModules = _normalizeArray(importedModules);\n this.exportedModules = _normalizeArray(exportedModules);\n this.schemas = _normalizeArray(schemas);\n this.transitiveModule = transitiveModule;\n }\n Object.defineProperty(CompileNgModuleMetadata.prototype, \"identifier\", {\n get: function () { return this.type; },\n enumerable: true,\n configurable: true\n });\n return CompileNgModuleMetadata;\n }());\n var TransitiveCompileNgModuleMetadata = (function () {\n function TransitiveCompileNgModuleMetadata(modules, providers, entryComponents, directives, pipes) {\n var _this = this;\n this.modules = modules;\n this.providers = providers;\n this.entryComponents = entryComponents;\n this.directives = directives;\n this.pipes = pipes;\n this.directivesSet = new Set();\n this.pipesSet = new Set();\n directives.forEach(function (dir) { return _this.directivesSet.add(dir.type.reference); });\n pipes.forEach(function (pipe) { return _this.pipesSet.add(pipe.type.reference); });\n }\n return TransitiveCompileNgModuleMetadata;\n }());\n function removeIdentifierDuplicates(items) {\n var map = new Map();\n items.forEach(function (item) {\n if (!map.get(item.identifier.reference)) {\n map.set(item.identifier.reference, item);\n }\n });\n return MapWrapper.values(map);\n }\n function _normalizeArray(obj) {\n return isPresent(obj) ? obj : [];\n }\n function isStaticSymbol(value) {\n return isStringMap(value) && isPresent(value['name']) && isPresent(value['filePath']);\n }\n var ProviderMeta = (function () {\n function ProviderMeta(token, _a) {\n var useClass = _a.useClass, useValue = _a.useValue, useExisting = _a.useExisting, useFactory = _a.useFactory, deps = _a.deps, multi = _a.multi;\n this.token = token;\n this.useClass = useClass;\n this.useValue = useValue;\n this.useExisting = useExisting;\n this.useFactory = useFactory;\n this.dependencies = deps;\n this.multi = !!multi;\n }\n return ProviderMeta;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$3 = (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 };\n var ParserError = (function () {\n function ParserError(message, input, errLocation, ctxLocation) {\n this.input = input;\n this.errLocation = errLocation;\n this.ctxLocation = ctxLocation;\n this.message = \"Parser Error: \" + message + \" \" + errLocation + \" [\" + input + \"] in \" + ctxLocation;\n }\n return ParserError;\n }());\n var ParseSpan = (function () {\n function ParseSpan(start, end) {\n this.start = start;\n this.end = end;\n }\n return ParseSpan;\n }());\n var AST = (function () {\n function AST(span) {\n this.span = span;\n }\n AST.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return null;\n };\n AST.prototype.toString = function () { return 'AST'; };\n return AST;\n }());\n /**\n * Represents a quoted expression of the form:\n *\n * quote = prefix `:` uninterpretedExpression\n * prefix = identifier\n * uninterpretedExpression = arbitrary string\n *\n * A quoted expression is meant to be pre-processed by an AST transformer that\n * converts it into another AST that no longer contains quoted expressions.\n * It is meant to allow third-party developers to extend Angular template\n * expression language. The `uninterpretedExpression` part of the quote is\n * therefore not interpreted by the Angular's own expression parser.\n */\n var Quote = (function (_super) {\n __extends$3(Quote, _super);\n function Quote(span, prefix, uninterpretedExpression, location) {\n _super.call(this, span);\n this.prefix = prefix;\n this.uninterpretedExpression = uninterpretedExpression;\n this.location = location;\n }\n Quote.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitQuote(this, context);\n };\n Quote.prototype.toString = function () { return 'Quote'; };\n return Quote;\n }(AST));\n var EmptyExpr = (function (_super) {\n __extends$3(EmptyExpr, _super);\n function EmptyExpr() {\n _super.apply(this, arguments);\n }\n EmptyExpr.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n // do nothing\n };\n return EmptyExpr;\n }(AST));\n var ImplicitReceiver = (function (_super) {\n __extends$3(ImplicitReceiver, _super);\n function ImplicitReceiver() {\n _super.apply(this, arguments);\n }\n ImplicitReceiver.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitImplicitReceiver(this, context);\n };\n return ImplicitReceiver;\n }(AST));\n /**\n * Multiple expressions separated by a semicolon.\n */\n var Chain = (function (_super) {\n __extends$3(Chain, _super);\n function Chain(span, expressions) {\n _super.call(this, span);\n this.expressions = expressions;\n }\n Chain.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitChain(this, context);\n };\n return Chain;\n }(AST));\n var Conditional = (function (_super) {\n __extends$3(Conditional, _super);\n function Conditional(span, condition, trueExp, falseExp) {\n _super.call(this, span);\n this.condition = condition;\n this.trueExp = trueExp;\n this.falseExp = falseExp;\n }\n Conditional.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitConditional(this, context);\n };\n return Conditional;\n }(AST));\n var PropertyRead = (function (_super) {\n __extends$3(PropertyRead, _super);\n function PropertyRead(span, receiver, name) {\n _super.call(this, span);\n this.receiver = receiver;\n this.name = name;\n }\n PropertyRead.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitPropertyRead(this, context);\n };\n return PropertyRead;\n }(AST));\n var PropertyWrite = (function (_super) {\n __extends$3(PropertyWrite, _super);\n function PropertyWrite(span, receiver, name, value) {\n _super.call(this, span);\n this.receiver = receiver;\n this.name = name;\n this.value = value;\n }\n PropertyWrite.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitPropertyWrite(this, context);\n };\n return PropertyWrite;\n }(AST));\n var SafePropertyRead = (function (_super) {\n __extends$3(SafePropertyRead, _super);\n function SafePropertyRead(span, receiver, name) {\n _super.call(this, span);\n this.receiver = receiver;\n this.name = name;\n }\n SafePropertyRead.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitSafePropertyRead(this, context);\n };\n return SafePropertyRead;\n }(AST));\n var KeyedRead = (function (_super) {\n __extends$3(KeyedRead, _super);\n function KeyedRead(span, obj, key) {\n _super.call(this, span);\n this.obj = obj;\n this.key = key;\n }\n KeyedRead.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitKeyedRead(this, context);\n };\n return KeyedRead;\n }(AST));\n var KeyedWrite = (function (_super) {\n __extends$3(KeyedWrite, _super);\n function KeyedWrite(span, obj, key, value) {\n _super.call(this, span);\n this.obj = obj;\n this.key = key;\n this.value = value;\n }\n KeyedWrite.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitKeyedWrite(this, context);\n };\n return KeyedWrite;\n }(AST));\n var BindingPipe = (function (_super) {\n __extends$3(BindingPipe, _super);\n function BindingPipe(span, exp, name, args) {\n _super.call(this, span);\n this.exp = exp;\n this.name = name;\n this.args = args;\n }\n BindingPipe.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitPipe(this, context);\n };\n return BindingPipe;\n }(AST));\n var LiteralPrimitive = (function (_super) {\n __extends$3(LiteralPrimitive, _super);\n function LiteralPrimitive(span, value) {\n _super.call(this, span);\n this.value = value;\n }\n LiteralPrimitive.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitLiteralPrimitive(this, context);\n };\n return LiteralPrimitive;\n }(AST));\n var LiteralArray = (function (_super) {\n __extends$3(LiteralArray, _super);\n function LiteralArray(span, expressions) {\n _super.call(this, span);\n this.expressions = expressions;\n }\n LiteralArray.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitLiteralArray(this, context);\n };\n return LiteralArray;\n }(AST));\n var LiteralMap = (function (_super) {\n __extends$3(LiteralMap, _super);\n function LiteralMap(span, keys, values) {\n _super.call(this, span);\n this.keys = keys;\n this.values = values;\n }\n LiteralMap.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitLiteralMap(this, context);\n };\n return LiteralMap;\n }(AST));\n var Interpolation = (function (_super) {\n __extends$3(Interpolation, _super);\n function Interpolation(span, strings, expressions) {\n _super.call(this, span);\n this.strings = strings;\n this.expressions = expressions;\n }\n Interpolation.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitInterpolation(this, context);\n };\n return Interpolation;\n }(AST));\n var Binary = (function (_super) {\n __extends$3(Binary, _super);\n function Binary(span, operation, left, right) {\n _super.call(this, span);\n this.operation = operation;\n this.left = left;\n this.right = right;\n }\n Binary.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitBinary(this, context);\n };\n return Binary;\n }(AST));\n var PrefixNot = (function (_super) {\n __extends$3(PrefixNot, _super);\n function PrefixNot(span, expression) {\n _super.call(this, span);\n this.expression = expression;\n }\n PrefixNot.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitPrefixNot(this, context);\n };\n return PrefixNot;\n }(AST));\n var MethodCall = (function (_super) {\n __extends$3(MethodCall, _super);\n function MethodCall(span, receiver, name, args) {\n _super.call(this, span);\n this.receiver = receiver;\n this.name = name;\n this.args = args;\n }\n MethodCall.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitMethodCall(this, context);\n };\n return MethodCall;\n }(AST));\n var SafeMethodCall = (function (_super) {\n __extends$3(SafeMethodCall, _super);\n function SafeMethodCall(span, receiver, name, args) {\n _super.call(this, span);\n this.receiver = receiver;\n this.name = name;\n this.args = args;\n }\n SafeMethodCall.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitSafeMethodCall(this, context);\n };\n return SafeMethodCall;\n }(AST));\n var FunctionCall = (function (_super) {\n __extends$3(FunctionCall, _super);\n function FunctionCall(span, target, args) {\n _super.call(this, span);\n this.target = target;\n this.args = args;\n }\n FunctionCall.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return visitor.visitFunctionCall(this, context);\n };\n return FunctionCall;\n }(AST));\n var ASTWithSource = (function (_super) {\n __extends$3(ASTWithSource, _super);\n function ASTWithSource(ast, source, location, errors) {\n _super.call(this, new ParseSpan(0, isBlank(source) ? 0 : source.length));\n this.ast = ast;\n this.source = source;\n this.location = location;\n this.errors = errors;\n }\n ASTWithSource.prototype.visit = function (visitor, context) {\n if (context === void 0) { context = null; }\n return this.ast.visit(visitor, context);\n };\n ASTWithSource.prototype.toString = function () { return this.source + \" in \" + this.location; };\n return ASTWithSource;\n }(AST));\n var TemplateBinding = (function () {\n function TemplateBinding(key, keyIsVar, name, expression) {\n this.key = key;\n this.keyIsVar = keyIsVar;\n this.name = name;\n this.expression = expression;\n }\n return TemplateBinding;\n }());\n var RecursiveAstVisitor = (function () {\n function RecursiveAstVisitor() {\n }\n RecursiveAstVisitor.prototype.visitBinary = function (ast, context) {\n ast.left.visit(this);\n ast.right.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitChain = function (ast, context) { return this.visitAll(ast.expressions, context); };\n RecursiveAstVisitor.prototype.visitConditional = function (ast, context) {\n ast.condition.visit(this);\n ast.trueExp.visit(this);\n ast.falseExp.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitPipe = function (ast, context) {\n ast.exp.visit(this);\n this.visitAll(ast.args, context);\n return null;\n };\n RecursiveAstVisitor.prototype.visitFunctionCall = function (ast, context) {\n ast.target.visit(this);\n this.visitAll(ast.args, context);\n return null;\n };\n RecursiveAstVisitor.prototype.visitImplicitReceiver = function (ast, context) { return null; };\n RecursiveAstVisitor.prototype.visitInterpolation = function (ast, context) {\n return this.visitAll(ast.expressions, context);\n };\n RecursiveAstVisitor.prototype.visitKeyedRead = function (ast, context) {\n ast.obj.visit(this);\n ast.key.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitKeyedWrite = function (ast, context) {\n ast.obj.visit(this);\n ast.key.visit(this);\n ast.value.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitLiteralArray = function (ast, context) {\n return this.visitAll(ast.expressions, context);\n };\n RecursiveAstVisitor.prototype.visitLiteralMap = function (ast, context) { return this.visitAll(ast.values, context); };\n RecursiveAstVisitor.prototype.visitLiteralPrimitive = function (ast, context) { return null; };\n RecursiveAstVisitor.prototype.visitMethodCall = function (ast, context) {\n ast.receiver.visit(this);\n return this.visitAll(ast.args, context);\n };\n RecursiveAstVisitor.prototype.visitPrefixNot = function (ast, context) {\n ast.expression.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitPropertyRead = function (ast, context) {\n ast.receiver.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitPropertyWrite = function (ast, context) {\n ast.receiver.visit(this);\n ast.value.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitSafePropertyRead = function (ast, context) {\n ast.receiver.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitSafeMethodCall = function (ast, context) {\n ast.receiver.visit(this);\n return this.visitAll(ast.args, context);\n };\n RecursiveAstVisitor.prototype.visitAll = function (asts, context) {\n var _this = this;\n asts.forEach(function (ast) { return ast.visit(_this, context); });\n return null;\n };\n RecursiveAstVisitor.prototype.visitQuote = function (ast, context) { return null; };\n return RecursiveAstVisitor;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var $EOF = 0;\n var $TAB = 9;\n var $LF = 10;\n var $VTAB = 11;\n var $FF = 12;\n var $CR = 13;\n var $SPACE = 32;\n var $BANG = 33;\n var $DQ = 34;\n var $HASH = 35;\n var $$ = 36;\n var $PERCENT = 37;\n var $AMPERSAND = 38;\n var $SQ = 39;\n var $LPAREN = 40;\n var $RPAREN = 41;\n var $STAR = 42;\n var $PLUS = 43;\n var $COMMA = 44;\n var $MINUS = 45;\n var $PERIOD = 46;\n var $SLASH = 47;\n var $COLON = 58;\n var $SEMICOLON = 59;\n var $LT = 60;\n var $EQ = 61;\n var $GT = 62;\n var $QUESTION = 63;\n var $0 = 48;\n var $9 = 57;\n var $A = 65;\n var $E = 69;\n var $F = 70;\n var $X = 88;\n var $Z = 90;\n var $LBRACKET = 91;\n var $BACKSLASH = 92;\n var $RBRACKET = 93;\n var $CARET = 94;\n var $_ = 95;\n var $a = 97;\n var $e = 101;\n var $f = 102;\n var $n = 110;\n var $r = 114;\n var $t = 116;\n var $u = 117;\n var $v = 118;\n var $x = 120;\n var $z = 122;\n var $LBRACE = 123;\n var $BAR = 124;\n var $RBRACE = 125;\n var $NBSP = 160;\n var $BT = 96;\n function isWhitespace(code) {\n return (code >= $TAB && code <= $SPACE) || (code == $NBSP);\n }\n function isDigit(code) {\n return $0 <= code && code <= $9;\n }\n function isAsciiLetter(code) {\n return code >= $a && code <= $z || code >= $A && code <= $Z;\n }\n function isAsciiHexDigit(code) {\n return code >= $a && code <= $f || code >= $A && code <= $F || isDigit(code);\n }\n\n function assertArrayOfStrings(identifier, value) {\n if (!_angular_core.isDevMode() || isBlank(value)) {\n return;\n }\n if (!isArray(value)) {\n throw new Error(\"Expected '\" + identifier + \"' to be an array of strings.\");\n }\n for (var i = 0; i < value.length; i += 1) {\n if (!isString(value[i])) {\n throw new Error(\"Expected '\" + identifier + \"' to be an array of strings.\");\n }\n }\n }\n var INTERPOLATION_BLACKLIST_REGEXPS = [\n /^\\s*$/,\n /[<>]/,\n /^[{}]$/,\n /&(#|[a-z])/i,\n /^\\/\\//,\n ];\n function assertInterpolationSymbols(identifier, value) {\n if (isPresent(value) && !(isArray(value) && value.length == 2)) {\n throw new Error(\"Expected '\" + identifier + \"' to be an array, [start, end].\");\n }\n else if (_angular_core.isDevMode() && !isBlank(value)) {\n var start_1 = value[0];\n var end_1 = value[1];\n // black list checking\n INTERPOLATION_BLACKLIST_REGEXPS.forEach(function (regexp) {\n if (regexp.test(start_1) || regexp.test(end_1)) {\n throw new Error(\"['\" + start_1 + \"', '\" + end_1 + \"'] contains unusable interpolation symbol.\");\n }\n });\n }\n }\n\n var InterpolationConfig = (function () {\n function InterpolationConfig(start, end) {\n this.start = start;\n this.end = end;\n }\n InterpolationConfig.fromArray = function (markers) {\n if (!markers) {\n return DEFAULT_INTERPOLATION_CONFIG;\n }\n assertInterpolationSymbols('interpolation', markers);\n return new InterpolationConfig(markers[0], markers[1]);\n };\n ;\n return InterpolationConfig;\n }());\n var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig('{{', '}}');\n\n var TokenType;\n (function (TokenType) {\n TokenType[TokenType[\"Character\"] = 0] = \"Character\";\n TokenType[TokenType[\"Identifier\"] = 1] = \"Identifier\";\n TokenType[TokenType[\"Keyword\"] = 2] = \"Keyword\";\n TokenType[TokenType[\"String\"] = 3] = \"String\";\n TokenType[TokenType[\"Operator\"] = 4] = \"Operator\";\n TokenType[TokenType[\"Number\"] = 5] = \"Number\";\n TokenType[TokenType[\"Error\"] = 6] = \"Error\";\n })(TokenType || (TokenType = {}));\n var KEYWORDS = ['var', 'let', 'null', 'undefined', 'true', 'false', 'if', 'else', 'this'];\n var Lexer = (function () {\n function Lexer() {\n }\n Lexer.prototype.tokenize = function (text) {\n var scanner = new _Scanner(text);\n var tokens = [];\n var token = scanner.scanToken();\n while (token != null) {\n tokens.push(token);\n token = scanner.scanToken();\n }\n return tokens;\n };\n Lexer.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n Lexer.ctorParameters = [];\n return Lexer;\n }());\n var Token = (function () {\n function Token(index, type, numValue, strValue) {\n this.index = index;\n this.type = type;\n this.numValue = numValue;\n this.strValue = strValue;\n }\n Token.prototype.isCharacter = function (code) {\n return this.type == TokenType.Character && this.numValue == code;\n };\n Token.prototype.isNumber = function () { return this.type == TokenType.Number; };\n Token.prototype.isString = function () { return this.type == TokenType.String; };\n Token.prototype.isOperator = function (operater) {\n return this.type == TokenType.Operator && this.strValue == operater;\n };\n Token.prototype.isIdentifier = function () { return this.type == TokenType.Identifier; };\n Token.prototype.isKeyword = function () { return this.type == TokenType.Keyword; };\n Token.prototype.isKeywordLet = function () { return this.type == TokenType.Keyword && this.strValue == 'let'; };\n Token.prototype.isKeywordNull = function () { return this.type == TokenType.Keyword && this.strValue == 'null'; };\n Token.prototype.isKeywordUndefined = function () {\n return this.type == TokenType.Keyword && this.strValue == 'undefined';\n };\n Token.prototype.isKeywordTrue = function () { return this.type == TokenType.Keyword && this.strValue == 'true'; };\n Token.prototype.isKeywordFalse = function () { return this.type == TokenType.Keyword && this.strValue == 'false'; };\n Token.prototype.isKeywordThis = function () { return this.type == TokenType.Keyword && this.strValue == 'this'; };\n Token.prototype.isError = function () { return this.type == TokenType.Error; };\n Token.prototype.toNumber = function () { return this.type == TokenType.Number ? this.numValue : -1; };\n Token.prototype.toString = function () {\n switch (this.type) {\n case TokenType.Character:\n case TokenType.Identifier:\n case TokenType.Keyword:\n case TokenType.Operator:\n case TokenType.String:\n case TokenType.Error:\n return this.strValue;\n case TokenType.Number:\n return this.numValue.toString();\n default:\n return null;\n }\n };\n return Token;\n }());\n function newCharacterToken(index, code) {\n return new Token(index, TokenType.Character, code, StringWrapper.fromCharCode(code));\n }\n function newIdentifierToken(index, text) {\n return new Token(index, TokenType.Identifier, 0, text);\n }\n function newKeywordToken(index, text) {\n return new Token(index, TokenType.Keyword, 0, text);\n }\n function newOperatorToken(index, text) {\n return new Token(index, TokenType.Operator, 0, text);\n }\n function newStringToken(index, text) {\n return new Token(index, TokenType.String, 0, text);\n }\n function newNumberToken(index, n) {\n return new Token(index, TokenType.Number, n, '');\n }\n function newErrorToken(index, message) {\n return new Token(index, TokenType.Error, 0, message);\n }\n var EOF = new Token(-1, TokenType.Character, 0, '');\n var _Scanner = (function () {\n function _Scanner(input) {\n this.input = input;\n this.peek = 0;\n this.index = -1;\n this.length = input.length;\n this.advance();\n }\n _Scanner.prototype.advance = function () {\n this.peek =\n ++this.index >= this.length ? $EOF : StringWrapper.charCodeAt(this.input, this.index);\n };\n _Scanner.prototype.scanToken = function () {\n var input = this.input, length = this.length, peek = this.peek, index = this.index;\n // Skip whitespace.\n while (peek <= $SPACE) {\n if (++index >= length) {\n peek = $EOF;\n break;\n }\n else {\n peek = StringWrapper.charCodeAt(input, index);\n }\n }\n this.peek = peek;\n this.index = index;\n if (index >= length) {\n return null;\n }\n // Handle identifiers and numbers.\n if (isIdentifierStart(peek))\n return this.scanIdentifier();\n if (isDigit(peek))\n return this.scanNumber(index);\n var start = index;\n switch (peek) {\n case $PERIOD:\n this.advance();\n return isDigit(this.peek) ? this.scanNumber(start) :\n newCharacterToken(start, $PERIOD);\n case $LPAREN:\n case $RPAREN:\n case $LBRACE:\n case $RBRACE:\n case $LBRACKET:\n case $RBRACKET:\n case $COMMA:\n case $COLON:\n case $SEMICOLON:\n return this.scanCharacter(start, peek);\n case $SQ:\n case $DQ:\n return this.scanString();\n case $HASH:\n case $PLUS:\n case $MINUS:\n case $STAR:\n case $SLASH:\n case $PERCENT:\n case $CARET:\n return this.scanOperator(start, StringWrapper.fromCharCode(peek));\n case $QUESTION:\n return this.scanComplexOperator(start, '?', $PERIOD, '.');\n case $LT:\n case $GT:\n return this.scanComplexOperator(start, StringWrapper.fromCharCode(peek), $EQ, '=');\n case $BANG:\n case $EQ:\n return this.scanComplexOperator(start, StringWrapper.fromCharCode(peek), $EQ, '=', $EQ, '=');\n case $AMPERSAND:\n return this.scanComplexOperator(start, '&', $AMPERSAND, '&');\n case $BAR:\n return this.scanComplexOperator(start, '|', $BAR, '|');\n case $NBSP:\n while (isWhitespace(this.peek))\n this.advance();\n return this.scanToken();\n }\n this.advance();\n return this.error(\"Unexpected character [\" + StringWrapper.fromCharCode(peek) + \"]\", 0);\n };\n _Scanner.prototype.scanCharacter = function (start, code) {\n this.advance();\n return newCharacterToken(start, code);\n };\n _Scanner.prototype.scanOperator = function (start, str) {\n this.advance();\n return newOperatorToken(start, str);\n };\n /**\n * Tokenize a 2/3 char long operator\n *\n * @param start start index in the expression\n * @param one first symbol (always part of the operator)\n * @param twoCode code point for the second symbol\n * @param two second symbol (part of the operator when the second code point matches)\n * @param threeCode code point for the third symbol\n * @param three third symbol (part of the operator when provided and matches source expression)\n * @returns {Token}\n */\n _Scanner.prototype.scanComplexOperator = function (start, one, twoCode, two, threeCode, three) {\n this.advance();\n var str = one;\n if (this.peek == twoCode) {\n this.advance();\n str += two;\n }\n if (isPresent(threeCode) && this.peek == threeCode) {\n this.advance();\n str += three;\n }\n return newOperatorToken(start, str);\n };\n _Scanner.prototype.scanIdentifier = function () {\n var start = this.index;\n this.advance();\n while (isIdentifierPart(this.peek))\n this.advance();\n var str = this.input.substring(start, this.index);\n return KEYWORDS.indexOf(str) > -1 ? newKeywordToken(start, str) :\n newIdentifierToken(start, str);\n };\n _Scanner.prototype.scanNumber = function (start) {\n var simple = (this.index === start);\n this.advance(); // Skip initial digit.\n while (true) {\n if (isDigit(this.peek)) {\n }\n else if (this.peek == $PERIOD) {\n simple = false;\n }\n else if (isExponentStart(this.peek)) {\n this.advance();\n if (isExponentSign(this.peek))\n this.advance();\n if (!isDigit(this.peek))\n return this.error('Invalid exponent', -1);\n simple = false;\n }\n else {\n break;\n }\n this.advance();\n }\n var str = this.input.substring(start, this.index);\n var value = simple ? NumberWrapper.parseIntAutoRadix(str) : NumberWrapper.parseFloat(str);\n return newNumberToken(start, value);\n };\n _Scanner.prototype.scanString = function () {\n var start = this.index;\n var quote = this.peek;\n this.advance(); // Skip initial quote.\n var buffer;\n var marker = this.index;\n var input = this.input;\n while (this.peek != quote) {\n if (this.peek == $BACKSLASH) {\n if (buffer == null)\n buffer = new StringJoiner();\n buffer.add(input.substring(marker, this.index));\n this.advance();\n var unescapedCode;\n if (this.peek == $u) {\n // 4 character hex code for unicode character.\n var hex = input.substring(this.index + 1, this.index + 5);\n try {\n unescapedCode = NumberWrapper.parseInt(hex, 16);\n }\n catch (e) {\n return this.error(\"Invalid unicode escape [\\\\u\" + hex + \"]\", 0);\n }\n for (var i = 0; i < 5; i++) {\n this.advance();\n }\n }\n else {\n unescapedCode = unescape(this.peek);\n this.advance();\n }\n buffer.add(StringWrapper.fromCharCode(unescapedCode));\n marker = this.index;\n }\n else if (this.peek == $EOF) {\n return this.error('Unterminated quote', 0);\n }\n else {\n this.advance();\n }\n }\n var last = input.substring(marker, this.index);\n this.advance(); // Skip terminating quote.\n // Compute the unescaped string value.\n var unescaped = last;\n if (buffer != null) {\n buffer.add(last);\n unescaped = buffer.toString();\n }\n return newStringToken(start, unescaped);\n };\n _Scanner.prototype.error = function (message, offset) {\n var position = this.index + offset;\n return newErrorToken(position, \"Lexer Error: \" + message + \" at column \" + position + \" in expression [\" + this.input + \"]\");\n };\n return _Scanner;\n }());\n function isIdentifierStart(code) {\n return ($a <= code && code <= $z) || ($A <= code && code <= $Z) ||\n (code == $_) || (code == $$);\n }\n function isIdentifier(input) {\n if (input.length == 0)\n return false;\n var scanner = new _Scanner(input);\n if (!isIdentifierStart(scanner.peek))\n return false;\n scanner.advance();\n while (scanner.peek !== $EOF) {\n if (!isIdentifierPart(scanner.peek))\n return false;\n scanner.advance();\n }\n return true;\n }\n function isIdentifierPart(code) {\n return isAsciiLetter(code) || isDigit(code) || (code == $_) ||\n (code == $$);\n }\n function isExponentStart(code) {\n return code == $e || code == $E;\n }\n function isExponentSign(code) {\n return code == $MINUS || code == $PLUS;\n }\n function isQuote(code) {\n return code === $SQ || code === $DQ || code === $BT;\n }\n function unescape(code) {\n switch (code) {\n case $n:\n return $LF;\n case $f:\n return $FF;\n case $r:\n return $CR;\n case $t:\n return $TAB;\n case $v:\n return $VTAB;\n default:\n return code;\n }\n }\n\n var SplitInterpolation = (function () {\n function SplitInterpolation(strings, expressions) {\n this.strings = strings;\n this.expressions = expressions;\n }\n return SplitInterpolation;\n }());\n var TemplateBindingParseResult = (function () {\n function TemplateBindingParseResult(templateBindings, warnings, errors) {\n this.templateBindings = templateBindings;\n this.warnings = warnings;\n this.errors = errors;\n }\n return TemplateBindingParseResult;\n }());\n function _createInterpolateRegExp(config) {\n var pattern = escapeRegExp(config.start) + '([\\\\s\\\\S]*?)' + escapeRegExp(config.end);\n return new RegExp(pattern, 'g');\n }\n var Parser = (function () {\n function Parser(_lexer) {\n this._lexer = _lexer;\n this.errors = [];\n }\n Parser.prototype.parseAction = function (input, location, interpolationConfig) {\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n this._checkNoInterpolation(input, location, interpolationConfig);\n var tokens = this._lexer.tokenize(this._stripComments(input));\n var ast = new _ParseAST(input, location, tokens, true, this.errors).parseChain();\n return new ASTWithSource(ast, input, location, this.errors);\n };\n Parser.prototype.parseBinding = function (input, location, interpolationConfig) {\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n var ast = this._parseBindingAst(input, location, interpolationConfig);\n return new ASTWithSource(ast, input, location, this.errors);\n };\n Parser.prototype.parseSimpleBinding = function (input, location, interpolationConfig) {\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n var ast = this._parseBindingAst(input, location, interpolationConfig);\n if (!SimpleExpressionChecker.check(ast)) {\n this._reportError('Host binding expression can only contain field access and constants', input, location);\n }\n return new ASTWithSource(ast, input, location, this.errors);\n };\n Parser.prototype._reportError = function (message, input, errLocation, ctxLocation) {\n this.errors.push(new ParserError(message, input, errLocation, ctxLocation));\n };\n Parser.prototype._parseBindingAst = function (input, location, interpolationConfig) {\n // Quotes expressions use 3rd-party expression language. We don't want to use\n // our lexer or parser for that, so we check for that ahead of time.\n var quote = this._parseQuote(input, location);\n if (isPresent(quote)) {\n return quote;\n }\n this._checkNoInterpolation(input, location, interpolationConfig);\n var tokens = this._lexer.tokenize(this._stripComments(input));\n return new _ParseAST(input, location, tokens, false, this.errors).parseChain();\n };\n Parser.prototype._parseQuote = function (input, location) {\n if (isBlank(input))\n return null;\n var prefixSeparatorIndex = input.indexOf(':');\n if (prefixSeparatorIndex == -1)\n return null;\n var prefix = input.substring(0, prefixSeparatorIndex).trim();\n if (!isIdentifier(prefix))\n return null;\n var uninterpretedExpression = input.substring(prefixSeparatorIndex + 1);\n return new Quote(new ParseSpan(0, input.length), prefix, uninterpretedExpression, location);\n };\n Parser.prototype.parseTemplateBindings = function (input, location) {\n var tokens = this._lexer.tokenize(input);\n return new _ParseAST(input, location, tokens, false, this.errors).parseTemplateBindings();\n };\n Parser.prototype.parseInterpolation = function (input, location, interpolationConfig) {\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n var split = this.splitInterpolation(input, location, interpolationConfig);\n if (split == null)\n return null;\n var expressions = [];\n for (var i = 0; i < split.expressions.length; ++i) {\n var tokens = this._lexer.tokenize(this._stripComments(split.expressions[i]));\n var ast = new _ParseAST(input, location, tokens, false, this.errors).parseChain();\n expressions.push(ast);\n }\n return new ASTWithSource(new Interpolation(new ParseSpan(0, isBlank(input) ? 0 : input.length), split.strings, expressions), input, location, this.errors);\n };\n Parser.prototype.splitInterpolation = function (input, location, interpolationConfig) {\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n var regexp = _createInterpolateRegExp(interpolationConfig);\n var parts = StringWrapper.split(input, regexp);\n if (parts.length <= 1) {\n return null;\n }\n var strings = [];\n var expressions = [];\n for (var i = 0; i < parts.length; i++) {\n var part = parts[i];\n if (i % 2 === 0) {\n // fixed string\n strings.push(part);\n }\n else if (part.trim().length > 0) {\n expressions.push(part);\n }\n else {\n this._reportError('Blank expressions are not allowed in interpolated strings', input, \"at column \" + this._findInterpolationErrorColumn(parts, i, interpolationConfig) + \" in\", location);\n }\n }\n return new SplitInterpolation(strings, expressions);\n };\n Parser.prototype.wrapLiteralPrimitive = function (input, location) {\n return new ASTWithSource(new LiteralPrimitive(new ParseSpan(0, isBlank(input) ? 0 : input.length), input), input, location, this.errors);\n };\n Parser.prototype._stripComments = function (input) {\n var i = this._commentStart(input);\n return isPresent(i) ? input.substring(0, i).trim() : input;\n };\n Parser.prototype._commentStart = function (input) {\n var outerQuote = null;\n for (var i = 0; i < input.length - 1; i++) {\n var char = StringWrapper.charCodeAt(input, i);\n var nextChar = StringWrapper.charCodeAt(input, i + 1);\n if (char === $SLASH && nextChar == $SLASH && isBlank(outerQuote))\n return i;\n if (outerQuote === char) {\n outerQuote = null;\n }\n else if (isBlank(outerQuote) && isQuote(char)) {\n outerQuote = char;\n }\n }\n return null;\n };\n Parser.prototype._checkNoInterpolation = function (input, location, interpolationConfig) {\n var regexp = _createInterpolateRegExp(interpolationConfig);\n var parts = StringWrapper.split(input, regexp);\n if (parts.length > 1) {\n this._reportError(\"Got interpolation (\" + interpolationConfig.start + interpolationConfig.end + \") where expression was expected\", input, \"at column \" + this._findInterpolationErrorColumn(parts, 1, interpolationConfig) + \" in\", location);\n }\n };\n Parser.prototype._findInterpolationErrorColumn = function (parts, partInErrIdx, interpolationConfig) {\n var errLocation = '';\n for (var j = 0; j < partInErrIdx; j++) {\n errLocation += j % 2 === 0 ?\n parts[j] :\n \"\" + interpolationConfig.start + parts[j] + interpolationConfig.end;\n }\n return errLocation.length;\n };\n Parser.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n Parser.ctorParameters = [\n { type: Lexer, },\n ];\n return Parser;\n }());\n var _ParseAST = (function () {\n function _ParseAST(input, location, tokens, parseAction, errors) {\n this.input = input;\n this.location = location;\n this.tokens = tokens;\n this.parseAction = parseAction;\n this.errors = errors;\n this.rparensExpected = 0;\n this.rbracketsExpected = 0;\n this.rbracesExpected = 0;\n this.index = 0;\n }\n _ParseAST.prototype.peek = function (offset) {\n var i = this.index + offset;\n return i < this.tokens.length ? this.tokens[i] : EOF;\n };\n Object.defineProperty(_ParseAST.prototype, \"next\", {\n get: function () { return this.peek(0); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(_ParseAST.prototype, \"inputIndex\", {\n get: function () {\n return (this.index < this.tokens.length) ? this.next.index : this.input.length;\n },\n enumerable: true,\n configurable: true\n });\n _ParseAST.prototype.span = function (start) { return new ParseSpan(start, this.inputIndex); };\n _ParseAST.prototype.advance = function () { this.index++; };\n _ParseAST.prototype.optionalCharacter = function (code) {\n if (this.next.isCharacter(code)) {\n this.advance();\n return true;\n }\n else {\n return false;\n }\n };\n _ParseAST.prototype.peekKeywordLet = function () { return this.next.isKeywordLet(); };\n _ParseAST.prototype.expectCharacter = function (code) {\n if (this.optionalCharacter(code))\n return;\n this.error(\"Missing expected \" + StringWrapper.fromCharCode(code));\n };\n _ParseAST.prototype.optionalOperator = function (op) {\n if (this.next.isOperator(op)) {\n this.advance();\n return true;\n }\n else {\n return false;\n }\n };\n _ParseAST.prototype.expectOperator = function (operator) {\n if (this.optionalOperator(operator))\n return;\n this.error(\"Missing expected operator \" + operator);\n };\n _ParseAST.prototype.expectIdentifierOrKeyword = function () {\n var n = this.next;\n if (!n.isIdentifier() && !n.isKeyword()) {\n this.error(\"Unexpected token \" + n + \", expected identifier or keyword\");\n return '';\n }\n this.advance();\n return n.toString();\n };\n _ParseAST.prototype.expectIdentifierOrKeywordOrString = function () {\n var n = this.next;\n if (!n.isIdentifier() && !n.isKeyword() && !n.isString()) {\n this.error(\"Unexpected token \" + n + \", expected identifier, keyword, or string\");\n return '';\n }\n this.advance();\n return n.toString();\n };\n _ParseAST.prototype.parseChain = function () {\n var exprs = [];\n var start = this.inputIndex;\n while (this.index < this.tokens.length) {\n var expr = this.parsePipe();\n exprs.push(expr);\n if (this.optionalCharacter($SEMICOLON)) {\n if (!this.parseAction) {\n this.error('Binding expression cannot contain chained expression');\n }\n while (this.optionalCharacter($SEMICOLON)) {\n } // read all semicolons\n }\n else if (this.index < this.tokens.length) {\n this.error(\"Unexpected token '\" + this.next + \"'\");\n }\n }\n if (exprs.length == 0)\n return new EmptyExpr(this.span(start));\n if (exprs.length == 1)\n return exprs[0];\n return new Chain(this.span(start), exprs);\n };\n _ParseAST.prototype.parsePipe = function () {\n var result = this.parseExpression();\n if (this.optionalOperator('|')) {\n if (this.parseAction) {\n this.error('Cannot have a pipe in an action expression');\n }\n do {\n var name = this.expectIdentifierOrKeyword();\n var args = [];\n while (this.optionalCharacter($COLON)) {\n args.push(this.parseExpression());\n }\n result = new BindingPipe(this.span(result.span.start), result, name, args);\n } while (this.optionalOperator('|'));\n }\n return result;\n };\n _ParseAST.prototype.parseExpression = function () { return this.parseConditional(); };\n _ParseAST.prototype.parseConditional = function () {\n var start = this.inputIndex;\n var result = this.parseLogicalOr();\n if (this.optionalOperator('?')) {\n var yes = this.parsePipe();\n var no = void 0;\n if (!this.optionalCharacter($COLON)) {\n var end = this.inputIndex;\n var expression = this.input.substring(start, end);\n this.error(\"Conditional expression \" + expression + \" requires all 3 expressions\");\n no = new EmptyExpr(this.span(start));\n }\n else {\n no = this.parsePipe();\n }\n return new Conditional(this.span(start), result, yes, no);\n }\n else {\n return result;\n }\n };\n _ParseAST.prototype.parseLogicalOr = function () {\n // '||'\n var result = this.parseLogicalAnd();\n while (this.optionalOperator('||')) {\n var right = this.parseLogicalAnd();\n result = new Binary(this.span(result.span.start), '||', result, right);\n }\n return result;\n };\n _ParseAST.prototype.parseLogicalAnd = function () {\n // '&&'\n var result = this.parseEquality();\n while (this.optionalOperator('&&')) {\n var right = this.parseEquality();\n result = new Binary(this.span(result.span.start), '&&', result, right);\n }\n return result;\n };\n _ParseAST.prototype.parseEquality = function () {\n // '==','!=','===','!=='\n var result = this.parseRelational();\n while (this.next.type == TokenType.Operator) {\n var operator = this.next.strValue;\n switch (operator) {\n case '==':\n case '===':\n case '!=':\n case '!==':\n this.advance();\n var right = this.parseRelational();\n result = new Binary(this.span(result.span.start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n };\n _ParseAST.prototype.parseRelational = function () {\n // '<', '>', '<=', '>='\n var result = this.parseAdditive();\n while (this.next.type == TokenType.Operator) {\n var operator = this.next.strValue;\n switch (operator) {\n case '<':\n case '>':\n case '<=':\n case '>=':\n this.advance();\n var right = this.parseAdditive();\n result = new Binary(this.span(result.span.start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n };\n _ParseAST.prototype.parseAdditive = function () {\n // '+', '-'\n var result = this.parseMultiplicative();\n while (this.next.type == TokenType.Operator) {\n var operator = this.next.strValue;\n switch (operator) {\n case '+':\n case '-':\n this.advance();\n var right = this.parseMultiplicative();\n result = new Binary(this.span(result.span.start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n };\n _ParseAST.prototype.parseMultiplicative = function () {\n // '*', '%', '/'\n var result = this.parsePrefix();\n while (this.next.type == TokenType.Operator) {\n var operator = this.next.strValue;\n switch (operator) {\n case '*':\n case '%':\n case '/':\n this.advance();\n var right = this.parsePrefix();\n result = new Binary(this.span(result.span.start), operator, result, right);\n continue;\n }\n break;\n }\n return result;\n };\n _ParseAST.prototype.parsePrefix = function () {\n if (this.next.type == TokenType.Operator) {\n var start = this.inputIndex;\n var operator = this.next.strValue;\n var result = void 0;\n switch (operator) {\n case '+':\n this.advance();\n return this.parsePrefix();\n case '-':\n this.advance();\n result = this.parsePrefix();\n return new Binary(this.span(start), operator, new LiteralPrimitive(new ParseSpan(start, start), 0), result);\n case '!':\n this.advance();\n result = this.parsePrefix();\n return new PrefixNot(this.span(start), result);\n }\n }\n return this.parseCallChain();\n };\n _ParseAST.prototype.parseCallChain = function () {\n var result = this.parsePrimary();\n while (true) {\n if (this.optionalCharacter($PERIOD)) {\n result = this.parseAccessMemberOrMethodCall(result, false);\n }\n else if (this.optionalOperator('?.')) {\n result = this.parseAccessMemberOrMethodCall(result, true);\n }\n else if (this.optionalCharacter($LBRACKET)) {\n this.rbracketsExpected++;\n var key = this.parsePipe();\n this.rbracketsExpected--;\n this.expectCharacter($RBRACKET);\n if (this.optionalOperator('=')) {\n var value = this.parseConditional();\n result = new KeyedWrite(this.span(result.span.start), result, key, value);\n }\n else {\n result = new KeyedRead(this.span(result.span.start), result, key);\n }\n }\n else if (this.optionalCharacter($LPAREN)) {\n this.rparensExpected++;\n var args = this.parseCallArguments();\n this.rparensExpected--;\n this.expectCharacter($RPAREN);\n result = new FunctionCall(this.span(result.span.start), result, args);\n }\n else {\n return result;\n }\n }\n };\n _ParseAST.prototype.parsePrimary = function () {\n var start = this.inputIndex;\n if (this.optionalCharacter($LPAREN)) {\n this.rparensExpected++;\n var result = this.parsePipe();\n this.rparensExpected--;\n this.expectCharacter($RPAREN);\n return result;\n }\n else if (this.next.isKeywordNull()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), null);\n }\n else if (this.next.isKeywordUndefined()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), void 0);\n }\n else if (this.next.isKeywordTrue()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), true);\n }\n else if (this.next.isKeywordFalse()) {\n this.advance();\n return new LiteralPrimitive(this.span(start), false);\n }\n else if (this.next.isKeywordThis()) {\n this.advance();\n return new ImplicitReceiver(this.span(start));\n }\n else if (this.optionalCharacter($LBRACKET)) {\n this.rbracketsExpected++;\n var elements = this.parseExpressionList($RBRACKET);\n this.rbracketsExpected--;\n this.expectCharacter($RBRACKET);\n return new LiteralArray(this.span(start), elements);\n }\n else if (this.next.isCharacter($LBRACE)) {\n return this.parseLiteralMap();\n }\n else if (this.next.isIdentifier()) {\n return this.parseAccessMemberOrMethodCall(new ImplicitReceiver(this.span(start)), false);\n }\n else if (this.next.isNumber()) {\n var value = this.next.toNumber();\n this.advance();\n return new LiteralPrimitive(this.span(start), value);\n }\n else if (this.next.isString()) {\n var literalValue = this.next.toString();\n this.advance();\n return new LiteralPrimitive(this.span(start), literalValue);\n }\n else if (this.index >= this.tokens.length) {\n this.error(\"Unexpected end of expression: \" + this.input);\n return new EmptyExpr(this.span(start));\n }\n else {\n this.error(\"Unexpected token \" + this.next);\n return new EmptyExpr(this.span(start));\n }\n };\n _ParseAST.prototype.parseExpressionList = function (terminator) {\n var result = [];\n if (!this.next.isCharacter(terminator)) {\n do {\n result.push(this.parsePipe());\n } while (this.optionalCharacter($COMMA));\n }\n return result;\n };\n _ParseAST.prototype.parseLiteralMap = function () {\n var keys = [];\n var values = [];\n var start = this.inputIndex;\n this.expectCharacter($LBRACE);\n if (!this.optionalCharacter($RBRACE)) {\n this.rbracesExpected++;\n do {\n var key = this.expectIdentifierOrKeywordOrString();\n keys.push(key);\n this.expectCharacter($COLON);\n values.push(this.parsePipe());\n } while (this.optionalCharacter($COMMA));\n this.rbracesExpected--;\n this.expectCharacter($RBRACE);\n }\n return new LiteralMap(this.span(start), keys, values);\n };\n _ParseAST.prototype.parseAccessMemberOrMethodCall = function (receiver, isSafe) {\n if (isSafe === void 0) { isSafe = false; }\n var start = receiver.span.start;\n var id = this.expectIdentifierOrKeyword();\n if (this.optionalCharacter($LPAREN)) {\n this.rparensExpected++;\n var args = this.parseCallArguments();\n this.expectCharacter($RPAREN);\n this.rparensExpected--;\n var span = this.span(start);\n return isSafe ? new SafeMethodCall(span, receiver, id, args) :\n new MethodCall(span, receiver, id, args);\n }\n else {\n if (isSafe) {\n if (this.optionalOperator('=')) {\n this.error('The \\'?.\\' operator cannot be used in the assignment');\n return new EmptyExpr(this.span(start));\n }\n else {\n return new SafePropertyRead(this.span(start), receiver, id);\n }\n }\n else {\n if (this.optionalOperator('=')) {\n if (!this.parseAction) {\n this.error('Bindings cannot contain assignments');\n return new EmptyExpr(this.span(start));\n }\n var value = this.parseConditional();\n return new PropertyWrite(this.span(start), receiver, id, value);\n }\n else {\n return new PropertyRead(this.span(start), receiver, id);\n }\n }\n }\n };\n _ParseAST.prototype.parseCallArguments = function () {\n if (this.next.isCharacter($RPAREN))\n return [];\n var positionals = [];\n do {\n positionals.push(this.parsePipe());\n } while (this.optionalCharacter($COMMA));\n return positionals;\n };\n /**\n * An identifier, a keyword, a string with an optional `-` inbetween.\n */\n _ParseAST.prototype.expectTemplateBindingKey = function () {\n var result = '';\n var operatorFound = false;\n do {\n result += this.expectIdentifierOrKeywordOrString();\n operatorFound = this.optionalOperator('-');\n if (operatorFound) {\n result += '-';\n }\n } while (operatorFound);\n return result.toString();\n };\n _ParseAST.prototype.parseTemplateBindings = function () {\n var bindings = [];\n var prefix = null;\n var warnings = [];\n while (this.index < this.tokens.length) {\n var keyIsVar = this.peekKeywordLet();\n if (keyIsVar) {\n this.advance();\n }\n var key = this.expectTemplateBindingKey();\n if (!keyIsVar) {\n if (prefix == null) {\n prefix = key;\n }\n else {\n key = prefix + key[0].toUpperCase() + key.substring(1);\n }\n }\n this.optionalCharacter($COLON);\n var name = null;\n var expression = null;\n if (keyIsVar) {\n if (this.optionalOperator('=')) {\n name = this.expectTemplateBindingKey();\n }\n else {\n name = '\\$implicit';\n }\n }\n else if (this.next !== EOF && !this.peekKeywordLet()) {\n var start = this.inputIndex;\n var ast = this.parsePipe();\n var source = this.input.substring(start, this.inputIndex);\n expression = new ASTWithSource(ast, source, this.location, this.errors);\n }\n bindings.push(new TemplateBinding(key, keyIsVar, name, expression));\n if (!this.optionalCharacter($SEMICOLON)) {\n this.optionalCharacter($COMMA);\n }\n }\n return new TemplateBindingParseResult(bindings, warnings, this.errors);\n };\n _ParseAST.prototype.error = function (message, index) {\n if (index === void 0) { index = null; }\n this.errors.push(new ParserError(message, this.input, this.locationText(index), this.location));\n this.skip();\n };\n _ParseAST.prototype.locationText = function (index) {\n if (index === void 0) { index = null; }\n if (isBlank(index))\n index = this.index;\n return (index < this.tokens.length) ? \"at column \" + (this.tokens[index].index + 1) + \" in\" :\n \"at the end of the expression\";\n };\n // Error recovery should skip tokens until it encounters a recovery point. skip() treats\n // the end of input and a ';' as unconditionally a recovery point. It also treats ')',\n // '}' and ']' as conditional recovery points if one of calling productions is expecting\n // one of these symbols. This allows skip() to recover from errors such as '(a.) + 1' allowing\n // more of the AST to be retained (it doesn't skip any tokens as the ')' is retained because\n // of the '(' begins an '(' <expr> ')' production). The recovery points of grouping symbols\n // must be conditional as they must be skipped if none of the calling productions are not\n // expecting the closing token else we will never make progress in the case of an\n // extraneous group closing symbol (such as a stray ')'). This is not the case for ';' because\n // parseChain() is always the root production and it expects a ';'.\n // If a production expects one of these token it increments the corresponding nesting count,\n // and then decrements it just prior to checking if the token is in the input.\n _ParseAST.prototype.skip = function () {\n var n = this.next;\n while (this.index < this.tokens.length && !n.isCharacter($SEMICOLON) &&\n (this.rparensExpected <= 0 || !n.isCharacter($RPAREN)) &&\n (this.rbracesExpected <= 0 || !n.isCharacter($RBRACE)) &&\n (this.rbracketsExpected <= 0 || !n.isCharacter($RBRACKET))) {\n if (this.next.isError()) {\n this.errors.push(new ParserError(this.next.toString(), this.input, this.locationText(), this.location));\n }\n this.advance();\n n = this.next;\n }\n };\n return _ParseAST;\n }());\n var SimpleExpressionChecker = (function () {\n function SimpleExpressionChecker() {\n this.simple = true;\n }\n SimpleExpressionChecker.check = function (ast) {\n var s = new SimpleExpressionChecker();\n ast.visit(s);\n return s.simple;\n };\n SimpleExpressionChecker.prototype.visitImplicitReceiver = function (ast, context) { };\n SimpleExpressionChecker.prototype.visitInterpolation = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitLiteralPrimitive = function (ast, context) { };\n SimpleExpressionChecker.prototype.visitPropertyRead = function (ast, context) { };\n SimpleExpressionChecker.prototype.visitPropertyWrite = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitSafePropertyRead = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitMethodCall = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitSafeMethodCall = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitFunctionCall = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitLiteralArray = function (ast, context) { this.visitAll(ast.expressions); };\n SimpleExpressionChecker.prototype.visitLiteralMap = function (ast, context) { this.visitAll(ast.values); };\n SimpleExpressionChecker.prototype.visitBinary = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitPrefixNot = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitConditional = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitPipe = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitKeyedRead = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitKeyedWrite = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitAll = function (asts) {\n var _this = this;\n return asts.map(function (node) { return node.visit(_this); });\n };\n SimpleExpressionChecker.prototype.visitChain = function (ast, context) { this.simple = false; };\n SimpleExpressionChecker.prototype.visitQuote = function (ast, context) { this.simple = false; };\n return SimpleExpressionChecker;\n }());\n\n var ParseLocation = (function () {\n function ParseLocation(file, offset, line, col) {\n this.file = file;\n this.offset = offset;\n this.line = line;\n this.col = col;\n }\n ParseLocation.prototype.toString = function () {\n return isPresent(this.offset) ? this.file.url + \"@\" + this.line + \":\" + this.col : this.file.url;\n };\n return ParseLocation;\n }());\n var ParseSourceFile = (function () {\n function ParseSourceFile(content, url) {\n this.content = content;\n this.url = url;\n }\n return ParseSourceFile;\n }());\n var ParseSourceSpan = (function () {\n function ParseSourceSpan(start, end, details) {\n if (details === void 0) { details = null; }\n this.start = start;\n this.end = end;\n this.details = details;\n }\n ParseSourceSpan.prototype.toString = function () {\n return this.start.file.content.substring(this.start.offset, this.end.offset);\n };\n return ParseSourceSpan;\n }());\n var ParseErrorLevel;\n (function (ParseErrorLevel) {\n ParseErrorLevel[ParseErrorLevel[\"WARNING\"] = 0] = \"WARNING\";\n ParseErrorLevel[ParseErrorLevel[\"FATAL\"] = 1] = \"FATAL\";\n })(ParseErrorLevel || (ParseErrorLevel = {}));\n var ParseError = (function () {\n function ParseError(span, msg, level) {\n if (level === void 0) { level = ParseErrorLevel.FATAL; }\n this.span = span;\n this.msg = msg;\n this.level = level;\n }\n ParseError.prototype.toString = function () {\n var source = this.span.start.file.content;\n var ctxStart = this.span.start.offset;\n var contextStr = '';\n var details = '';\n if (isPresent(ctxStart)) {\n if (ctxStart > source.length - 1) {\n ctxStart = source.length - 1;\n }\n var ctxEnd = ctxStart;\n var ctxLen = 0;\n var ctxLines = 0;\n while (ctxLen < 100 && ctxStart > 0) {\n ctxStart--;\n ctxLen++;\n if (source[ctxStart] == '\\n') {\n if (++ctxLines == 3) {\n break;\n }\n }\n }\n ctxLen = 0;\n ctxLines = 0;\n while (ctxLen < 100 && ctxEnd < source.length - 1) {\n ctxEnd++;\n ctxLen++;\n if (source[ctxEnd] == '\\n') {\n if (++ctxLines == 3) {\n break;\n }\n }\n }\n var context = source.substring(ctxStart, this.span.start.offset) + '[ERROR ->]' +\n source.substring(this.span.start.offset, ctxEnd + 1);\n contextStr = \" (\\\"\" + context + \"\\\")\";\n }\n if (this.span.details) {\n details = \", \" + this.span.details;\n }\n return \"\" + this.msg + contextStr + \": \" + this.span.start + details;\n };\n return ParseError;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var Text = (function () {\n function Text(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n Text.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\n return Text;\n }());\n var Expansion = (function () {\n function Expansion(switchValue, type, cases, sourceSpan, switchValueSourceSpan) {\n this.switchValue = switchValue;\n this.type = type;\n this.cases = cases;\n this.sourceSpan = sourceSpan;\n this.switchValueSourceSpan = switchValueSourceSpan;\n }\n Expansion.prototype.visit = function (visitor, context) { return visitor.visitExpansion(this, context); };\n return Expansion;\n }());\n var ExpansionCase = (function () {\n function ExpansionCase(value, expression, sourceSpan, valueSourceSpan, expSourceSpan) {\n this.value = value;\n this.expression = expression;\n this.sourceSpan = sourceSpan;\n this.valueSourceSpan = valueSourceSpan;\n this.expSourceSpan = expSourceSpan;\n }\n ExpansionCase.prototype.visit = function (visitor, context) { return visitor.visitExpansionCase(this, context); };\n return ExpansionCase;\n }());\n var Attribute = (function () {\n function Attribute(name, value, sourceSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n Attribute.prototype.visit = function (visitor, context) { return visitor.visitAttribute(this, context); };\n return Attribute;\n }());\n var Element = (function () {\n function Element(name, attrs, children, sourceSpan, startSourceSpan, endSourceSpan) {\n this.name = name;\n this.attrs = attrs;\n this.children = children;\n this.sourceSpan = sourceSpan;\n this.startSourceSpan = startSourceSpan;\n this.endSourceSpan = endSourceSpan;\n }\n Element.prototype.visit = function (visitor, context) { return visitor.visitElement(this, context); };\n return Element;\n }());\n var Comment = (function () {\n function Comment(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n Comment.prototype.visit = function (visitor, context) { return visitor.visitComment(this, context); };\n return Comment;\n }());\n function visitAll(visitor, nodes, context) {\n if (context === void 0) { context = null; }\n var result = [];\n nodes.forEach(function (ast) {\n var astResult = ast.visit(visitor, context);\n if (astResult) {\n result.push(astResult);\n }\n });\n return result;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var TagContentType;\n (function (TagContentType) {\n TagContentType[TagContentType[\"RAW_TEXT\"] = 0] = \"RAW_TEXT\";\n TagContentType[TagContentType[\"ESCAPABLE_RAW_TEXT\"] = 1] = \"ESCAPABLE_RAW_TEXT\";\n TagContentType[TagContentType[\"PARSABLE_DATA\"] = 2] = \"PARSABLE_DATA\";\n })(TagContentType || (TagContentType = {}));\n function splitNsName(elementName) {\n if (elementName[0] != ':') {\n return [null, elementName];\n }\n var colonIndex = elementName.indexOf(':', 1);\n if (colonIndex == -1) {\n throw new Error(\"Unsupported format \\\"\" + elementName + \"\\\" expecting \\\":namespace:name\\\"\");\n }\n return [elementName.slice(1, colonIndex), elementName.slice(colonIndex + 1)];\n }\n function getNsPrefix(fullName) {\n return fullName === null ? null : splitNsName(fullName)[0];\n }\n function mergeNsAndName(prefix, localName) {\n return prefix ? \":\" + prefix + \":\" + localName : localName;\n }\n // see http://www.w3.org/TR/html51/syntax.html#named-character-references\n // see https://html.spec.whatwg.org/multipage/entities.json\n // This list is not exhaustive to keep the compiler footprint low.\n // The `{` / `ƫ` syntax should be used when the named character reference does not exist.\n var NAMED_ENTITIES = {\n 'Aacute': '\\u00C1',\n 'aacute': '\\u00E1',\n 'Acirc': '\\u00C2',\n 'acirc': '\\u00E2',\n 'acute': '\\u00B4',\n 'AElig': '\\u00C6',\n 'aelig': '\\u00E6',\n 'Agrave': '\\u00C0',\n 'agrave': '\\u00E0',\n 'alefsym': '\\u2135',\n 'Alpha': '\\u0391',\n 'alpha': '\\u03B1',\n 'amp': '&',\n 'and': '\\u2227',\n 'ang': '\\u2220',\n 'apos': '\\u0027',\n 'Aring': '\\u00C5',\n 'aring': '\\u00E5',\n 'asymp': '\\u2248',\n 'Atilde': '\\u00C3',\n 'atilde': '\\u00E3',\n 'Auml': '\\u00C4',\n 'auml': '\\u00E4',\n 'bdquo': '\\u201E',\n 'Beta': '\\u0392',\n 'beta': '\\u03B2',\n 'brvbar': '\\u00A6',\n 'bull': '\\u2022',\n 'cap': '\\u2229',\n 'Ccedil': '\\u00C7',\n 'ccedil': '\\u00E7',\n 'cedil': '\\u00B8',\n 'cent': '\\u00A2',\n 'Chi': '\\u03A7',\n 'chi': '\\u03C7',\n 'circ': '\\u02C6',\n 'clubs': '\\u2663',\n 'cong': '\\u2245',\n 'copy': '\\u00A9',\n 'crarr': '\\u21B5',\n 'cup': '\\u222A',\n 'curren': '\\u00A4',\n 'dagger': '\\u2020',\n 'Dagger': '\\u2021',\n 'darr': '\\u2193',\n 'dArr': '\\u21D3',\n 'deg': '\\u00B0',\n 'Delta': '\\u0394',\n 'delta': '\\u03B4',\n 'diams': '\\u2666',\n 'divide': '\\u00F7',\n 'Eacute': '\\u00C9',\n 'eacute': '\\u00E9',\n 'Ecirc': '\\u00CA',\n 'ecirc': '\\u00EA',\n 'Egrave': '\\u00C8',\n 'egrave': '\\u00E8',\n 'empty': '\\u2205',\n 'emsp': '\\u2003',\n 'ensp': '\\u2002',\n 'Epsilon': '\\u0395',\n 'epsilon': '\\u03B5',\n 'equiv': '\\u2261',\n 'Eta': '\\u0397',\n 'eta': '\\u03B7',\n 'ETH': '\\u00D0',\n 'eth': '\\u00F0',\n 'Euml': '\\u00CB',\n 'euml': '\\u00EB',\n 'euro': '\\u20AC',\n 'exist': '\\u2203',\n 'fnof': '\\u0192',\n 'forall': '\\u2200',\n 'frac12': '\\u00BD',\n 'frac14': '\\u00BC',\n 'frac34': '\\u00BE',\n 'frasl': '\\u2044',\n 'Gamma': '\\u0393',\n 'gamma': '\\u03B3',\n 'ge': '\\u2265',\n 'gt': '>',\n 'harr': '\\u2194',\n 'hArr': '\\u21D4',\n 'hearts': '\\u2665',\n 'hellip': '\\u2026',\n 'Iacute': '\\u00CD',\n 'iacute': '\\u00ED',\n 'Icirc': '\\u00CE',\n 'icirc': '\\u00EE',\n 'iexcl': '\\u00A1',\n 'Igrave': '\\u00CC',\n 'igrave': '\\u00EC',\n 'image': '\\u2111',\n 'infin': '\\u221E',\n 'int': '\\u222B',\n 'Iota': '\\u0399',\n 'iota': '\\u03B9',\n 'iquest': '\\u00BF',\n 'isin': '\\u2208',\n 'Iuml': '\\u00CF',\n 'iuml': '\\u00EF',\n 'Kappa': '\\u039A',\n 'kappa': '\\u03BA',\n 'Lambda': '\\u039B',\n 'lambda': '\\u03BB',\n 'lang': '\\u27E8',\n 'laquo': '\\u00AB',\n 'larr': '\\u2190',\n 'lArr': '\\u21D0',\n 'lceil': '\\u2308',\n 'ldquo': '\\u201C',\n 'le': '\\u2264',\n 'lfloor': '\\u230A',\n 'lowast': '\\u2217',\n 'loz': '\\u25CA',\n 'lrm': '\\u200E',\n 'lsaquo': '\\u2039',\n 'lsquo': '\\u2018',\n 'lt': '<',\n 'macr': '\\u00AF',\n 'mdash': '\\u2014',\n 'micro': '\\u00B5',\n 'middot': '\\u00B7',\n 'minus': '\\u2212',\n 'Mu': '\\u039C',\n 'mu': '\\u03BC',\n 'nabla': '\\u2207',\n 'nbsp': '\\u00A0',\n 'ndash': '\\u2013',\n 'ne': '\\u2260',\n 'ni': '\\u220B',\n 'not': '\\u00AC',\n 'notin': '\\u2209',\n 'nsub': '\\u2284',\n 'Ntilde': '\\u00D1',\n 'ntilde': '\\u00F1',\n 'Nu': '\\u039D',\n 'nu': '\\u03BD',\n 'Oacute': '\\u00D3',\n 'oacute': '\\u00F3',\n 'Ocirc': '\\u00D4',\n 'ocirc': '\\u00F4',\n 'OElig': '\\u0152',\n 'oelig': '\\u0153',\n 'Ograve': '\\u00D2',\n 'ograve': '\\u00F2',\n 'oline': '\\u203E',\n 'Omega': '\\u03A9',\n 'omega': '\\u03C9',\n 'Omicron': '\\u039F',\n 'omicron': '\\u03BF',\n 'oplus': '\\u2295',\n 'or': '\\u2228',\n 'ordf': '\\u00AA',\n 'ordm': '\\u00BA',\n 'Oslash': '\\u00D8',\n 'oslash': '\\u00F8',\n 'Otilde': '\\u00D5',\n 'otilde': '\\u00F5',\n 'otimes': '\\u2297',\n 'Ouml': '\\u00D6',\n 'ouml': '\\u00F6',\n 'para': '\\u00B6',\n 'permil': '\\u2030',\n 'perp': '\\u22A5',\n 'Phi': '\\u03A6',\n 'phi': '\\u03C6',\n 'Pi': '\\u03A0',\n 'pi': '\\u03C0',\n 'piv': '\\u03D6',\n 'plusmn': '\\u00B1',\n 'pound': '\\u00A3',\n 'prime': '\\u2032',\n 'Prime': '\\u2033',\n 'prod': '\\u220F',\n 'prop': '\\u221D',\n 'Psi': '\\u03A8',\n 'psi': '\\u03C8',\n 'quot': '\\u0022',\n 'radic': '\\u221A',\n 'rang': '\\u27E9',\n 'raquo': '\\u00BB',\n 'rarr': '\\u2192',\n 'rArr': '\\u21D2',\n 'rceil': '\\u2309',\n 'rdquo': '\\u201D',\n 'real': '\\u211C',\n 'reg': '\\u00AE',\n 'rfloor': '\\u230B',\n 'Rho': '\\u03A1',\n 'rho': '\\u03C1',\n 'rlm': '\\u200F',\n 'rsaquo': '\\u203A',\n 'rsquo': '\\u2019',\n 'sbquo': '\\u201A',\n 'Scaron': '\\u0160',\n 'scaron': '\\u0161',\n 'sdot': '\\u22C5',\n 'sect': '\\u00A7',\n 'shy': '\\u00AD',\n 'Sigma': '\\u03A3',\n 'sigma': '\\u03C3',\n 'sigmaf': '\\u03C2',\n 'sim': '\\u223C',\n 'spades': '\\u2660',\n 'sub': '\\u2282',\n 'sube': '\\u2286',\n 'sum': '\\u2211',\n 'sup': '\\u2283',\n 'sup1': '\\u00B9',\n 'sup2': '\\u00B2',\n 'sup3': '\\u00B3',\n 'supe': '\\u2287',\n 'szlig': '\\u00DF',\n 'Tau': '\\u03A4',\n 'tau': '\\u03C4',\n 'there4': '\\u2234',\n 'Theta': '\\u0398',\n 'theta': '\\u03B8',\n 'thetasym': '\\u03D1',\n 'thinsp': '\\u2009',\n 'THORN': '\\u00DE',\n 'thorn': '\\u00FE',\n 'tilde': '\\u02DC',\n 'times': '\\u00D7',\n 'trade': '\\u2122',\n 'Uacute': '\\u00DA',\n 'uacute': '\\u00FA',\n 'uarr': '\\u2191',\n 'uArr': '\\u21D1',\n 'Ucirc': '\\u00DB',\n 'ucirc': '\\u00FB',\n 'Ugrave': '\\u00D9',\n 'ugrave': '\\u00F9',\n 'uml': '\\u00A8',\n 'upsih': '\\u03D2',\n 'Upsilon': '\\u03A5',\n 'upsilon': '\\u03C5',\n 'Uuml': '\\u00DC',\n 'uuml': '\\u00FC',\n 'weierp': '\\u2118',\n 'Xi': '\\u039E',\n 'xi': '\\u03BE',\n 'Yacute': '\\u00DD',\n 'yacute': '\\u00FD',\n 'yen': '\\u00A5',\n 'yuml': '\\u00FF',\n 'Yuml': '\\u0178',\n 'Zeta': '\\u0396',\n 'zeta': '\\u03B6',\n 'zwj': '\\u200D',\n 'zwnj': '\\u200C',\n };\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$5 = (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 };\n var TokenType$1;\n (function (TokenType) {\n TokenType[TokenType[\"TAG_OPEN_START\"] = 0] = \"TAG_OPEN_START\";\n TokenType[TokenType[\"TAG_OPEN_END\"] = 1] = \"TAG_OPEN_END\";\n TokenType[TokenType[\"TAG_OPEN_END_VOID\"] = 2] = \"TAG_OPEN_END_VOID\";\n TokenType[TokenType[\"TAG_CLOSE\"] = 3] = \"TAG_CLOSE\";\n TokenType[TokenType[\"TEXT\"] = 4] = \"TEXT\";\n TokenType[TokenType[\"ESCAPABLE_RAW_TEXT\"] = 5] = \"ESCAPABLE_RAW_TEXT\";\n TokenType[TokenType[\"RAW_TEXT\"] = 6] = \"RAW_TEXT\";\n TokenType[TokenType[\"COMMENT_START\"] = 7] = \"COMMENT_START\";\n TokenType[TokenType[\"COMMENT_END\"] = 8] = \"COMMENT_END\";\n TokenType[TokenType[\"CDATA_START\"] = 9] = \"CDATA_START\";\n TokenType[TokenType[\"CDATA_END\"] = 10] = \"CDATA_END\";\n TokenType[TokenType[\"ATTR_NAME\"] = 11] = \"ATTR_NAME\";\n TokenType[TokenType[\"ATTR_VALUE\"] = 12] = \"ATTR_VALUE\";\n TokenType[TokenType[\"DOC_TYPE\"] = 13] = \"DOC_TYPE\";\n TokenType[TokenType[\"EXPANSION_FORM_START\"] = 14] = \"EXPANSION_FORM_START\";\n TokenType[TokenType[\"EXPANSION_CASE_VALUE\"] = 15] = \"EXPANSION_CASE_VALUE\";\n TokenType[TokenType[\"EXPANSION_CASE_EXP_START\"] = 16] = \"EXPANSION_CASE_EXP_START\";\n TokenType[TokenType[\"EXPANSION_CASE_EXP_END\"] = 17] = \"EXPANSION_CASE_EXP_END\";\n TokenType[TokenType[\"EXPANSION_FORM_END\"] = 18] = \"EXPANSION_FORM_END\";\n TokenType[TokenType[\"EOF\"] = 19] = \"EOF\";\n })(TokenType$1 || (TokenType$1 = {}));\n var Token$1 = (function () {\n function Token(type, parts, sourceSpan) {\n this.type = type;\n this.parts = parts;\n this.sourceSpan = sourceSpan;\n }\n return Token;\n }());\n var TokenError = (function (_super) {\n __extends$5(TokenError, _super);\n function TokenError(errorMsg, tokenType, span) {\n _super.call(this, span, errorMsg);\n this.tokenType = tokenType;\n }\n return TokenError;\n }(ParseError));\n var TokenizeResult = (function () {\n function TokenizeResult(tokens, errors) {\n this.tokens = tokens;\n this.errors = errors;\n }\n return TokenizeResult;\n }());\n function tokenize(source, url, getTagDefinition, tokenizeExpansionForms, interpolationConfig) {\n if (tokenizeExpansionForms === void 0) { tokenizeExpansionForms = false; }\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n return new _Tokenizer(new ParseSourceFile(source, url), getTagDefinition, tokenizeExpansionForms, interpolationConfig)\n .tokenize();\n }\n var _CR_OR_CRLF_REGEXP = /\\r\\n?/g;\n function _unexpectedCharacterErrorMsg(charCode) {\n var char = charCode === $EOF ? 'EOF' : String.fromCharCode(charCode);\n return \"Unexpected character \\\"\" + char + \"\\\"\";\n }\n function _unknownEntityErrorMsg(entitySrc) {\n return \"Unknown entity \\\"\" + entitySrc + \"\\\" - use the \\\"&#<decimal>;\\\" or \\\"&#x<hex>;\\\" syntax\";\n }\n var _ControlFlowError = (function () {\n function _ControlFlowError(error) {\n this.error = error;\n }\n return _ControlFlowError;\n }());\n // See http://www.w3.org/TR/html51/syntax.html#writing\n var _Tokenizer = (function () {\n /**\n * @param _file The html source\n * @param _getTagDefinition\n * @param _tokenizeIcu Whether to tokenize ICU messages (considered as text nodes when false)\n * @param _interpolationConfig\n */\n function _Tokenizer(_file, _getTagDefinition, _tokenizeIcu, _interpolationConfig) {\n if (_interpolationConfig === void 0) { _interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n this._file = _file;\n this._getTagDefinition = _getTagDefinition;\n this._tokenizeIcu = _tokenizeIcu;\n this._interpolationConfig = _interpolationConfig;\n // Note: this is always lowercase!\n this._peek = -1;\n this._nextPeek = -1;\n this._index = -1;\n this._line = 0;\n this._column = -1;\n this._expansionCaseStack = [];\n this._inInterpolation = false;\n this.tokens = [];\n this.errors = [];\n this._input = _file.content;\n this._length = _file.content.length;\n this._advance();\n }\n _Tokenizer.prototype._processCarriageReturns = function (content) {\n // http://www.w3.org/TR/html5/syntax.html#preprocessing-the-input-stream\n // In order to keep the original position in the source, we can not\n // pre-process it.\n // Instead CRs are processed right before instantiating the tokens.\n return content.replace(_CR_OR_CRLF_REGEXP, '\\n');\n };\n _Tokenizer.prototype.tokenize = function () {\n while (this._peek !== $EOF) {\n var start = this._getLocation();\n try {\n if (this._attemptCharCode($LT)) {\n if (this._attemptCharCode($BANG)) {\n if (this._attemptCharCode($LBRACKET)) {\n this._consumeCdata(start);\n }\n else if (this._attemptCharCode($MINUS)) {\n this._consumeComment(start);\n }\n else {\n this._consumeDocType(start);\n }\n }\n else if (this._attemptCharCode($SLASH)) {\n this._consumeTagClose(start);\n }\n else {\n this._consumeTagOpen(start);\n }\n }\n else if (!this._tokenizeIcu || !this._tokenizeExpansionForm()) {\n this._consumeText();\n }\n }\n catch (e) {\n if (e instanceof _ControlFlowError) {\n this.errors.push(e.error);\n }\n else {\n throw e;\n }\n }\n }\n this._beginToken(TokenType$1.EOF);\n this._endToken([]);\n return new TokenizeResult(mergeTextTokens(this.tokens), this.errors);\n };\n /**\n * @returns {boolean} whether an ICU token has been created\n * @internal\n */\n _Tokenizer.prototype._tokenizeExpansionForm = function () {\n if (isExpansionFormStart(this._input, this._index, this._interpolationConfig)) {\n this._consumeExpansionFormStart();\n return true;\n }\n if (isExpansionCaseStart(this._peek) && this._isInExpansionForm()) {\n this._consumeExpansionCaseStart();\n return true;\n }\n if (this._peek === $RBRACE) {\n if (this._isInExpansionCase()) {\n this._consumeExpansionCaseEnd();\n return true;\n }\n if (this._isInExpansionForm()) {\n this._consumeExpansionFormEnd();\n return true;\n }\n }\n return false;\n };\n _Tokenizer.prototype._getLocation = function () {\n return new ParseLocation(this._file, this._index, this._line, this._column);\n };\n _Tokenizer.prototype._getSpan = function (start, end) {\n if (start === void 0) { start = this._getLocation(); }\n if (end === void 0) { end = this._getLocation(); }\n return new ParseSourceSpan(start, end);\n };\n _Tokenizer.prototype._beginToken = function (type, start) {\n if (start === void 0) { start = this._getLocation(); }\n this._currentTokenStart = start;\n this._currentTokenType = type;\n };\n _Tokenizer.prototype._endToken = function (parts, end) {\n if (end === void 0) { end = this._getLocation(); }\n var token = new Token$1(this._currentTokenType, parts, new ParseSourceSpan(this._currentTokenStart, end));\n this.tokens.push(token);\n this._currentTokenStart = null;\n this._currentTokenType = null;\n return token;\n };\n _Tokenizer.prototype._createError = function (msg, span) {\n if (this._isInExpansionForm()) {\n msg += \" (Do you have an unescaped \\\"{\\\" in your template? Use \\\"{{ '{' }}\\\") to escape it.)\";\n }\n var error = new TokenError(msg, this._currentTokenType, span);\n this._currentTokenStart = null;\n this._currentTokenType = null;\n return new _ControlFlowError(error);\n };\n _Tokenizer.prototype._advance = function () {\n if (this._index >= this._length) {\n throw this._createError(_unexpectedCharacterErrorMsg($EOF), this._getSpan());\n }\n if (this._peek === $LF) {\n this._line++;\n this._column = 0;\n }\n else if (this._peek !== $LF && this._peek !== $CR) {\n this._column++;\n }\n this._index++;\n this._peek = this._index >= this._length ? $EOF : this._input.charCodeAt(this._index);\n this._nextPeek =\n this._index + 1 >= this._length ? $EOF : this._input.charCodeAt(this._index + 1);\n };\n _Tokenizer.prototype._attemptCharCode = function (charCode) {\n if (this._peek === charCode) {\n this._advance();\n return true;\n }\n return false;\n };\n _Tokenizer.prototype._attemptCharCodeCaseInsensitive = function (charCode) {\n if (compareCharCodeCaseInsensitive(this._peek, charCode)) {\n this._advance();\n return true;\n }\n return false;\n };\n _Tokenizer.prototype._requireCharCode = function (charCode) {\n var location = this._getLocation();\n if (!this._attemptCharCode(charCode)) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan(location, location));\n }\n };\n _Tokenizer.prototype._attemptStr = function (chars) {\n var len = chars.length;\n if (this._index + len > this._length) {\n return false;\n }\n var initialPosition = this._savePosition();\n for (var i = 0; i < len; i++) {\n if (!this._attemptCharCode(chars.charCodeAt(i))) {\n // If attempting to parse the string fails, we want to reset the parser\n // to where it was before the attempt\n this._restorePosition(initialPosition);\n return false;\n }\n }\n return true;\n };\n _Tokenizer.prototype._attemptStrCaseInsensitive = function (chars) {\n for (var i = 0; i < chars.length; i++) {\n if (!this._attemptCharCodeCaseInsensitive(chars.charCodeAt(i))) {\n return false;\n }\n }\n return true;\n };\n _Tokenizer.prototype._requireStr = function (chars) {\n var location = this._getLocation();\n if (!this._attemptStr(chars)) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan(location));\n }\n };\n _Tokenizer.prototype._attemptCharCodeUntilFn = function (predicate) {\n while (!predicate(this._peek)) {\n this._advance();\n }\n };\n _Tokenizer.prototype._requireCharCodeUntilFn = function (predicate, len) {\n var start = this._getLocation();\n this._attemptCharCodeUntilFn(predicate);\n if (this._index - start.offset < len) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan(start, start));\n }\n };\n _Tokenizer.prototype._attemptUntilChar = function (char) {\n while (this._peek !== char) {\n this._advance();\n }\n };\n _Tokenizer.prototype._readChar = function (decodeEntities) {\n if (decodeEntities && this._peek === $AMPERSAND) {\n return this._decodeEntity();\n }\n else {\n var index = this._index;\n this._advance();\n return this._input[index];\n }\n };\n _Tokenizer.prototype._decodeEntity = function () {\n var start = this._getLocation();\n this._advance();\n if (this._attemptCharCode($HASH)) {\n var isHex = this._attemptCharCode($x) || this._attemptCharCode($X);\n var numberStart = this._getLocation().offset;\n this._attemptCharCodeUntilFn(isDigitEntityEnd);\n if (this._peek != $SEMICOLON) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan());\n }\n this._advance();\n var strNum = this._input.substring(numberStart, this._index - 1);\n try {\n var charCode = parseInt(strNum, isHex ? 16 : 10);\n return String.fromCharCode(charCode);\n }\n catch (e) {\n var entity = this._input.substring(start.offset + 1, this._index - 1);\n throw this._createError(_unknownEntityErrorMsg(entity), this._getSpan(start));\n }\n }\n else {\n var startPosition = this._savePosition();\n this._attemptCharCodeUntilFn(isNamedEntityEnd);\n if (this._peek != $SEMICOLON) {\n this._restorePosition(startPosition);\n return '&';\n }\n this._advance();\n var name_1 = this._input.substring(start.offset + 1, this._index - 1);\n var char = NAMED_ENTITIES[name_1];\n if (!char) {\n throw this._createError(_unknownEntityErrorMsg(name_1), this._getSpan(start));\n }\n return char;\n }\n };\n _Tokenizer.prototype._consumeRawText = function (decodeEntities, firstCharOfEnd, attemptEndRest) {\n var tagCloseStart;\n var textStart = this._getLocation();\n this._beginToken(decodeEntities ? TokenType$1.ESCAPABLE_RAW_TEXT : TokenType$1.RAW_TEXT, textStart);\n var parts = [];\n while (true) {\n tagCloseStart = this._getLocation();\n if (this._attemptCharCode(firstCharOfEnd) && attemptEndRest()) {\n break;\n }\n if (this._index > tagCloseStart.offset) {\n // add the characters consumed by the previous if statement to the output\n parts.push(this._input.substring(tagCloseStart.offset, this._index));\n }\n while (this._peek !== firstCharOfEnd) {\n parts.push(this._readChar(decodeEntities));\n }\n }\n return this._endToken([this._processCarriageReturns(parts.join(''))], tagCloseStart);\n };\n _Tokenizer.prototype._consumeComment = function (start) {\n var _this = this;\n this._beginToken(TokenType$1.COMMENT_START, start);\n this._requireCharCode($MINUS);\n this._endToken([]);\n var textToken = this._consumeRawText(false, $MINUS, function () { return _this._attemptStr('->'); });\n this._beginToken(TokenType$1.COMMENT_END, textToken.sourceSpan.end);\n this._endToken([]);\n };\n _Tokenizer.prototype._consumeCdata = function (start) {\n var _this = this;\n this._beginToken(TokenType$1.CDATA_START, start);\n this._requireStr('CDATA[');\n this._endToken([]);\n var textToken = this._consumeRawText(false, $RBRACKET, function () { return _this._attemptStr(']>'); });\n this._beginToken(TokenType$1.CDATA_END, textToken.sourceSpan.end);\n this._endToken([]);\n };\n _Tokenizer.prototype._consumeDocType = function (start) {\n this._beginToken(TokenType$1.DOC_TYPE, start);\n this._attemptUntilChar($GT);\n this._advance();\n this._endToken([this._input.substring(start.offset + 2, this._index - 1)]);\n };\n _Tokenizer.prototype._consumePrefixAndName = function () {\n var nameOrPrefixStart = this._index;\n var prefix = null;\n while (this._peek !== $COLON && !isPrefixEnd(this._peek)) {\n this._advance();\n }\n var nameStart;\n if (this._peek === $COLON) {\n this._advance();\n prefix = this._input.substring(nameOrPrefixStart, this._index - 1);\n nameStart = this._index;\n }\n else {\n nameStart = nameOrPrefixStart;\n }\n this._requireCharCodeUntilFn(isNameEnd, this._index === nameStart ? 1 : 0);\n var name = this._input.substring(nameStart, this._index);\n return [prefix, name];\n };\n _Tokenizer.prototype._consumeTagOpen = function (start) {\n var savedPos = this._savePosition();\n var tagName;\n var lowercaseTagName;\n try {\n if (!isAsciiLetter(this._peek)) {\n throw this._createError(_unexpectedCharacterErrorMsg(this._peek), this._getSpan());\n }\n var nameStart = this._index;\n this._consumeTagOpenStart(start);\n tagName = this._input.substring(nameStart, this._index);\n lowercaseTagName = tagName.toLowerCase();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n while (this._peek !== $SLASH && this._peek !== $GT) {\n this._consumeAttributeName();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n if (this._attemptCharCode($EQ)) {\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._consumeAttributeValue();\n }\n this._attemptCharCodeUntilFn(isNotWhitespace);\n }\n this._consumeTagOpenEnd();\n }\n catch (e) {\n if (e instanceof _ControlFlowError) {\n // When the start tag is invalid, assume we want a \"<\"\n this._restorePosition(savedPos);\n // Back to back text tokens are merged at the end\n this._beginToken(TokenType$1.TEXT, start);\n this._endToken(['<']);\n return;\n }\n throw e;\n }\n var contentTokenType = this._getTagDefinition(tagName).contentType;\n if (contentTokenType === TagContentType.RAW_TEXT) {\n this._consumeRawTextWithTagClose(lowercaseTagName, false);\n }\n else if (contentTokenType === TagContentType.ESCAPABLE_RAW_TEXT) {\n this._consumeRawTextWithTagClose(lowercaseTagName, true);\n }\n };\n _Tokenizer.prototype._consumeRawTextWithTagClose = function (lowercaseTagName, decodeEntities) {\n var _this = this;\n var textToken = this._consumeRawText(decodeEntities, $LT, function () {\n if (!_this._attemptCharCode($SLASH))\n return false;\n _this._attemptCharCodeUntilFn(isNotWhitespace);\n if (!_this._attemptStrCaseInsensitive(lowercaseTagName))\n return false;\n _this._attemptCharCodeUntilFn(isNotWhitespace);\n return _this._attemptCharCode($GT);\n });\n this._beginToken(TokenType$1.TAG_CLOSE, textToken.sourceSpan.end);\n this._endToken([null, lowercaseTagName]);\n };\n _Tokenizer.prototype._consumeTagOpenStart = function (start) {\n this._beginToken(TokenType$1.TAG_OPEN_START, start);\n var parts = this._consumePrefixAndName();\n this._endToken(parts);\n };\n _Tokenizer.prototype._consumeAttributeName = function () {\n this._beginToken(TokenType$1.ATTR_NAME);\n var prefixAndName = this._consumePrefixAndName();\n this._endToken(prefixAndName);\n };\n _Tokenizer.prototype._consumeAttributeValue = function () {\n this._beginToken(TokenType$1.ATTR_VALUE);\n var value;\n if (this._peek === $SQ || this._peek === $DQ) {\n var quoteChar = this._peek;\n this._advance();\n var parts = [];\n while (this._peek !== quoteChar) {\n parts.push(this._readChar(true));\n }\n value = parts.join('');\n this._advance();\n }\n else {\n var valueStart = this._index;\n this._requireCharCodeUntilFn(isNameEnd, 1);\n value = this._input.substring(valueStart, this._index);\n }\n this._endToken([this._processCarriageReturns(value)]);\n };\n _Tokenizer.prototype._consumeTagOpenEnd = function () {\n var tokenType = this._attemptCharCode($SLASH) ? TokenType$1.TAG_OPEN_END_VOID : TokenType$1.TAG_OPEN_END;\n this._beginToken(tokenType);\n this._requireCharCode($GT);\n this._endToken([]);\n };\n _Tokenizer.prototype._consumeTagClose = function (start) {\n this._beginToken(TokenType$1.TAG_CLOSE, start);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n var prefixAndName = this._consumePrefixAndName();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._requireCharCode($GT);\n this._endToken(prefixAndName);\n };\n _Tokenizer.prototype._consumeExpansionFormStart = function () {\n this._beginToken(TokenType$1.EXPANSION_FORM_START, this._getLocation());\n this._requireCharCode($LBRACE);\n this._endToken([]);\n this._expansionCaseStack.push(TokenType$1.EXPANSION_FORM_START);\n this._beginToken(TokenType$1.RAW_TEXT, this._getLocation());\n var condition = this._readUntil($COMMA);\n this._endToken([condition], this._getLocation());\n this._requireCharCode($COMMA);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._beginToken(TokenType$1.RAW_TEXT, this._getLocation());\n var type = this._readUntil($COMMA);\n this._endToken([type], this._getLocation());\n this._requireCharCode($COMMA);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n };\n _Tokenizer.prototype._consumeExpansionCaseStart = function () {\n this._beginToken(TokenType$1.EXPANSION_CASE_VALUE, this._getLocation());\n var value = this._readUntil($LBRACE).trim();\n this._endToken([value], this._getLocation());\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._beginToken(TokenType$1.EXPANSION_CASE_EXP_START, this._getLocation());\n this._requireCharCode($LBRACE);\n this._endToken([], this._getLocation());\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._expansionCaseStack.push(TokenType$1.EXPANSION_CASE_EXP_START);\n };\n _Tokenizer.prototype._consumeExpansionCaseEnd = function () {\n this._beginToken(TokenType$1.EXPANSION_CASE_EXP_END, this._getLocation());\n this._requireCharCode($RBRACE);\n this._endToken([], this._getLocation());\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._expansionCaseStack.pop();\n };\n _Tokenizer.prototype._consumeExpansionFormEnd = function () {\n this._beginToken(TokenType$1.EXPANSION_FORM_END, this._getLocation());\n this._requireCharCode($RBRACE);\n this._endToken([]);\n this._expansionCaseStack.pop();\n };\n _Tokenizer.prototype._consumeText = function () {\n var start = this._getLocation();\n this._beginToken(TokenType$1.TEXT, start);\n var parts = [];\n do {\n if (this._interpolationConfig && this._attemptStr(this._interpolationConfig.start)) {\n parts.push(this._interpolationConfig.start);\n this._inInterpolation = true;\n }\n else if (this._interpolationConfig && this._attemptStr(this._interpolationConfig.end) &&\n this._inInterpolation) {\n parts.push(this._interpolationConfig.end);\n this._inInterpolation = false;\n }\n else {\n parts.push(this._readChar(true));\n }\n } while (!this._isTextEnd());\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n };\n _Tokenizer.prototype._isTextEnd = function () {\n if (this._peek === $LT || this._peek === $EOF) {\n return true;\n }\n if (this._tokenizeIcu && !this._inInterpolation) {\n if (isExpansionFormStart(this._input, this._index, this._interpolationConfig)) {\n // start of an expansion form\n return true;\n }\n if (this._peek === $RBRACE && this._isInExpansionCase()) {\n // end of and expansion case\n return true;\n }\n }\n return false;\n };\n _Tokenizer.prototype._savePosition = function () {\n return [this._peek, this._index, this._column, this._line, this.tokens.length];\n };\n _Tokenizer.prototype._readUntil = function (char) {\n var start = this._index;\n this._attemptUntilChar(char);\n return this._input.substring(start, this._index);\n };\n _Tokenizer.prototype._restorePosition = function (position) {\n this._peek = position[0];\n this._index = position[1];\n this._column = position[2];\n this._line = position[3];\n var nbTokens = position[4];\n if (nbTokens < this.tokens.length) {\n // remove any extra tokens\n this.tokens = this.tokens.slice(0, nbTokens);\n }\n };\n _Tokenizer.prototype._isInExpansionCase = function () {\n return this._expansionCaseStack.length > 0 &&\n this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\n TokenType$1.EXPANSION_CASE_EXP_START;\n };\n _Tokenizer.prototype._isInExpansionForm = function () {\n return this._expansionCaseStack.length > 0 &&\n this._expansionCaseStack[this._expansionCaseStack.length - 1] ===\n TokenType$1.EXPANSION_FORM_START;\n };\n return _Tokenizer;\n }());\n function isNotWhitespace(code) {\n return !isWhitespace(code) || code === $EOF;\n }\n function isNameEnd(code) {\n return isWhitespace(code) || code === $GT || code === $SLASH ||\n code === $SQ || code === $DQ || code === $EQ;\n }\n function isPrefixEnd(code) {\n return (code < $a || $z < code) && (code < $A || $Z < code) &&\n (code < $0 || code > $9);\n }\n function isDigitEntityEnd(code) {\n return code == $SEMICOLON || code == $EOF || !isAsciiHexDigit(code);\n }\n function isNamedEntityEnd(code) {\n return code == $SEMICOLON || code == $EOF || !isAsciiLetter(code);\n }\n function isExpansionFormStart(input, offset, interpolationConfig) {\n var isInterpolationStart = interpolationConfig ? input.indexOf(interpolationConfig.start, offset) == offset : false;\n return input.charCodeAt(offset) == $LBRACE && !isInterpolationStart;\n }\n function isExpansionCaseStart(peek) {\n return peek === $EQ || isAsciiLetter(peek);\n }\n function compareCharCodeCaseInsensitive(code1, code2) {\n return toUpperCaseCharCode(code1) == toUpperCaseCharCode(code2);\n }\n function toUpperCaseCharCode(code) {\n return code >= $a && code <= $z ? code - $a + $A : code;\n }\n function mergeTextTokens(srcTokens) {\n var dstTokens = [];\n var lastDstToken;\n for (var i = 0; i < srcTokens.length; i++) {\n var token = srcTokens[i];\n if (lastDstToken && lastDstToken.type == TokenType$1.TEXT && token.type == TokenType$1.TEXT) {\n lastDstToken.parts[0] += token.parts[0];\n lastDstToken.sourceSpan.end = token.sourceSpan.end;\n }\n else {\n lastDstToken = token;\n dstTokens.push(lastDstToken);\n }\n }\n return dstTokens;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$4 = (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 };\n var TreeError = (function (_super) {\n __extends$4(TreeError, _super);\n function TreeError(elementName, span, msg) {\n _super.call(this, span, msg);\n this.elementName = elementName;\n }\n TreeError.create = function (elementName, span, msg) {\n return new TreeError(elementName, span, msg);\n };\n return TreeError;\n }(ParseError));\n var ParseTreeResult = (function () {\n function ParseTreeResult(rootNodes, errors) {\n this.rootNodes = rootNodes;\n this.errors = errors;\n }\n return ParseTreeResult;\n }());\n var Parser$1 = (function () {\n function Parser(getTagDefinition) {\n this.getTagDefinition = getTagDefinition;\n }\n Parser.prototype.parse = function (source, url, parseExpansionForms, interpolationConfig) {\n if (parseExpansionForms === void 0) { parseExpansionForms = false; }\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n var tokensAndErrors = tokenize(source, url, this.getTagDefinition, parseExpansionForms, interpolationConfig);\n var treeAndErrors = new _TreeBuilder(tokensAndErrors.tokens, this.getTagDefinition).build();\n return new ParseTreeResult(treeAndErrors.rootNodes, tokensAndErrors.errors.concat(treeAndErrors.errors));\n };\n return Parser;\n }());\n var _TreeBuilder = (function () {\n function _TreeBuilder(tokens, getTagDefinition) {\n this.tokens = tokens;\n this.getTagDefinition = getTagDefinition;\n this._index = -1;\n this._rootNodes = [];\n this._errors = [];\n this._elementStack = [];\n this._advance();\n }\n _TreeBuilder.prototype.build = function () {\n while (this._peek.type !== TokenType$1.EOF) {\n if (this._peek.type === TokenType$1.TAG_OPEN_START) {\n this._consumeStartTag(this._advance());\n }\n else if (this._peek.type === TokenType$1.TAG_CLOSE) {\n this._consumeEndTag(this._advance());\n }\n else if (this._peek.type === TokenType$1.CDATA_START) {\n this._closeVoidElement();\n this._consumeCdata(this._advance());\n }\n else if (this._peek.type === TokenType$1.COMMENT_START) {\n this._closeVoidElement();\n this._consumeComment(this._advance());\n }\n else if (this._peek.type === TokenType$1.TEXT || this._peek.type === TokenType$1.RAW_TEXT ||\n this._peek.type === TokenType$1.ESCAPABLE_RAW_TEXT) {\n this._closeVoidElement();\n this._consumeText(this._advance());\n }\n else if (this._peek.type === TokenType$1.EXPANSION_FORM_START) {\n this._consumeExpansion(this._advance());\n }\n else {\n // Skip all other tokens...\n this._advance();\n }\n }\n return new ParseTreeResult(this._rootNodes, this._errors);\n };\n _TreeBuilder.prototype._advance = function () {\n var prev = this._peek;\n if (this._index < this.tokens.length - 1) {\n // Note: there is always an EOF token at the end\n this._index++;\n }\n this._peek = this.tokens[this._index];\n return prev;\n };\n _TreeBuilder.prototype._advanceIf = function (type) {\n if (this._peek.type === type) {\n return this._advance();\n }\n return null;\n };\n _TreeBuilder.prototype._consumeCdata = function (startToken) {\n this._consumeText(this._advance());\n this._advanceIf(TokenType$1.CDATA_END);\n };\n _TreeBuilder.prototype._consumeComment = function (token) {\n var text = this._advanceIf(TokenType$1.RAW_TEXT);\n this._advanceIf(TokenType$1.COMMENT_END);\n var value = isPresent(text) ? text.parts[0].trim() : null;\n this._addToParent(new Comment(value, token.sourceSpan));\n };\n _TreeBuilder.prototype._consumeExpansion = function (token) {\n var switchValue = this._advance();\n var type = this._advance();\n var cases = [];\n // read =\n while (this._peek.type === TokenType$1.EXPANSION_CASE_VALUE) {\n var expCase = this._parseExpansionCase();\n if (isBlank(expCase))\n return; // error\n cases.push(expCase);\n }\n // read the final }\n if (this._peek.type !== TokenType$1.EXPANSION_FORM_END) {\n this._errors.push(TreeError.create(null, this._peek.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\n return;\n }\n var sourceSpan = new ParseSourceSpan(token.sourceSpan.start, this._peek.sourceSpan.end);\n this._addToParent(new Expansion(switchValue.parts[0], type.parts[0], cases, sourceSpan, switchValue.sourceSpan));\n this._advance();\n };\n _TreeBuilder.prototype._parseExpansionCase = function () {\n var value = this._advance();\n // read {\n if (this._peek.type !== TokenType$1.EXPANSION_CASE_EXP_START) {\n this._errors.push(TreeError.create(null, this._peek.sourceSpan, \"Invalid ICU message. Missing '{'.\"));\n return null;\n }\n // read until }\n var start = this._advance();\n var exp = this._collectExpansionExpTokens(start);\n if (isBlank(exp))\n return null;\n var end = this._advance();\n exp.push(new Token$1(TokenType$1.EOF, [], end.sourceSpan));\n // parse everything in between { and }\n var parsedExp = new _TreeBuilder(exp, this.getTagDefinition).build();\n if (parsedExp.errors.length > 0) {\n this._errors = this._errors.concat(parsedExp.errors);\n return null;\n }\n var sourceSpan = new ParseSourceSpan(value.sourceSpan.start, end.sourceSpan.end);\n var expSourceSpan = new ParseSourceSpan(start.sourceSpan.start, end.sourceSpan.end);\n return new ExpansionCase(value.parts[0], parsedExp.rootNodes, sourceSpan, value.sourceSpan, expSourceSpan);\n };\n _TreeBuilder.prototype._collectExpansionExpTokens = function (start) {\n var exp = [];\n var expansionFormStack = [TokenType$1.EXPANSION_CASE_EXP_START];\n while (true) {\n if (this._peek.type === TokenType$1.EXPANSION_FORM_START ||\n this._peek.type === TokenType$1.EXPANSION_CASE_EXP_START) {\n expansionFormStack.push(this._peek.type);\n }\n if (this._peek.type === TokenType$1.EXPANSION_CASE_EXP_END) {\n if (lastOnStack(expansionFormStack, TokenType$1.EXPANSION_CASE_EXP_START)) {\n expansionFormStack.pop();\n if (expansionFormStack.length == 0)\n return exp;\n }\n else {\n this._errors.push(TreeError.create(null, start.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\n return null;\n }\n }\n if (this._peek.type === TokenType$1.EXPANSION_FORM_END) {\n if (lastOnStack(expansionFormStack, TokenType$1.EXPANSION_FORM_START)) {\n expansionFormStack.pop();\n }\n else {\n this._errors.push(TreeError.create(null, start.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\n return null;\n }\n }\n if (this._peek.type === TokenType$1.EOF) {\n this._errors.push(TreeError.create(null, start.sourceSpan, \"Invalid ICU message. Missing '}'.\"));\n return null;\n }\n exp.push(this._advance());\n }\n };\n _TreeBuilder.prototype._consumeText = function (token) {\n var text = token.parts[0];\n if (text.length > 0 && text[0] == '\\n') {\n var parent_1 = this._getParentElement();\n if (isPresent(parent_1) && parent_1.children.length == 0 &&\n this.getTagDefinition(parent_1.name).ignoreFirstLf) {\n text = text.substring(1);\n }\n }\n if (text.length > 0) {\n this._addToParent(new Text(text, token.sourceSpan));\n }\n };\n _TreeBuilder.prototype._closeVoidElement = function () {\n if (this._elementStack.length > 0) {\n var el = ListWrapper.last(this._elementStack);\n if (this.getTagDefinition(el.name).isVoid) {\n this._elementStack.pop();\n }\n }\n };\n _TreeBuilder.prototype._consumeStartTag = function (startTagToken) {\n var prefix = startTagToken.parts[0];\n var name = startTagToken.parts[1];\n var attrs = [];\n while (this._peek.type === TokenType$1.ATTR_NAME) {\n attrs.push(this._consumeAttr(this._advance()));\n }\n var fullName = this._getElementFullName(prefix, name, this._getParentElement());\n var selfClosing = false;\n // Note: There could have been a tokenizer error\n // so that we don't get a token for the end tag...\n if (this._peek.type === TokenType$1.TAG_OPEN_END_VOID) {\n this._advance();\n selfClosing = true;\n var tagDef = this.getTagDefinition(fullName);\n if (!(tagDef.canSelfClose || getNsPrefix(fullName) !== null || tagDef.isVoid)) {\n this._errors.push(TreeError.create(fullName, startTagToken.sourceSpan, \"Only void and foreign elements can be self closed \\\"\" + startTagToken.parts[1] + \"\\\"\"));\n }\n }\n else if (this._peek.type === TokenType$1.TAG_OPEN_END) {\n this._advance();\n selfClosing = false;\n }\n var end = this._peek.sourceSpan.start;\n var span = new ParseSourceSpan(startTagToken.sourceSpan.start, end);\n var el = new Element(fullName, attrs, [], span, span, null);\n this._pushElement(el);\n if (selfClosing) {\n this._popElement(fullName);\n el.endSourceSpan = span;\n }\n };\n _TreeBuilder.prototype._pushElement = function (el) {\n if (this._elementStack.length > 0) {\n var parentEl = ListWrapper.last(this._elementStack);\n if (this.getTagDefinition(parentEl.name).isClosedByChild(el.name)) {\n this._elementStack.pop();\n }\n }\n var tagDef = this.getTagDefinition(el.name);\n var _a = this._getParentElementSkippingContainers(), parent = _a.parent, container = _a.container;\n if (isPresent(parent) && tagDef.requireExtraParent(parent.name)) {\n var newParent = new Element(tagDef.parentToAdd, [], [], el.sourceSpan, el.startSourceSpan, el.endSourceSpan);\n this._insertBeforeContainer(parent, container, newParent);\n }\n this._addToParent(el);\n this._elementStack.push(el);\n };\n _TreeBuilder.prototype._consumeEndTag = function (endTagToken) {\n var fullName = this._getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getParentElement());\n if (this._getParentElement()) {\n this._getParentElement().endSourceSpan = endTagToken.sourceSpan;\n }\n if (this.getTagDefinition(fullName).isVoid) {\n this._errors.push(TreeError.create(fullName, endTagToken.sourceSpan, \"Void elements do not have end tags \\\"\" + endTagToken.parts[1] + \"\\\"\"));\n }\n else if (!this._popElement(fullName)) {\n this._errors.push(TreeError.create(fullName, endTagToken.sourceSpan, \"Unexpected closing tag \\\"\" + endTagToken.parts[1] + \"\\\"\"));\n }\n };\n _TreeBuilder.prototype._popElement = function (fullName) {\n for (var stackIndex = this._elementStack.length - 1; stackIndex >= 0; stackIndex--) {\n var el = this._elementStack[stackIndex];\n if (el.name == fullName) {\n ListWrapper.splice(this._elementStack, stackIndex, this._elementStack.length - stackIndex);\n return true;\n }\n if (!this.getTagDefinition(el.name).closedByParent) {\n return false;\n }\n }\n return false;\n };\n _TreeBuilder.prototype._consumeAttr = function (attrName) {\n var fullName = mergeNsAndName(attrName.parts[0], attrName.parts[1]);\n var end = attrName.sourceSpan.end;\n var value = '';\n if (this._peek.type === TokenType$1.ATTR_VALUE) {\n var valueToken = this._advance();\n value = valueToken.parts[0];\n end = valueToken.sourceSpan.end;\n }\n return new Attribute(fullName, value, new ParseSourceSpan(attrName.sourceSpan.start, end));\n };\n _TreeBuilder.prototype._getParentElement = function () {\n return this._elementStack.length > 0 ? ListWrapper.last(this._elementStack) : null;\n };\n /**\n * Returns the parent in the DOM and the container.\n *\n * `<ng-container>` elements are skipped as they are not rendered as DOM element.\n */\n _TreeBuilder.prototype._getParentElementSkippingContainers = function () {\n var container = null;\n for (var i = this._elementStack.length - 1; i >= 0; i--) {\n if (this._elementStack[i].name !== 'ng-container') {\n return { parent: this._elementStack[i], container: container };\n }\n container = this._elementStack[i];\n }\n return { parent: ListWrapper.last(this._elementStack), container: container };\n };\n _TreeBuilder.prototype._addToParent = function (node) {\n var parent = this._getParentElement();\n if (isPresent(parent)) {\n parent.children.push(node);\n }\n else {\n this._rootNodes.push(node);\n }\n };\n /**\n * Insert a node between the parent and the container.\n * When no container is given, the node is appended as a child of the parent.\n * Also updates the element stack accordingly.\n *\n * @internal\n */\n _TreeBuilder.prototype._insertBeforeContainer = function (parent, container, node) {\n if (!container) {\n this._addToParent(node);\n this._elementStack.push(node);\n }\n else {\n if (parent) {\n // replace the container with the new node in the children\n var index = parent.children.indexOf(container);\n parent.children[index] = node;\n }\n else {\n this._rootNodes.push(node);\n }\n node.children.push(container);\n this._elementStack.splice(this._elementStack.indexOf(container), 0, node);\n }\n };\n _TreeBuilder.prototype._getElementFullName = function (prefix, localName, parentElement) {\n if (isBlank(prefix)) {\n prefix = this.getTagDefinition(localName).implicitNamespacePrefix;\n if (isBlank(prefix) && isPresent(parentElement)) {\n prefix = getNsPrefix(parentElement.name);\n }\n }\n return mergeNsAndName(prefix, localName);\n };\n return _TreeBuilder;\n }());\n function lastOnStack(stack, element) {\n return stack.length > 0 && stack[stack.length - 1] === element;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function digestMessage(message) {\n return sha1(serializeNodes(message.nodes).join('') + (\"[\" + message.meaning + \"]\"));\n }\n /**\n * Serialize the i18n ast to something xml-like in order to generate an UID.\n *\n * The visitor is also used in the i18n parser tests\n *\n * @internal\n */\n var _SerializerVisitor = (function () {\n function _SerializerVisitor() {\n }\n _SerializerVisitor.prototype.visitText = function (text, context) { return text.value; };\n _SerializerVisitor.prototype.visitContainer = function (container, context) {\n var _this = this;\n return \"[\" + container.children.map(function (child) { return child.visit(_this); }).join(', ') + \"]\";\n };\n _SerializerVisitor.prototype.visitIcu = function (icu, context) {\n var _this = this;\n var strCases = Object.keys(icu.cases).map(function (k) { return (k + \" {\" + icu.cases[k].visit(_this) + \"}\"); });\n return \"{\" + icu.expression + \", \" + icu.type + \", \" + strCases.join(', ') + \"}\";\n };\n _SerializerVisitor.prototype.visitTagPlaceholder = function (ph, context) {\n var _this = this;\n return ph.isVoid ?\n \"<ph tag name=\\\"\" + ph.startName + \"\\\"/>\" :\n \"<ph tag name=\\\"\" + ph.startName + \"\\\">\" + ph.children.map(function (child) { return child.visit(_this); }).join(', ') + \"</ph name=\\\"\" + ph.closeName + \"\\\">\";\n };\n _SerializerVisitor.prototype.visitPlaceholder = function (ph, context) {\n return \"<ph name=\\\"\" + ph.name + \"\\\">\" + ph.value + \"</ph>\";\n };\n _SerializerVisitor.prototype.visitIcuPlaceholder = function (ph, context) {\n return \"<ph icu name=\\\"\" + ph.name + \"\\\">\" + ph.value.visit(this) + \"</ph>\";\n };\n return _SerializerVisitor;\n }());\n var serializerVisitor = new _SerializerVisitor();\n function serializeNodes(nodes) {\n return nodes.map(function (a) { return a.visit(serializerVisitor, null); });\n }\n /**\n * Compute the SHA1 of the given string\n *\n * see http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf\n *\n * WARNING: this function has not been designed not tested with security in mind.\n * DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.\n */\n function sha1(str) {\n var utf8 = utf8Encode(str);\n var words32 = stringToWords32(utf8);\n var len = utf8.length * 8;\n var w = new Array(80);\n var _a = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0], a = _a[0], b = _a[1], c = _a[2], d = _a[3], e = _a[4];\n words32[len >> 5] |= 0x80 << (24 - len % 32);\n words32[((len + 64 >> 9) << 4) + 15] = len;\n for (var i = 0; i < words32.length; i += 16) {\n var _b = [a, b, c, d, e], h0 = _b[0], h1 = _b[1], h2 = _b[2], h3 = _b[3], h4 = _b[4];\n for (var j = 0; j < 80; j++) {\n if (j < 16) {\n w[j] = words32[i + j];\n }\n else {\n w[j] = rol32(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);\n }\n var _c = fk(j, b, c, d), f = _c[0], k = _c[1];\n var temp = [rol32(a, 5), f, e, k, w[j]].reduce(add32);\n _d = [d, c, rol32(b, 30), a, temp], e = _d[0], d = _d[1], c = _d[2], b = _d[3], a = _d[4];\n }\n _e = [add32(a, h0), add32(b, h1), add32(c, h2), add32(d, h3), add32(e, h4)], a = _e[0], b = _e[1], c = _e[2], d = _e[3], e = _e[4];\n }\n var sha1 = words32ToString([a, b, c, d, e]);\n var hex = '';\n for (var i = 0; i < sha1.length; i++) {\n var b_1 = sha1.charCodeAt(i);\n hex += (b_1 >>> 4 & 0x0f).toString(16) + (b_1 & 0x0f).toString(16);\n }\n return hex.toLowerCase();\n var _d, _e;\n }\n function utf8Encode(str) {\n var encoded = '';\n for (var index = 0; index < str.length; index++) {\n var codePoint = decodeSurrogatePairs(str, index);\n if (codePoint <= 0x7f) {\n encoded += String.fromCharCode(codePoint);\n }\n else if (codePoint <= 0x7ff) {\n encoded += String.fromCharCode(0xc0 | codePoint >>> 6, 0x80 | codePoint & 0x3f);\n }\n else if (codePoint <= 0xffff) {\n encoded += String.fromCharCode(0xe0 | codePoint >>> 12, 0x80 | codePoint >>> 6 & 0x3f, 0x80 | codePoint & 0x3f);\n }\n else if (codePoint <= 0x1fffff) {\n encoded += String.fromCharCode(0xf0 | codePoint >>> 18, 0x80 | codePoint >>> 12 & 0x3f, 0x80 | codePoint >>> 6 & 0x3f, 0x80 | codePoint & 0x3f);\n }\n }\n return encoded;\n }\n // see https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n function decodeSurrogatePairs(str, index) {\n if (index < 0 || index >= str.length) {\n throw new Error(\"index=\" + index + \" is out of range in \\\"\" + str + \"\\\"\");\n }\n var high = str.charCodeAt(index);\n var low;\n if (high >= 0xd800 && high <= 0xdfff && str.length > index + 1) {\n low = str.charCodeAt(index + 1);\n if (low >= 0xdc00 && low <= 0xdfff) {\n return (high - 0xd800) * 0x400 + low - 0xdc00 + 0x10000;\n }\n }\n return high;\n }\n function stringToWords32(str) {\n var words32 = Array(str.length >>> 2);\n for (var i = 0; i < words32.length; i++) {\n words32[i] = 0;\n }\n for (var i = 0; i < str.length; i++) {\n words32[i >>> 2] |= (str.charCodeAt(i) & 0xff) << 8 * (3 - i & 0x3);\n }\n return words32;\n }\n function words32ToString(words32) {\n var str = '';\n for (var i = 0; i < words32.length * 4; i++) {\n str += String.fromCharCode((words32[i >>> 2] >>> 8 * (3 - i & 0x3)) & 0xff);\n }\n return str;\n }\n function fk(index, b, c, d) {\n if (index < 20) {\n return [(b & c) | (~b & d), 0x5a827999];\n }\n if (index < 40) {\n return [b ^ c ^ d, 0x6ed9eba1];\n }\n if (index < 60) {\n return [(b & c) | (b & d) | (c & d), 0x8f1bbcdc];\n }\n return [b ^ c ^ d, 0xca62c1d6];\n }\n function add32(a, b) {\n var low = (a & 0xffff) + (b & 0xffff);\n var high = (a >> 16) + (b >> 16) + (low >> 16);\n return (high << 16) | (low & 0xffff);\n }\n function rol32(a, count) {\n return (a << count) | (a >>> (32 - count));\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var Message = (function () {\n /**\n * @param nodes message AST\n * @param placeholders maps placeholder names to static content\n * @param placeholderToMsgIds maps placeholder names to translatable message IDs (used for ICU\n * messages)\n * @param meaning\n * @param description\n */\n function Message(nodes, placeholders, placeholderToMsgIds, meaning, description) {\n this.nodes = nodes;\n this.placeholders = placeholders;\n this.placeholderToMsgIds = placeholderToMsgIds;\n this.meaning = meaning;\n this.description = description;\n }\n return Message;\n }());\n var Text$1 = (function () {\n function Text(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n Text.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\n return Text;\n }());\n var Container = (function () {\n function Container(children, sourceSpan) {\n this.children = children;\n this.sourceSpan = sourceSpan;\n }\n Container.prototype.visit = function (visitor, context) { return visitor.visitContainer(this, context); };\n return Container;\n }());\n var Icu = (function () {\n function Icu(expression, type, cases, sourceSpan) {\n this.expression = expression;\n this.type = type;\n this.cases = cases;\n this.sourceSpan = sourceSpan;\n }\n Icu.prototype.visit = function (visitor, context) { return visitor.visitIcu(this, context); };\n return Icu;\n }());\n var TagPlaceholder = (function () {\n function TagPlaceholder(tag, attrs, startName, closeName, children, isVoid, sourceSpan) {\n this.tag = tag;\n this.attrs = attrs;\n this.startName = startName;\n this.closeName = closeName;\n this.children = children;\n this.isVoid = isVoid;\n this.sourceSpan = sourceSpan;\n }\n TagPlaceholder.prototype.visit = function (visitor, context) { return visitor.visitTagPlaceholder(this, context); };\n return TagPlaceholder;\n }());\n var Placeholder = (function () {\n function Placeholder(value, name, sourceSpan) {\n if (name === void 0) { name = ''; }\n this.value = value;\n this.name = name;\n this.sourceSpan = sourceSpan;\n }\n Placeholder.prototype.visit = function (visitor, context) { return visitor.visitPlaceholder(this, context); };\n return Placeholder;\n }());\n var IcuPlaceholder = (function () {\n function IcuPlaceholder(value, name, sourceSpan) {\n if (name === void 0) { name = ''; }\n this.value = value;\n this.name = name;\n this.sourceSpan = sourceSpan;\n }\n IcuPlaceholder.prototype.visit = function (visitor, context) { return visitor.visitIcuPlaceholder(this, context); };\n return IcuPlaceholder;\n }());\n\n var HtmlTagDefinition = (function () {\n function HtmlTagDefinition(_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, closedByChildren = _b.closedByChildren, requiredParents = _b.requiredParents, implicitNamespacePrefix = _b.implicitNamespacePrefix, _c = _b.contentType, contentType = _c === void 0 ? TagContentType.PARSABLE_DATA : _c, _d = _b.closedByParent, closedByParent = _d === void 0 ? false : _d, _e = _b.isVoid, isVoid = _e === void 0 ? false : _e, _f = _b.ignoreFirstLf, ignoreFirstLf = _f === void 0 ? false : _f;\n this.closedByChildren = {};\n this.closedByParent = false;\n this.canSelfClose = false;\n if (closedByChildren && closedByChildren.length > 0) {\n closedByChildren.forEach(function (tagName) { return _this.closedByChildren[tagName] = true; });\n }\n this.isVoid = isVoid;\n this.closedByParent = closedByParent || isVoid;\n if (requiredParents && requiredParents.length > 0) {\n this.requiredParents = {};\n // The first parent is the list is automatically when none of the listed parents are present\n this.parentToAdd = requiredParents[0];\n requiredParents.forEach(function (tagName) { return _this.requiredParents[tagName] = true; });\n }\n this.implicitNamespacePrefix = implicitNamespacePrefix;\n this.contentType = contentType;\n this.ignoreFirstLf = ignoreFirstLf;\n }\n HtmlTagDefinition.prototype.requireExtraParent = function (currentParent) {\n if (!this.requiredParents) {\n return false;\n }\n if (!currentParent) {\n return true;\n }\n var lcParent = currentParent.toLowerCase();\n return this.requiredParents[lcParent] != true && lcParent != 'template';\n };\n HtmlTagDefinition.prototype.isClosedByChild = function (name) {\n return this.isVoid || name.toLowerCase() in this.closedByChildren;\n };\n return HtmlTagDefinition;\n }());\n // see http://www.w3.org/TR/html51/syntax.html#optional-tags\n // This implementation does not fully conform to the HTML5 spec.\n var TAG_DEFINITIONS = {\n 'base': new HtmlTagDefinition({ isVoid: true }),\n 'meta': new HtmlTagDefinition({ isVoid: true }),\n 'area': new HtmlTagDefinition({ isVoid: true }),\n 'embed': new HtmlTagDefinition({ isVoid: true }),\n 'link': new HtmlTagDefinition({ isVoid: true }),\n 'img': new HtmlTagDefinition({ isVoid: true }),\n 'input': new HtmlTagDefinition({ isVoid: true }),\n 'param': new HtmlTagDefinition({ isVoid: true }),\n 'hr': new HtmlTagDefinition({ isVoid: true }),\n 'br': new HtmlTagDefinition({ isVoid: true }),\n 'source': new HtmlTagDefinition({ isVoid: true }),\n 'track': new HtmlTagDefinition({ isVoid: true }),\n 'wbr': new HtmlTagDefinition({ isVoid: true }),\n 'p': new HtmlTagDefinition({\n closedByChildren: [\n 'address', 'article', 'aside', 'blockquote', 'div', 'dl', 'fieldset', 'footer', 'form',\n 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup', 'hr',\n 'main', 'nav', 'ol', 'p', 'pre', 'section', 'table', 'ul'\n ],\n closedByParent: true\n }),\n 'thead': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'] }),\n 'tbody': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'], closedByParent: true }),\n 'tfoot': new HtmlTagDefinition({ closedByChildren: ['tbody'], closedByParent: true }),\n 'tr': new HtmlTagDefinition({\n closedByChildren: ['tr'],\n requiredParents: ['tbody', 'tfoot', 'thead'],\n closedByParent: true\n }),\n 'td': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\n 'th': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\n 'col': new HtmlTagDefinition({ requiredParents: ['colgroup'], isVoid: true }),\n 'svg': new HtmlTagDefinition({ implicitNamespacePrefix: 'svg' }),\n 'math': new HtmlTagDefinition({ implicitNamespacePrefix: 'math' }),\n 'li': new HtmlTagDefinition({ closedByChildren: ['li'], closedByParent: true }),\n 'dt': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'] }),\n 'dd': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'], closedByParent: true }),\n 'rb': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\n 'rt': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\n 'rtc': new HtmlTagDefinition({ closedByChildren: ['rb', 'rtc', 'rp'], closedByParent: true }),\n 'rp': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\n 'optgroup': new HtmlTagDefinition({ closedByChildren: ['optgroup'], closedByParent: true }),\n 'option': new HtmlTagDefinition({ closedByChildren: ['option', 'optgroup'], closedByParent: true }),\n 'pre': new HtmlTagDefinition({ ignoreFirstLf: true }),\n 'listing': new HtmlTagDefinition({ ignoreFirstLf: true }),\n 'style': new HtmlTagDefinition({ contentType: TagContentType.RAW_TEXT }),\n 'script': new HtmlTagDefinition({ contentType: TagContentType.RAW_TEXT }),\n 'title': new HtmlTagDefinition({ contentType: TagContentType.ESCAPABLE_RAW_TEXT }),\n 'textarea': new HtmlTagDefinition({ contentType: TagContentType.ESCAPABLE_RAW_TEXT, ignoreFirstLf: true }),\n };\n var _DEFAULT_TAG_DEFINITION = new HtmlTagDefinition();\n function getHtmlTagDefinition(tagName) {\n return TAG_DEFINITIONS[tagName.toLowerCase()] || _DEFAULT_TAG_DEFINITION;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var TAG_TO_PLACEHOLDER_NAMES = {\n 'A': 'LINK',\n 'B': 'BOLD_TEXT',\n 'BR': 'LINE_BREAK',\n 'EM': 'EMPHASISED_TEXT',\n 'H1': 'HEADING_LEVEL1',\n 'H2': 'HEADING_LEVEL2',\n 'H3': 'HEADING_LEVEL3',\n 'H4': 'HEADING_LEVEL4',\n 'H5': 'HEADING_LEVEL5',\n 'H6': 'HEADING_LEVEL6',\n 'HR': 'HORIZONTAL_RULE',\n 'I': 'ITALIC_TEXT',\n 'LI': 'LIST_ITEM',\n 'LINK': 'MEDIA_LINK',\n 'OL': 'ORDERED_LIST',\n 'P': 'PARAGRAPH',\n 'Q': 'QUOTATION',\n 'S': 'STRIKETHROUGH_TEXT',\n 'SMALL': 'SMALL_TEXT',\n 'SUB': 'SUBSTRIPT',\n 'SUP': 'SUPERSCRIPT',\n 'TBODY': 'TABLE_BODY',\n 'TD': 'TABLE_CELL',\n 'TFOOT': 'TABLE_FOOTER',\n 'TH': 'TABLE_HEADER_CELL',\n 'THEAD': 'TABLE_HEADER',\n 'TR': 'TABLE_ROW',\n 'TT': 'MONOSPACED_TEXT',\n 'U': 'UNDERLINED_TEXT',\n 'UL': 'UNORDERED_LIST',\n };\n /**\n * Creates unique names for placeholder with different content\n *\n * @internal\n */\n var PlaceholderRegistry = (function () {\n function PlaceholderRegistry() {\n // Count the occurrence of the base name top generate a unique name\n this._placeHolderNameCounts = {};\n // Maps signature to placeholder names\n this._signatureToName = {};\n }\n PlaceholderRegistry.prototype.getStartTagPlaceholderName = function (tag, attrs, isVoid) {\n var signature = this._hashTag(tag, attrs, isVoid);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n var upperTag = tag.toUpperCase();\n var baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || \"TAG_\" + upperTag;\n var name = this._generateUniqueName(isVoid ? baseName : \"START_\" + baseName);\n this._signatureToName[signature] = name;\n return name;\n };\n PlaceholderRegistry.prototype.getCloseTagPlaceholderName = function (tag) {\n var signature = this._hashClosingTag(tag);\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n var upperTag = tag.toUpperCase();\n var baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || \"TAG_\" + upperTag;\n var name = this._generateUniqueName(\"CLOSE_\" + baseName);\n this._signatureToName[signature] = name;\n return name;\n };\n PlaceholderRegistry.prototype.getPlaceholderName = function (name, content) {\n var upperName = name.toUpperCase();\n var signature = \"PH: \" + upperName + \"=\" + content;\n if (this._signatureToName[signature]) {\n return this._signatureToName[signature];\n }\n var uniqueName = this._generateUniqueName(upperName);\n this._signatureToName[signature] = uniqueName;\n return uniqueName;\n };\n // Generate a hash for a tag - does not take attribute order into account\n PlaceholderRegistry.prototype._hashTag = function (tag, attrs, isVoid) {\n var start = \"<\" + tag;\n var strAttrs = Object.keys(attrs).sort().map(function (name) { return (\" \" + name + \"=\" + attrs[name]); }).join('');\n var end = isVoid ? '/>' : \"></\" + tag + \">\";\n return start + strAttrs + end;\n };\n PlaceholderRegistry.prototype._hashClosingTag = function (tag) { return this._hashTag(\"/\" + tag, {}, false); };\n PlaceholderRegistry.prototype._generateUniqueName = function (base) {\n var name = base;\n var next = this._placeHolderNameCounts[name];\n if (!next) {\n next = 1;\n }\n else {\n name += \"_\" + next;\n next++;\n }\n this._placeHolderNameCounts[base] = next;\n return name;\n };\n return PlaceholderRegistry;\n }());\n\n var _expParser = new Parser(new Lexer());\n /**\n * Returns a function converting html nodes to an i18n Message given an interpolationConfig\n */\n function createI18nMessageFactory(interpolationConfig) {\n var visitor = new _I18nVisitor(_expParser, interpolationConfig);\n return function (nodes, meaning, description) {\n return visitor.toI18nMessage(nodes, meaning, description);\n };\n }\n var _I18nVisitor = (function () {\n function _I18nVisitor(_expressionParser, _interpolationConfig) {\n this._expressionParser = _expressionParser;\n this._interpolationConfig = _interpolationConfig;\n }\n _I18nVisitor.prototype.toI18nMessage = function (nodes, meaning, description) {\n this._isIcu = nodes.length == 1 && nodes[0] instanceof Expansion;\n this._icuDepth = 0;\n this._placeholderRegistry = new PlaceholderRegistry();\n this._placeholderToContent = {};\n this._placeholderToIds = {};\n var i18nodes = visitAll(this, nodes, {});\n return new Message(i18nodes, this._placeholderToContent, this._placeholderToIds, meaning, description);\n };\n _I18nVisitor.prototype.visitElement = function (el, context) {\n var children = visitAll(this, el.children);\n var attrs = {};\n el.attrs.forEach(function (attr) {\n // Do not visit the attributes, translatable ones are top-level ASTs\n attrs[attr.name] = attr.value;\n });\n var isVoid = getHtmlTagDefinition(el.name).isVoid;\n var startPhName = this._placeholderRegistry.getStartTagPlaceholderName(el.name, attrs, isVoid);\n this._placeholderToContent[startPhName] = el.sourceSpan.toString();\n var closePhName = '';\n if (!isVoid) {\n closePhName = this._placeholderRegistry.getCloseTagPlaceholderName(el.name);\n this._placeholderToContent[closePhName] = \"</\" + el.name + \">\";\n }\n return new TagPlaceholder(el.name, attrs, startPhName, closePhName, children, isVoid, el.sourceSpan);\n };\n _I18nVisitor.prototype.visitAttribute = function (attribute, context) {\n return this._visitTextWithInterpolation(attribute.value, attribute.sourceSpan);\n };\n _I18nVisitor.prototype.visitText = function (text, context) {\n return this._visitTextWithInterpolation(text.value, text.sourceSpan);\n };\n _I18nVisitor.prototype.visitComment = function (comment, context) { return null; };\n _I18nVisitor.prototype.visitExpansion = function (icu, context) {\n var _this = this;\n this._icuDepth++;\n var i18nIcuCases = {};\n var i18nIcu = new Icu(icu.switchValue, icu.type, i18nIcuCases, icu.sourceSpan);\n icu.cases.forEach(function (caze) {\n i18nIcuCases[caze.value] = new Container(caze.expression.map(function (node) { return node.visit(_this, {}); }), caze.expSourceSpan);\n });\n this._icuDepth--;\n if (this._isIcu || this._icuDepth > 0) {\n // If the message (vs a part of the message) is an ICU message returns it\n return i18nIcu;\n }\n // Else returns a placeholder\n // ICU placeholders should not be replaced with their original content but with the their\n // translations. We need to create a new visitor (they are not re-entrant) to compute the\n // message id.\n // TODO(vicb): add a html.Node -> i18n.Message cache to avoid having to re-create the msg\n var phName = this._placeholderRegistry.getPlaceholderName('ICU', icu.sourceSpan.toString());\n var visitor = new _I18nVisitor(this._expressionParser, this._interpolationConfig);\n this._placeholderToIds[phName] = digestMessage(visitor.toI18nMessage([icu], '', ''));\n return new IcuPlaceholder(i18nIcu, phName, icu.sourceSpan);\n };\n _I18nVisitor.prototype.visitExpansionCase = function (icuCase, context) {\n throw new Error('Unreachable code');\n };\n _I18nVisitor.prototype._visitTextWithInterpolation = function (text, sourceSpan) {\n var splitInterpolation = this._expressionParser.splitInterpolation(text, sourceSpan.start.toString(), this._interpolationConfig);\n if (!splitInterpolation) {\n // No expression, return a single text\n return new Text$1(text, sourceSpan);\n }\n // Return a group of text + expressions\n var nodes = [];\n var container = new Container(nodes, sourceSpan);\n var _a = this._interpolationConfig, sDelimiter = _a.start, eDelimiter = _a.end;\n for (var i = 0; i < splitInterpolation.strings.length - 1; i++) {\n var expression = splitInterpolation.expressions[i];\n var baseName = _extractPlaceholderName(expression) || 'INTERPOLATION';\n var phName = this._placeholderRegistry.getPlaceholderName(baseName, expression);\n if (splitInterpolation.strings[i].length) {\n // No need to add empty strings\n nodes.push(new Text$1(splitInterpolation.strings[i], sourceSpan));\n }\n nodes.push(new Placeholder(expression, phName, sourceSpan));\n this._placeholderToContent[phName] = sDelimiter + expression + eDelimiter;\n }\n // The last index contains no expression\n var lastStringIdx = splitInterpolation.strings.length - 1;\n if (splitInterpolation.strings[lastStringIdx].length) {\n nodes.push(new Text$1(splitInterpolation.strings[lastStringIdx], sourceSpan));\n }\n return container;\n };\n return _I18nVisitor;\n }());\n var _CUSTOM_PH_EXP = /\\/\\/[\\s\\S]*i18n[\\s\\S]*\\([\\s\\S]*ph[\\s\\S]*=[\\s\\S]*\"([\\s\\S]*?)\"[\\s\\S]*\\)/g;\n function _extractPlaceholderName(input) {\n return input.split(_CUSTOM_PH_EXP)[1];\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$6 = (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 };\n /**\n * An i18n error.\n */\n var I18nError = (function (_super) {\n __extends$6(I18nError, _super);\n function I18nError(span, msg) {\n _super.call(this, span, msg);\n }\n return I18nError;\n }(ParseError));\n\n var _I18N_ATTR = 'i18n';\n var _I18N_ATTR_PREFIX = 'i18n-';\n var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;\n /**\n * Extract translatable messages from an html AST\n */\n function extractMessages(nodes, interpolationConfig, implicitTags, implicitAttrs) {\n var visitor = new _Visitor(implicitTags, implicitAttrs);\n return visitor.extract(nodes, interpolationConfig);\n }\n function mergeTranslations(nodes, translations, interpolationConfig, implicitTags, implicitAttrs) {\n var visitor = new _Visitor(implicitTags, implicitAttrs);\n return visitor.merge(nodes, translations, interpolationConfig);\n }\n var ExtractionResult = (function () {\n function ExtractionResult(messages, errors) {\n this.messages = messages;\n this.errors = errors;\n }\n return ExtractionResult;\n }());\n var _VisitorMode;\n (function (_VisitorMode) {\n _VisitorMode[_VisitorMode[\"Extract\"] = 0] = \"Extract\";\n _VisitorMode[_VisitorMode[\"Merge\"] = 1] = \"Merge\";\n })(_VisitorMode || (_VisitorMode = {}));\n /**\n * This Visitor is used:\n * 1. to extract all the translatable strings from an html AST (see `extract()`),\n * 2. to replace the translatable strings with the actual translations (see `merge()`)\n *\n * @internal\n */\n var _Visitor = (function () {\n function _Visitor(_implicitTags, _implicitAttrs) {\n this._implicitTags = _implicitTags;\n this._implicitAttrs = _implicitAttrs;\n }\n /**\n * Extracts the messages from the tree\n */\n _Visitor.prototype.extract = function (nodes, interpolationConfig) {\n var _this = this;\n this._init(_VisitorMode.Extract, interpolationConfig);\n nodes.forEach(function (node) { return node.visit(_this, null); });\n if (this._inI18nBlock) {\n this._reportError(nodes[nodes.length - 1], 'Unclosed block');\n }\n return new ExtractionResult(this._messages, this._errors);\n };\n /**\n * Returns a tree where all translatable nodes are translated\n */\n _Visitor.prototype.merge = function (nodes, translations, interpolationConfig) {\n this._init(_VisitorMode.Merge, interpolationConfig);\n this._translations = translations;\n // Construct a single fake root element\n var wrapper = new Element('wrapper', [], nodes, null, null, null);\n var translatedNode = wrapper.visit(this, null);\n if (this._inI18nBlock) {\n this._reportError(nodes[nodes.length - 1], 'Unclosed block');\n }\n return new ParseTreeResult(translatedNode.children, this._errors);\n };\n _Visitor.prototype.visitExpansionCase = function (icuCase, context) {\n // Parse cases for translatable html attributes\n var expression = visitAll(this, icuCase.expression, context);\n if (this._mode === _VisitorMode.Merge) {\n return new ExpansionCase(icuCase.value, expression, icuCase.sourceSpan, icuCase.valueSourceSpan, icuCase.expSourceSpan);\n }\n };\n _Visitor.prototype.visitExpansion = function (icu, context) {\n this._mayBeAddBlockChildren(icu);\n var wasInIcu = this._inIcu;\n if (!this._inIcu) {\n // nested ICU messages should not be extracted but top-level translated as a whole\n if (this._isInTranslatableSection) {\n this._addMessage([icu]);\n }\n this._inIcu = true;\n }\n var cases = visitAll(this, icu.cases, context);\n if (this._mode === _VisitorMode.Merge) {\n icu = new Expansion(icu.switchValue, icu.type, cases, icu.sourceSpan, icu.switchValueSourceSpan);\n }\n this._inIcu = wasInIcu;\n return icu;\n };\n _Visitor.prototype.visitComment = function (comment, context) {\n var isOpening = _isOpeningComment(comment);\n if (isOpening && this._isInTranslatableSection) {\n this._reportError(comment, 'Could not start a block inside a translatable section');\n return;\n }\n var isClosing = _isClosingComment(comment);\n if (isClosing && !this._inI18nBlock) {\n this._reportError(comment, 'Trying to close an unopened block');\n return;\n }\n if (!this._inI18nNode && !this._inIcu) {\n if (!this._inI18nBlock) {\n if (isOpening) {\n this._inI18nBlock = true;\n this._blockStartDepth = this._depth;\n this._blockChildren = [];\n this._blockMeaningAndDesc = comment.value.replace(_I18N_COMMENT_PREFIX_REGEXP, '').trim();\n this._openTranslatableSection(comment);\n }\n }\n else {\n if (isClosing) {\n if (this._depth == this._blockStartDepth) {\n this._closeTranslatableSection(comment, this._blockChildren);\n this._inI18nBlock = false;\n var message = this._addMessage(this._blockChildren, this._blockMeaningAndDesc);\n // merge attributes in sections\n var nodes = this._translateMessage(comment, message);\n return visitAll(this, nodes);\n }\n else {\n this._reportError(comment, 'I18N blocks should not cross element boundaries');\n return;\n }\n }\n }\n }\n };\n _Visitor.prototype.visitText = function (text, context) {\n if (this._isInTranslatableSection) {\n this._mayBeAddBlockChildren(text);\n }\n return text;\n };\n _Visitor.prototype.visitElement = function (el, context) {\n var _this = this;\n this._mayBeAddBlockChildren(el);\n this._depth++;\n var wasInI18nNode = this._inI18nNode;\n var wasInImplicitNode = this._inImplicitNode;\n var childNodes;\n // Extract only top level nodes with the (implicit) \"i18n\" attribute if not in a block or an ICU\n // message\n var i18nAttr = _getI18nAttr(el);\n var isImplicit = this._implicitTags.some(function (tag) { return el.name === tag; }) &&\n !this._inIcu && !this._isInTranslatableSection;\n var isTopLevelImplicit = !wasInImplicitNode && isImplicit;\n this._inImplicitNode = this._inImplicitNode || isImplicit;\n if (!this._isInTranslatableSection && !this._inIcu) {\n if (i18nAttr) {\n // explicit translation\n this._inI18nNode = true;\n var message = this._addMessage(el.children, i18nAttr.value);\n childNodes = this._translateMessage(el, message);\n }\n else if (isTopLevelImplicit) {\n // implicit translation\n this._inI18nNode = true;\n var message = this._addMessage(el.children);\n childNodes = this._translateMessage(el, message);\n }\n if (this._mode == _VisitorMode.Extract) {\n var isTranslatable = i18nAttr || isTopLevelImplicit;\n if (isTranslatable) {\n this._openTranslatableSection(el);\n }\n visitAll(this, el.children);\n if (isTranslatable) {\n this._closeTranslatableSection(el, el.children);\n }\n }\n if (this._mode === _VisitorMode.Merge && !i18nAttr && !isTopLevelImplicit) {\n childNodes = [];\n el.children.forEach(function (child) {\n var visited = child.visit(_this, context);\n if (visited && !_this._isInTranslatableSection) {\n // Do not add the children from translatable sections (= i18n blocks here)\n // They will be added when the section is close (i.e. on `<!-- /i18n -->`)\n childNodes = childNodes.concat(visited);\n }\n });\n }\n }\n else {\n if (i18nAttr || isTopLevelImplicit) {\n this._reportError(el, 'Could not mark an element as translatable inside a translatable section');\n }\n if (this._mode == _VisitorMode.Extract) {\n // Descend into child nodes for extraction\n visitAll(this, el.children);\n }\n if (this._mode == _VisitorMode.Merge) {\n // Translate attributes in ICU messages\n childNodes = [];\n el.children.forEach(function (child) {\n var visited = child.visit(_this, context);\n if (visited && !_this._isInTranslatableSection) {\n // Do not add the children from translatable sections (= i18n blocks here)\n // They will be added when the section is close (i.e. on `<!-- /i18n -->`)\n childNodes = childNodes.concat(visited);\n }\n });\n }\n }\n this._visitAttributesOf(el);\n this._depth--;\n this._inI18nNode = wasInI18nNode;\n this._inImplicitNode = wasInImplicitNode;\n if (this._mode === _VisitorMode.Merge) {\n // There are no childNodes in translatable sections - those nodes will be replace anyway\n var translatedAttrs = this._translateAttributes(el);\n return new Element(el.name, translatedAttrs, childNodes, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);\n }\n };\n _Visitor.prototype.visitAttribute = function (attribute, context) {\n throw new Error('unreachable code');\n };\n _Visitor.prototype._init = function (mode, interpolationConfig) {\n this._mode = mode;\n this._inI18nBlock = false;\n this._inI18nNode = false;\n this._depth = 0;\n this._inIcu = false;\n this._msgCountAtSectionStart = void 0;\n this._errors = [];\n this._messages = [];\n this._inImplicitNode = false;\n this._createI18nMessage = createI18nMessageFactory(interpolationConfig);\n };\n // looks for translatable attributes\n _Visitor.prototype._visitAttributesOf = function (el) {\n var _this = this;\n var explicitAttrNameToValue = {};\n var implicitAttrNames = this._implicitAttrs[el.name] || [];\n el.attrs.filter(function (attr) { return attr.name.startsWith(_I18N_ATTR_PREFIX); })\n .forEach(function (attr) { return explicitAttrNameToValue[attr.name.slice(_I18N_ATTR_PREFIX.length)] =\n attr.value; });\n el.attrs.forEach(function (attr) {\n if (attr.name in explicitAttrNameToValue) {\n _this._addMessage([attr], explicitAttrNameToValue[attr.name]);\n }\n else if (implicitAttrNames.some(function (name) { return attr.name === name; })) {\n _this._addMessage([attr]);\n }\n });\n };\n // add a translatable message\n _Visitor.prototype._addMessage = function (ast, meaningAndDesc) {\n if (ast.length == 0 ||\n ast.length == 1 && ast[0] instanceof Attribute && !ast[0].value) {\n // Do not create empty messages\n return;\n }\n var _a = _splitMeaningAndDesc(meaningAndDesc), meaning = _a[0], description = _a[1];\n var message = this._createI18nMessage(ast, meaning, description);\n this._messages.push(message);\n return message;\n };\n // Translates the given message given the `TranslationBundle`\n // no-op when called in extraction mode (returns [])\n _Visitor.prototype._translateMessage = function (el, message) {\n if (message && this._mode === _VisitorMode.Merge) {\n var id = digestMessage(message);\n var nodes = this._translations.get(id);\n if (nodes) {\n return nodes;\n }\n this._reportError(el, \"Translation unavailable for message id=\\\"\" + id + \"\\\"\");\n }\n return [];\n };\n // translate the attributes of an element and remove i18n specific attributes\n _Visitor.prototype._translateAttributes = function (el) {\n var _this = this;\n var attributes = el.attrs;\n var i18nAttributeMeanings = {};\n attributes.forEach(function (attr) {\n if (attr.name.startsWith(_I18N_ATTR_PREFIX)) {\n i18nAttributeMeanings[attr.name.slice(_I18N_ATTR_PREFIX.length)] =\n _splitMeaningAndDesc(attr.value)[0];\n }\n });\n var translatedAttributes = [];\n attributes.forEach(function (attr) {\n if (attr.name === _I18N_ATTR || attr.name.startsWith(_I18N_ATTR_PREFIX)) {\n // strip i18n specific attributes\n return;\n }\n if (attr.value && attr.value != '' && i18nAttributeMeanings.hasOwnProperty(attr.name)) {\n var meaning = i18nAttributeMeanings[attr.name];\n var message = _this._createI18nMessage([attr], meaning, '');\n var id = digestMessage(message);\n var nodes = _this._translations.get(id);\n if (nodes) {\n if (nodes[0] instanceof Text) {\n var value = nodes[0].value;\n translatedAttributes.push(new Attribute(attr.name, value, attr.sourceSpan));\n }\n else {\n _this._reportError(el, \"Unexpected translation for attribute \\\"\" + attr.name + \"\\\" (id=\\\"\" + id + \"\\\")\");\n }\n }\n else {\n _this._reportError(el, \"Translation unavailable for attribute \\\"\" + attr.name + \"\\\" (id=\\\"\" + id + \"\\\")\");\n }\n }\n else {\n translatedAttributes.push(attr);\n }\n });\n return translatedAttributes;\n };\n /**\n * Add the node as a child of the block when:\n * - we are in a block,\n * - we are not inside a ICU message (those are handled separately),\n * - the node is a \"direct child\" of the block\n */\n _Visitor.prototype._mayBeAddBlockChildren = function (node) {\n if (this._inI18nBlock && !this._inIcu && this._depth == this._blockStartDepth) {\n this._blockChildren.push(node);\n }\n };\n /**\n * Marks the start of a section, see `_endSection`\n */\n _Visitor.prototype._openTranslatableSection = function (node) {\n if (this._isInTranslatableSection) {\n this._reportError(node, 'Unexpected section start');\n }\n else {\n this._msgCountAtSectionStart = this._messages.length;\n }\n };\n Object.defineProperty(_Visitor.prototype, \"_isInTranslatableSection\", {\n /**\n * A translatable section could be:\n * - a translatable element,\n * - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments\n */\n get: function () {\n return this._msgCountAtSectionStart !== void 0;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Terminates a section.\n *\n * If a section has only one significant children (comments not significant) then we should not\n * keep the message from this children:\n *\n * `<p i18n=\"meaning|description\">{ICU message}</p>` would produce two messages:\n * - one for the <p> content with meaning and description,\n * - another one for the ICU message.\n *\n * In this case the last message is discarded as it contains less information (the AST is\n * otherwise identical).\n *\n * Note that we should still keep messages extracted from attributes inside the section (ie in the\n * ICU message here)\n */\n _Visitor.prototype._closeTranslatableSection = function (node, directChildren) {\n if (!this._isInTranslatableSection) {\n this._reportError(node, 'Unexpected section end');\n return;\n }\n var startIndex = this._msgCountAtSectionStart;\n var significantChildren = directChildren.reduce(function (count, node) { return count + (node instanceof Comment ? 0 : 1); }, 0);\n if (significantChildren == 1) {\n for (var i = this._messages.length - 1; i >= startIndex; i--) {\n var ast = this._messages[i].nodes;\n if (!(ast.length == 1 && ast[0] instanceof Text$1)) {\n this._messages.splice(i, 1);\n break;\n }\n }\n }\n this._msgCountAtSectionStart = void 0;\n };\n _Visitor.prototype._reportError = function (node, msg) {\n this._errors.push(new I18nError(node.sourceSpan, msg));\n };\n return _Visitor;\n }());\n function _isOpeningComment(n) {\n return n instanceof Comment && n.value && n.value.startsWith('i18n');\n }\n function _isClosingComment(n) {\n return n instanceof Comment && n.value && n.value === '/i18n';\n }\n function _getI18nAttr(p) {\n return p.attrs.find(function (attr) { return attr.name === _I18N_ATTR; }) || null;\n }\n function _splitMeaningAndDesc(i18n) {\n if (!i18n)\n return ['', ''];\n var pipeIndex = i18n.indexOf('|');\n return pipeIndex == -1 ? ['', i18n] : [i18n.slice(0, pipeIndex), i18n.slice(pipeIndex + 1)];\n }\n\n /**\n * A container for message extracted from the templates.\n */\n var MessageBundle = (function () {\n function MessageBundle(_htmlParser, _implicitTags, _implicitAttrs) {\n this._htmlParser = _htmlParser;\n this._implicitTags = _implicitTags;\n this._implicitAttrs = _implicitAttrs;\n this._messageMap = {};\n }\n MessageBundle.prototype.updateFromTemplate = function (html, url, interpolationConfig) {\n var _this = this;\n var htmlParserResult = this._htmlParser.parse(html, url, true, interpolationConfig);\n if (htmlParserResult.errors.length) {\n return htmlParserResult.errors;\n }\n var i18nParserResult = extractMessages(htmlParserResult.rootNodes, interpolationConfig, this._implicitTags, this._implicitAttrs);\n if (i18nParserResult.errors.length) {\n return i18nParserResult.errors;\n }\n i18nParserResult.messages.forEach(function (message) { _this._messageMap[digestMessage(message)] = message; });\n };\n MessageBundle.prototype.getMessageMap = function () { return this._messageMap; };\n MessageBundle.prototype.write = function (serializer) { return serializer.write(this._messageMap); };\n return MessageBundle;\n }());\n\n var XmlTagDefinition = (function () {\n function XmlTagDefinition() {\n this.closedByParent = false;\n this.contentType = TagContentType.PARSABLE_DATA;\n this.isVoid = false;\n this.ignoreFirstLf = false;\n this.canSelfClose = true;\n }\n XmlTagDefinition.prototype.requireExtraParent = function (currentParent) { return false; };\n XmlTagDefinition.prototype.isClosedByChild = function (name) { return false; };\n return XmlTagDefinition;\n }());\n var _TAG_DEFINITION = new XmlTagDefinition();\n function getXmlTagDefinition(tagName) {\n return _TAG_DEFINITION;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$7 = (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 };\n var XmlParser = (function (_super) {\n __extends$7(XmlParser, _super);\n function XmlParser() {\n _super.call(this, getXmlTagDefinition);\n }\n XmlParser.prototype.parse = function (source, url, parseExpansionForms) {\n if (parseExpansionForms === void 0) { parseExpansionForms = false; }\n return _super.prototype.parse.call(this, source, url, parseExpansionForms, null);\n };\n return XmlParser;\n }(Parser$1));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // Generate a map of placeholder to content indexed by message ids\n function extractPlaceholders(messageBundle) {\n var messageMap = messageBundle.getMessageMap();\n var placeholders = {};\n Object.keys(messageMap).forEach(function (msgId) {\n placeholders[msgId] = messageMap[msgId].placeholders;\n });\n return placeholders;\n }\n // Generate a map of placeholder to message ids indexed by message ids\n function extractPlaceholderToIds(messageBundle) {\n var messageMap = messageBundle.getMessageMap();\n var placeholderToIds = {};\n Object.keys(messageMap).forEach(function (msgId) {\n placeholderToIds[msgId] = messageMap[msgId].placeholderToMsgIds;\n });\n return placeholderToIds;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var _Visitor$1 = (function () {\n function _Visitor() {\n }\n _Visitor.prototype.visitTag = function (tag) {\n var _this = this;\n var strAttrs = this._serializeAttributes(tag.attrs);\n if (tag.children.length == 0) {\n return \"<\" + tag.name + strAttrs + \"/>\";\n }\n var strChildren = tag.children.map(function (node) { return node.visit(_this); });\n return \"<\" + tag.name + strAttrs + \">\" + strChildren.join('') + \"</\" + tag.name + \">\";\n };\n _Visitor.prototype.visitText = function (text) { return text.value; };\n _Visitor.prototype.visitDeclaration = function (decl) {\n return \"<?xml\" + this._serializeAttributes(decl.attrs) + \" ?>\";\n };\n _Visitor.prototype._serializeAttributes = function (attrs) {\n var strAttrs = Object.keys(attrs).map(function (name) { return (name + \"=\\\"\" + attrs[name] + \"\\\"\"); }).join(' ');\n return strAttrs.length > 0 ? ' ' + strAttrs : '';\n };\n _Visitor.prototype.visitDoctype = function (doctype) {\n return \"<!DOCTYPE \" + doctype.rootTag + \" [\\n\" + doctype.dtd + \"\\n]>\";\n };\n return _Visitor;\n }());\n var _visitor = new _Visitor$1();\n function serialize(nodes) {\n return nodes.map(function (node) { return node.visit(_visitor); }).join('');\n }\n var Declaration = (function () {\n function Declaration(unescapedAttrs) {\n var _this = this;\n this.attrs = {};\n Object.keys(unescapedAttrs).forEach(function (k) {\n _this.attrs[k] = _escapeXml(unescapedAttrs[k]);\n });\n }\n Declaration.prototype.visit = function (visitor) { return visitor.visitDeclaration(this); };\n return Declaration;\n }());\n var Doctype = (function () {\n function Doctype(rootTag, dtd) {\n this.rootTag = rootTag;\n this.dtd = dtd;\n }\n ;\n Doctype.prototype.visit = function (visitor) { return visitor.visitDoctype(this); };\n return Doctype;\n }());\n var Tag = (function () {\n function Tag(name, unescapedAttrs, children) {\n var _this = this;\n if (unescapedAttrs === void 0) { unescapedAttrs = {}; }\n if (children === void 0) { children = []; }\n this.name = name;\n this.children = children;\n this.attrs = {};\n Object.keys(unescapedAttrs).forEach(function (k) {\n _this.attrs[k] = _escapeXml(unescapedAttrs[k]);\n });\n }\n Tag.prototype.visit = function (visitor) { return visitor.visitTag(this); };\n return Tag;\n }());\n var Text$2 = (function () {\n function Text(unescapedValue) {\n this.value = _escapeXml(unescapedValue);\n }\n ;\n Text.prototype.visit = function (visitor) { return visitor.visitText(this); };\n return Text;\n }());\n var _ESCAPED_CHARS = [\n [/&/g, '&'],\n [/\"/g, '"'],\n [/'/g, '''],\n [/</g, '<'],\n [/>/g, '>'],\n ];\n function _escapeXml(text) {\n return _ESCAPED_CHARS.reduce(function (text, entry) { return text.replace(entry[0], entry[1]); }, text);\n }\n\n var _VERSION = '1.2';\n var _XMLNS = 'urn:oasis:names:tc:xliff:document:1.2';\n // TODO(vicb): make this a param (s/_/-/)\n var _SOURCE_LANG = 'en';\n var _PLACEHOLDER_TAG = 'x';\n var _SOURCE_TAG = 'source';\n var _TARGET_TAG = 'target';\n var _UNIT_TAG = 'trans-unit';\n var _CR = function (ws) {\n if (ws === void 0) { ws = 0; }\n return new Text$2(\"\\n\" + new Array(ws).join(' '));\n };\n // http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html\n // http://docs.oasis-open.org/xliff/v1.2/xliff-profile-html/xliff-profile-html-1.2.html\n var Xliff = (function () {\n function Xliff(_htmlParser, _interpolationConfig) {\n this._htmlParser = _htmlParser;\n this._interpolationConfig = _interpolationConfig;\n }\n Xliff.prototype.write = function (messageMap) {\n var visitor = new _WriteVisitor();\n var transUnits = [];\n Object.keys(messageMap).forEach(function (id) {\n var message = messageMap[id];\n var transUnit = new Tag(_UNIT_TAG, { id: id, datatype: 'html' });\n transUnit.children.push(_CR(8), new Tag(_SOURCE_TAG, {}, visitor.serialize(message.nodes)), _CR(8), new Tag(_TARGET_TAG));\n if (message.description) {\n transUnit.children.push(_CR(8), new Tag('note', { priority: '1', from: 'description' }, [new Text$2(message.description)]));\n }\n if (message.meaning) {\n transUnit.children.push(_CR(8), new Tag('note', { priority: '1', from: 'meaning' }, [new Text$2(message.meaning)]));\n }\n transUnit.children.push(_CR(6));\n transUnits.push(_CR(6), transUnit);\n });\n var body = new Tag('body', {}, transUnits.concat([_CR(4)]));\n var file = new Tag('file', { 'source-language': _SOURCE_LANG, datatype: 'plaintext', original: 'ng2.template' }, [_CR(4), body, _CR(2)]);\n var xliff = new Tag('xliff', { version: _VERSION, xmlns: _XMLNS }, [_CR(2), file, _CR()]);\n return serialize([new Declaration({ version: '1.0', encoding: 'UTF-8' }), _CR(), xliff]);\n };\n Xliff.prototype.load = function (content, url, messageBundle) {\n var _this = this;\n // Parse the xtb file into xml nodes\n var result = new XmlParser().parse(content, url);\n if (result.errors.length) {\n throw new Error(\"xtb parse errors:\\n\" + result.errors.join('\\n'));\n }\n // Replace the placeholders, messages are now string\n var _a = new _LoadVisitor().parse(result.rootNodes, messageBundle), messages = _a.messages, errors = _a.errors;\n if (errors.length) {\n throw new Error(\"xtb parse errors:\\n\" + errors.join('\\n'));\n }\n // Convert the string messages to html ast\n // TODO(vicb): map error message back to the original message in xtb\n var messageMap = {};\n var parseErrors = [];\n Object.keys(messages).forEach(function (id) {\n var res = _this._htmlParser.parse(messages[id], url, true, _this._interpolationConfig);\n parseErrors.push.apply(parseErrors, res.errors);\n messageMap[id] = res.rootNodes;\n });\n if (parseErrors.length) {\n throw new Error(\"xtb parse errors:\\n\" + parseErrors.join('\\n'));\n }\n return messageMap;\n };\n return Xliff;\n }());\n var _WriteVisitor = (function () {\n function _WriteVisitor() {\n }\n _WriteVisitor.prototype.visitText = function (text, context) { return [new Text$2(text.value)]; };\n _WriteVisitor.prototype.visitContainer = function (container, context) {\n var _this = this;\n var nodes = [];\n container.children.forEach(function (node) { return nodes.push.apply(nodes, node.visit(_this)); });\n return nodes;\n };\n _WriteVisitor.prototype.visitIcu = function (icu, context) {\n if (this._isInIcu) {\n // nested ICU is not supported\n throw new Error('xliff does not support nested ICU messages');\n }\n this._isInIcu = true;\n // TODO(vicb): support ICU messages\n // https://lists.oasis-open.org/archives/xliff/201201/msg00028.html\n // http://docs.oasis-open.org/xliff/v1.2/xliff-profile-po/xliff-profile-po-1.2-cd02.html\n var nodes = [];\n this._isInIcu = false;\n return nodes;\n };\n _WriteVisitor.prototype.visitTagPlaceholder = function (ph, context) {\n var startTagPh = new Tag(_PLACEHOLDER_TAG, { id: ph.startName, ctype: ph.tag });\n if (ph.isVoid) {\n // void tags have no children nor closing tags\n return [startTagPh];\n }\n var closeTagPh = new Tag(_PLACEHOLDER_TAG, { id: ph.closeName, ctype: ph.tag });\n return [startTagPh].concat(this.serialize(ph.children), [closeTagPh]);\n };\n _WriteVisitor.prototype.visitPlaceholder = function (ph, context) {\n return [new Tag(_PLACEHOLDER_TAG, { id: ph.name })];\n };\n _WriteVisitor.prototype.visitIcuPlaceholder = function (ph, context) {\n return [new Tag(_PLACEHOLDER_TAG, { id: ph.name })];\n };\n _WriteVisitor.prototype.serialize = function (nodes) {\n var _this = this;\n this._isInIcu = false;\n return ListWrapper.flatten(nodes.map(function (node) { return node.visit(_this); }));\n };\n return _WriteVisitor;\n }());\n // TODO(vicb): add error management (structure)\n // TODO(vicb): factorize (xtb) ?\n var _LoadVisitor = (function () {\n function _LoadVisitor() {\n }\n _LoadVisitor.prototype.parse = function (nodes, messageBundle) {\n var _this = this;\n this._messageNodes = [];\n this._translatedMessages = {};\n this._msgId = '';\n this._target = [];\n this._errors = [];\n // Find all messages\n visitAll(this, nodes, null);\n var messageMap = messageBundle.getMessageMap();\n var placeholders = extractPlaceholders(messageBundle);\n var placeholderToIds = extractPlaceholderToIds(messageBundle);\n this._messageNodes\n .filter(function (message) {\n // Remove any messages that is not present in the source message bundle.\n return messageMap.hasOwnProperty(message[0]);\n })\n .sort(function (a, b) {\n // Because there could be no ICU placeholders inside an ICU message,\n // we do not need to take into account the `placeholderToMsgIds` of the referenced\n // messages, those would always be empty\n // TODO(vicb): overkill - create 2 buckets and [...woDeps, ...wDeps].process()\n if (Object.keys(messageMap[a[0]].placeholderToMsgIds).length == 0) {\n return -1;\n }\n if (Object.keys(messageMap[b[0]].placeholderToMsgIds).length == 0) {\n return 1;\n }\n return 0;\n })\n .forEach(function (message) {\n var id = message[0];\n _this._placeholders = placeholders[id] || {};\n _this._placeholderToIds = placeholderToIds[id] || {};\n // TODO(vicb): make sure there is no `_TRANSLATIONS_TAG` nor `_TRANSLATION_TAG`\n _this._translatedMessages[id] = visitAll(_this, message[1]).join('');\n });\n return { messages: this._translatedMessages, errors: this._errors };\n };\n _LoadVisitor.prototype.visitElement = function (element, context) {\n switch (element.name) {\n case _UNIT_TAG:\n this._target = null;\n var msgId = element.attrs.find(function (attr) { return attr.name === 'id'; });\n if (!msgId) {\n this._addError(element, \"<\" + _UNIT_TAG + \"> misses the \\\"id\\\" attribute\");\n }\n else {\n this._msgId = msgId.value;\n }\n visitAll(this, element.children, null);\n if (this._msgId !== null) {\n this._messageNodes.push([this._msgId, this._target]);\n }\n break;\n case _SOURCE_TAG:\n // ignore source message\n break;\n case _TARGET_TAG:\n this._target = element.children;\n break;\n case _PLACEHOLDER_TAG:\n var idAttr = element.attrs.find(function (attr) { return attr.name === 'id'; });\n if (!idAttr) {\n this._addError(element, \"<\" + _PLACEHOLDER_TAG + \"> misses the \\\"id\\\" attribute\");\n }\n else {\n var id = idAttr.value;\n if (this._placeholders.hasOwnProperty(id)) {\n return this._placeholders[id];\n }\n if (this._placeholderToIds.hasOwnProperty(id) &&\n this._translatedMessages.hasOwnProperty(this._placeholderToIds[id])) {\n return this._translatedMessages[this._placeholderToIds[id]];\n }\n // TODO(vicb): better error message for when\n // !this._translatedMessages.hasOwnProperty(this._placeholderToIds[id])\n this._addError(element, \"The placeholder \\\"\" + id + \"\\\" does not exists in the source message\");\n }\n break;\n default:\n visitAll(this, element.children, null);\n }\n };\n _LoadVisitor.prototype.visitAttribute = function (attribute, context) {\n throw new Error('unreachable code');\n };\n _LoadVisitor.prototype.visitText = function (text, context) { return text.value; };\n _LoadVisitor.prototype.visitComment = function (comment, context) { return ''; };\n _LoadVisitor.prototype.visitExpansion = function (expansion, context) {\n throw new Error('unreachable code');\n };\n _LoadVisitor.prototype.visitExpansionCase = function (expansionCase, context) {\n throw new Error('unreachable code');\n };\n _LoadVisitor.prototype._addError = function (node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n };\n return _LoadVisitor;\n }());\n\n var _MESSAGES_TAG = 'messagebundle';\n var _MESSAGE_TAG = 'msg';\n var _PLACEHOLDER_TAG$1 = 'ph';\n var _EXEMPLE_TAG = 'ex';\n var _DOCTYPE = \"<!ELEMENT messagebundle (msg)*>\\n<!ATTLIST messagebundle class CDATA #IMPLIED>\\n\\n<!ELEMENT msg (#PCDATA|ph|source)*>\\n<!ATTLIST msg id CDATA #IMPLIED>\\n<!ATTLIST msg seq CDATA #IMPLIED>\\n<!ATTLIST msg name CDATA #IMPLIED>\\n<!ATTLIST msg desc CDATA #IMPLIED>\\n<!ATTLIST msg meaning CDATA #IMPLIED>\\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\\n<!ATTLIST msg xml:space (default|preserve) \\\"default\\\">\\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\\n\\n<!ELEMENT source (#PCDATA)>\\n\\n<!ELEMENT ph (#PCDATA|ex)*>\\n<!ATTLIST ph name CDATA #REQUIRED>\\n\\n<!ELEMENT ex (#PCDATA)>\";\n var Xmb = (function () {\n function Xmb() {\n }\n Xmb.prototype.write = function (messageMap) {\n var visitor = new _Visitor$2();\n var rootNode = new Tag(_MESSAGES_TAG);\n rootNode.children.push(new Text$2('\\n'));\n Object.keys(messageMap).forEach(function (id) {\n var message = messageMap[id];\n var attrs = { id: id };\n if (message.description) {\n attrs['desc'] = message.description;\n }\n if (message.meaning) {\n attrs['meaning'] = message.meaning;\n }\n rootNode.children.push(new Text$2(' '), new Tag(_MESSAGE_TAG, attrs, visitor.serialize(message.nodes)), new Text$2('\\n'));\n });\n return serialize([\n new Declaration({ version: '1.0', encoding: 'UTF-8' }),\n new Text$2('\\n'),\n new Doctype(_MESSAGES_TAG, _DOCTYPE),\n new Text$2('\\n'),\n rootNode,\n ]);\n };\n Xmb.prototype.load = function (content, url, messageBundle) {\n throw new Error('Unsupported');\n };\n return Xmb;\n }());\n var _Visitor$2 = (function () {\n function _Visitor() {\n }\n _Visitor.prototype.visitText = function (text, context) { return [new Text$2(text.value)]; };\n _Visitor.prototype.visitContainer = function (container, context) {\n var _this = this;\n var nodes = [];\n container.children.forEach(function (node) { return nodes.push.apply(nodes, node.visit(_this)); });\n return nodes;\n };\n _Visitor.prototype.visitIcu = function (icu, context) {\n var _this = this;\n var nodes = [new Text$2(\"{\" + icu.expression + \", \" + icu.type + \", \")];\n Object.keys(icu.cases).forEach(function (c) {\n nodes.push.apply(nodes, [new Text$2(c + \" {\")].concat(icu.cases[c].visit(_this), [new Text$2(\"} \")]));\n });\n nodes.push(new Text$2(\"}\"));\n return nodes;\n };\n _Visitor.prototype.visitTagPlaceholder = function (ph, context) {\n var startEx = new Tag(_EXEMPLE_TAG, {}, [new Text$2(\"<\" + ph.tag + \">\")]);\n var startTagPh = new Tag(_PLACEHOLDER_TAG$1, { name: ph.startName }, [startEx]);\n if (ph.isVoid) {\n // void tags have no children nor closing tags\n return [startTagPh];\n }\n var closeEx = new Tag(_EXEMPLE_TAG, {}, [new Text$2(\"</\" + ph.tag + \">\")]);\n var closeTagPh = new Tag(_PLACEHOLDER_TAG$1, { name: ph.closeName }, [closeEx]);\n return [startTagPh].concat(this.serialize(ph.children), [closeTagPh]);\n };\n _Visitor.prototype.visitPlaceholder = function (ph, context) {\n return [new Tag(_PLACEHOLDER_TAG$1, { name: ph.name })];\n };\n _Visitor.prototype.visitIcuPlaceholder = function (ph, context) {\n return [new Tag(_PLACEHOLDER_TAG$1, { name: ph.name })];\n };\n _Visitor.prototype.serialize = function (nodes) {\n var _this = this;\n return ListWrapper.flatten(nodes.map(function (node) { return node.visit(_this); }));\n };\n return _Visitor;\n }());\n\n var _TRANSLATIONS_TAG = 'translationbundle';\n var _TRANSLATION_TAG = 'translation';\n var _PLACEHOLDER_TAG$2 = 'ph';\n var Xtb = (function () {\n function Xtb(_htmlParser, _interpolationConfig) {\n this._htmlParser = _htmlParser;\n this._interpolationConfig = _interpolationConfig;\n }\n Xtb.prototype.write = function (messageMap) { throw new Error('Unsupported'); };\n Xtb.prototype.load = function (content, url, messageBundle) {\n var _this = this;\n // Parse the xtb file into xml nodes\n var result = new XmlParser().parse(content, url);\n if (result.errors.length) {\n throw new Error(\"xtb parse errors:\\n\" + result.errors.join('\\n'));\n }\n // Replace the placeholders, messages are now string\n var _a = new _Visitor$3().parse(result.rootNodes, messageBundle), messages = _a.messages, errors = _a.errors;\n if (errors.length) {\n throw new Error(\"xtb parse errors:\\n\" + errors.join('\\n'));\n }\n // Convert the string messages to html ast\n // TODO(vicb): map error message back to the original message in xtb\n var messageMap = {};\n var parseErrors = [];\n Object.keys(messages).forEach(function (id) {\n var res = _this._htmlParser.parse(messages[id], url, true, _this._interpolationConfig);\n parseErrors.push.apply(parseErrors, res.errors);\n messageMap[id] = res.rootNodes;\n });\n if (parseErrors.length) {\n throw new Error(\"xtb parse errors:\\n\" + parseErrors.join('\\n'));\n }\n return messageMap;\n };\n return Xtb;\n }());\n var _Visitor$3 = (function () {\n function _Visitor() {\n }\n _Visitor.prototype.parse = function (nodes, messageBundle) {\n var _this = this;\n this._messageNodes = [];\n this._translatedMessages = {};\n this._bundleDepth = 0;\n this._translationDepth = 0;\n this._errors = [];\n // Find all messages\n visitAll(this, nodes, null);\n var messageMap = messageBundle.getMessageMap();\n var placeholders = extractPlaceholders(messageBundle);\n var placeholderToIds = extractPlaceholderToIds(messageBundle);\n this._messageNodes\n .filter(function (message) {\n // Remove any messages that is not present in the source message bundle.\n return messageMap.hasOwnProperty(message[0]);\n })\n .sort(function (a, b) {\n // Because there could be no ICU placeholders inside an ICU message,\n // we do not need to take into account the `placeholderToMsgIds` of the referenced\n // messages, those would always be empty\n // TODO(vicb): overkill - create 2 buckets and [...woDeps, ...wDeps].process()\n if (Object.keys(messageMap[a[0]].placeholderToMsgIds).length == 0) {\n return -1;\n }\n if (Object.keys(messageMap[b[0]].placeholderToMsgIds).length == 0) {\n return 1;\n }\n return 0;\n })\n .forEach(function (message) {\n var id = message[0];\n _this._placeholders = placeholders[id] || {};\n _this._placeholderToIds = placeholderToIds[id] || {};\n // TODO(vicb): make sure there is no `_TRANSLATIONS_TAG` nor `_TRANSLATION_TAG`\n _this._translatedMessages[id] = visitAll(_this, message[1]).join('');\n });\n return { messages: this._translatedMessages, errors: this._errors };\n };\n _Visitor.prototype.visitElement = function (element, context) {\n switch (element.name) {\n case _TRANSLATIONS_TAG:\n this._bundleDepth++;\n if (this._bundleDepth > 1) {\n this._addError(element, \"<\" + _TRANSLATIONS_TAG + \"> elements can not be nested\");\n }\n visitAll(this, element.children, null);\n this._bundleDepth--;\n break;\n case _TRANSLATION_TAG:\n this._translationDepth++;\n if (this._translationDepth > 1) {\n this._addError(element, \"<\" + _TRANSLATION_TAG + \"> elements can not be nested\");\n }\n var idAttr = element.attrs.find(function (attr) { return attr.name === 'id'; });\n if (!idAttr) {\n this._addError(element, \"<\" + _TRANSLATION_TAG + \"> misses the \\\"id\\\" attribute\");\n }\n else {\n // ICU placeholders are reference to other messages.\n // The referenced message might not have been decoded yet.\n // We need to have all messages available to make sure deps are decoded first.\n // TODO(vicb): report an error on duplicate id\n this._messageNodes.push([idAttr.value, element.children]);\n }\n this._translationDepth--;\n break;\n case _PLACEHOLDER_TAG$2:\n var nameAttr = element.attrs.find(function (attr) { return attr.name === 'name'; });\n if (!nameAttr) {\n this._addError(element, \"<\" + _PLACEHOLDER_TAG$2 + \"> misses the \\\"name\\\" attribute\");\n }\n else {\n var name_1 = nameAttr.value;\n if (this._placeholders.hasOwnProperty(name_1)) {\n return this._placeholders[name_1];\n }\n if (this._placeholderToIds.hasOwnProperty(name_1) &&\n this._translatedMessages.hasOwnProperty(this._placeholderToIds[name_1])) {\n return this._translatedMessages[this._placeholderToIds[name_1]];\n }\n // TODO(vicb): better error message for when\n // !this._translatedMessages.hasOwnProperty(this._placeholderToIds[name])\n this._addError(element, \"The placeholder \\\"\" + name_1 + \"\\\" does not exists in the source message\");\n }\n break;\n default:\n this._addError(element, 'Unexpected tag');\n }\n };\n _Visitor.prototype.visitAttribute = function (attribute, context) {\n throw new Error('unreachable code');\n };\n _Visitor.prototype.visitText = function (text, context) { return text.value; };\n _Visitor.prototype.visitComment = function (comment, context) { return ''; };\n _Visitor.prototype.visitExpansion = function (expansion, context) {\n var _this = this;\n var strCases = expansion.cases.map(function (c) { return c.visit(_this, null); });\n return \"{\" + expansion.switchValue + \", \" + expansion.type + \", strCases.join(' ')}\";\n };\n _Visitor.prototype.visitExpansionCase = function (expansionCase, context) {\n return expansionCase.value + \" {\" + visitAll(this, expansionCase.expression, null) + \"}\";\n };\n _Visitor.prototype._addError = function (node, message) {\n this._errors.push(new I18nError(node.sourceSpan, message));\n };\n return _Visitor;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * A container for translated messages\n */\n var TranslationBundle = (function () {\n function TranslationBundle(_messageMap) {\n if (_messageMap === void 0) { _messageMap = {}; }\n this._messageMap = _messageMap;\n }\n TranslationBundle.load = function (content, url, messageBundle, serializer) {\n return new TranslationBundle(serializer.load(content, url, messageBundle));\n };\n TranslationBundle.prototype.get = function (id) { return this._messageMap[id]; };\n TranslationBundle.prototype.has = function (id) { return id in this._messageMap; };\n return TranslationBundle;\n }());\n\n var I18NHtmlParser = (function () {\n // TODO(vicb): transB.load() should not need a msgB & add transB.resolve(msgB,\n // interpolationConfig)\n // TODO(vicb): remove the interpolationConfig from the Xtb serializer\n function I18NHtmlParser(_htmlParser, _translations, _translationsFormat) {\n this._htmlParser = _htmlParser;\n this._translations = _translations;\n this._translationsFormat = _translationsFormat;\n }\n I18NHtmlParser.prototype.parse = function (source, url, parseExpansionForms, interpolationConfig) {\n if (parseExpansionForms === void 0) { parseExpansionForms = false; }\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n var parseResult = this._htmlParser.parse(source, url, parseExpansionForms, interpolationConfig);\n if (!this._translations || this._translations === '') {\n // Do not enable i18n when no translation bundle is provided\n return parseResult;\n }\n // TODO(vicb): add support for implicit tags / attributes\n var messageBundle = new MessageBundle(this._htmlParser, [], {});\n var errors = messageBundle.updateFromTemplate(source, url, interpolationConfig);\n if (errors && errors.length) {\n return new ParseTreeResult(parseResult.rootNodes, parseResult.errors.concat(errors));\n }\n var serializer = this._createSerializer(interpolationConfig);\n var translationBundle = TranslationBundle.load(this._translations, url, messageBundle, serializer);\n return mergeTranslations(parseResult.rootNodes, translationBundle, interpolationConfig, [], {});\n };\n I18NHtmlParser.prototype._createSerializer = function (interpolationConfig) {\n var format = (this._translationsFormat || 'xlf').toLowerCase();\n switch (format) {\n case 'xmb':\n return new Xmb();\n case 'xtb':\n return new Xtb(this._htmlParser, interpolationConfig);\n case 'xliff':\n case 'xlf':\n default:\n return new Xliff(this._htmlParser, interpolationConfig);\n }\n };\n return I18NHtmlParser;\n }());\n\n var isDefaultChangeDetectionStrategy = _angular_core.__core_private__.isDefaultChangeDetectionStrategy;\n var ChangeDetectorStatus = _angular_core.__core_private__.ChangeDetectorStatus;\n var LifecycleHooks = _angular_core.__core_private__.LifecycleHooks;\n var LIFECYCLE_HOOKS_VALUES = _angular_core.__core_private__.LIFECYCLE_HOOKS_VALUES;\n var ReflectorReader = _angular_core.__core_private__.ReflectorReader;\n var AppElement = _angular_core.__core_private__.AppElement;\n var CodegenComponentFactoryResolver = _angular_core.__core_private__.CodegenComponentFactoryResolver;\n var AppView = _angular_core.__core_private__.AppView;\n var DebugAppView = _angular_core.__core_private__.DebugAppView;\n var NgModuleInjector = _angular_core.__core_private__.NgModuleInjector;\n var ViewType = _angular_core.__core_private__.ViewType;\n var MAX_INTERPOLATION_VALUES = _angular_core.__core_private__.MAX_INTERPOLATION_VALUES;\n var checkBinding = _angular_core.__core_private__.checkBinding;\n var flattenNestedViewRenderNodes = _angular_core.__core_private__.flattenNestedViewRenderNodes;\n var interpolate = _angular_core.__core_private__.interpolate;\n var ViewUtils = _angular_core.__core_private__.ViewUtils;\n var DebugContext = _angular_core.__core_private__.DebugContext;\n var StaticNodeDebugInfo = _angular_core.__core_private__.StaticNodeDebugInfo;\n var devModeEqual = _angular_core.__core_private__.devModeEqual;\n var UNINITIALIZED = _angular_core.__core_private__.UNINITIALIZED;\n var ValueUnwrapper = _angular_core.__core_private__.ValueUnwrapper;\n var TemplateRef_ = _angular_core.__core_private__.TemplateRef_;\n var EMPTY_ARRAY = _angular_core.__core_private__.EMPTY_ARRAY;\n var EMPTY_MAP = _angular_core.__core_private__.EMPTY_MAP;\n var pureProxy1 = _angular_core.__core_private__.pureProxy1;\n var pureProxy2 = _angular_core.__core_private__.pureProxy2;\n var pureProxy3 = _angular_core.__core_private__.pureProxy3;\n var pureProxy4 = _angular_core.__core_private__.pureProxy4;\n var pureProxy5 = _angular_core.__core_private__.pureProxy5;\n var pureProxy6 = _angular_core.__core_private__.pureProxy6;\n var pureProxy7 = _angular_core.__core_private__.pureProxy7;\n var pureProxy8 = _angular_core.__core_private__.pureProxy8;\n var pureProxy9 = _angular_core.__core_private__.pureProxy9;\n var pureProxy10 = _angular_core.__core_private__.pureProxy10;\n var castByValue = _angular_core.__core_private__.castByValue;\n var Console = _angular_core.__core_private__.Console;\n var reflector = _angular_core.__core_private__.reflector;\n var Reflector = _angular_core.__core_private__.Reflector;\n var ReflectionCapabilities = _angular_core.__core_private__.ReflectionCapabilities;\n var NoOpAnimationPlayer = _angular_core.__core_private__.NoOpAnimationPlayer;\n var AnimationSequencePlayer = _angular_core.__core_private__.AnimationSequencePlayer;\n var AnimationGroupPlayer = _angular_core.__core_private__.AnimationGroupPlayer;\n var AnimationKeyframe = _angular_core.__core_private__.AnimationKeyframe;\n var AnimationStyles = _angular_core.__core_private__.AnimationStyles;\n var AnimationOutput = _angular_core.__core_private__.AnimationOutput;\n var ANY_STATE = _angular_core.__core_private__.ANY_STATE;\n var DEFAULT_STATE = _angular_core.__core_private__.DEFAULT_STATE;\n var EMPTY_ANIMATION_STATE = _angular_core.__core_private__.EMPTY_STATE;\n var FILL_STYLE_FLAG = _angular_core.__core_private__.FILL_STYLE_FLAG;\n var prepareFinalAnimationStyles = _angular_core.__core_private__.prepareFinalAnimationStyles;\n var balanceAnimationKeyframes = _angular_core.__core_private__.balanceAnimationKeyframes;\n var clearStyles = _angular_core.__core_private__.clearStyles;\n var collectAndResolveStyles = _angular_core.__core_private__.collectAndResolveStyles;\n var renderStyles = _angular_core.__core_private__.renderStyles;\n var ComponentStillLoadingError = _angular_core.__core_private__.ComponentStillLoadingError;\n\n var APP_VIEW_MODULE_URL = assetUrl('core', 'linker/view');\n var VIEW_UTILS_MODULE_URL = assetUrl('core', 'linker/view_utils');\n var CD_MODULE_URL = assetUrl('core', 'change_detection/change_detection');\n var ANIMATION_STYLE_UTIL_ASSET_URL = assetUrl('core', 'animation/animation_style_util');\n var Identifiers = (function () {\n function Identifiers() {\n }\n Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS = {\n name: 'ANALYZE_FOR_ENTRY_COMPONENTS',\n moduleUrl: assetUrl('core', 'metadata/di'),\n runtime: _angular_core.ANALYZE_FOR_ENTRY_COMPONENTS\n };\n Identifiers.ViewUtils = {\n name: 'ViewUtils',\n moduleUrl: assetUrl('core', 'linker/view_utils'),\n runtime: ViewUtils\n };\n Identifiers.AppView = { name: 'AppView', moduleUrl: APP_VIEW_MODULE_URL, runtime: AppView };\n Identifiers.DebugAppView = {\n name: 'DebugAppView',\n moduleUrl: APP_VIEW_MODULE_URL,\n runtime: DebugAppView\n };\n Identifiers.AppElement = {\n name: 'AppElement',\n moduleUrl: assetUrl('core', 'linker/element'),\n runtime: AppElement\n };\n Identifiers.ElementRef = {\n name: 'ElementRef',\n moduleUrl: assetUrl('core', 'linker/element_ref'),\n runtime: _angular_core.ElementRef\n };\n Identifiers.ViewContainerRef = {\n name: 'ViewContainerRef',\n moduleUrl: assetUrl('core', 'linker/view_container_ref'),\n runtime: _angular_core.ViewContainerRef\n };\n Identifiers.ChangeDetectorRef = {\n name: 'ChangeDetectorRef',\n moduleUrl: assetUrl('core', 'change_detection/change_detector_ref'),\n runtime: _angular_core.ChangeDetectorRef\n };\n Identifiers.RenderComponentType = {\n name: 'RenderComponentType',\n moduleUrl: assetUrl('core', 'render/api'),\n runtime: _angular_core.RenderComponentType\n };\n Identifiers.QueryList = {\n name: 'QueryList',\n moduleUrl: assetUrl('core', 'linker/query_list'),\n runtime: _angular_core.QueryList\n };\n Identifiers.TemplateRef = {\n name: 'TemplateRef',\n moduleUrl: assetUrl('core', 'linker/template_ref'),\n runtime: _angular_core.TemplateRef\n };\n Identifiers.TemplateRef_ = {\n name: 'TemplateRef_',\n moduleUrl: assetUrl('core', 'linker/template_ref'),\n runtime: TemplateRef_\n };\n Identifiers.CodegenComponentFactoryResolver = {\n name: 'CodegenComponentFactoryResolver',\n moduleUrl: assetUrl('core', 'linker/component_factory_resolver'),\n runtime: CodegenComponentFactoryResolver\n };\n Identifiers.ComponentFactoryResolver = {\n name: 'ComponentFactoryResolver',\n moduleUrl: assetUrl('core', 'linker/component_factory_resolver'),\n runtime: _angular_core.ComponentFactoryResolver\n };\n Identifiers.ComponentFactory = {\n name: 'ComponentFactory',\n runtime: _angular_core.ComponentFactory,\n moduleUrl: assetUrl('core', 'linker/component_factory')\n };\n Identifiers.NgModuleFactory = {\n name: 'NgModuleFactory',\n runtime: _angular_core.NgModuleFactory,\n moduleUrl: assetUrl('core', 'linker/ng_module_factory')\n };\n Identifiers.NgModuleInjector = {\n name: 'NgModuleInjector',\n runtime: NgModuleInjector,\n moduleUrl: assetUrl('core', 'linker/ng_module_factory')\n };\n Identifiers.ValueUnwrapper = { name: 'ValueUnwrapper', moduleUrl: CD_MODULE_URL, runtime: ValueUnwrapper };\n Identifiers.Injector = {\n name: 'Injector',\n moduleUrl: assetUrl('core', 'di/injector'),\n runtime: _angular_core.Injector\n };\n Identifiers.ViewEncapsulation = {\n name: 'ViewEncapsulation',\n moduleUrl: assetUrl('core', 'metadata/view'),\n runtime: _angular_core.ViewEncapsulation\n };\n Identifiers.ViewType = {\n name: 'ViewType',\n moduleUrl: assetUrl('core', 'linker/view_type'),\n runtime: ViewType\n };\n Identifiers.ChangeDetectionStrategy = {\n name: 'ChangeDetectionStrategy',\n moduleUrl: CD_MODULE_URL,\n runtime: _angular_core.ChangeDetectionStrategy\n };\n Identifiers.StaticNodeDebugInfo = {\n name: 'StaticNodeDebugInfo',\n moduleUrl: assetUrl('core', 'linker/debug_context'),\n runtime: StaticNodeDebugInfo\n };\n Identifiers.DebugContext = {\n name: 'DebugContext',\n moduleUrl: assetUrl('core', 'linker/debug_context'),\n runtime: DebugContext\n };\n Identifiers.Renderer = {\n name: 'Renderer',\n moduleUrl: assetUrl('core', 'render/api'),\n runtime: _angular_core.Renderer\n };\n Identifiers.SimpleChange = { name: 'SimpleChange', moduleUrl: CD_MODULE_URL, runtime: _angular_core.SimpleChange };\n Identifiers.UNINITIALIZED = { name: 'UNINITIALIZED', moduleUrl: CD_MODULE_URL, runtime: UNINITIALIZED };\n Identifiers.ChangeDetectorStatus = {\n name: 'ChangeDetectorStatus',\n moduleUrl: CD_MODULE_URL,\n runtime: ChangeDetectorStatus\n };\n Identifiers.checkBinding = {\n name: 'checkBinding',\n moduleUrl: VIEW_UTILS_MODULE_URL,\n runtime: checkBinding\n };\n Identifiers.flattenNestedViewRenderNodes = {\n name: 'flattenNestedViewRenderNodes',\n moduleUrl: VIEW_UTILS_MODULE_URL,\n runtime: flattenNestedViewRenderNodes\n };\n Identifiers.devModeEqual = { name: 'devModeEqual', moduleUrl: CD_MODULE_URL, runtime: devModeEqual };\n Identifiers.interpolate = {\n name: 'interpolate',\n moduleUrl: VIEW_UTILS_MODULE_URL,\n runtime: interpolate\n };\n Identifiers.castByValue = {\n name: 'castByValue',\n moduleUrl: VIEW_UTILS_MODULE_URL,\n runtime: castByValue\n };\n Identifiers.EMPTY_ARRAY = {\n name: 'EMPTY_ARRAY',\n moduleUrl: VIEW_UTILS_MODULE_URL,\n runtime: EMPTY_ARRAY\n };\n Identifiers.EMPTY_MAP = { name: 'EMPTY_MAP', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: EMPTY_MAP };\n Identifiers.pureProxies = [\n null,\n { name: 'pureProxy1', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy1 },\n { name: 'pureProxy2', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy2 },\n { name: 'pureProxy3', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy3 },\n { name: 'pureProxy4', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy4 },\n { name: 'pureProxy5', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy5 },\n { name: 'pureProxy6', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy6 },\n { name: 'pureProxy7', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy7 },\n { name: 'pureProxy8', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy8 },\n { name: 'pureProxy9', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy9 },\n { name: 'pureProxy10', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: pureProxy10 },\n ];\n Identifiers.SecurityContext = {\n name: 'SecurityContext',\n moduleUrl: assetUrl('core', 'security'),\n runtime: _angular_core.SecurityContext,\n };\n Identifiers.AnimationKeyframe = {\n name: 'AnimationKeyframe',\n moduleUrl: assetUrl('core', 'animation/animation_keyframe'),\n runtime: AnimationKeyframe\n };\n Identifiers.AnimationStyles = {\n name: 'AnimationStyles',\n moduleUrl: assetUrl('core', 'animation/animation_styles'),\n runtime: AnimationStyles\n };\n Identifiers.NoOpAnimationPlayer = {\n name: 'NoOpAnimationPlayer',\n moduleUrl: assetUrl('core', 'animation/animation_player'),\n runtime: NoOpAnimationPlayer\n };\n Identifiers.AnimationGroupPlayer = {\n name: 'AnimationGroupPlayer',\n moduleUrl: assetUrl('core', 'animation/animation_group_player'),\n runtime: AnimationGroupPlayer\n };\n Identifiers.AnimationSequencePlayer = {\n name: 'AnimationSequencePlayer',\n moduleUrl: assetUrl('core', 'animation/animation_sequence_player'),\n runtime: AnimationSequencePlayer\n };\n Identifiers.prepareFinalAnimationStyles = {\n name: 'prepareFinalAnimationStyles',\n moduleUrl: ANIMATION_STYLE_UTIL_ASSET_URL,\n runtime: prepareFinalAnimationStyles\n };\n Identifiers.balanceAnimationKeyframes = {\n name: 'balanceAnimationKeyframes',\n moduleUrl: ANIMATION_STYLE_UTIL_ASSET_URL,\n runtime: balanceAnimationKeyframes\n };\n Identifiers.clearStyles = {\n name: 'clearStyles',\n moduleUrl: ANIMATION_STYLE_UTIL_ASSET_URL,\n runtime: clearStyles\n };\n Identifiers.renderStyles = {\n name: 'renderStyles',\n moduleUrl: ANIMATION_STYLE_UTIL_ASSET_URL,\n runtime: renderStyles\n };\n Identifiers.collectAndResolveStyles = {\n name: 'collectAndResolveStyles',\n moduleUrl: ANIMATION_STYLE_UTIL_ASSET_URL,\n runtime: collectAndResolveStyles\n };\n Identifiers.LOCALE_ID = {\n name: 'LOCALE_ID',\n moduleUrl: assetUrl('core', 'i18n/tokens'),\n runtime: _angular_core.LOCALE_ID\n };\n Identifiers.TRANSLATIONS_FORMAT = {\n name: 'TRANSLATIONS_FORMAT',\n moduleUrl: assetUrl('core', 'i18n/tokens'),\n runtime: _angular_core.TRANSLATIONS_FORMAT\n };\n Identifiers.AnimationOutput = {\n name: 'AnimationOutput',\n moduleUrl: assetUrl('core', 'animation/animation_output'),\n runtime: AnimationOutput\n };\n return Identifiers;\n }());\n function resolveIdentifier(identifier) {\n return new CompileIdentifierMetadata({\n name: identifier.name,\n moduleUrl: identifier.moduleUrl,\n reference: reflector.resolveIdentifier(identifier.name, identifier.moduleUrl, identifier.runtime)\n });\n }\n function identifierToken(identifier) {\n return new CompileTokenMetadata({ identifier: identifier });\n }\n function resolveIdentifierToken(identifier) {\n return identifierToken(resolveIdentifier(identifier));\n }\n function resolveEnumIdentifier(enumType, name) {\n var resolvedEnum = reflector.resolveEnum(enumType.reference, name);\n return new CompileIdentifierMetadata({ name: enumType.name + \".\" + name, moduleUrl: enumType.moduleUrl, reference: resolvedEnum });\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$8 = (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 };\n var HtmlParser = (function (_super) {\n __extends$8(HtmlParser, _super);\n function HtmlParser() {\n _super.call(this, getHtmlTagDefinition);\n }\n HtmlParser.prototype.parse = function (source, url, parseExpansionForms, interpolationConfig) {\n if (parseExpansionForms === void 0) { parseExpansionForms = false; }\n if (interpolationConfig === void 0) { interpolationConfig = DEFAULT_INTERPOLATION_CONFIG; }\n return _super.prototype.parse.call(this, source, url, parseExpansionForms, interpolationConfig);\n };\n HtmlParser.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n HtmlParser.ctorParameters = [];\n return HtmlParser;\n }(Parser$1));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$9 = (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 };\n // http://cldr.unicode.org/index/cldr-spec/plural-rules\n var PLURAL_CASES = ['zero', 'one', 'two', 'few', 'many', 'other'];\n /**\n * Expands special forms into elements.\n *\n * For example,\n *\n * ```\n * { messages.length, plural,\n * =0 {zero}\n * =1 {one}\n * other {more than one}\n * }\n * ```\n *\n * will be expanded into\n *\n * ```\n * <ng-container [ngPlural]=\"messages.length\">\n * <template ngPluralCase=\"=0\">zero</ng-container>\n * <template ngPluralCase=\"=1\">one</ng-container>\n * <template ngPluralCase=\"other\">more than one</ng-container>\n * </ng-container>\n * ```\n */\n function expandNodes(nodes) {\n var expander = new _Expander();\n return new ExpansionResult(visitAll(expander, nodes), expander.isExpanded, expander.errors);\n }\n var ExpansionResult = (function () {\n function ExpansionResult(nodes, expanded, errors) {\n this.nodes = nodes;\n this.expanded = expanded;\n this.errors = errors;\n }\n return ExpansionResult;\n }());\n var ExpansionError = (function (_super) {\n __extends$9(ExpansionError, _super);\n function ExpansionError(span, errorMsg) {\n _super.call(this, span, errorMsg);\n }\n return ExpansionError;\n }(ParseError));\n /**\n * Expand expansion forms (plural, select) to directives\n *\n * @internal\n */\n var _Expander = (function () {\n function _Expander() {\n this.isExpanded = false;\n this.errors = [];\n }\n _Expander.prototype.visitElement = function (element, context) {\n return new Element(element.name, element.attrs, visitAll(this, element.children), element.sourceSpan, element.startSourceSpan, element.endSourceSpan);\n };\n _Expander.prototype.visitAttribute = function (attribute, context) { return attribute; };\n _Expander.prototype.visitText = function (text, context) { return text; };\n _Expander.prototype.visitComment = function (comment, context) { return comment; };\n _Expander.prototype.visitExpansion = function (icu, context) {\n this.isExpanded = true;\n return icu.type == 'plural' ? _expandPluralForm(icu, this.errors) :\n _expandDefaultForm(icu, this.errors);\n };\n _Expander.prototype.visitExpansionCase = function (icuCase, context) {\n throw new Error('Should not be reached');\n };\n return _Expander;\n }());\n function _expandPluralForm(ast, errors) {\n var children = ast.cases.map(function (c) {\n if (PLURAL_CASES.indexOf(c.value) == -1 && !c.value.match(/^=\\d+$/)) {\n errors.push(new ExpansionError(c.valueSourceSpan, \"Plural cases should be \\\"=<number>\\\" or one of \" + PLURAL_CASES.join(\", \")));\n }\n var expansionResult = expandNodes(c.expression);\n errors.push.apply(errors, expansionResult.errors);\n return new Element(\"template\", [new Attribute('ngPluralCase', \"\" + c.value, c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);\n });\n var switchAttr = new Attribute('[ngPlural]', ast.switchValue, ast.switchValueSourceSpan);\n return new Element('ng-container', [switchAttr], children, ast.sourceSpan, ast.sourceSpan, ast.sourceSpan);\n }\n function _expandDefaultForm(ast, errors) {\n var children = ast.cases.map(function (c) {\n var expansionResult = expandNodes(c.expression);\n errors.push.apply(errors, expansionResult.errors);\n return new Element(\"template\", [new Attribute('ngSwitchCase', \"\" + c.value, c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);\n });\n var switchAttr = new Attribute('[ngSwitch]', ast.switchValue, ast.switchValueSourceSpan);\n return new Element('ng-container', [switchAttr], children, ast.sourceSpan, ast.sourceSpan, ast.sourceSpan);\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$10 = (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 };\n var ProviderError = (function (_super) {\n __extends$10(ProviderError, _super);\n function ProviderError(message, span) {\n _super.call(this, span, message);\n }\n return ProviderError;\n }(ParseError));\n var ProviderViewContext = (function () {\n function ProviderViewContext(component, sourceSpan) {\n var _this = this;\n this.component = component;\n this.sourceSpan = sourceSpan;\n this.errors = [];\n this.viewQueries = _getViewQueries(component);\n this.viewProviders = new Map();\n _normalizeProviders(component.viewProviders, sourceSpan, this.errors).forEach(function (provider) {\n if (isBlank(_this.viewProviders.get(provider.token.reference))) {\n _this.viewProviders.set(provider.token.reference, true);\n }\n });\n }\n return ProviderViewContext;\n }());\n var ProviderElementContext = (function () {\n function ProviderElementContext(_viewContext, _parent, _isViewRoot, _directiveAsts, attrs, refs, _sourceSpan) {\n var _this = this;\n this._viewContext = _viewContext;\n this._parent = _parent;\n this._isViewRoot = _isViewRoot;\n this._directiveAsts = _directiveAsts;\n this._sourceSpan = _sourceSpan;\n this._transformedProviders = new Map();\n this._seenProviders = new Map();\n this._hasViewContainer = false;\n this._attrs = {};\n attrs.forEach(function (attrAst) { return _this._attrs[attrAst.name] = attrAst.value; });\n var directivesMeta = _directiveAsts.map(function (directiveAst) { return directiveAst.directive; });\n this._allProviders =\n _resolveProvidersFromDirectives(directivesMeta, _sourceSpan, _viewContext.errors);\n this._contentQueries = _getContentQueries(directivesMeta);\n var queriedTokens = new Map();\n MapWrapper.values(this._allProviders).forEach(function (provider) {\n _this._addQueryReadsTo(provider.token, queriedTokens);\n });\n refs.forEach(function (refAst) {\n _this._addQueryReadsTo(new CompileTokenMetadata({ value: refAst.name }), queriedTokens);\n });\n if (isPresent(queriedTokens.get(resolveIdentifierToken(Identifiers.ViewContainerRef).reference))) {\n this._hasViewContainer = true;\n }\n // create the providers that we know are eager first\n MapWrapper.values(this._allProviders).forEach(function (provider) {\n var eager = provider.eager || isPresent(queriedTokens.get(provider.token.reference));\n if (eager) {\n _this._getOrCreateLocalProvider(provider.providerType, provider.token, true);\n }\n });\n }\n ProviderElementContext.prototype.afterElement = function () {\n var _this = this;\n // collect lazy providers\n MapWrapper.values(this._allProviders).forEach(function (provider) {\n _this._getOrCreateLocalProvider(provider.providerType, provider.token, false);\n });\n };\n Object.defineProperty(ProviderElementContext.prototype, \"transformProviders\", {\n get: function () { return MapWrapper.values(this._transformedProviders); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ProviderElementContext.prototype, \"transformedDirectiveAsts\", {\n get: function () {\n var sortedProviderTypes = this.transformProviders.map(function (provider) { return provider.token.identifier; });\n var sortedDirectives = ListWrapper.clone(this._directiveAsts);\n ListWrapper.sort(sortedDirectives, function (dir1, dir2) { return sortedProviderTypes.indexOf(dir1.directive.type) -\n sortedProviderTypes.indexOf(dir2.directive.type); });\n return sortedDirectives;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ProviderElementContext.prototype, \"transformedHasViewContainer\", {\n get: function () { return this._hasViewContainer; },\n enumerable: true,\n configurable: true\n });\n ProviderElementContext.prototype._addQueryReadsTo = function (token, queryReadTokens) {\n this._getQueriesFor(token).forEach(function (query) {\n var queryReadToken = isPresent(query.read) ? query.read : token;\n if (isBlank(queryReadTokens.get(queryReadToken.reference))) {\n queryReadTokens.set(queryReadToken.reference, true);\n }\n });\n };\n ProviderElementContext.prototype._getQueriesFor = function (token) {\n var result = [];\n var currentEl = this;\n var distance = 0;\n var queries;\n while (currentEl !== null) {\n queries = currentEl._contentQueries.get(token.reference);\n if (isPresent(queries)) {\n ListWrapper.addAll(result, queries.filter(function (query) { return query.descendants || distance <= 1; }));\n }\n if (currentEl._directiveAsts.length > 0) {\n distance++;\n }\n currentEl = currentEl._parent;\n }\n queries = this._viewContext.viewQueries.get(token.reference);\n if (isPresent(queries)) {\n ListWrapper.addAll(result, queries);\n }\n return result;\n };\n ProviderElementContext.prototype._getOrCreateLocalProvider = function (requestingProviderType, token, eager) {\n var _this = this;\n var resolvedProvider = this._allProviders.get(token.reference);\n if (isBlank(resolvedProvider) ||\n ((requestingProviderType === exports.ProviderAstType.Directive ||\n requestingProviderType === exports.ProviderAstType.PublicService) &&\n resolvedProvider.providerType === exports.ProviderAstType.PrivateService) ||\n ((requestingProviderType === exports.ProviderAstType.PrivateService ||\n requestingProviderType === exports.ProviderAstType.PublicService) &&\n resolvedProvider.providerType === exports.ProviderAstType.Builtin)) {\n return null;\n }\n var transformedProviderAst = this._transformedProviders.get(token.reference);\n if (isPresent(transformedProviderAst)) {\n return transformedProviderAst;\n }\n if (isPresent(this._seenProviders.get(token.reference))) {\n this._viewContext.errors.push(new ProviderError(\"Cannot instantiate cyclic dependency! \" + token.name, this._sourceSpan));\n return null;\n }\n this._seenProviders.set(token.reference, true);\n var transformedProviders = resolvedProvider.providers.map(function (provider) {\n var transformedUseValue = provider.useValue;\n var transformedUseExisting = provider.useExisting;\n var transformedDeps;\n if (isPresent(provider.useExisting)) {\n var existingDiDep = _this._getDependency(resolvedProvider.providerType, new CompileDiDependencyMetadata({ token: provider.useExisting }), eager);\n if (isPresent(existingDiDep.token)) {\n transformedUseExisting = existingDiDep.token;\n }\n else {\n transformedUseExisting = null;\n transformedUseValue = existingDiDep.value;\n }\n }\n else if (isPresent(provider.useFactory)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useFactory.diDeps;\n transformedDeps =\n deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep, eager); });\n }\n else if (isPresent(provider.useClass)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useClass.diDeps;\n transformedDeps =\n deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep, eager); });\n }\n return _transformProvider(provider, {\n useExisting: transformedUseExisting,\n useValue: transformedUseValue,\n deps: transformedDeps\n });\n });\n transformedProviderAst =\n _transformProviderAst(resolvedProvider, { eager: eager, providers: transformedProviders });\n this._transformedProviders.set(token.reference, transformedProviderAst);\n return transformedProviderAst;\n };\n ProviderElementContext.prototype._getLocalDependency = function (requestingProviderType, dep, eager) {\n if (eager === void 0) { eager = null; }\n if (dep.isAttribute) {\n var attrValue = this._attrs[dep.token.value];\n return new CompileDiDependencyMetadata({ isValue: true, value: normalizeBlank(attrValue) });\n }\n if (isPresent(dep.query) || isPresent(dep.viewQuery)) {\n return dep;\n }\n if (isPresent(dep.token)) {\n // access builtints\n if ((requestingProviderType === exports.ProviderAstType.Directive ||\n requestingProviderType === exports.ProviderAstType.Component)) {\n if (dep.token.reference === resolveIdentifierToken(Identifiers.Renderer).reference ||\n dep.token.reference === resolveIdentifierToken(Identifiers.ElementRef).reference ||\n dep.token.reference ===\n resolveIdentifierToken(Identifiers.ChangeDetectorRef).reference ||\n dep.token.reference === resolveIdentifierToken(Identifiers.TemplateRef).reference) {\n return dep;\n }\n if (dep.token.reference ===\n resolveIdentifierToken(Identifiers.ViewContainerRef).reference) {\n this._hasViewContainer = true;\n }\n }\n // access the injector\n if (dep.token.reference === resolveIdentifierToken(Identifiers.Injector).reference) {\n return dep;\n }\n // access providers\n if (isPresent(this._getOrCreateLocalProvider(requestingProviderType, dep.token, eager))) {\n return dep;\n }\n }\n return null;\n };\n ProviderElementContext.prototype._getDependency = function (requestingProviderType, dep, eager) {\n if (eager === void 0) { eager = null; }\n var currElement = this;\n var currEager = eager;\n var result = null;\n if (!dep.isSkipSelf) {\n result = this._getLocalDependency(requestingProviderType, dep, eager);\n }\n if (dep.isSelf) {\n if (isBlank(result) && dep.isOptional) {\n result = new CompileDiDependencyMetadata({ isValue: true, value: null });\n }\n }\n else {\n // check parent elements\n while (isBlank(result) && isPresent(currElement._parent)) {\n var prevElement = currElement;\n currElement = currElement._parent;\n if (prevElement._isViewRoot) {\n currEager = false;\n }\n result = currElement._getLocalDependency(exports.ProviderAstType.PublicService, dep, currEager);\n }\n // check @Host restriction\n if (isBlank(result)) {\n if (!dep.isHost || this._viewContext.component.type.isHost ||\n this._viewContext.component.type.reference === dep.token.reference ||\n isPresent(this._viewContext.viewProviders.get(dep.token.reference))) {\n result = dep;\n }\n else {\n result = dep.isOptional ?\n result = new CompileDiDependencyMetadata({ isValue: true, value: null }) :\n null;\n }\n }\n }\n if (isBlank(result)) {\n this._viewContext.errors.push(new ProviderError(\"No provider for \" + dep.token.name, this._sourceSpan));\n }\n return result;\n };\n return ProviderElementContext;\n }());\n var NgModuleProviderAnalyzer = (function () {\n function NgModuleProviderAnalyzer(ngModule, extraProviders, sourceSpan) {\n var _this = this;\n this._transformedProviders = new Map();\n this._seenProviders = new Map();\n this._errors = [];\n this._allProviders = new Map();\n var ngModuleTypes = ngModule.transitiveModule.modules.map(function (moduleMeta) { return moduleMeta.type; });\n ngModuleTypes.forEach(function (ngModuleType) {\n var ngModuleProvider = new CompileProviderMetadata({ token: new CompileTokenMetadata({ identifier: ngModuleType }), useClass: ngModuleType });\n _resolveProviders([ngModuleProvider], exports.ProviderAstType.PublicService, true, sourceSpan, _this._errors, _this._allProviders);\n });\n _resolveProviders(_normalizeProviders(ngModule.transitiveModule.providers.concat(extraProviders), sourceSpan, this._errors), exports.ProviderAstType.PublicService, false, sourceSpan, this._errors, this._allProviders);\n }\n NgModuleProviderAnalyzer.prototype.parse = function () {\n var _this = this;\n MapWrapper.values(this._allProviders).forEach(function (provider) {\n _this._getOrCreateLocalProvider(provider.token, provider.eager);\n });\n if (this._errors.length > 0) {\n var errorString = this._errors.join('\\n');\n throw new Error(\"Provider parse errors:\\n\" + errorString);\n }\n return MapWrapper.values(this._transformedProviders);\n };\n NgModuleProviderAnalyzer.prototype._getOrCreateLocalProvider = function (token, eager) {\n var _this = this;\n var resolvedProvider = this._allProviders.get(token.reference);\n if (isBlank(resolvedProvider)) {\n return null;\n }\n var transformedProviderAst = this._transformedProviders.get(token.reference);\n if (isPresent(transformedProviderAst)) {\n return transformedProviderAst;\n }\n if (isPresent(this._seenProviders.get(token.reference))) {\n this._errors.push(new ProviderError(\"Cannot instantiate cyclic dependency! \" + token.name, resolvedProvider.sourceSpan));\n return null;\n }\n this._seenProviders.set(token.reference, true);\n var transformedProviders = resolvedProvider.providers.map(function (provider) {\n var transformedUseValue = provider.useValue;\n var transformedUseExisting = provider.useExisting;\n var transformedDeps;\n if (isPresent(provider.useExisting)) {\n var existingDiDep = _this._getDependency(new CompileDiDependencyMetadata({ token: provider.useExisting }), eager, resolvedProvider.sourceSpan);\n if (isPresent(existingDiDep.token)) {\n transformedUseExisting = existingDiDep.token;\n }\n else {\n transformedUseExisting = null;\n transformedUseValue = existingDiDep.value;\n }\n }\n else if (isPresent(provider.useFactory)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useFactory.diDeps;\n transformedDeps =\n deps.map(function (dep) { return _this._getDependency(dep, eager, resolvedProvider.sourceSpan); });\n }\n else if (isPresent(provider.useClass)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useClass.diDeps;\n transformedDeps =\n deps.map(function (dep) { return _this._getDependency(dep, eager, resolvedProvider.sourceSpan); });\n }\n return _transformProvider(provider, {\n useExisting: transformedUseExisting,\n useValue: transformedUseValue,\n deps: transformedDeps\n });\n });\n transformedProviderAst =\n _transformProviderAst(resolvedProvider, { eager: eager, providers: transformedProviders });\n this._transformedProviders.set(token.reference, transformedProviderAst);\n return transformedProviderAst;\n };\n NgModuleProviderAnalyzer.prototype._getDependency = function (dep, eager, requestorSourceSpan) {\n if (eager === void 0) { eager = null; }\n var foundLocal = false;\n if (!dep.isSkipSelf && isPresent(dep.token)) {\n // access the injector\n if (dep.token.reference === resolveIdentifierToken(Identifiers.Injector).reference ||\n dep.token.reference ===\n resolveIdentifierToken(Identifiers.ComponentFactoryResolver).reference) {\n foundLocal = true;\n }\n else if (isPresent(this._getOrCreateLocalProvider(dep.token, eager))) {\n foundLocal = true;\n }\n }\n var result = dep;\n if (dep.isSelf && !foundLocal) {\n if (dep.isOptional) {\n result = new CompileDiDependencyMetadata({ isValue: true, value: null });\n }\n else {\n this._errors.push(new ProviderError(\"No provider for \" + dep.token.name, requestorSourceSpan));\n }\n }\n return result;\n };\n return NgModuleProviderAnalyzer;\n }());\n function _transformProvider(provider, _a) {\n var useExisting = _a.useExisting, useValue = _a.useValue, deps = _a.deps;\n return new CompileProviderMetadata({\n token: provider.token,\n useClass: provider.useClass,\n useExisting: useExisting,\n useFactory: provider.useFactory,\n useValue: useValue,\n deps: deps,\n multi: provider.multi\n });\n }\n function _transformProviderAst(provider, _a) {\n var eager = _a.eager, providers = _a.providers;\n return new ProviderAst(provider.token, provider.multiProvider, provider.eager || eager, providers, provider.providerType, provider.lifecycleHooks, provider.sourceSpan);\n }\n function _normalizeProviders(providers, sourceSpan, targetErrors, targetProviders) {\n if (targetProviders === void 0) { targetProviders = null; }\n if (isBlank(targetProviders)) {\n targetProviders = [];\n }\n if (isPresent(providers)) {\n providers.forEach(function (provider) {\n if (isArray(provider)) {\n _normalizeProviders(provider, sourceSpan, targetErrors, targetProviders);\n }\n else {\n var normalizeProvider = void 0;\n if (provider instanceof CompileProviderMetadata) {\n normalizeProvider = provider;\n }\n else if (provider instanceof CompileTypeMetadata) {\n normalizeProvider = new CompileProviderMetadata({ token: new CompileTokenMetadata({ identifier: provider }), useClass: provider });\n }\n else {\n targetErrors.push(new ProviderError(\"Unknown provider type \" + provider, sourceSpan));\n }\n if (isPresent(normalizeProvider)) {\n targetProviders.push(normalizeProvider);\n }\n }\n });\n }\n return targetProviders;\n }\n function _resolveProvidersFromDirectives(directives, sourceSpan, targetErrors) {\n var providersByToken = new Map();\n directives.forEach(function (directive) {\n var dirProvider = new CompileProviderMetadata({ token: new CompileTokenMetadata({ identifier: directive.type }), useClass: directive.type });\n _resolveProviders([dirProvider], directive.isComponent ? exports.ProviderAstType.Component : exports.ProviderAstType.Directive, true, sourceSpan, targetErrors, providersByToken);\n });\n // Note: directives need to be able to overwrite providers of a component!\n var directivesWithComponentFirst = directives.filter(function (dir) { return dir.isComponent; }).concat(directives.filter(function (dir) { return !dir.isComponent; }));\n directivesWithComponentFirst.forEach(function (directive) {\n _resolveProviders(_normalizeProviders(directive.providers, sourceSpan, targetErrors), exports.ProviderAstType.PublicService, false, sourceSpan, targetErrors, providersByToken);\n _resolveProviders(_normalizeProviders(directive.viewProviders, sourceSpan, targetErrors), exports.ProviderAstType.PrivateService, false, sourceSpan, targetErrors, providersByToken);\n });\n return providersByToken;\n }\n function _resolveProviders(providers, providerType, eager, sourceSpan, targetErrors, targetProvidersByToken) {\n providers.forEach(function (provider) {\n var resolvedProvider = targetProvidersByToken.get(provider.token.reference);\n if (isPresent(resolvedProvider) && resolvedProvider.multiProvider !== provider.multi) {\n targetErrors.push(new ProviderError(\"Mixing multi and non multi provider is not possible for token \" + resolvedProvider.token.name, sourceSpan));\n }\n if (isBlank(resolvedProvider)) {\n var lifecycleHooks = provider.token.identifier && provider.token.identifier instanceof CompileTypeMetadata ?\n provider.token.identifier.lifecycleHooks :\n [];\n resolvedProvider = new ProviderAst(provider.token, provider.multi, eager || lifecycleHooks.length > 0, [provider], providerType, lifecycleHooks, sourceSpan);\n targetProvidersByToken.set(provider.token.reference, resolvedProvider);\n }\n else {\n if (!provider.multi) {\n ListWrapper.clear(resolvedProvider.providers);\n }\n resolvedProvider.providers.push(provider);\n }\n });\n }\n function _getViewQueries(component) {\n var viewQueries = new Map();\n if (isPresent(component.viewQueries)) {\n component.viewQueries.forEach(function (query) { return _addQueryToTokenMap(viewQueries, query); });\n }\n component.type.diDeps.forEach(function (dep) {\n if (isPresent(dep.viewQuery)) {\n _addQueryToTokenMap(viewQueries, dep.viewQuery);\n }\n });\n return viewQueries;\n }\n function _getContentQueries(directives) {\n var contentQueries = new Map();\n directives.forEach(function (directive) {\n if (isPresent(directive.queries)) {\n directive.queries.forEach(function (query) { return _addQueryToTokenMap(contentQueries, query); });\n }\n directive.type.diDeps.forEach(function (dep) {\n if (isPresent(dep.query)) {\n _addQueryToTokenMap(contentQueries, dep.query);\n }\n });\n });\n return contentQueries;\n }\n function _addQueryToTokenMap(map, query) {\n query.selectors.forEach(function (token) {\n var entry = map.get(token.reference);\n if (isBlank(entry)) {\n entry = [];\n map.set(token.reference, entry);\n }\n entry.push(query);\n });\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var ElementSchemaRegistry = (function () {\n function ElementSchemaRegistry() {\n }\n return ElementSchemaRegistry;\n }());\n\n var StyleWithImports = (function () {\n function StyleWithImports(style, styleUrls) {\n this.style = style;\n this.styleUrls = styleUrls;\n }\n return StyleWithImports;\n }());\n function isStyleUrlResolvable(url) {\n if (isBlank(url) || url.length === 0 || url[0] == '/')\n return false;\n var schemeMatch = url.match(_urlWithSchemaRe);\n return schemeMatch === null || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';\n }\n /**\n * Rewrites stylesheets by resolving and removing the @import urls that\n * are either relative or don't have a `package:` scheme\n */\n function extractStyleUrls(resolver, baseUrl, cssText) {\n var foundUrls = [];\n var modifiedCssText = StringWrapper.replaceAllMapped(cssText, _cssImportRe, function (m) {\n var url = isPresent(m[1]) ? m[1] : m[2];\n if (!isStyleUrlResolvable(url)) {\n // Do not attempt to resolve non-package absolute URLs with URI scheme\n return m[0];\n }\n foundUrls.push(resolver.resolve(baseUrl, url));\n return '';\n });\n return new StyleWithImports(modifiedCssText, foundUrls);\n }\n var _cssImportRe = /@import\\s+(?:url\\()?\\s*(?:(?:['\"]([^'\"]*))|([^;\\)\\s]*))[^;]*;?/g;\n var _urlWithSchemaRe = /^([^:/?#]+):/;\n\n var NG_CONTENT_SELECT_ATTR = 'select';\n var NG_CONTENT_ELEMENT = 'ng-content';\n var LINK_ELEMENT = 'link';\n var LINK_STYLE_REL_ATTR = 'rel';\n var LINK_STYLE_HREF_ATTR = 'href';\n var LINK_STYLE_REL_VALUE = 'stylesheet';\n var STYLE_ELEMENT = 'style';\n var SCRIPT_ELEMENT = 'script';\n var NG_NON_BINDABLE_ATTR = 'ngNonBindable';\n var NG_PROJECT_AS = 'ngProjectAs';\n function preparseElement(ast) {\n var selectAttr = null;\n var hrefAttr = null;\n var relAttr = null;\n var nonBindable = false;\n var projectAs = null;\n ast.attrs.forEach(function (attr) {\n var lcAttrName = attr.name.toLowerCase();\n if (lcAttrName == NG_CONTENT_SELECT_ATTR) {\n selectAttr = attr.value;\n }\n else if (lcAttrName == LINK_STYLE_HREF_ATTR) {\n hrefAttr = attr.value;\n }\n else if (lcAttrName == LINK_STYLE_REL_ATTR) {\n relAttr = attr.value;\n }\n else if (attr.name == NG_NON_BINDABLE_ATTR) {\n nonBindable = true;\n }\n else if (attr.name == NG_PROJECT_AS) {\n if (attr.value.length > 0) {\n projectAs = attr.value;\n }\n }\n });\n selectAttr = normalizeNgContentSelect(selectAttr);\n var nodeName = ast.name.toLowerCase();\n var type = PreparsedElementType.OTHER;\n if (splitNsName(nodeName)[1] == NG_CONTENT_ELEMENT) {\n type = PreparsedElementType.NG_CONTENT;\n }\n else if (nodeName == STYLE_ELEMENT) {\n type = PreparsedElementType.STYLE;\n }\n else if (nodeName == SCRIPT_ELEMENT) {\n type = PreparsedElementType.SCRIPT;\n }\n else if (nodeName == LINK_ELEMENT && relAttr == LINK_STYLE_REL_VALUE) {\n type = PreparsedElementType.STYLESHEET;\n }\n return new PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs);\n }\n var PreparsedElementType;\n (function (PreparsedElementType) {\n PreparsedElementType[PreparsedElementType[\"NG_CONTENT\"] = 0] = \"NG_CONTENT\";\n PreparsedElementType[PreparsedElementType[\"STYLE\"] = 1] = \"STYLE\";\n PreparsedElementType[PreparsedElementType[\"STYLESHEET\"] = 2] = \"STYLESHEET\";\n PreparsedElementType[PreparsedElementType[\"SCRIPT\"] = 3] = \"SCRIPT\";\n PreparsedElementType[PreparsedElementType[\"OTHER\"] = 4] = \"OTHER\";\n })(PreparsedElementType || (PreparsedElementType = {}));\n var PreparsedElement = (function () {\n function PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs) {\n this.type = type;\n this.selectAttr = selectAttr;\n this.hrefAttr = hrefAttr;\n this.nonBindable = nonBindable;\n this.projectAs = projectAs;\n }\n return PreparsedElement;\n }());\n function normalizeNgContentSelect(selectAttr) {\n if (selectAttr === null || selectAttr.length === 0) {\n return '*';\n }\n return selectAttr;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __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 };\n // Group 1 = \"bind-\"\n // Group 2 = \"let-\"\n // Group 3 = \"ref-/#\"\n // Group 4 = \"on-\"\n // Group 5 = \"bindon-\"\n // Group 6 = \"@\"\n // Group 7 = the identifier after \"bind-\", \"let-\", \"ref-/#\", \"on-\", \"bindon-\" or \"@\"\n // Group 8 = identifier inside [()]\n // Group 9 = identifier inside []\n // Group 10 = identifier inside ()\n var BIND_NAME_REGEXP = /^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\\[\\(([^\\)]+)\\)\\]|\\[([^\\]]+)\\]|\\(([^\\)]+)\\))$/;\n var KW_BIND_IDX = 1;\n var KW_LET_IDX = 2;\n var KW_REF_IDX = 3;\n var KW_ON_IDX = 4;\n var KW_BINDON_IDX = 5;\n var KW_AT_IDX = 6;\n var IDENT_KW_IDX = 7;\n var IDENT_BANANA_BOX_IDX = 8;\n var IDENT_PROPERTY_IDX = 9;\n var IDENT_EVENT_IDX = 10;\n var ANIMATE_PROP_PREFIX = 'animate-';\n var TEMPLATE_ELEMENT = 'template';\n var TEMPLATE_ATTR = 'template';\n var TEMPLATE_ATTR_PREFIX = '*';\n var CLASS_ATTR = 'class';\n var PROPERTY_PARTS_SEPARATOR = '.';\n var ATTRIBUTE_PREFIX = 'attr';\n var CLASS_PREFIX = 'class';\n var STYLE_PREFIX = 'style';\n var TEXT_CSS_SELECTOR = CssSelector.parse('*')[0];\n /**\n * Provides an array of {@link TemplateAstVisitor}s which will be used to transform\n * parsed templates before compilation is invoked, allowing custom expression syntax\n * and other advanced transformations.\n *\n * This is currently an internal-only feature and not meant for general use.\n */\n var TEMPLATE_TRANSFORMS = new _angular_core.OpaqueToken('TemplateTransforms');\n var TemplateParseError = (function (_super) {\n __extends(TemplateParseError, _super);\n function TemplateParseError(message, span, level) {\n _super.call(this, span, message, level);\n }\n return TemplateParseError;\n }(ParseError));\n var TemplateParseResult = (function () {\n function TemplateParseResult(templateAst, errors) {\n this.templateAst = templateAst;\n this.errors = errors;\n }\n return TemplateParseResult;\n }());\n var TemplateParser = (function () {\n function TemplateParser(_exprParser, _schemaRegistry, _htmlParser, _console, transforms) {\n this._exprParser = _exprParser;\n this._schemaRegistry = _schemaRegistry;\n this._htmlParser = _htmlParser;\n this._console = _console;\n this.transforms = transforms;\n }\n TemplateParser.prototype.parse = function (component, template, directives, pipes, schemas, templateUrl) {\n var result = this.tryParse(component, template, directives, pipes, schemas, templateUrl);\n var warnings = result.errors.filter(function (error) { return error.level === ParseErrorLevel.WARNING; });\n var errors = result.errors.filter(function (error) { return error.level === ParseErrorLevel.FATAL; });\n if (warnings.length > 0) {\n this._console.warn(\"Template parse warnings:\\n\" + warnings.join('\\n'));\n }\n if (errors.length > 0) {\n var errorString = errors.join('\\n');\n throw new Error(\"Template parse errors:\\n\" + errorString);\n }\n return result.templateAst;\n };\n TemplateParser.prototype.tryParse = function (component, template, directives, pipes, schemas, templateUrl) {\n var interpolationConfig;\n if (component.template) {\n interpolationConfig = InterpolationConfig.fromArray(component.template.interpolation);\n }\n var htmlAstWithErrors = this._htmlParser.parse(template, templateUrl, true, interpolationConfig);\n var errors = htmlAstWithErrors.errors;\n var result;\n if (errors.length == 0) {\n // Transform ICU messages to angular directives\n var expandedHtmlAst = expandNodes(htmlAstWithErrors.rootNodes);\n errors.push.apply(errors, expandedHtmlAst.errors);\n htmlAstWithErrors = new ParseTreeResult(expandedHtmlAst.nodes, errors);\n }\n if (htmlAstWithErrors.rootNodes.length > 0) {\n var uniqDirectives = removeIdentifierDuplicates(directives);\n var uniqPipes = removeIdentifierDuplicates(pipes);\n var providerViewContext = new ProviderViewContext(component, htmlAstWithErrors.rootNodes[0].sourceSpan);\n var parseVisitor = new TemplateParseVisitor(providerViewContext, uniqDirectives, uniqPipes, schemas, this._exprParser, this._schemaRegistry);\n result = visitAll(parseVisitor, htmlAstWithErrors.rootNodes, EMPTY_ELEMENT_CONTEXT);\n errors.push.apply(errors, parseVisitor.errors.concat(providerViewContext.errors));\n }\n else {\n result = [];\n }\n this._assertNoReferenceDuplicationOnTemplate(result, errors);\n if (errors.length > 0) {\n return new TemplateParseResult(result, errors);\n }\n if (isPresent(this.transforms)) {\n this.transforms.forEach(function (transform) { result = templateVisitAll(transform, result); });\n }\n return new TemplateParseResult(result, errors);\n };\n /** @internal */\n TemplateParser.prototype._assertNoReferenceDuplicationOnTemplate = function (result, errors) {\n var existingReferences = [];\n result.filter(function (element) { return !!element.references; })\n .forEach(function (element) { return element.references.forEach(function (reference) {\n var name = reference.name;\n if (existingReferences.indexOf(name) < 0) {\n existingReferences.push(name);\n }\n else {\n var error = new TemplateParseError(\"Reference \\\"#\" + name + \"\\\" is defined several times\", reference.sourceSpan, ParseErrorLevel.FATAL);\n errors.push(error);\n }\n }); });\n };\n TemplateParser.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n TemplateParser.ctorParameters = [\n { type: Parser, },\n { type: ElementSchemaRegistry, },\n { type: I18NHtmlParser, },\n { type: Console, },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [TEMPLATE_TRANSFORMS,] },] },\n ];\n return TemplateParser;\n }());\n var TemplateParseVisitor = (function () {\n function TemplateParseVisitor(providerViewContext, directives, pipes, _schemas, _exprParser, _schemaRegistry) {\n var _this = this;\n this.providerViewContext = providerViewContext;\n this._schemas = _schemas;\n this._exprParser = _exprParser;\n this._schemaRegistry = _schemaRegistry;\n this.selectorMatcher = new SelectorMatcher();\n this.errors = [];\n this.directivesIndex = new Map();\n this.ngContentCount = 0;\n this.pipesByName = new Map();\n var tempMeta = providerViewContext.component.template;\n if (tempMeta && tempMeta.interpolation) {\n this._interpolationConfig = {\n start: tempMeta.interpolation[0],\n end: tempMeta.interpolation[1]\n };\n }\n directives.forEach(function (directive, index) {\n var selector = CssSelector.parse(directive.selector);\n _this.selectorMatcher.addSelectables(selector, directive);\n _this.directivesIndex.set(directive, index);\n });\n pipes.forEach(function (pipe) { return _this.pipesByName.set(pipe.name, pipe); });\n }\n TemplateParseVisitor.prototype._reportError = function (message, sourceSpan, level) {\n if (level === void 0) { level = ParseErrorLevel.FATAL; }\n this.errors.push(new TemplateParseError(message, sourceSpan, level));\n };\n TemplateParseVisitor.prototype._reportParserErrors = function (errors, sourceSpan) {\n for (var _i = 0, errors_1 = errors; _i < errors_1.length; _i++) {\n var error = errors_1[_i];\n this._reportError(error.message, sourceSpan);\n }\n };\n TemplateParseVisitor.prototype._parseInterpolation = function (value, sourceSpan) {\n var sourceInfo = sourceSpan.start.toString();\n try {\n var ast = this._exprParser.parseInterpolation(value, sourceInfo, this._interpolationConfig);\n if (ast)\n this._reportParserErrors(ast.errors, sourceSpan);\n this._checkPipes(ast, sourceSpan);\n if (isPresent(ast) &&\n ast.ast.expressions.length > MAX_INTERPOLATION_VALUES) {\n throw new Error(\"Only support at most \" + MAX_INTERPOLATION_VALUES + \" interpolation values!\");\n }\n return ast;\n }\n catch (e) {\n this._reportError(\"\" + e, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\n }\n };\n TemplateParseVisitor.prototype._parseAction = function (value, sourceSpan) {\n var sourceInfo = sourceSpan.start.toString();\n try {\n var ast = this._exprParser.parseAction(value, sourceInfo, this._interpolationConfig);\n if (ast) {\n this._reportParserErrors(ast.errors, sourceSpan);\n }\n if (!ast || ast.ast instanceof EmptyExpr) {\n this._reportError(\"Empty expressions are not allowed\", sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\n }\n this._checkPipes(ast, sourceSpan);\n return ast;\n }\n catch (e) {\n this._reportError(\"\" + e, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\n }\n };\n TemplateParseVisitor.prototype._parseBinding = function (value, sourceSpan) {\n var sourceInfo = sourceSpan.start.toString();\n try {\n var ast = this._exprParser.parseBinding(value, sourceInfo, this._interpolationConfig);\n if (ast)\n this._reportParserErrors(ast.errors, sourceSpan);\n this._checkPipes(ast, sourceSpan);\n return ast;\n }\n catch (e) {\n this._reportError(\"\" + e, sourceSpan);\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\n }\n };\n TemplateParseVisitor.prototype._parseTemplateBindings = function (value, sourceSpan) {\n var _this = this;\n var sourceInfo = sourceSpan.start.toString();\n try {\n var bindingsResult = this._exprParser.parseTemplateBindings(value, sourceInfo);\n this._reportParserErrors(bindingsResult.errors, sourceSpan);\n bindingsResult.templateBindings.forEach(function (binding) {\n if (isPresent(binding.expression)) {\n _this._checkPipes(binding.expression, sourceSpan);\n }\n });\n bindingsResult.warnings.forEach(function (warning) { _this._reportError(warning, sourceSpan, ParseErrorLevel.WARNING); });\n return bindingsResult.templateBindings;\n }\n catch (e) {\n this._reportError(\"\" + e, sourceSpan);\n return [];\n }\n };\n TemplateParseVisitor.prototype._checkPipes = function (ast, sourceSpan) {\n var _this = this;\n if (isPresent(ast)) {\n var collector = new PipeCollector();\n ast.visit(collector);\n collector.pipes.forEach(function (pipeName) {\n if (!_this.pipesByName.has(pipeName)) {\n _this._reportError(\"The pipe '\" + pipeName + \"' could not be found\", sourceSpan);\n }\n });\n }\n };\n TemplateParseVisitor.prototype.visitExpansion = function (expansion, context) { return null; };\n TemplateParseVisitor.prototype.visitExpansionCase = function (expansionCase, context) { return null; };\n TemplateParseVisitor.prototype.visitText = function (text, parent) {\n var ngContentIndex = parent.findNgContentIndex(TEXT_CSS_SELECTOR);\n var expr = this._parseInterpolation(text.value, text.sourceSpan);\n if (isPresent(expr)) {\n return new BoundTextAst(expr, ngContentIndex, text.sourceSpan);\n }\n else {\n return new TextAst(text.value, ngContentIndex, text.sourceSpan);\n }\n };\n TemplateParseVisitor.prototype.visitAttribute = function (attribute, context) {\n return new AttrAst(attribute.name, attribute.value, attribute.sourceSpan);\n };\n TemplateParseVisitor.prototype.visitComment = function (comment, context) { return null; };\n TemplateParseVisitor.prototype.visitElement = function (element, parent) {\n var _this = this;\n var nodeName = element.name;\n var preparsedElement = preparseElement(element);\n if (preparsedElement.type === PreparsedElementType.SCRIPT ||\n preparsedElement.type === PreparsedElementType.STYLE) {\n // Skipping <script> for security reasons\n // Skipping <style> as we already processed them\n // in the StyleCompiler\n return null;\n }\n if (preparsedElement.type === PreparsedElementType.STYLESHEET &&\n isStyleUrlResolvable(preparsedElement.hrefAttr)) {\n // Skipping stylesheets with either relative urls or package scheme as we already processed\n // them in the StyleCompiler\n return null;\n }\n var matchableAttrs = [];\n var elementOrDirectiveProps = [];\n var elementOrDirectiveRefs = [];\n var elementVars = [];\n var animationProps = [];\n var events = [];\n var templateElementOrDirectiveProps = [];\n var templateMatchableAttrs = [];\n var templateElementVars = [];\n var hasInlineTemplates = false;\n var attrs = [];\n var lcElName = splitNsName(nodeName.toLowerCase())[1];\n var isTemplateElement = lcElName == TEMPLATE_ELEMENT;\n element.attrs.forEach(function (attr) {\n var hasBinding = _this._parseAttr(isTemplateElement, attr, matchableAttrs, elementOrDirectiveProps, animationProps, events, elementOrDirectiveRefs, elementVars);\n var hasTemplateBinding = _this._parseInlineTemplateBinding(attr, templateMatchableAttrs, templateElementOrDirectiveProps, templateElementVars);\n if (hasTemplateBinding && hasInlineTemplates) {\n _this._reportError(\"Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *\", attr.sourceSpan);\n }\n if (!hasBinding && !hasTemplateBinding) {\n // don't include the bindings as attributes as well in the AST\n attrs.push(_this.visitAttribute(attr, null));\n matchableAttrs.push([attr.name, attr.value]);\n }\n if (hasTemplateBinding) {\n hasInlineTemplates = true;\n }\n });\n var elementCssSelector = createElementCssSelector(nodeName, matchableAttrs);\n var _a = this._parseDirectives(this.selectorMatcher, elementCssSelector), directiveMetas = _a.directives, matchElement = _a.matchElement;\n var references = [];\n var directiveAsts = this._createDirectiveAsts(isTemplateElement, element.name, directiveMetas, elementOrDirectiveProps, elementOrDirectiveRefs, element.sourceSpan, references);\n var elementProps = this._createElementPropertyAsts(element.name, elementOrDirectiveProps, directiveAsts)\n .concat(animationProps);\n var isViewRoot = parent.isTemplateElement || hasInlineTemplates;\n var providerContext = new ProviderElementContext(this.providerViewContext, parent.providerContext, isViewRoot, directiveAsts, attrs, references, element.sourceSpan);\n var children = visitAll(preparsedElement.nonBindable ? NON_BINDABLE_VISITOR : this, element.children, ElementContext.create(isTemplateElement, directiveAsts, isTemplateElement ? parent.providerContext : providerContext));\n providerContext.afterElement();\n // Override the actual selector when the `ngProjectAs` attribute is provided\n var projectionSelector = isPresent(preparsedElement.projectAs) ?\n CssSelector.parse(preparsedElement.projectAs)[0] :\n elementCssSelector;\n var ngContentIndex = parent.findNgContentIndex(projectionSelector);\n var parsedElement;\n if (preparsedElement.type === PreparsedElementType.NG_CONTENT) {\n if (isPresent(element.children) && element.children.length > 0) {\n this._reportError(\"<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>\", element.sourceSpan);\n }\n parsedElement = new NgContentAst(this.ngContentCount++, hasInlineTemplates ? null : ngContentIndex, element.sourceSpan);\n }\n else if (isTemplateElement) {\n this._assertAllEventsPublishedByDirectives(directiveAsts, events);\n this._assertNoComponentsNorElementBindingsOnTemplate(directiveAsts, elementProps, element.sourceSpan);\n parsedElement = new EmbeddedTemplateAst(attrs, events, references, elementVars, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, children, hasInlineTemplates ? null : ngContentIndex, element.sourceSpan);\n }\n else {\n this._assertElementExists(matchElement, element);\n this._assertOnlyOneComponent(directiveAsts, element.sourceSpan);\n var ngContentIndex_1 = hasInlineTemplates ? null : parent.findNgContentIndex(projectionSelector);\n parsedElement = new ElementAst(nodeName, attrs, elementProps, events, references, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, children, hasInlineTemplates ? null : ngContentIndex_1, element.sourceSpan);\n }\n if (hasInlineTemplates) {\n var templateCssSelector = createElementCssSelector(TEMPLATE_ELEMENT, templateMatchableAttrs);\n var templateDirectiveMetas = this._parseDirectives(this.selectorMatcher, templateCssSelector).directives;\n var templateDirectiveAsts = this._createDirectiveAsts(true, element.name, templateDirectiveMetas, templateElementOrDirectiveProps, [], element.sourceSpan, []);\n var templateElementProps = this._createElementPropertyAsts(element.name, templateElementOrDirectiveProps, templateDirectiveAsts);\n this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectiveAsts, templateElementProps, element.sourceSpan);\n var templateProviderContext = new ProviderElementContext(this.providerViewContext, parent.providerContext, parent.isTemplateElement, templateDirectiveAsts, [], [], element.sourceSpan);\n templateProviderContext.afterElement();\n parsedElement = new EmbeddedTemplateAst([], [], [], templateElementVars, templateProviderContext.transformedDirectiveAsts, templateProviderContext.transformProviders, templateProviderContext.transformedHasViewContainer, [parsedElement], ngContentIndex, element.sourceSpan);\n }\n return parsedElement;\n };\n TemplateParseVisitor.prototype._parseInlineTemplateBinding = function (attr, targetMatchableAttrs, targetProps, targetVars) {\n var templateBindingsSource = null;\n if (this._normalizeAttributeName(attr.name) == TEMPLATE_ATTR) {\n templateBindingsSource = attr.value;\n }\n else if (attr.name.startsWith(TEMPLATE_ATTR_PREFIX)) {\n var key = attr.name.substring(TEMPLATE_ATTR_PREFIX.length); // remove the star\n templateBindingsSource = (attr.value.length == 0) ? key : key + ' ' + attr.value;\n }\n if (isPresent(templateBindingsSource)) {\n var bindings = this._parseTemplateBindings(templateBindingsSource, attr.sourceSpan);\n for (var i = 0; i < bindings.length; i++) {\n var binding = bindings[i];\n if (binding.keyIsVar) {\n targetVars.push(new VariableAst(binding.key, binding.name, attr.sourceSpan));\n }\n else if (isPresent(binding.expression)) {\n this._parsePropertyAst(binding.key, binding.expression, attr.sourceSpan, targetMatchableAttrs, targetProps);\n }\n else {\n targetMatchableAttrs.push([binding.key, '']);\n this._parseLiteralAttr(binding.key, null, attr.sourceSpan, targetProps);\n }\n }\n return true;\n }\n return false;\n };\n TemplateParseVisitor.prototype._parseAttr = function (isTemplateElement, attr, targetMatchableAttrs, targetProps, targetAnimationProps, targetEvents, targetRefs, targetVars) {\n var name = this._normalizeAttributeName(attr.name);\n var value = attr.value;\n var srcSpan = attr.sourceSpan;\n var bindParts = name.match(BIND_NAME_REGEXP);\n var hasBinding = false;\n if (bindParts !== null) {\n hasBinding = true;\n if (isPresent(bindParts[KW_BIND_IDX])) {\n this._parsePropertyOrAnimation(bindParts[IDENT_KW_IDX], value, srcSpan, targetMatchableAttrs, targetProps, targetAnimationProps);\n }\n else if (bindParts[KW_LET_IDX]) {\n if (isTemplateElement) {\n var identifier = bindParts[IDENT_KW_IDX];\n this._parseVariable(identifier, value, srcSpan, targetVars);\n }\n else {\n this._reportError(\"\\\"let-\\\" is only supported on template elements.\", srcSpan);\n }\n }\n else if (bindParts[KW_REF_IDX]) {\n var identifier = bindParts[IDENT_KW_IDX];\n this._parseReference(identifier, value, srcSpan, targetRefs);\n }\n else if (bindParts[KW_ON_IDX]) {\n this._parseEvent(bindParts[IDENT_KW_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\n }\n else if (bindParts[KW_BINDON_IDX]) {\n this._parsePropertyOrAnimation(bindParts[IDENT_KW_IDX], value, srcSpan, targetMatchableAttrs, targetProps, targetAnimationProps);\n this._parseAssignmentEvent(bindParts[IDENT_KW_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\n }\n else if (bindParts[KW_AT_IDX]) {\n if (name[0] == '@' && isPresent(value) && value.length > 0) {\n this._reportError(\"Assigning animation triggers via @prop=\\\"exp\\\" attributes with an expression is invalid.\" +\n \" Use property bindings (e.g. [@prop]=\\\"exp\\\") or use an attribute without a value (e.g. @prop) instead.\", srcSpan, ParseErrorLevel.FATAL);\n }\n this._parseAnimation(bindParts[IDENT_KW_IDX], value, srcSpan, targetMatchableAttrs, targetAnimationProps);\n }\n else if (bindParts[IDENT_BANANA_BOX_IDX]) {\n this._parsePropertyOrAnimation(bindParts[IDENT_BANANA_BOX_IDX], value, srcSpan, targetMatchableAttrs, targetProps, targetAnimationProps);\n this._parseAssignmentEvent(bindParts[IDENT_BANANA_BOX_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\n }\n else if (bindParts[IDENT_PROPERTY_IDX]) {\n this._parsePropertyOrAnimation(bindParts[IDENT_PROPERTY_IDX], value, srcSpan, targetMatchableAttrs, targetProps, targetAnimationProps);\n }\n else if (bindParts[IDENT_EVENT_IDX]) {\n this._parseEvent(bindParts[IDENT_EVENT_IDX], value, srcSpan, targetMatchableAttrs, targetEvents);\n }\n }\n else {\n hasBinding =\n this._parsePropertyInterpolation(name, value, srcSpan, targetMatchableAttrs, targetProps);\n }\n if (!hasBinding) {\n this._parseLiteralAttr(name, value, srcSpan, targetProps);\n }\n return hasBinding;\n };\n TemplateParseVisitor.prototype._normalizeAttributeName = function (attrName) {\n return /^data-/i.test(attrName) ? attrName.substring(5) : attrName;\n };\n TemplateParseVisitor.prototype._parseVariable = function (identifier, value, sourceSpan, targetVars) {\n if (identifier.indexOf('-') > -1) {\n this._reportError(\"\\\"-\\\" is not allowed in variable names\", sourceSpan);\n }\n targetVars.push(new VariableAst(identifier, value, sourceSpan));\n };\n TemplateParseVisitor.prototype._parseReference = function (identifier, value, sourceSpan, targetRefs) {\n if (identifier.indexOf('-') > -1) {\n this._reportError(\"\\\"-\\\" is not allowed in reference names\", sourceSpan);\n }\n targetRefs.push(new ElementOrDirectiveRef(identifier, value, sourceSpan));\n };\n TemplateParseVisitor.prototype._parsePropertyOrAnimation = function (name, expression, sourceSpan, targetMatchableAttrs, targetProps, targetAnimationProps) {\n var animatePropLength = ANIMATE_PROP_PREFIX.length;\n var isAnimationProp = name[0] == '@';\n var animationPrefixLength = 1;\n if (name.substring(0, animatePropLength) == ANIMATE_PROP_PREFIX) {\n isAnimationProp = true;\n animationPrefixLength = animatePropLength;\n }\n if (isAnimationProp) {\n this._parseAnimation(name.substr(animationPrefixLength), expression, sourceSpan, targetMatchableAttrs, targetAnimationProps);\n }\n else {\n this._parsePropertyAst(name, this._parseBinding(expression, sourceSpan), sourceSpan, targetMatchableAttrs, targetProps);\n }\n };\n TemplateParseVisitor.prototype._parseAnimation = function (name, expression, sourceSpan, targetMatchableAttrs, targetAnimationProps) {\n // This will occur when a @trigger is not paired with an expression.\n // For animations it is valid to not have an expression since */void\n // states will be applied by angular when the element is attached/detached\n if (!isPresent(expression) || expression.length == 0) {\n expression = 'null';\n }\n var ast = this._parseBinding(expression, sourceSpan);\n targetMatchableAttrs.push([name, ast.source]);\n targetAnimationProps.push(new BoundElementPropertyAst(name, exports.PropertyBindingType.Animation, _angular_core.SecurityContext.NONE, ast, null, sourceSpan));\n };\n TemplateParseVisitor.prototype._parsePropertyInterpolation = function (name, value, sourceSpan, targetMatchableAttrs, targetProps) {\n var expr = this._parseInterpolation(value, sourceSpan);\n if (isPresent(expr)) {\n this._parsePropertyAst(name, expr, sourceSpan, targetMatchableAttrs, targetProps);\n return true;\n }\n return false;\n };\n TemplateParseVisitor.prototype._parsePropertyAst = function (name, ast, sourceSpan, targetMatchableAttrs, targetProps) {\n targetMatchableAttrs.push([name, ast.source]);\n targetProps.push(new BoundElementOrDirectiveProperty(name, ast, false, sourceSpan));\n };\n TemplateParseVisitor.prototype._parseAssignmentEvent = function (name, expression, sourceSpan, targetMatchableAttrs, targetEvents) {\n this._parseEvent(name + \"Change\", expression + \"=$event\", sourceSpan, targetMatchableAttrs, targetEvents);\n };\n TemplateParseVisitor.prototype._parseEvent = function (name, expression, sourceSpan, targetMatchableAttrs, targetEvents) {\n // long format: 'target: eventName'\n var parts = splitAtColon(name, [null, name]);\n var target = parts[0];\n var eventName = parts[1];\n var ast = this._parseAction(expression, sourceSpan);\n targetMatchableAttrs.push([name, ast.source]);\n targetEvents.push(new BoundEventAst(eventName, target, ast, sourceSpan));\n // Don't detect directives for event names for now,\n // so don't add the event name to the matchableAttrs\n };\n TemplateParseVisitor.prototype._parseLiteralAttr = function (name, value, sourceSpan, targetProps) {\n targetProps.push(new BoundElementOrDirectiveProperty(name, this._exprParser.wrapLiteralPrimitive(value, ''), true, sourceSpan));\n };\n TemplateParseVisitor.prototype._parseDirectives = function (selectorMatcher, elementCssSelector) {\n var _this = this;\n // Need to sort the directives so that we get consistent results throughout,\n // as selectorMatcher uses Maps inside.\n // Also deduplicate directives as they might match more than one time!\n var directives = new Array(this.directivesIndex.size);\n // Whether any directive selector matches on the element name\n var matchElement = false;\n selectorMatcher.match(elementCssSelector, function (selector, directive) {\n directives[_this.directivesIndex.get(directive)] = directive;\n matchElement = matchElement || selector.hasElementSelector();\n });\n return {\n directives: directives.filter(function (dir) { return !!dir; }),\n matchElement: matchElement,\n };\n };\n TemplateParseVisitor.prototype._createDirectiveAsts = function (isTemplateElement, elementName, directives, props, elementOrDirectiveRefs, elementSourceSpan, targetReferences) {\n var _this = this;\n var matchedReferences = new Set();\n var component = null;\n var directiveAsts = directives.map(function (directive) {\n var sourceSpan = new ParseSourceSpan(elementSourceSpan.start, elementSourceSpan.end, \"Directive \" + directive.type.name);\n if (directive.isComponent) {\n component = directive;\n }\n var hostProperties = [];\n var hostEvents = [];\n var directiveProperties = [];\n _this._createDirectiveHostPropertyAsts(elementName, directive.hostProperties, sourceSpan, hostProperties);\n _this._createDirectiveHostEventAsts(directive.hostListeners, sourceSpan, hostEvents);\n _this._createDirectivePropertyAsts(directive.inputs, props, directiveProperties);\n elementOrDirectiveRefs.forEach(function (elOrDirRef) {\n if ((elOrDirRef.value.length === 0 && directive.isComponent) ||\n (directive.exportAs == elOrDirRef.value)) {\n targetReferences.push(new ReferenceAst(elOrDirRef.name, identifierToken(directive.type), elOrDirRef.sourceSpan));\n matchedReferences.add(elOrDirRef.name);\n }\n });\n return new DirectiveAst(directive, directiveProperties, hostProperties, hostEvents, sourceSpan);\n });\n elementOrDirectiveRefs.forEach(function (elOrDirRef) {\n if (elOrDirRef.value.length > 0) {\n if (!matchedReferences.has(elOrDirRef.name)) {\n _this._reportError(\"There is no directive with \\\"exportAs\\\" set to \\\"\" + elOrDirRef.value + \"\\\"\", elOrDirRef.sourceSpan);\n }\n }\n else if (!component) {\n var refToken = null;\n if (isTemplateElement) {\n refToken = resolveIdentifierToken(Identifiers.TemplateRef);\n }\n targetReferences.push(new ReferenceAst(elOrDirRef.name, refToken, elOrDirRef.sourceSpan));\n }\n }); // fix syntax highlighting issue: `\n return directiveAsts;\n };\n TemplateParseVisitor.prototype._createDirectiveHostPropertyAsts = function (elementName, hostProps, sourceSpan, targetPropertyAsts) {\n var _this = this;\n if (hostProps) {\n StringMapWrapper.forEach(hostProps, function (expression, propName) {\n if (isString(expression)) {\n var exprAst = _this._parseBinding(expression, sourceSpan);\n targetPropertyAsts.push(_this._createElementPropertyAst(elementName, propName, exprAst, sourceSpan));\n }\n else {\n _this._reportError(\"Value of the host property binding \\\"\" + propName + \"\\\" needs to be a string representing an expression but got \\\"\" + expression + \"\\\" (\" + typeof expression + \")\", sourceSpan);\n }\n });\n }\n };\n TemplateParseVisitor.prototype._createDirectiveHostEventAsts = function (hostListeners, sourceSpan, targetEventAsts) {\n var _this = this;\n if (hostListeners) {\n StringMapWrapper.forEach(hostListeners, function (expression, propName) {\n if (isString(expression)) {\n _this._parseEvent(propName, expression, sourceSpan, [], targetEventAsts);\n }\n else {\n _this._reportError(\"Value of the host listener \\\"\" + propName + \"\\\" needs to be a string representing an expression but got \\\"\" + expression + \"\\\" (\" + typeof expression + \")\", sourceSpan);\n }\n });\n }\n };\n TemplateParseVisitor.prototype._createDirectivePropertyAsts = function (directiveProperties, boundProps, targetBoundDirectiveProps) {\n if (directiveProperties) {\n var boundPropsByName_1 = new Map();\n boundProps.forEach(function (boundProp) {\n var prevValue = boundPropsByName_1.get(boundProp.name);\n if (isBlank(prevValue) || prevValue.isLiteral) {\n // give [a]=\"b\" a higher precedence than a=\"b\" on the same element\n boundPropsByName_1.set(boundProp.name, boundProp);\n }\n });\n StringMapWrapper.forEach(directiveProperties, function (elProp, dirProp) {\n var boundProp = boundPropsByName_1.get(elProp);\n // Bindings are optional, so this binding only needs to be set up if an expression is given.\n if (boundProp) {\n targetBoundDirectiveProps.push(new BoundDirectivePropertyAst(dirProp, boundProp.name, boundProp.expression, boundProp.sourceSpan));\n }\n });\n }\n };\n TemplateParseVisitor.prototype._createElementPropertyAsts = function (elementName, props, directives) {\n var _this = this;\n var boundElementProps = [];\n var boundDirectivePropsIndex = new Map();\n directives.forEach(function (directive) {\n directive.inputs.forEach(function (prop) {\n boundDirectivePropsIndex.set(prop.templateName, prop);\n });\n });\n props.forEach(function (prop) {\n if (!prop.isLiteral && isBlank(boundDirectivePropsIndex.get(prop.name))) {\n boundElementProps.push(_this._createElementPropertyAst(elementName, prop.name, prop.expression, prop.sourceSpan));\n }\n });\n return boundElementProps;\n };\n TemplateParseVisitor.prototype._createElementPropertyAst = function (elementName, name, ast, sourceSpan) {\n var unit = null;\n var bindingType;\n var boundPropertyName;\n var parts = name.split(PROPERTY_PARTS_SEPARATOR);\n var securityContext;\n if (parts.length === 1) {\n var partValue = parts[0];\n if (partValue[0] == '@') {\n boundPropertyName = partValue.substr(1);\n bindingType = exports.PropertyBindingType.Animation;\n securityContext = _angular_core.SecurityContext.NONE;\n }\n else {\n boundPropertyName = this._schemaRegistry.getMappedPropName(partValue);\n securityContext = this._schemaRegistry.securityContext(elementName, boundPropertyName);\n bindingType = exports.PropertyBindingType.Property;\n this._assertNoEventBinding(boundPropertyName, sourceSpan);\n if (!this._schemaRegistry.hasProperty(elementName, boundPropertyName, this._schemas)) {\n var errorMsg = \"Can't bind to '\" + boundPropertyName + \"' since it isn't a known property of '\" + elementName + \"'.\";\n if (elementName.indexOf('-') > -1) {\n errorMsg +=\n (\"\\n1. If '\" + elementName + \"' is an Angular component and it has '\" + boundPropertyName + \"' input, then verify that it is part of this module.\") +\n (\"\\n2. If '\" + elementName + \"' is a Web Component then add \\\"CUSTOM_ELEMENTS_SCHEMA\\\" to the '@NgModule.schema' of this component to suppress this message.\\n\");\n }\n this._reportError(errorMsg, sourceSpan);\n }\n }\n }\n else {\n if (parts[0] == ATTRIBUTE_PREFIX) {\n boundPropertyName = parts[1];\n this._assertNoEventBinding(boundPropertyName, sourceSpan);\n // NB: For security purposes, use the mapped property name, not the attribute name.\n var mapPropName = this._schemaRegistry.getMappedPropName(boundPropertyName);\n securityContext = this._schemaRegistry.securityContext(elementName, mapPropName);\n var nsSeparatorIdx = boundPropertyName.indexOf(':');\n if (nsSeparatorIdx > -1) {\n var ns = boundPropertyName.substring(0, nsSeparatorIdx);\n var name_1 = boundPropertyName.substring(nsSeparatorIdx + 1);\n boundPropertyName = mergeNsAndName(ns, name_1);\n }\n bindingType = exports.PropertyBindingType.Attribute;\n }\n else if (parts[0] == CLASS_PREFIX) {\n boundPropertyName = parts[1];\n bindingType = exports.PropertyBindingType.Class;\n securityContext = _angular_core.SecurityContext.NONE;\n }\n else if (parts[0] == STYLE_PREFIX) {\n unit = parts.length > 2 ? parts[2] : null;\n boundPropertyName = parts[1];\n bindingType = exports.PropertyBindingType.Style;\n securityContext = _angular_core.SecurityContext.STYLE;\n }\n else {\n this._reportError(\"Invalid property name '\" + name + \"'\", sourceSpan);\n bindingType = null;\n securityContext = null;\n }\n }\n return new BoundElementPropertyAst(boundPropertyName, bindingType, securityContext, ast, unit, sourceSpan);\n };\n TemplateParseVisitor.prototype._assertNoEventBinding = function (propName, sourceSpan) {\n if (propName.toLowerCase().startsWith('on')) {\n this._reportError((\"Binding to event attribute '\" + propName + \"' is disallowed \") +\n (\"for security reasons, please use (\" + propName.slice(2) + \")=...\"), sourceSpan, ParseErrorLevel.FATAL);\n }\n };\n TemplateParseVisitor.prototype._findComponentDirectiveNames = function (directives) {\n var componentTypeNames = [];\n directives.forEach(function (directive) {\n var typeName = directive.directive.type.name;\n if (directive.directive.isComponent) {\n componentTypeNames.push(typeName);\n }\n });\n return componentTypeNames;\n };\n TemplateParseVisitor.prototype._assertOnlyOneComponent = function (directives, sourceSpan) {\n var componentTypeNames = this._findComponentDirectiveNames(directives);\n if (componentTypeNames.length > 1) {\n this._reportError(\"More than one component: \" + componentTypeNames.join(','), sourceSpan);\n }\n };\n /**\n * Make sure that non-angular tags conform to the schemas.\n *\n * Note: An element is considered an angular tag when at least one directive selector matches the\n * tag name.\n *\n * @param matchElement Whether any directive has matched on the tag name\n * @param element the html element\n */\n TemplateParseVisitor.prototype._assertElementExists = function (matchElement, element) {\n var elName = element.name.replace(/^:xhtml:/, '');\n if (!matchElement && !this._schemaRegistry.hasElement(elName, this._schemas)) {\n var errorMsg = (\"'\" + elName + \"' is not a known element:\\n\") +\n (\"1. If '\" + elName + \"' is an Angular component, then verify that it is part of this module.\\n\") +\n (\"2. If '\" + elName + \"' is a Web Component then add \\\"CUSTOM_ELEMENTS_SCHEMA\\\" to the '@NgModule.schema' of this component to suppress this message.\");\n this._reportError(errorMsg, element.sourceSpan);\n }\n };\n TemplateParseVisitor.prototype._assertNoComponentsNorElementBindingsOnTemplate = function (directives, elementProps, sourceSpan) {\n var _this = this;\n var componentTypeNames = this._findComponentDirectiveNames(directives);\n if (componentTypeNames.length > 0) {\n this._reportError(\"Components on an embedded template: \" + componentTypeNames.join(','), sourceSpan);\n }\n elementProps.forEach(function (prop) {\n _this._reportError(\"Property binding \" + prop.name + \" not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the \\\"directives\\\" section.\", sourceSpan);\n });\n };\n TemplateParseVisitor.prototype._assertAllEventsPublishedByDirectives = function (directives, events) {\n var _this = this;\n var allDirectiveEvents = new Set();\n directives.forEach(function (directive) {\n StringMapWrapper.forEach(directive.directive.outputs, function (eventName) {\n allDirectiveEvents.add(eventName);\n });\n });\n events.forEach(function (event) {\n if (isPresent(event.target) || !allDirectiveEvents.has(event.name)) {\n _this._reportError(\"Event binding \" + event.fullName + \" not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the \\\"directives\\\" section.\", event.sourceSpan);\n }\n });\n };\n return TemplateParseVisitor;\n }());\n var NonBindableVisitor = (function () {\n function NonBindableVisitor() {\n }\n NonBindableVisitor.prototype.visitElement = function (ast, parent) {\n var preparsedElement = preparseElement(ast);\n if (preparsedElement.type === PreparsedElementType.SCRIPT ||\n preparsedElement.type === PreparsedElementType.STYLE ||\n preparsedElement.type === PreparsedElementType.STYLESHEET) {\n // Skipping <script> for security reasons\n // Skipping <style> and stylesheets as we already processed them\n // in the StyleCompiler\n return null;\n }\n var attrNameAndValues = ast.attrs.map(function (attrAst) { return [attrAst.name, attrAst.value]; });\n var selector = createElementCssSelector(ast.name, attrNameAndValues);\n var ngContentIndex = parent.findNgContentIndex(selector);\n var children = visitAll(this, ast.children, EMPTY_ELEMENT_CONTEXT);\n return new ElementAst(ast.name, visitAll(this, ast.attrs), [], [], [], [], [], false, children, ngContentIndex, ast.sourceSpan);\n };\n NonBindableVisitor.prototype.visitComment = function (comment, context) { return null; };\n NonBindableVisitor.prototype.visitAttribute = function (attribute, context) {\n return new AttrAst(attribute.name, attribute.value, attribute.sourceSpan);\n };\n NonBindableVisitor.prototype.visitText = function (text, parent) {\n var ngContentIndex = parent.findNgContentIndex(TEXT_CSS_SELECTOR);\n return new TextAst(text.value, ngContentIndex, text.sourceSpan);\n };\n NonBindableVisitor.prototype.visitExpansion = function (expansion, context) { return expansion; };\n NonBindableVisitor.prototype.visitExpansionCase = function (expansionCase, context) { return expansionCase; };\n return NonBindableVisitor;\n }());\n var BoundElementOrDirectiveProperty = (function () {\n function BoundElementOrDirectiveProperty(name, expression, isLiteral, sourceSpan) {\n this.name = name;\n this.expression = expression;\n this.isLiteral = isLiteral;\n this.sourceSpan = sourceSpan;\n }\n return BoundElementOrDirectiveProperty;\n }());\n var ElementOrDirectiveRef = (function () {\n function ElementOrDirectiveRef(name, value, sourceSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n return ElementOrDirectiveRef;\n }());\n function splitClasses(classAttrValue) {\n return classAttrValue.trim().split(/\\s+/g);\n }\n var ElementContext = (function () {\n function ElementContext(isTemplateElement, _ngContentIndexMatcher, _wildcardNgContentIndex, providerContext) {\n this.isTemplateElement = isTemplateElement;\n this._ngContentIndexMatcher = _ngContentIndexMatcher;\n this._wildcardNgContentIndex = _wildcardNgContentIndex;\n this.providerContext = providerContext;\n }\n ElementContext.create = function (isTemplateElement, directives, providerContext) {\n var matcher = new SelectorMatcher();\n var wildcardNgContentIndex = null;\n var component = directives.find(function (directive) { return directive.directive.isComponent; });\n if (component) {\n var ngContentSelectors = component.directive.template.ngContentSelectors;\n for (var i = 0; i < ngContentSelectors.length; i++) {\n var selector = ngContentSelectors[i];\n if (selector === '*') {\n wildcardNgContentIndex = i;\n }\n else {\n matcher.addSelectables(CssSelector.parse(ngContentSelectors[i]), i);\n }\n }\n }\n return new ElementContext(isTemplateElement, matcher, wildcardNgContentIndex, providerContext);\n };\n ElementContext.prototype.findNgContentIndex = function (selector) {\n var ngContentIndices = [];\n this._ngContentIndexMatcher.match(selector, function (selector, ngContentIndex) { ngContentIndices.push(ngContentIndex); });\n ngContentIndices.sort();\n if (isPresent(this._wildcardNgContentIndex)) {\n ngContentIndices.push(this._wildcardNgContentIndex);\n }\n return ngContentIndices.length > 0 ? ngContentIndices[0] : null;\n };\n return ElementContext;\n }());\n function createElementCssSelector(elementName, matchableAttrs) {\n var cssSelector = new CssSelector();\n var elNameNoNs = splitNsName(elementName)[1];\n cssSelector.setElement(elNameNoNs);\n for (var i = 0; i < matchableAttrs.length; i++) {\n var attrName = matchableAttrs[i][0];\n var attrNameNoNs = splitNsName(attrName)[1];\n var attrValue = matchableAttrs[i][1];\n cssSelector.addAttribute(attrNameNoNs, attrValue);\n if (attrName.toLowerCase() == CLASS_ATTR) {\n var classes = splitClasses(attrValue);\n classes.forEach(function (className) { return cssSelector.addClassName(className); });\n }\n }\n return cssSelector;\n }\n var EMPTY_ELEMENT_CONTEXT = new ElementContext(true, new SelectorMatcher(), null, null);\n var NON_BINDABLE_VISITOR = new NonBindableVisitor();\n var PipeCollector = (function (_super) {\n __extends(PipeCollector, _super);\n function PipeCollector() {\n _super.apply(this, arguments);\n this.pipes = new Set();\n }\n PipeCollector.prototype.visitPipe = function (ast, context) {\n this.pipes.add(ast.name);\n ast.exp.visit(this);\n this.visitAll(ast.args, context);\n return null;\n };\n return PipeCollector;\n }(RecursiveAstVisitor));\n\n function unimplemented$1() {\n throw new Error('unimplemented');\n }\n var CompilerConfig = (function () {\n function CompilerConfig(_a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.renderTypes, renderTypes = _c === void 0 ? new DefaultRenderTypes() : _c, _d = _b.defaultEncapsulation, defaultEncapsulation = _d === void 0 ? _angular_core.ViewEncapsulation.Emulated : _d, genDebugInfo = _b.genDebugInfo, logBindingUpdate = _b.logBindingUpdate, _e = _b.useJit, useJit = _e === void 0 ? true : _e;\n this.renderTypes = renderTypes;\n this.defaultEncapsulation = defaultEncapsulation;\n this._genDebugInfo = genDebugInfo;\n this._logBindingUpdate = logBindingUpdate;\n this.useJit = useJit;\n }\n Object.defineProperty(CompilerConfig.prototype, \"genDebugInfo\", {\n get: function () {\n return this._genDebugInfo === void 0 ? _angular_core.isDevMode() : this._genDebugInfo;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CompilerConfig.prototype, \"logBindingUpdate\", {\n get: function () {\n return this._logBindingUpdate === void 0 ? _angular_core.isDevMode() : this._logBindingUpdate;\n },\n enumerable: true,\n configurable: true\n });\n return CompilerConfig;\n }());\n /**\n * Types used for the renderer.\n * Can be replaced to specialize the generated output to a specific renderer\n * to help tree shaking.\n */\n var RenderTypes = (function () {\n function RenderTypes() {\n }\n Object.defineProperty(RenderTypes.prototype, \"renderer\", {\n get: function () { return unimplemented$1(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderTypes.prototype, \"renderText\", {\n get: function () { return unimplemented$1(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderTypes.prototype, \"renderElement\", {\n get: function () { return unimplemented$1(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderTypes.prototype, \"renderComment\", {\n get: function () { return unimplemented$1(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderTypes.prototype, \"renderNode\", {\n get: function () { return unimplemented$1(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderTypes.prototype, \"renderEvent\", {\n get: function () { return unimplemented$1(); },\n enumerable: true,\n configurable: true\n });\n return RenderTypes;\n }());\n var DefaultRenderTypes = (function () {\n function DefaultRenderTypes() {\n this.renderText = null;\n this.renderElement = null;\n this.renderComment = null;\n this.renderNode = null;\n this.renderEvent = null;\n }\n Object.defineProperty(DefaultRenderTypes.prototype, \"renderer\", {\n get: function () { return resolveIdentifier(Identifiers.Renderer); },\n enumerable: true,\n configurable: true\n });\n ;\n return DefaultRenderTypes;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$11 = (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 };\n var AnimationAst = (function () {\n function AnimationAst() {\n this.startTime = 0;\n this.playTime = 0;\n }\n return AnimationAst;\n }());\n var AnimationStateAst = (function (_super) {\n __extends$11(AnimationStateAst, _super);\n function AnimationStateAst() {\n _super.apply(this, arguments);\n }\n return AnimationStateAst;\n }(AnimationAst));\n var AnimationEntryAst = (function (_super) {\n __extends$11(AnimationEntryAst, _super);\n function AnimationEntryAst(name, stateDeclarations, stateTransitions) {\n _super.call(this);\n this.name = name;\n this.stateDeclarations = stateDeclarations;\n this.stateTransitions = stateTransitions;\n }\n AnimationEntryAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationEntry(this, context);\n };\n return AnimationEntryAst;\n }(AnimationAst));\n var AnimationStateDeclarationAst = (function (_super) {\n __extends$11(AnimationStateDeclarationAst, _super);\n function AnimationStateDeclarationAst(stateName, styles) {\n _super.call(this);\n this.stateName = stateName;\n this.styles = styles;\n }\n AnimationStateDeclarationAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationStateDeclaration(this, context);\n };\n return AnimationStateDeclarationAst;\n }(AnimationStateAst));\n var AnimationStateTransitionExpression = (function () {\n function AnimationStateTransitionExpression(fromState, toState) {\n this.fromState = fromState;\n this.toState = toState;\n }\n return AnimationStateTransitionExpression;\n }());\n var AnimationStateTransitionAst = (function (_super) {\n __extends$11(AnimationStateTransitionAst, _super);\n function AnimationStateTransitionAst(stateChanges, animation) {\n _super.call(this);\n this.stateChanges = stateChanges;\n this.animation = animation;\n }\n AnimationStateTransitionAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationStateTransition(this, context);\n };\n return AnimationStateTransitionAst;\n }(AnimationStateAst));\n var AnimationStepAst = (function (_super) {\n __extends$11(AnimationStepAst, _super);\n function AnimationStepAst(startingStyles, keyframes, duration, delay, easing) {\n _super.call(this);\n this.startingStyles = startingStyles;\n this.keyframes = keyframes;\n this.duration = duration;\n this.delay = delay;\n this.easing = easing;\n }\n AnimationStepAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationStep(this, context);\n };\n return AnimationStepAst;\n }(AnimationAst));\n var AnimationStylesAst = (function (_super) {\n __extends$11(AnimationStylesAst, _super);\n function AnimationStylesAst(styles) {\n _super.call(this);\n this.styles = styles;\n }\n AnimationStylesAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationStyles(this, context);\n };\n return AnimationStylesAst;\n }(AnimationAst));\n var AnimationKeyframeAst = (function (_super) {\n __extends$11(AnimationKeyframeAst, _super);\n function AnimationKeyframeAst(offset, styles) {\n _super.call(this);\n this.offset = offset;\n this.styles = styles;\n }\n AnimationKeyframeAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationKeyframe(this, context);\n };\n return AnimationKeyframeAst;\n }(AnimationAst));\n var AnimationWithStepsAst = (function (_super) {\n __extends$11(AnimationWithStepsAst, _super);\n function AnimationWithStepsAst(steps) {\n _super.call(this);\n this.steps = steps;\n }\n return AnimationWithStepsAst;\n }(AnimationAst));\n var AnimationGroupAst = (function (_super) {\n __extends$11(AnimationGroupAst, _super);\n function AnimationGroupAst(steps) {\n _super.call(this, steps);\n }\n AnimationGroupAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationGroup(this, context);\n };\n return AnimationGroupAst;\n }(AnimationWithStepsAst));\n var AnimationSequenceAst = (function (_super) {\n __extends$11(AnimationSequenceAst, _super);\n function AnimationSequenceAst(steps) {\n _super.call(this, steps);\n }\n AnimationSequenceAst.prototype.visit = function (visitor, context) {\n return visitor.visitAnimationSequence(this, context);\n };\n return AnimationSequenceAst;\n }(AnimationWithStepsAst));\n\n var Math$2 = global$1.Math;\n\n var StylesCollectionEntry = (function () {\n function StylesCollectionEntry(time, value) {\n this.time = time;\n this.value = value;\n }\n StylesCollectionEntry.prototype.matches = function (time, value) {\n return time == this.time && value == this.value;\n };\n return StylesCollectionEntry;\n }());\n var StylesCollection = (function () {\n function StylesCollection() {\n this.styles = {};\n }\n StylesCollection.prototype.insertAtTime = function (property, time, value) {\n var tuple = new StylesCollectionEntry(time, value);\n var entries = this.styles[property];\n if (!isPresent(entries)) {\n entries = this.styles[property] = [];\n }\n // insert this at the right stop in the array\n // this way we can keep it sorted\n var insertionIndex = 0;\n for (var i = entries.length - 1; i >= 0; i--) {\n if (entries[i].time <= time) {\n insertionIndex = i + 1;\n break;\n }\n }\n ListWrapper.insert(entries, insertionIndex, tuple);\n };\n StylesCollection.prototype.getByIndex = function (property, index) {\n var items = this.styles[property];\n if (isPresent(items)) {\n return index >= items.length ? null : items[index];\n }\n return null;\n };\n StylesCollection.prototype.indexOfAtOrBeforeTime = function (property, time) {\n var entries = this.styles[property];\n if (isPresent(entries)) {\n for (var i = entries.length - 1; i >= 0; i--) {\n if (entries[i].time <= time)\n return i;\n }\n }\n return null;\n };\n return StylesCollection;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$12 = (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 };\n var _INITIAL_KEYFRAME = 0;\n var _TERMINAL_KEYFRAME = 1;\n var _ONE_SECOND = 1000;\n var AnimationParseError = (function (_super) {\n __extends$12(AnimationParseError, _super);\n function AnimationParseError(message /** TODO #9100 */) {\n _super.call(this, null, message);\n }\n AnimationParseError.prototype.toString = function () { return \"\" + this.msg; };\n return AnimationParseError;\n }(ParseError));\n var ParsedAnimationResult = (function () {\n function ParsedAnimationResult(ast, errors) {\n this.ast = ast;\n this.errors = errors;\n }\n return ParsedAnimationResult;\n }());\n function parseAnimationEntry(entry) {\n var errors = [];\n var stateStyles = {};\n var transitions = [];\n var stateDeclarationAsts = [];\n entry.definitions.forEach(function (def) {\n if (def instanceof CompileAnimationStateDeclarationMetadata) {\n _parseAnimationDeclarationStates(def, errors).forEach(function (ast) {\n stateDeclarationAsts.push(ast);\n stateStyles[ast.stateName] = ast.styles;\n });\n }\n else {\n transitions.push(def);\n }\n });\n var stateTransitionAsts = transitions.map(function (transDef) { return _parseAnimationStateTransition(transDef, stateStyles, errors); });\n var ast = new AnimationEntryAst(entry.name, stateDeclarationAsts, stateTransitionAsts);\n return new ParsedAnimationResult(ast, errors);\n }\n function parseAnimationOutputName(outputName, errors) {\n var values = outputName.split('.');\n var name;\n var phase = '';\n if (values.length > 1) {\n name = values[0];\n var parsedPhase = values[1];\n switch (parsedPhase) {\n case 'start':\n case 'done':\n phase = parsedPhase;\n break;\n default:\n errors.push(new AnimationParseError(\"The provided animation output phase value \\\"\" + parsedPhase + \"\\\" for \\\"@\" + name + \"\\\" is not supported (use start or done)\"));\n }\n }\n else {\n name = outputName;\n errors.push(new AnimationParseError(\"The animation trigger output event (@\" + name + \") is missing its phase value name (start or done are currently supported)\"));\n }\n return new AnimationOutput(name, phase, outputName);\n }\n function _parseAnimationDeclarationStates(stateMetadata, errors) {\n var styleValues = [];\n stateMetadata.styles.styles.forEach(function (stylesEntry) {\n // TODO (matsko): change this when we get CSS class integration support\n if (isStringMap(stylesEntry)) {\n styleValues.push(stylesEntry);\n }\n else {\n errors.push(new AnimationParseError(\"State based animations cannot contain references to other states\"));\n }\n });\n var defStyles = new AnimationStylesAst(styleValues);\n var states = stateMetadata.stateNameExpr.split(/\\s*,\\s*/);\n return states.map(function (state) { return new AnimationStateDeclarationAst(state, defStyles); });\n }\n function _parseAnimationStateTransition(transitionStateMetadata, stateStyles, errors) {\n var styles = new StylesCollection();\n var transitionExprs = [];\n var transitionStates = transitionStateMetadata.stateChangeExpr.split(/\\s*,\\s*/);\n transitionStates.forEach(function (expr) {\n _parseAnimationTransitionExpr(expr, errors).forEach(function (transExpr) {\n transitionExprs.push(transExpr);\n });\n });\n var entry = _normalizeAnimationEntry(transitionStateMetadata.steps);\n var animation = _normalizeStyleSteps(entry, stateStyles, errors);\n var animationAst = _parseTransitionAnimation(animation, 0, styles, stateStyles, errors);\n if (errors.length == 0) {\n _fillAnimationAstStartingKeyframes(animationAst, styles, errors);\n }\n var sequenceAst = (animationAst instanceof AnimationSequenceAst) ?\n animationAst :\n new AnimationSequenceAst([animationAst]);\n return new AnimationStateTransitionAst(transitionExprs, sequenceAst);\n }\n function _parseAnimationTransitionExpr(eventStr, errors) {\n var expressions = [];\n var match = eventStr.match(/^(\\*|[-\\w]+)\\s*(<?[=-]>)\\s*(\\*|[-\\w]+)$/);\n if (!isPresent(match) || match.length < 4) {\n errors.push(new AnimationParseError(\"the provided \" + eventStr + \" is not of a supported format\"));\n return expressions;\n }\n var fromState = match[1];\n var separator = match[2];\n var toState = match[3];\n expressions.push(new AnimationStateTransitionExpression(fromState, toState));\n var isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;\n if (separator[0] == '<' && !isFullAnyStateExpr) {\n expressions.push(new AnimationStateTransitionExpression(toState, fromState));\n }\n return expressions;\n }\n function _normalizeAnimationEntry(entry) {\n return isArray(entry) ? new CompileAnimationSequenceMetadata(entry) :\n entry;\n }\n function _normalizeStyleMetadata(entry, stateStyles, errors) {\n var normalizedStyles = [];\n entry.styles.forEach(function (styleEntry) {\n if (isString(styleEntry)) {\n ListWrapper.addAll(normalizedStyles, _resolveStylesFromState(styleEntry, stateStyles, errors));\n }\n else {\n normalizedStyles.push(styleEntry);\n }\n });\n return normalizedStyles;\n }\n function _normalizeStyleSteps(entry, stateStyles, errors) {\n var steps = _normalizeStyleStepEntry(entry, stateStyles, errors);\n return new CompileAnimationSequenceMetadata(steps);\n }\n function _mergeAnimationStyles(stylesList, newItem) {\n if (isStringMap(newItem) && stylesList.length > 0) {\n var lastIndex = stylesList.length - 1;\n var lastItem = stylesList[lastIndex];\n if (isStringMap(lastItem)) {\n stylesList[lastIndex] = StringMapWrapper.merge(lastItem, newItem);\n return;\n }\n }\n stylesList.push(newItem);\n }\n function _normalizeStyleStepEntry(entry, stateStyles, errors) {\n var steps;\n if (entry instanceof CompileAnimationWithStepsMetadata) {\n steps = entry.steps;\n }\n else {\n return [entry];\n }\n var newSteps = [];\n var combinedStyles;\n steps.forEach(function (step) {\n if (step instanceof CompileAnimationStyleMetadata) {\n // this occurs when a style step is followed by a previous style step\n // or when the first style step is run. We want to concatenate all subsequent\n // style steps together into a single style step such that we have the correct\n // starting keyframe data to pass into the animation player.\n if (!isPresent(combinedStyles)) {\n combinedStyles = [];\n }\n _normalizeStyleMetadata(step, stateStyles, errors)\n .forEach(function (entry) { _mergeAnimationStyles(combinedStyles, entry); });\n }\n else {\n // it is important that we create a metadata entry of the combined styles\n // before we go on an process the animate, sequence or group metadata steps.\n // This will ensure that the AST will have the previous styles painted on\n // screen before any further animations that use the styles take place.\n if (isPresent(combinedStyles)) {\n newSteps.push(new CompileAnimationStyleMetadata(0, combinedStyles));\n combinedStyles = null;\n }\n if (step instanceof CompileAnimationAnimateMetadata) {\n // we do not recurse into CompileAnimationAnimateMetadata since\n // those style steps are not going to be squashed\n var animateStyleValue = step.styles;\n if (animateStyleValue instanceof CompileAnimationStyleMetadata) {\n animateStyleValue.styles =\n _normalizeStyleMetadata(animateStyleValue, stateStyles, errors);\n }\n else if (animateStyleValue instanceof CompileAnimationKeyframesSequenceMetadata) {\n animateStyleValue.steps.forEach(function (step) { step.styles = _normalizeStyleMetadata(step, stateStyles, errors); });\n }\n }\n else if (step instanceof CompileAnimationWithStepsMetadata) {\n var innerSteps = _normalizeStyleStepEntry(step, stateStyles, errors);\n step = step instanceof CompileAnimationGroupMetadata ?\n new CompileAnimationGroupMetadata(innerSteps) :\n new CompileAnimationSequenceMetadata(innerSteps);\n }\n newSteps.push(step);\n }\n });\n // this happens when only styles were animated within the sequence\n if (isPresent(combinedStyles)) {\n newSteps.push(new CompileAnimationStyleMetadata(0, combinedStyles));\n }\n return newSteps;\n }\n function _resolveStylesFromState(stateName, stateStyles, errors) {\n var styles = [];\n if (stateName[0] != ':') {\n errors.push(new AnimationParseError(\"Animation states via styles must be prefixed with a \\\":\\\"\"));\n }\n else {\n var normalizedStateName = stateName.substring(1);\n var value = stateStyles[normalizedStateName];\n if (!isPresent(value)) {\n errors.push(new AnimationParseError(\"Unable to apply styles due to missing a state: \\\"\" + normalizedStateName + \"\\\"\"));\n }\n else {\n value.styles.forEach(function (stylesEntry) {\n if (isStringMap(stylesEntry)) {\n styles.push(stylesEntry);\n }\n });\n }\n }\n return styles;\n }\n var _AnimationTimings = (function () {\n function _AnimationTimings(duration, delay, easing) {\n this.duration = duration;\n this.delay = delay;\n this.easing = easing;\n }\n return _AnimationTimings;\n }());\n function _parseAnimationKeyframes(keyframeSequence, currentTime, collectedStyles, stateStyles, errors) {\n var totalEntries = keyframeSequence.steps.length;\n var totalOffsets = 0;\n keyframeSequence.steps.forEach(function (step) { return totalOffsets += (isPresent(step.offset) ? 1 : 0); });\n if (totalOffsets > 0 && totalOffsets < totalEntries) {\n errors.push(new AnimationParseError(\"Not all style() entries contain an offset for the provided keyframe()\"));\n totalOffsets = totalEntries;\n }\n var limit = totalEntries - 1;\n var margin = totalOffsets == 0 ? (1 / limit) : 0;\n var rawKeyframes = [];\n var index = 0;\n var doSortKeyframes = false;\n var lastOffset = 0;\n keyframeSequence.steps.forEach(function (styleMetadata) {\n var offset = styleMetadata.offset;\n var keyframeStyles = {};\n styleMetadata.styles.forEach(function (entry) {\n StringMapWrapper.forEach(entry, function (value /** TODO #9100 */, prop /** TODO #9100 */) {\n if (prop != 'offset') {\n keyframeStyles[prop] = value;\n }\n });\n });\n if (isPresent(offset)) {\n doSortKeyframes = doSortKeyframes || (offset < lastOffset);\n }\n else {\n offset = index == limit ? _TERMINAL_KEYFRAME : (margin * index);\n }\n rawKeyframes.push([offset, keyframeStyles]);\n lastOffset = offset;\n index++;\n });\n if (doSortKeyframes) {\n ListWrapper.sort(rawKeyframes, function (a, b) { return a[0] <= b[0] ? -1 : 1; });\n }\n var i;\n var firstKeyframe = rawKeyframes[0];\n if (firstKeyframe[0] != _INITIAL_KEYFRAME) {\n ListWrapper.insert(rawKeyframes, 0, firstKeyframe = [_INITIAL_KEYFRAME, {}]);\n }\n var firstKeyframeStyles = firstKeyframe[1];\n limit = rawKeyframes.length - 1;\n var lastKeyframe = rawKeyframes[limit];\n if (lastKeyframe[0] != _TERMINAL_KEYFRAME) {\n rawKeyframes.push(lastKeyframe = [_TERMINAL_KEYFRAME, {}]);\n limit++;\n }\n var lastKeyframeStyles = lastKeyframe[1];\n for (i = 1; i <= limit; i++) {\n var entry = rawKeyframes[i];\n var styles = entry[1];\n StringMapWrapper.forEach(styles, function (value /** TODO #9100 */, prop /** TODO #9100 */) {\n if (!isPresent(firstKeyframeStyles[prop])) {\n firstKeyframeStyles[prop] = FILL_STYLE_FLAG;\n }\n });\n }\n for (i = limit - 1; i >= 0; i--) {\n var entry = rawKeyframes[i];\n var styles = entry[1];\n StringMapWrapper.forEach(styles, function (value /** TODO #9100 */, prop /** TODO #9100 */) {\n if (!isPresent(lastKeyframeStyles[prop])) {\n lastKeyframeStyles[prop] = value;\n }\n });\n }\n return rawKeyframes.map(function (entry) { return new AnimationKeyframeAst(entry[0], new AnimationStylesAst([entry[1]])); });\n }\n function _parseTransitionAnimation(entry, currentTime, collectedStyles, stateStyles, errors) {\n var ast;\n var playTime = 0;\n var startingTime = currentTime;\n if (entry instanceof CompileAnimationWithStepsMetadata) {\n var maxDuration = 0;\n var steps = [];\n var isGroup = entry instanceof CompileAnimationGroupMetadata;\n var previousStyles;\n entry.steps.forEach(function (entry) {\n // these will get picked up by the next step...\n var time = isGroup ? startingTime : currentTime;\n if (entry instanceof CompileAnimationStyleMetadata) {\n entry.styles.forEach(function (stylesEntry) {\n // by this point we know that we only have stringmap values\n var map = stylesEntry;\n StringMapWrapper.forEach(map, function (value /** TODO #9100 */, prop /** TODO #9100 */) {\n collectedStyles.insertAtTime(prop, time, value);\n });\n });\n previousStyles = entry.styles;\n return;\n }\n var innerAst = _parseTransitionAnimation(entry, time, collectedStyles, stateStyles, errors);\n if (isPresent(previousStyles)) {\n if (entry instanceof CompileAnimationWithStepsMetadata) {\n var startingStyles = new AnimationStylesAst(previousStyles);\n steps.push(new AnimationStepAst(startingStyles, [], 0, 0, ''));\n }\n else {\n var innerStep = innerAst;\n ListWrapper.addAll(innerStep.startingStyles.styles, previousStyles);\n }\n previousStyles = null;\n }\n var astDuration = innerAst.playTime;\n currentTime += astDuration;\n playTime += astDuration;\n maxDuration = Math$2.max(astDuration, maxDuration);\n steps.push(innerAst);\n });\n if (isPresent(previousStyles)) {\n var startingStyles = new AnimationStylesAst(previousStyles);\n steps.push(new AnimationStepAst(startingStyles, [], 0, 0, ''));\n }\n if (isGroup) {\n ast = new AnimationGroupAst(steps);\n playTime = maxDuration;\n currentTime = startingTime + playTime;\n }\n else {\n ast = new AnimationSequenceAst(steps);\n }\n }\n else if (entry instanceof CompileAnimationAnimateMetadata) {\n var timings = _parseTimeExpression(entry.timings, errors);\n var styles = entry.styles;\n var keyframes;\n if (styles instanceof CompileAnimationKeyframesSequenceMetadata) {\n keyframes =\n _parseAnimationKeyframes(styles, currentTime, collectedStyles, stateStyles, errors);\n }\n else {\n var styleData = styles;\n var offset = _TERMINAL_KEYFRAME;\n var styleAst = new AnimationStylesAst(styleData.styles);\n var keyframe = new AnimationKeyframeAst(offset, styleAst);\n keyframes = [keyframe];\n }\n ast = new AnimationStepAst(new AnimationStylesAst([]), keyframes, timings.duration, timings.delay, timings.easing);\n playTime = timings.duration + timings.delay;\n currentTime += playTime;\n keyframes.forEach(function (keyframe /** TODO #9100 */) { return keyframe.styles.styles.forEach(function (entry /** TODO #9100 */) { return StringMapWrapper.forEach(entry, function (value /** TODO #9100 */, prop /** TODO #9100 */) {\n return collectedStyles.insertAtTime(prop, currentTime, value);\n }); }); });\n }\n else {\n // if the code reaches this stage then an error\n // has already been populated within the _normalizeStyleSteps()\n // operation...\n ast = new AnimationStepAst(null, [], 0, 0, '');\n }\n ast.playTime = playTime;\n ast.startTime = startingTime;\n return ast;\n }\n function _fillAnimationAstStartingKeyframes(ast, collectedStyles, errors) {\n // steps that only contain style will not be filled\n if ((ast instanceof AnimationStepAst) && ast.keyframes.length > 0) {\n var keyframes = ast.keyframes;\n if (keyframes.length == 1) {\n var endKeyframe = keyframes[0];\n var startKeyframe = _createStartKeyframeFromEndKeyframe(endKeyframe, ast.startTime, ast.playTime, collectedStyles, errors);\n ast.keyframes = [startKeyframe, endKeyframe];\n }\n }\n else if (ast instanceof AnimationWithStepsAst) {\n ast.steps.forEach(function (entry) { return _fillAnimationAstStartingKeyframes(entry, collectedStyles, errors); });\n }\n }\n function _parseTimeExpression(exp, errors) {\n var regex = /^([\\.\\d]+)(m?s)(?:\\s+([\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?/i;\n var duration;\n var delay = 0;\n var easing = null;\n if (isString(exp)) {\n var matches = exp.match(regex);\n if (matches === null) {\n errors.push(new AnimationParseError(\"The provided timing value \\\"\" + exp + \"\\\" is invalid.\"));\n return new _AnimationTimings(0, 0, null);\n }\n var durationMatch = NumberWrapper.parseFloat(matches[1]);\n var durationUnit = matches[2];\n if (durationUnit == 's') {\n durationMatch *= _ONE_SECOND;\n }\n duration = Math$2.floor(durationMatch);\n var delayMatch = matches[3];\n var delayUnit = matches[4];\n if (isPresent(delayMatch)) {\n var delayVal = NumberWrapper.parseFloat(delayMatch);\n if (isPresent(delayUnit) && delayUnit == 's') {\n delayVal *= _ONE_SECOND;\n }\n delay = Math$2.floor(delayVal);\n }\n var easingVal = matches[5];\n if (!isBlank(easingVal)) {\n easing = easingVal;\n }\n }\n else {\n duration = exp;\n }\n return new _AnimationTimings(duration, delay, easing);\n }\n function _createStartKeyframeFromEndKeyframe(endKeyframe, startTime, duration, collectedStyles, errors) {\n var values = {};\n var endTime = startTime + duration;\n endKeyframe.styles.styles.forEach(function (styleData) {\n StringMapWrapper.forEach(styleData, function (val /** TODO #9100 */, prop /** TODO #9100 */) {\n if (prop == 'offset')\n return;\n var resultIndex = collectedStyles.indexOfAtOrBeforeTime(prop, startTime);\n var resultEntry /** TODO #9100 */, nextEntry /** TODO #9100 */, value;\n if (isPresent(resultIndex)) {\n resultEntry = collectedStyles.getByIndex(prop, resultIndex);\n value = resultEntry.value;\n nextEntry = collectedStyles.getByIndex(prop, resultIndex + 1);\n }\n else {\n // this is a flag that the runtime code uses to pass\n // in a value either from the state declaration styles\n // or using the AUTO_STYLE value (e.g. getComputedStyle)\n value = FILL_STYLE_FLAG;\n }\n if (isPresent(nextEntry) && !nextEntry.matches(endTime, val)) {\n errors.push(new AnimationParseError(\"The animated CSS property \\\"\" + prop + \"\\\" unexpectedly changes between steps \\\"\" + resultEntry.time + \"ms\\\" and \\\"\" + endTime + \"ms\\\" at \\\"\" + nextEntry.time + \"ms\\\"\"));\n }\n values[prop] = value;\n });\n });\n return new AnimationKeyframeAst(_INITIAL_KEYFRAME, new AnimationStylesAst([values]));\n }\n\n var animationCompilationCache = new Map();\n var CompiledAnimationTriggerResult = (function () {\n function CompiledAnimationTriggerResult(name, statesMapStatement, statesVariableName, fnStatement, fnVariable) {\n this.name = name;\n this.statesMapStatement = statesMapStatement;\n this.statesVariableName = statesVariableName;\n this.fnStatement = fnStatement;\n this.fnVariable = fnVariable;\n }\n return CompiledAnimationTriggerResult;\n }());\n var CompiledComponentAnimationResult = (function () {\n function CompiledComponentAnimationResult(outputs, triggers) {\n this.outputs = outputs;\n this.triggers = triggers;\n }\n return CompiledComponentAnimationResult;\n }());\n var AnimationCompiler = (function () {\n function AnimationCompiler() {\n }\n AnimationCompiler.prototype.compileComponent = function (component, template) {\n var compiledAnimations = [];\n var groupedErrors = [];\n var triggerLookup = {};\n var componentName = component.type.name;\n component.template.animations.forEach(function (entry) {\n var result = parseAnimationEntry(entry);\n var triggerName = entry.name;\n if (result.errors.length > 0) {\n var errorMessage = \"Unable to parse the animation sequence for \\\"\" + triggerName + \"\\\" due to the following errors:\";\n result.errors.forEach(function (error) { errorMessage += '\\n-- ' + error.msg; });\n groupedErrors.push(errorMessage);\n }\n if (triggerLookup[triggerName]) {\n groupedErrors.push(\"The animation trigger \\\"\" + triggerName + \"\\\" has already been registered on \\\"\" + componentName + \"\\\"\");\n }\n else {\n var factoryName = componentName + \"_\" + entry.name;\n var visitor = new _AnimationBuilder(triggerName, factoryName);\n var compileResult = visitor.build(result.ast);\n compiledAnimations.push(compileResult);\n triggerLookup[entry.name] = compileResult;\n }\n });\n var validatedProperties = _validateAnimationProperties(compiledAnimations, template);\n validatedProperties.errors.forEach(function (error) { groupedErrors.push(error.msg); });\n if (groupedErrors.length > 0) {\n var errorMessageStr = \"Animation parsing for \" + component.type.name + \" has failed due to the following errors:\";\n groupedErrors.forEach(function (error) { return errorMessageStr += \"\\n- \" + error; });\n throw new Error(errorMessageStr);\n }\n animationCompilationCache.set(component, compiledAnimations);\n return new CompiledComponentAnimationResult(validatedProperties.outputs, compiledAnimations);\n };\n return AnimationCompiler;\n }());\n var _ANIMATION_FACTORY_ELEMENT_VAR = variable('element');\n var _ANIMATION_DEFAULT_STATE_VAR = variable('defaultStateStyles');\n var _ANIMATION_FACTORY_VIEW_VAR = variable('view');\n var _ANIMATION_FACTORY_RENDERER_VAR = _ANIMATION_FACTORY_VIEW_VAR.prop('renderer');\n var _ANIMATION_CURRENT_STATE_VAR = variable('currentState');\n var _ANIMATION_NEXT_STATE_VAR = variable('nextState');\n var _ANIMATION_PLAYER_VAR = variable('player');\n var _ANIMATION_TIME_VAR = variable('totalTime');\n var _ANIMATION_START_STATE_STYLES_VAR = variable('startStateStyles');\n var _ANIMATION_END_STATE_STYLES_VAR = variable('endStateStyles');\n var _ANIMATION_COLLECTED_STYLES = variable('collectedStyles');\n var EMPTY_MAP$1 = literalMap([]);\n var _AnimationBuilder = (function () {\n function _AnimationBuilder(animationName, factoryName) {\n this.animationName = animationName;\n this._fnVarName = factoryName + '_factory';\n this._statesMapVarName = factoryName + '_states';\n this._statesMapVar = variable(this._statesMapVarName);\n }\n _AnimationBuilder.prototype.visitAnimationStyles = function (ast, context) {\n var stylesArr = [];\n if (context.isExpectingFirstStyleStep) {\n stylesArr.push(_ANIMATION_START_STATE_STYLES_VAR);\n context.isExpectingFirstStyleStep = false;\n }\n ast.styles.forEach(function (entry) {\n stylesArr.push(literalMap(StringMapWrapper.keys(entry).map(function (key) { return [key, literal(entry[key])]; })));\n });\n return importExpr(resolveIdentifier(Identifiers.AnimationStyles)).instantiate([\n importExpr(resolveIdentifier(Identifiers.collectAndResolveStyles)).callFn([\n _ANIMATION_COLLECTED_STYLES, literalArr(stylesArr)\n ])\n ]);\n };\n _AnimationBuilder.prototype.visitAnimationKeyframe = function (ast, context) {\n return importExpr(resolveIdentifier(Identifiers.AnimationKeyframe)).instantiate([\n literal(ast.offset), ast.styles.visit(this, context)\n ]);\n };\n _AnimationBuilder.prototype.visitAnimationStep = function (ast, context) {\n var _this = this;\n if (context.endStateAnimateStep === ast) {\n return this._visitEndStateAnimation(ast, context);\n }\n var startingStylesExpr = ast.startingStyles.visit(this, context);\n var keyframeExpressions = ast.keyframes.map(function (keyframeEntry) { return keyframeEntry.visit(_this, context); });\n return this._callAnimateMethod(ast, startingStylesExpr, literalArr(keyframeExpressions), context);\n };\n /** @internal */\n _AnimationBuilder.prototype._visitEndStateAnimation = function (ast, context) {\n var _this = this;\n var startingStylesExpr = ast.startingStyles.visit(this, context);\n var keyframeExpressions = ast.keyframes.map(function (keyframe) { return keyframe.visit(_this, context); });\n var keyframesExpr = importExpr(resolveIdentifier(Identifiers.balanceAnimationKeyframes)).callFn([\n _ANIMATION_COLLECTED_STYLES, _ANIMATION_END_STATE_STYLES_VAR,\n literalArr(keyframeExpressions)\n ]);\n return this._callAnimateMethod(ast, startingStylesExpr, keyframesExpr, context);\n };\n /** @internal */\n _AnimationBuilder.prototype._callAnimateMethod = function (ast, startingStylesExpr, keyframesExpr, context) {\n context.totalTransitionTime += ast.duration + ast.delay;\n return _ANIMATION_FACTORY_RENDERER_VAR.callMethod('animate', [\n _ANIMATION_FACTORY_ELEMENT_VAR, startingStylesExpr, keyframesExpr, literal(ast.duration),\n literal(ast.delay), literal(ast.easing)\n ]);\n };\n _AnimationBuilder.prototype.visitAnimationSequence = function (ast, context) {\n var _this = this;\n var playerExprs = ast.steps.map(function (step) { return step.visit(_this, context); });\n return importExpr(resolveIdentifier(Identifiers.AnimationSequencePlayer)).instantiate([\n literalArr(playerExprs)\n ]);\n };\n _AnimationBuilder.prototype.visitAnimationGroup = function (ast, context) {\n var _this = this;\n var playerExprs = ast.steps.map(function (step) { return step.visit(_this, context); });\n return importExpr(resolveIdentifier(Identifiers.AnimationGroupPlayer)).instantiate([\n literalArr(playerExprs)\n ]);\n };\n _AnimationBuilder.prototype.visitAnimationStateDeclaration = function (ast, context) {\n var flatStyles = {};\n _getStylesArray(ast).forEach(function (entry) {\n StringMapWrapper.forEach(entry, function (value, key) { flatStyles[key] = value; });\n });\n context.stateMap.registerState(ast.stateName, flatStyles);\n };\n _AnimationBuilder.prototype.visitAnimationStateTransition = function (ast, context) {\n var steps = ast.animation.steps;\n var lastStep = steps[steps.length - 1];\n if (_isEndStateAnimateStep(lastStep)) {\n context.endStateAnimateStep = lastStep;\n }\n context.totalTransitionTime = 0;\n context.isExpectingFirstStyleStep = true;\n var stateChangePreconditions = [];\n ast.stateChanges.forEach(function (stateChange) {\n stateChangePreconditions.push(_compareToAnimationStateExpr(_ANIMATION_CURRENT_STATE_VAR, stateChange.fromState)\n .and(_compareToAnimationStateExpr(_ANIMATION_NEXT_STATE_VAR, stateChange.toState)));\n if (stateChange.fromState != ANY_STATE) {\n context.stateMap.registerState(stateChange.fromState);\n }\n if (stateChange.toState != ANY_STATE) {\n context.stateMap.registerState(stateChange.toState);\n }\n });\n var animationPlayerExpr = ast.animation.visit(this, context);\n var reducedStateChangesPrecondition = stateChangePreconditions.reduce(function (a, b) { return a.or(b); });\n var precondition = _ANIMATION_PLAYER_VAR.equals(NULL_EXPR).and(reducedStateChangesPrecondition);\n var animationStmt = _ANIMATION_PLAYER_VAR.set(animationPlayerExpr).toStmt();\n var totalTimeStmt = _ANIMATION_TIME_VAR.set(literal(context.totalTransitionTime)).toStmt();\n return new IfStmt(precondition, [animationStmt, totalTimeStmt]);\n };\n _AnimationBuilder.prototype.visitAnimationEntry = function (ast, context) {\n var _this = this;\n // visit each of the declarations first to build the context state map\n ast.stateDeclarations.forEach(function (def) { return def.visit(_this, context); });\n // this should always be defined even if the user overrides it\n context.stateMap.registerState(DEFAULT_STATE, {});\n var statements = [];\n statements.push(_ANIMATION_FACTORY_VIEW_VAR\n .callMethod('cancelActiveAnimation', [\n _ANIMATION_FACTORY_ELEMENT_VAR, literal(this.animationName),\n _ANIMATION_NEXT_STATE_VAR.equals(literal(EMPTY_ANIMATION_STATE))\n ])\n .toStmt());\n statements.push(_ANIMATION_COLLECTED_STYLES.set(EMPTY_MAP$1).toDeclStmt());\n statements.push(_ANIMATION_PLAYER_VAR.set(NULL_EXPR).toDeclStmt());\n statements.push(_ANIMATION_TIME_VAR.set(literal(0)).toDeclStmt());\n statements.push(_ANIMATION_DEFAULT_STATE_VAR.set(this._statesMapVar.key(literal(DEFAULT_STATE)))\n .toDeclStmt());\n statements.push(_ANIMATION_START_STATE_STYLES_VAR.set(this._statesMapVar.key(_ANIMATION_CURRENT_STATE_VAR))\n .toDeclStmt());\n statements.push(new IfStmt(_ANIMATION_START_STATE_STYLES_VAR.equals(NULL_EXPR), [_ANIMATION_START_STATE_STYLES_VAR.set(_ANIMATION_DEFAULT_STATE_VAR).toStmt()]));\n statements.push(_ANIMATION_END_STATE_STYLES_VAR.set(this._statesMapVar.key(_ANIMATION_NEXT_STATE_VAR))\n .toDeclStmt());\n statements.push(new IfStmt(_ANIMATION_END_STATE_STYLES_VAR.equals(NULL_EXPR), [_ANIMATION_END_STATE_STYLES_VAR.set(_ANIMATION_DEFAULT_STATE_VAR).toStmt()]));\n var RENDER_STYLES_FN = importExpr(resolveIdentifier(Identifiers.renderStyles));\n // before we start any animation we want to clear out the starting\n // styles from the element's style property (since they were placed\n // there at the end of the last animation\n statements.push(RENDER_STYLES_FN\n .callFn([\n _ANIMATION_FACTORY_ELEMENT_VAR, _ANIMATION_FACTORY_RENDERER_VAR,\n importExpr(resolveIdentifier(Identifiers.clearStyles))\n .callFn([_ANIMATION_START_STATE_STYLES_VAR])\n ])\n .toStmt());\n ast.stateTransitions.forEach(function (transAst) { return statements.push(transAst.visit(_this, context)); });\n // this check ensures that the animation factory always returns a player\n // so that the onDone callback can be used for tracking\n statements.push(new IfStmt(_ANIMATION_PLAYER_VAR.equals(NULL_EXPR), [_ANIMATION_PLAYER_VAR\n .set(importExpr(resolveIdentifier(Identifiers.NoOpAnimationPlayer)).instantiate([]))\n .toStmt()]));\n // once complete we want to apply the styles on the element\n // since the destination state's values should persist once\n // the animation sequence has completed.\n statements.push(_ANIMATION_PLAYER_VAR\n .callMethod('onDone', [fn([], [RENDER_STYLES_FN\n .callFn([\n _ANIMATION_FACTORY_ELEMENT_VAR, _ANIMATION_FACTORY_RENDERER_VAR,\n importExpr(resolveIdentifier(Identifiers.prepareFinalAnimationStyles))\n .callFn([\n _ANIMATION_START_STATE_STYLES_VAR, _ANIMATION_END_STATE_STYLES_VAR\n ])\n ])\n .toStmt()])])\n .toStmt());\n statements.push(_ANIMATION_FACTORY_VIEW_VAR\n .callMethod('queueAnimation', [\n _ANIMATION_FACTORY_ELEMENT_VAR, literal(this.animationName),\n _ANIMATION_PLAYER_VAR, _ANIMATION_TIME_VAR,\n _ANIMATION_CURRENT_STATE_VAR, _ANIMATION_NEXT_STATE_VAR\n ])\n .toStmt());\n return fn([\n new FnParam(_ANIMATION_FACTORY_VIEW_VAR.name, importType(resolveIdentifier(Identifiers.AppView), [DYNAMIC_TYPE])),\n new FnParam(_ANIMATION_FACTORY_ELEMENT_VAR.name, DYNAMIC_TYPE),\n new FnParam(_ANIMATION_CURRENT_STATE_VAR.name, DYNAMIC_TYPE),\n new FnParam(_ANIMATION_NEXT_STATE_VAR.name, DYNAMIC_TYPE)\n ], statements);\n };\n _AnimationBuilder.prototype.build = function (ast) {\n var context = new _AnimationBuilderContext();\n var fnStatement = ast.visit(this, context).toDeclStmt(this._fnVarName);\n var fnVariable = variable(this._fnVarName);\n var lookupMap = [];\n StringMapWrapper.forEach(context.stateMap.states, function (value, stateName) {\n var variableValue = EMPTY_MAP$1;\n if (isPresent(value)) {\n var styleMap_1 = [];\n StringMapWrapper.forEach(value, function (value, key) {\n styleMap_1.push([key, literal(value)]);\n });\n variableValue = literalMap(styleMap_1);\n }\n lookupMap.push([stateName, variableValue]);\n });\n var compiledStatesMapExpr = this._statesMapVar.set(literalMap(lookupMap)).toDeclStmt();\n return new CompiledAnimationTriggerResult(this.animationName, compiledStatesMapExpr, this._statesMapVarName, fnStatement, fnVariable);\n };\n return _AnimationBuilder;\n }());\n var _AnimationBuilderContext = (function () {\n function _AnimationBuilderContext() {\n this.stateMap = new _AnimationBuilderStateMap();\n this.endStateAnimateStep = null;\n this.isExpectingFirstStyleStep = false;\n this.totalTransitionTime = 0;\n }\n return _AnimationBuilderContext;\n }());\n var _AnimationBuilderStateMap = (function () {\n function _AnimationBuilderStateMap() {\n this._states = {};\n }\n Object.defineProperty(_AnimationBuilderStateMap.prototype, \"states\", {\n get: function () { return this._states; },\n enumerable: true,\n configurable: true\n });\n _AnimationBuilderStateMap.prototype.registerState = function (name, value) {\n if (value === void 0) { value = null; }\n var existingEntry = this._states[name];\n if (isBlank(existingEntry)) {\n this._states[name] = value;\n }\n };\n return _AnimationBuilderStateMap;\n }());\n function _compareToAnimationStateExpr(value, animationState) {\n var emptyStateLiteral = literal(EMPTY_ANIMATION_STATE);\n switch (animationState) {\n case EMPTY_ANIMATION_STATE:\n return value.equals(emptyStateLiteral);\n case ANY_STATE:\n return literal(true);\n default:\n return value.equals(literal(animationState));\n }\n }\n function _isEndStateAnimateStep(step) {\n // the final animation step is characterized by having only TWO\n // keyframe values and it must have zero styles for both keyframes\n if (step instanceof AnimationStepAst && step.duration > 0 && step.keyframes.length == 2) {\n var styles1 = _getStylesArray(step.keyframes[0])[0];\n var styles2 = _getStylesArray(step.keyframes[1])[0];\n return StringMapWrapper.isEmpty(styles1) && StringMapWrapper.isEmpty(styles2);\n }\n return false;\n }\n function _getStylesArray(obj) {\n return obj.styles.styles;\n }\n function _validateAnimationProperties(compiledAnimations, template) {\n var visitor = new _AnimationTemplatePropertyVisitor(compiledAnimations);\n templateVisitAll(visitor, template);\n return new AnimationPropertyValidationOutput(visitor.outputs, visitor.errors);\n }\n var AnimationPropertyValidationOutput = (function () {\n function AnimationPropertyValidationOutput(outputs, errors) {\n this.outputs = outputs;\n this.errors = errors;\n }\n return AnimationPropertyValidationOutput;\n }());\n var _AnimationTemplatePropertyVisitor = (function () {\n function _AnimationTemplatePropertyVisitor(animations) {\n this.errors = [];\n this.outputs = [];\n this._animationRegistry = this._buildCompileAnimationLookup(animations);\n }\n _AnimationTemplatePropertyVisitor.prototype._buildCompileAnimationLookup = function (animations) {\n var map = {};\n animations.forEach(function (entry) { map[entry.name] = true; });\n return map;\n };\n _AnimationTemplatePropertyVisitor.prototype._validateAnimationInputOutputPairs = function (inputAsts, outputAsts, animationRegistry, isHostLevel) {\n var _this = this;\n var detectedAnimationInputs = {};\n inputAsts.forEach(function (input) {\n if (input.type == exports.PropertyBindingType.Animation) {\n var triggerName = input.name;\n if (isPresent(animationRegistry[triggerName])) {\n detectedAnimationInputs[triggerName] = true;\n }\n else {\n _this.errors.push(new AnimationParseError(\"Couldn't find an animation entry for \" + triggerName));\n }\n }\n });\n outputAsts.forEach(function (output) {\n if (output.name[0] == '@') {\n var normalizedOutputData = parseAnimationOutputName(output.name.substr(1), _this.errors);\n var triggerName = normalizedOutputData.name;\n var triggerEventPhase = normalizedOutputData.phase;\n if (!animationRegistry[triggerName]) {\n _this.errors.push(new AnimationParseError(\"Couldn't find the corresponding \" + (isHostLevel ? 'host-level ' : '') + \"animation trigger definition for (@\" + triggerName + \")\"));\n }\n else if (!detectedAnimationInputs[triggerName]) {\n _this.errors.push(new AnimationParseError(\"Unable to listen on (@\" + triggerName + \".\" + triggerEventPhase + \") because the animation trigger [@\" + triggerName + \"] isn't being used on the same element\"));\n }\n else {\n _this.outputs.push(normalizedOutputData);\n }\n }\n });\n };\n _AnimationTemplatePropertyVisitor.prototype.visitElement = function (ast, ctx) {\n this._validateAnimationInputOutputPairs(ast.inputs, ast.outputs, this._animationRegistry, false);\n var componentOnElement = ast.directives.find(function (directive) { return directive.directive.isComponent; });\n if (componentOnElement) {\n var cachedComponentAnimations = animationCompilationCache.get(componentOnElement.directive);\n if (cachedComponentAnimations) {\n this._validateAnimationInputOutputPairs(componentOnElement.hostProperties, componentOnElement.hostEvents, this._buildCompileAnimationLookup(cachedComponentAnimations), true);\n }\n }\n templateVisitAll(this, ast.children);\n };\n _AnimationTemplatePropertyVisitor.prototype.visitEmbeddedTemplate = function (ast, ctx) {\n templateVisitAll(this, ast.children);\n };\n _AnimationTemplatePropertyVisitor.prototype.visitEvent = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitBoundText = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitText = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitNgContent = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitAttr = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitDirective = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitReference = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitVariable = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitDirectiveProperty = function (ast, ctx) { };\n _AnimationTemplatePropertyVisitor.prototype.visitElementProperty = function (ast, ctx) { };\n return _AnimationTemplatePropertyVisitor;\n }());\n\n function convertValueToOutputAst(value, type) {\n if (type === void 0) { type = null; }\n return visitValue(value, new _ValueOutputAstTransformer(), type);\n }\n var _ValueOutputAstTransformer = (function () {\n function _ValueOutputAstTransformer() {\n }\n _ValueOutputAstTransformer.prototype.visitArray = function (arr, type) {\n var _this = this;\n return literalArr(arr.map(function (value) { return visitValue(value, _this, null); }), type);\n };\n _ValueOutputAstTransformer.prototype.visitStringMap = function (map, type) {\n var _this = this;\n var entries = [];\n StringMapWrapper.forEach(map, function (value, key) {\n entries.push([key, visitValue(value, _this, null)]);\n });\n return literalMap(entries, type);\n };\n _ValueOutputAstTransformer.prototype.visitPrimitive = function (value, type) { return literal(value, type); };\n _ValueOutputAstTransformer.prototype.visitOther = function (value, type) {\n if (value instanceof CompileIdentifierMetadata) {\n return importExpr(value);\n }\n else if (value instanceof Expression) {\n return value;\n }\n else {\n throw new Error(\"Illegal state: Don't now how to compile value \" + value);\n }\n };\n return _ValueOutputAstTransformer;\n }());\n\n var _DebugState = (function () {\n function _DebugState(nodeIndex, sourceAst) {\n this.nodeIndex = nodeIndex;\n this.sourceAst = sourceAst;\n }\n return _DebugState;\n }());\n var NULL_DEBUG_STATE = new _DebugState(null, null);\n var CompileMethod = (function () {\n function CompileMethod(_view) {\n this._view = _view;\n this._newState = NULL_DEBUG_STATE;\n this._currState = NULL_DEBUG_STATE;\n this._bodyStatements = [];\n this._debugEnabled = this._view.genConfig.genDebugInfo;\n }\n CompileMethod.prototype._updateDebugContextIfNeeded = function () {\n if (this._newState.nodeIndex !== this._currState.nodeIndex ||\n this._newState.sourceAst !== this._currState.sourceAst) {\n var expr = this._updateDebugContext(this._newState);\n if (isPresent(expr)) {\n this._bodyStatements.push(expr.toStmt());\n }\n }\n };\n CompileMethod.prototype._updateDebugContext = function (newState) {\n this._currState = this._newState = newState;\n if (this._debugEnabled) {\n var sourceLocation = isPresent(newState.sourceAst) ? newState.sourceAst.sourceSpan.start : null;\n return THIS_EXPR.callMethod('debug', [\n literal(newState.nodeIndex),\n isPresent(sourceLocation) ? literal(sourceLocation.line) : NULL_EXPR,\n isPresent(sourceLocation) ? literal(sourceLocation.col) : NULL_EXPR\n ]);\n }\n else {\n return null;\n }\n };\n CompileMethod.prototype.resetDebugInfoExpr = function (nodeIndex, templateAst) {\n var res = this._updateDebugContext(new _DebugState(nodeIndex, templateAst));\n return isPresent(res) ? res : NULL_EXPR;\n };\n CompileMethod.prototype.resetDebugInfo = function (nodeIndex, templateAst) {\n this._newState = new _DebugState(nodeIndex, templateAst);\n };\n CompileMethod.prototype.addStmt = function (stmt) {\n this._updateDebugContextIfNeeded();\n this._bodyStatements.push(stmt);\n };\n CompileMethod.prototype.addStmts = function (stmts) {\n this._updateDebugContextIfNeeded();\n ListWrapper.addAll(this._bodyStatements, stmts);\n };\n CompileMethod.prototype.finish = function () { return this._bodyStatements; };\n CompileMethod.prototype.isEmpty = function () { return this._bodyStatements.length === 0; };\n return CompileMethod;\n }());\n\n function getPropertyInView(property, callingView, definedView) {\n if (callingView === definedView) {\n return property;\n }\n else {\n var viewProp = THIS_EXPR;\n var currView = callingView;\n while (currView !== definedView && isPresent(currView.declarationElement.view)) {\n currView = currView.declarationElement.view;\n viewProp = viewProp.prop('parent');\n }\n if (currView !== definedView) {\n throw new Error(\"Internal error: Could not calculate a property in a parent view: \" + property);\n }\n if (property instanceof ReadPropExpr) {\n var readPropExpr_1 = property;\n // Note: Don't cast for members of the AppView base class...\n if (definedView.fields.some(function (field) { return field.name == readPropExpr_1.name; }) ||\n definedView.getters.some(function (field) { return field.name == readPropExpr_1.name; })) {\n viewProp = viewProp.cast(definedView.classType);\n }\n }\n return replaceVarInExpression(THIS_EXPR.name, viewProp, property);\n }\n }\n function injectFromViewParentInjector(token, optional) {\n var args = [createDiTokenExpression(token)];\n if (optional) {\n args.push(NULL_EXPR);\n }\n return THIS_EXPR.prop('parentInjector').callMethod('get', args);\n }\n function getViewFactoryName(component, embeddedTemplateIndex) {\n return \"viewFactory_\" + component.type.name + embeddedTemplateIndex;\n }\n function createFlatArray(expressions) {\n var lastNonArrayExpressions = [];\n var result = literalArr([]);\n for (var i = 0; i < expressions.length; i++) {\n var expr = expressions[i];\n if (expr.type instanceof ArrayType) {\n if (lastNonArrayExpressions.length > 0) {\n result =\n result.callMethod(BuiltinMethod.ConcatArray, [literalArr(lastNonArrayExpressions)]);\n lastNonArrayExpressions = [];\n }\n result = result.callMethod(BuiltinMethod.ConcatArray, [expr]);\n }\n else {\n lastNonArrayExpressions.push(expr);\n }\n }\n if (lastNonArrayExpressions.length > 0) {\n result =\n result.callMethod(BuiltinMethod.ConcatArray, [literalArr(lastNonArrayExpressions)]);\n }\n return result;\n }\n function createPureProxy(fn, argCount, pureProxyProp, view) {\n view.fields.push(new ClassField(pureProxyProp.name, null));\n var pureProxyId = argCount < Identifiers.pureProxies.length ? Identifiers.pureProxies[argCount] : null;\n if (isBlank(pureProxyId)) {\n throw new Error(\"Unsupported number of argument for pure functions: \" + argCount);\n }\n view.createMethod.addStmt(THIS_EXPR.prop(pureProxyProp.name)\n .set(importExpr(resolveIdentifier(pureProxyId)).callFn([fn]))\n .toStmt());\n }\n\n var ViewQueryValues = (function () {\n function ViewQueryValues(view, values) {\n this.view = view;\n this.values = values;\n }\n return ViewQueryValues;\n }());\n var CompileQuery = (function () {\n function CompileQuery(meta, queryList, ownerDirectiveExpression, view) {\n this.meta = meta;\n this.queryList = queryList;\n this.ownerDirectiveExpression = ownerDirectiveExpression;\n this.view = view;\n this._values = new ViewQueryValues(view, []);\n }\n CompileQuery.prototype.addValue = function (value, view) {\n var currentView = view;\n var elPath = [];\n while (isPresent(currentView) && currentView !== this.view) {\n var parentEl = currentView.declarationElement;\n elPath.unshift(parentEl);\n currentView = parentEl.view;\n }\n var queryListForDirtyExpr = getPropertyInView(this.queryList, view, this.view);\n var viewValues = this._values;\n elPath.forEach(function (el) {\n var last = viewValues.values.length > 0 ? viewValues.values[viewValues.values.length - 1] : null;\n if (last instanceof ViewQueryValues && last.view === el.embeddedView) {\n viewValues = last;\n }\n else {\n var newViewValues = new ViewQueryValues(el.embeddedView, []);\n viewValues.values.push(newViewValues);\n viewValues = newViewValues;\n }\n });\n viewValues.values.push(value);\n if (elPath.length > 0) {\n view.dirtyParentQueriesMethod.addStmt(queryListForDirtyExpr.callMethod('setDirty', []).toStmt());\n }\n };\n CompileQuery.prototype._isStatic = function () {\n return !this._values.values.some(function (value) { return value instanceof ViewQueryValues; });\n };\n CompileQuery.prototype.afterChildren = function (targetStaticMethod /** TODO #9100 */, targetDynamicMethod) {\n var values = createQueryValues(this._values);\n var updateStmts = [this.queryList.callMethod('reset', [literalArr(values)]).toStmt()];\n if (isPresent(this.ownerDirectiveExpression)) {\n var valueExpr = this.meta.first ? this.queryList.prop('first') : this.queryList;\n updateStmts.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(valueExpr).toStmt());\n }\n if (!this.meta.first) {\n updateStmts.push(this.queryList.callMethod('notifyOnChanges', []).toStmt());\n }\n if (this.meta.first && this._isStatic()) {\n // for queries that don't change and the user asked for a single element,\n // set it immediately. That is e.g. needed for querying for ViewContainerRefs, ...\n // we don't do this for QueryLists for now as this would break the timing when\n // we call QueryList listeners...\n targetStaticMethod.addStmts(updateStmts);\n }\n else {\n targetDynamicMethod.addStmt(new IfStmt(this.queryList.prop('dirty'), updateStmts));\n }\n };\n return CompileQuery;\n }());\n function createQueryValues(viewValues) {\n return ListWrapper.flatten(viewValues.values.map(function (entry) {\n if (entry instanceof ViewQueryValues) {\n return mapNestedViews(entry.view.declarationElement.appElement, entry.view, createQueryValues(entry));\n }\n else {\n return entry;\n }\n }));\n }\n function mapNestedViews(declarationAppElement, view, expressions) {\n var adjustedExpressions = expressions.map(function (expr) {\n return replaceVarInExpression(THIS_EXPR.name, variable('nestedView'), expr);\n });\n return declarationAppElement.callMethod('mapNestedViews', [\n variable(view.className),\n fn([new FnParam('nestedView', view.classType)], [new ReturnStatement(literalArr(adjustedExpressions))], DYNAMIC_TYPE)\n ]);\n }\n function createQueryList(query, directiveInstance, propertyName, compileView) {\n compileView.fields.push(new ClassField(propertyName, importType(resolveIdentifier(Identifiers.QueryList), [DYNAMIC_TYPE])));\n var expr = THIS_EXPR.prop(propertyName);\n compileView.createMethod.addStmt(THIS_EXPR.prop(propertyName)\n .set(importExpr(resolveIdentifier(Identifiers.QueryList), [DYNAMIC_TYPE])\n .instantiate([]))\n .toStmt());\n return expr;\n }\n function addQueryToTokenMap(map, query) {\n query.meta.selectors.forEach(function (selector) {\n var entry = map.get(selector.reference);\n if (isBlank(entry)) {\n entry = [];\n map.set(selector.reference, entry);\n }\n entry.push(query);\n });\n }\n\n function _enumExpression(classIdentifier, name) {\n return importExpr(resolveEnumIdentifier(classIdentifier, name));\n }\n var ViewTypeEnum = (function () {\n function ViewTypeEnum() {\n }\n ViewTypeEnum.fromValue = function (value) {\n var viewType = resolveIdentifier(Identifiers.ViewType);\n switch (value) {\n case ViewType.HOST:\n return _enumExpression(viewType, 'HOST');\n case ViewType.COMPONENT:\n return _enumExpression(viewType, 'COMPONENT');\n case ViewType.EMBEDDED:\n return _enumExpression(viewType, 'EMBEDDED');\n default:\n throw Error(\"Inavlid ViewType value: \" + value);\n }\n };\n return ViewTypeEnum;\n }());\n var ViewEncapsulationEnum = (function () {\n function ViewEncapsulationEnum() {\n }\n ViewEncapsulationEnum.fromValue = function (value) {\n var viewEncapsulation = resolveIdentifier(Identifiers.ViewEncapsulation);\n switch (value) {\n case _angular_core.ViewEncapsulation.Emulated:\n return _enumExpression(viewEncapsulation, 'Emulated');\n case _angular_core.ViewEncapsulation.Native:\n return _enumExpression(viewEncapsulation, 'Native');\n case _angular_core.ViewEncapsulation.None:\n return _enumExpression(viewEncapsulation, 'None');\n default:\n throw Error(\"Inavlid ViewEncapsulation value: \" + value);\n }\n };\n return ViewEncapsulationEnum;\n }());\n var ChangeDetectorStatusEnum = (function () {\n function ChangeDetectorStatusEnum() {\n }\n ChangeDetectorStatusEnum.fromValue = function (value) {\n var changeDetectorStatus = resolveIdentifier(Identifiers.ChangeDetectorStatus);\n switch (value) {\n case ChangeDetectorStatus.CheckOnce:\n return _enumExpression(changeDetectorStatus, 'CheckOnce');\n case ChangeDetectorStatus.Checked:\n return _enumExpression(changeDetectorStatus, 'Checked');\n case ChangeDetectorStatus.CheckAlways:\n return _enumExpression(changeDetectorStatus, 'CheckAlways');\n case ChangeDetectorStatus.Detached:\n return _enumExpression(changeDetectorStatus, 'Detached');\n case ChangeDetectorStatus.Errored:\n return _enumExpression(changeDetectorStatus, 'Errored');\n case ChangeDetectorStatus.Destroyed:\n return _enumExpression(changeDetectorStatus, 'Destroyed');\n default:\n throw Error(\"Inavlid ChangeDetectorStatus value: \" + value);\n }\n };\n return ChangeDetectorStatusEnum;\n }());\n var ViewConstructorVars = (function () {\n function ViewConstructorVars() {\n }\n ViewConstructorVars.viewUtils = variable('viewUtils');\n ViewConstructorVars.parentInjector = variable('parentInjector');\n ViewConstructorVars.declarationEl = variable('declarationEl');\n return ViewConstructorVars;\n }());\n var ViewProperties = (function () {\n function ViewProperties() {\n }\n ViewProperties.renderer = THIS_EXPR.prop('renderer');\n ViewProperties.projectableNodes = THIS_EXPR.prop('projectableNodes');\n ViewProperties.viewUtils = THIS_EXPR.prop('viewUtils');\n return ViewProperties;\n }());\n var EventHandlerVars = (function () {\n function EventHandlerVars() {\n }\n EventHandlerVars.event = variable('$event');\n return EventHandlerVars;\n }());\n var InjectMethodVars = (function () {\n function InjectMethodVars() {\n }\n InjectMethodVars.token = variable('token');\n InjectMethodVars.requestNodeIndex = variable('requestNodeIndex');\n InjectMethodVars.notFoundResult = variable('notFoundResult');\n return InjectMethodVars;\n }());\n var DetectChangesVars = (function () {\n function DetectChangesVars() {\n }\n DetectChangesVars.throwOnChange = variable(\"throwOnChange\");\n DetectChangesVars.changes = variable(\"changes\");\n DetectChangesVars.changed = variable(\"changed\");\n DetectChangesVars.valUnwrapper = variable(\"valUnwrapper\");\n return DetectChangesVars;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$13 = (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 };\n var CompileNode = (function () {\n function CompileNode(parent, view, nodeIndex, renderNode, sourceAst) {\n this.parent = parent;\n this.view = view;\n this.nodeIndex = nodeIndex;\n this.renderNode = renderNode;\n this.sourceAst = sourceAst;\n }\n CompileNode.prototype.isNull = function () { return isBlank(this.renderNode); };\n CompileNode.prototype.isRootElement = function () { return this.view != this.parent.view; };\n return CompileNode;\n }());\n var CompileElement = (function (_super) {\n __extends$13(CompileElement, _super);\n function CompileElement(parent, view, nodeIndex, renderNode, sourceAst, component, _directives, _resolvedProvidersArray, hasViewContainer, hasEmbeddedView, references) {\n var _this = this;\n _super.call(this, parent, view, nodeIndex, renderNode, sourceAst);\n this.component = component;\n this._directives = _directives;\n this._resolvedProvidersArray = _resolvedProvidersArray;\n this.hasViewContainer = hasViewContainer;\n this.hasEmbeddedView = hasEmbeddedView;\n this._compViewExpr = null;\n this.instances = new Map();\n this._queryCount = 0;\n this._queries = new Map();\n this._componentConstructorViewQueryLists = [];\n this.contentNodesByNgContentIndex = null;\n this.referenceTokens = {};\n references.forEach(function (ref) { return _this.referenceTokens[ref.name] = ref.value; });\n this.elementRef =\n importExpr(resolveIdentifier(Identifiers.ElementRef)).instantiate([this.renderNode]);\n this.instances.set(resolveIdentifierToken(Identifiers.ElementRef).reference, this.elementRef);\n this.injector = THIS_EXPR.callMethod('injector', [literal(this.nodeIndex)]);\n this.instances.set(resolveIdentifierToken(Identifiers.Injector).reference, this.injector);\n this.instances.set(resolveIdentifierToken(Identifiers.Renderer).reference, THIS_EXPR.prop('renderer'));\n if (this.hasViewContainer || this.hasEmbeddedView || isPresent(this.component)) {\n this._createAppElement();\n }\n }\n CompileElement.createNull = function () {\n return new CompileElement(null, null, null, null, null, null, [], [], false, false, []);\n };\n CompileElement.prototype._createAppElement = function () {\n var fieldName = \"_appEl_\" + this.nodeIndex;\n var parentNodeIndex = this.isRootElement() ? null : this.parent.nodeIndex;\n // private is fine here as no child view will reference an AppElement\n this.view.fields.push(new ClassField(fieldName, importType(resolveIdentifier(Identifiers.AppElement)), [StmtModifier.Private]));\n var statement = THIS_EXPR.prop(fieldName)\n .set(importExpr(resolveIdentifier(Identifiers.AppElement)).instantiate([\n literal(this.nodeIndex), literal(parentNodeIndex), THIS_EXPR, this.renderNode\n ]))\n .toStmt();\n this.view.createMethod.addStmt(statement);\n this.appElement = THIS_EXPR.prop(fieldName);\n this.instances.set(resolveIdentifierToken(Identifiers.AppElement).reference, this.appElement);\n };\n CompileElement.prototype.createComponentFactoryResolver = function (entryComponents) {\n if (!entryComponents || entryComponents.length === 0) {\n return;\n }\n var createComponentFactoryResolverExpr = importExpr(resolveIdentifier(Identifiers.CodegenComponentFactoryResolver)).instantiate([\n literalArr(entryComponents.map(function (entryComponent) { return importExpr(entryComponent); })),\n injectFromViewParentInjector(resolveIdentifierToken(Identifiers.ComponentFactoryResolver), false)\n ]);\n var provider = new CompileProviderMetadata({\n token: resolveIdentifierToken(Identifiers.ComponentFactoryResolver),\n useValue: createComponentFactoryResolverExpr\n });\n // Add ComponentFactoryResolver as first provider as it does not have deps on other providers\n // ProviderAstType.PrivateService as only the component and its view can see it,\n // but nobody else\n this._resolvedProvidersArray.unshift(new ProviderAst(provider.token, false, true, [provider], exports.ProviderAstType.PrivateService, [], this.sourceAst.sourceSpan));\n };\n CompileElement.prototype.setComponentView = function (compViewExpr) {\n this._compViewExpr = compViewExpr;\n this.contentNodesByNgContentIndex =\n ListWrapper.createFixedSize(this.component.template.ngContentSelectors.length);\n for (var i = 0; i < this.contentNodesByNgContentIndex.length; i++) {\n this.contentNodesByNgContentIndex[i] = [];\n }\n };\n CompileElement.prototype.setEmbeddedView = function (embeddedView) {\n this.embeddedView = embeddedView;\n if (isPresent(embeddedView)) {\n var createTemplateRefExpr = importExpr(resolveIdentifier(Identifiers.TemplateRef_)).instantiate([\n this.appElement, this.embeddedView.viewFactory\n ]);\n var provider = new CompileProviderMetadata({\n token: resolveIdentifierToken(Identifiers.TemplateRef),\n useValue: createTemplateRefExpr\n });\n // Add TemplateRef as first provider as it does not have deps on other providers\n this._resolvedProvidersArray.unshift(new ProviderAst(provider.token, false, true, [provider], exports.ProviderAstType.Builtin, [], this.sourceAst.sourceSpan));\n }\n };\n CompileElement.prototype.beforeChildren = function () {\n var _this = this;\n if (this.hasViewContainer) {\n this.instances.set(resolveIdentifierToken(Identifiers.ViewContainerRef).reference, this.appElement.prop('vcRef'));\n }\n this._resolvedProviders = new Map();\n this._resolvedProvidersArray.forEach(function (provider) { return _this._resolvedProviders.set(provider.token.reference, provider); });\n // create all the provider instances, some in the view constructor,\n // some as getters. We rely on the fact that they are already sorted topologically.\n MapWrapper.values(this._resolvedProviders).forEach(function (resolvedProvider) {\n var providerValueExpressions = resolvedProvider.providers.map(function (provider) {\n if (isPresent(provider.useExisting)) {\n return _this._getDependency(resolvedProvider.providerType, new CompileDiDependencyMetadata({ token: provider.useExisting }));\n }\n else if (isPresent(provider.useFactory)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useFactory.diDeps;\n var depsExpr = deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep); });\n return importExpr(provider.useFactory).callFn(depsExpr);\n }\n else if (isPresent(provider.useClass)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useClass.diDeps;\n var depsExpr = deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep); });\n return importExpr(provider.useClass)\n .instantiate(depsExpr, importType(provider.useClass));\n }\n else {\n return convertValueToOutputAst(provider.useValue);\n }\n });\n var propName = \"_\" + resolvedProvider.token.name + \"_\" + _this.nodeIndex + \"_\" + _this.instances.size;\n var instance = createProviderProperty(propName, resolvedProvider, providerValueExpressions, resolvedProvider.multiProvider, resolvedProvider.eager, _this);\n _this.instances.set(resolvedProvider.token.reference, instance);\n });\n for (var i = 0; i < this._directives.length; i++) {\n var directive = this._directives[i];\n var directiveInstance = this.instances.get(identifierToken(directive.type).reference);\n directive.queries.forEach(function (queryMeta) { _this._addQuery(queryMeta, directiveInstance); });\n }\n var queriesWithReads = [];\n MapWrapper.values(this._resolvedProviders).forEach(function (resolvedProvider) {\n var queriesForProvider = _this._getQueriesFor(resolvedProvider.token);\n ListWrapper.addAll(queriesWithReads, queriesForProvider.map(function (query) { return new _QueryWithRead(query, resolvedProvider.token); }));\n });\n StringMapWrapper.forEach(this.referenceTokens, function (_, varName) {\n var token = _this.referenceTokens[varName];\n var varValue;\n if (isPresent(token)) {\n varValue = _this.instances.get(token.reference);\n }\n else {\n varValue = _this.renderNode;\n }\n _this.view.locals.set(varName, varValue);\n var varToken = new CompileTokenMetadata({ value: varName });\n ListWrapper.addAll(queriesWithReads, _this._getQueriesFor(varToken).map(function (query) { return new _QueryWithRead(query, varToken); }));\n });\n queriesWithReads.forEach(function (queryWithRead) {\n var value;\n if (isPresent(queryWithRead.read.identifier)) {\n // query for an identifier\n value = _this.instances.get(queryWithRead.read.reference);\n }\n else {\n // query for a reference\n var token = _this.referenceTokens[queryWithRead.read.value];\n if (isPresent(token)) {\n value = _this.instances.get(token.reference);\n }\n else {\n value = _this.elementRef;\n }\n }\n if (isPresent(value)) {\n queryWithRead.query.addValue(value, _this.view);\n }\n });\n if (isPresent(this.component)) {\n var componentConstructorViewQueryList = isPresent(this.component) ?\n literalArr(this._componentConstructorViewQueryLists) :\n NULL_EXPR;\n var compExpr = isPresent(this.getComponent()) ? this.getComponent() : NULL_EXPR;\n this.view.createMethod.addStmt(this.appElement\n .callMethod('initComponent', [compExpr, componentConstructorViewQueryList, this._compViewExpr])\n .toStmt());\n }\n };\n CompileElement.prototype.afterChildren = function (childNodeCount) {\n var _this = this;\n MapWrapper.values(this._resolvedProviders).forEach(function (resolvedProvider) {\n // Note: afterChildren is called after recursing into children.\n // This is good so that an injector match in an element that is closer to a requesting element\n // matches first.\n var providerExpr = _this.instances.get(resolvedProvider.token.reference);\n // Note: view providers are only visible on the injector of that element.\n // This is not fully correct as the rules during codegen don't allow a directive\n // to get hold of a view provdier on the same element. We still do this semantic\n // as it simplifies our model to having only one runtime injector per element.\n var providerChildNodeCount = resolvedProvider.providerType === exports.ProviderAstType.PrivateService ? 0 : childNodeCount;\n _this.view.injectorGetMethod.addStmt(createInjectInternalCondition(_this.nodeIndex, providerChildNodeCount, resolvedProvider, providerExpr));\n });\n MapWrapper.values(this._queries)\n .forEach(function (queries) { return queries.forEach(function (query) { return query.afterChildren(_this.view.createMethod, _this.view.updateContentQueriesMethod); }); });\n };\n CompileElement.prototype.addContentNode = function (ngContentIndex, nodeExpr) {\n this.contentNodesByNgContentIndex[ngContentIndex].push(nodeExpr);\n };\n CompileElement.prototype.getComponent = function () {\n return isPresent(this.component) ?\n this.instances.get(identifierToken(this.component.type).reference) :\n null;\n };\n CompileElement.prototype.getProviderTokens = function () {\n return MapWrapper.values(this._resolvedProviders)\n .map(function (resolvedProvider) { return createDiTokenExpression(resolvedProvider.token); });\n };\n CompileElement.prototype._getQueriesFor = function (token) {\n var result = [];\n var currentEl = this;\n var distance = 0;\n var queries;\n while (!currentEl.isNull()) {\n queries = currentEl._queries.get(token.reference);\n if (isPresent(queries)) {\n ListWrapper.addAll(result, queries.filter(function (query) { return query.meta.descendants || distance <= 1; }));\n }\n if (currentEl._directives.length > 0) {\n distance++;\n }\n currentEl = currentEl.parent;\n }\n queries = this.view.componentView.viewQueries.get(token.reference);\n if (isPresent(queries)) {\n ListWrapper.addAll(result, queries);\n }\n return result;\n };\n CompileElement.prototype._addQuery = function (queryMeta, directiveInstance) {\n var propName = \"_query_\" + queryMeta.selectors[0].name + \"_\" + this.nodeIndex + \"_\" + this._queryCount++;\n var queryList = createQueryList(queryMeta, directiveInstance, propName, this.view);\n var query = new CompileQuery(queryMeta, queryList, directiveInstance, this.view);\n addQueryToTokenMap(this._queries, query);\n return query;\n };\n CompileElement.prototype._getLocalDependency = function (requestingProviderType, dep) {\n var result = null;\n // constructor content query\n if (isBlank(result) && isPresent(dep.query)) {\n result = this._addQuery(dep.query, null).queryList;\n }\n // constructor view query\n if (isBlank(result) && isPresent(dep.viewQuery)) {\n result = createQueryList(dep.viewQuery, null, \"_viewQuery_\" + dep.viewQuery.selectors[0].name + \"_\" + this.nodeIndex + \"_\" + this._componentConstructorViewQueryLists.length, this.view);\n this._componentConstructorViewQueryLists.push(result);\n }\n if (isPresent(dep.token)) {\n // access builtins with special visibility\n if (isBlank(result)) {\n if (dep.token.reference ===\n resolveIdentifierToken(Identifiers.ChangeDetectorRef).reference) {\n if (requestingProviderType === exports.ProviderAstType.Component) {\n return this._compViewExpr.prop('ref');\n }\n else {\n return getPropertyInView(THIS_EXPR.prop('ref'), this.view, this.view.componentView);\n }\n }\n }\n // access regular providers on the element\n if (isBlank(result)) {\n var resolvedProvider = this._resolvedProviders.get(dep.token.reference);\n // don't allow directives / public services to access private services.\n // only components and private services can access private services.\n if (resolvedProvider && (requestingProviderType === exports.ProviderAstType.Directive ||\n requestingProviderType === exports.ProviderAstType.PublicService) &&\n resolvedProvider.providerType === exports.ProviderAstType.PrivateService) {\n return null;\n }\n result = this.instances.get(dep.token.reference);\n }\n }\n return result;\n };\n CompileElement.prototype._getDependency = function (requestingProviderType, dep) {\n var currElement = this;\n var result = null;\n if (dep.isValue) {\n result = literal(dep.value);\n }\n if (isBlank(result) && !dep.isSkipSelf) {\n result = this._getLocalDependency(requestingProviderType, dep);\n }\n // check parent elements\n while (isBlank(result) && !currElement.parent.isNull()) {\n currElement = currElement.parent;\n result = currElement._getLocalDependency(exports.ProviderAstType.PublicService, new CompileDiDependencyMetadata({ token: dep.token }));\n }\n if (isBlank(result)) {\n result = injectFromViewParentInjector(dep.token, dep.isOptional);\n }\n if (isBlank(result)) {\n result = NULL_EXPR;\n }\n return getPropertyInView(result, this.view, currElement.view);\n };\n return CompileElement;\n }(CompileNode));\n function createInjectInternalCondition(nodeIndex, childNodeCount, provider, providerExpr) {\n var indexCondition;\n if (childNodeCount > 0) {\n indexCondition = literal(nodeIndex)\n .lowerEquals(InjectMethodVars.requestNodeIndex)\n .and(InjectMethodVars.requestNodeIndex.lowerEquals(literal(nodeIndex + childNodeCount)));\n }\n else {\n indexCondition = literal(nodeIndex).identical(InjectMethodVars.requestNodeIndex);\n }\n return new IfStmt(InjectMethodVars.token.identical(createDiTokenExpression(provider.token)).and(indexCondition), [new ReturnStatement(providerExpr)]);\n }\n function createProviderProperty(propName, provider, providerValueExpressions, isMulti, isEager, compileElement) {\n var view = compileElement.view;\n var resolvedProviderValueExpr;\n var type;\n if (isMulti) {\n resolvedProviderValueExpr = literalArr(providerValueExpressions);\n type = new ArrayType(DYNAMIC_TYPE);\n }\n else {\n resolvedProviderValueExpr = providerValueExpressions[0];\n type = providerValueExpressions[0].type;\n }\n if (isBlank(type)) {\n type = DYNAMIC_TYPE;\n }\n if (isEager) {\n view.fields.push(new ClassField(propName, type));\n view.createMethod.addStmt(THIS_EXPR.prop(propName).set(resolvedProviderValueExpr).toStmt());\n }\n else {\n var internalField = \"_\" + propName;\n view.fields.push(new ClassField(internalField, type));\n var getter = new CompileMethod(view);\n getter.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\n // Note: Equals is important for JS so that it also checks the undefined case!\n getter.addStmt(new IfStmt(THIS_EXPR.prop(internalField).isBlank(), [THIS_EXPR.prop(internalField).set(resolvedProviderValueExpr).toStmt()]));\n getter.addStmt(new ReturnStatement(THIS_EXPR.prop(internalField)));\n view.getters.push(new ClassGetter(propName, getter.finish(), type));\n }\n return THIS_EXPR.prop(propName);\n }\n var _QueryWithRead = (function () {\n function _QueryWithRead(query, match) {\n this.query = query;\n this.read = isPresent(query.meta.read) ? query.meta.read : match;\n }\n return _QueryWithRead;\n }());\n\n var CompilePipe = (function () {\n function CompilePipe(view, meta) {\n var _this = this;\n this.view = view;\n this.meta = meta;\n this._purePipeProxyCount = 0;\n this.instance = THIS_EXPR.prop(\"_pipe_\" + meta.name + \"_\" + view.pipeCount++);\n var deps = this.meta.type.diDeps.map(function (diDep) {\n if (diDep.token.reference ===\n resolveIdentifierToken(Identifiers.ChangeDetectorRef).reference) {\n return getPropertyInView(THIS_EXPR.prop('ref'), _this.view, _this.view.componentView);\n }\n return injectFromViewParentInjector(diDep.token, false);\n });\n this.view.fields.push(new ClassField(this.instance.name, importType(this.meta.type)));\n this.view.createMethod.resetDebugInfo(null, null);\n this.view.createMethod.addStmt(THIS_EXPR.prop(this.instance.name)\n .set(importExpr(this.meta.type).instantiate(deps))\n .toStmt());\n }\n CompilePipe.call = function (view, name, args) {\n var compView = view.componentView;\n var meta = _findPipeMeta(compView, name);\n var pipe;\n if (meta.pure) {\n // pure pipes live on the component view\n pipe = compView.purePipes.get(name);\n if (isBlank(pipe)) {\n pipe = new CompilePipe(compView, meta);\n compView.purePipes.set(name, pipe);\n compView.pipes.push(pipe);\n }\n }\n else {\n // Non pure pipes live on the view that called it\n pipe = new CompilePipe(view, meta);\n view.pipes.push(pipe);\n }\n return pipe._call(view, args);\n };\n Object.defineProperty(CompilePipe.prototype, \"pure\", {\n get: function () { return this.meta.pure; },\n enumerable: true,\n configurable: true\n });\n CompilePipe.prototype._call = function (callingView, args) {\n if (this.meta.pure) {\n // PurePipeProxies live on the view that called them.\n var purePipeProxyInstance = THIS_EXPR.prop(this.instance.name + \"_\" + this._purePipeProxyCount++);\n var pipeInstanceSeenFromPureProxy = getPropertyInView(this.instance, callingView, this.view);\n createPureProxy(pipeInstanceSeenFromPureProxy.prop('transform')\n .callMethod(BuiltinMethod.Bind, [pipeInstanceSeenFromPureProxy]), args.length, purePipeProxyInstance, callingView);\n return importExpr(resolveIdentifier(Identifiers.castByValue))\n .callFn([purePipeProxyInstance, pipeInstanceSeenFromPureProxy.prop('transform')])\n .callFn(args);\n }\n else {\n return getPropertyInView(this.instance, callingView, this.view).callMethod('transform', args);\n }\n };\n return CompilePipe;\n }());\n function _findPipeMeta(view, name) {\n var pipeMeta = null;\n for (var i = view.pipeMetas.length - 1; i >= 0; i--) {\n var localPipeMeta = view.pipeMetas[i];\n if (localPipeMeta.name == name) {\n pipeMeta = localPipeMeta;\n break;\n }\n }\n if (isBlank(pipeMeta)) {\n throw new Error(\"Illegal state: Could not find pipe \" + name + \" although the parser should have detected this error!\");\n }\n return pipeMeta;\n }\n\n var CompileView = (function () {\n function CompileView(component, genConfig, pipeMetas, styles, animations, viewIndex, declarationElement, templateVariableBindings) {\n var _this = this;\n this.component = component;\n this.genConfig = genConfig;\n this.pipeMetas = pipeMetas;\n this.styles = styles;\n this.animations = animations;\n this.viewIndex = viewIndex;\n this.declarationElement = declarationElement;\n this.templateVariableBindings = templateVariableBindings;\n this.nodes = [];\n // root nodes or AppElements for ViewContainers\n this.rootNodesOrAppElements = [];\n this.bindings = [];\n this.classStatements = [];\n this.eventHandlerMethods = [];\n this.fields = [];\n this.getters = [];\n this.disposables = [];\n this.subscriptions = [];\n this.purePipes = new Map();\n this.pipes = [];\n this.locals = new Map();\n this.literalArrayCount = 0;\n this.literalMapCount = 0;\n this.pipeCount = 0;\n this.createMethod = new CompileMethod(this);\n this.injectorGetMethod = new CompileMethod(this);\n this.updateContentQueriesMethod = new CompileMethod(this);\n this.dirtyParentQueriesMethod = new CompileMethod(this);\n this.updateViewQueriesMethod = new CompileMethod(this);\n this.detectChangesInInputsMethod = new CompileMethod(this);\n this.detectChangesRenderPropertiesMethod = new CompileMethod(this);\n this.afterContentLifecycleCallbacksMethod = new CompileMethod(this);\n this.afterViewLifecycleCallbacksMethod = new CompileMethod(this);\n this.destroyMethod = new CompileMethod(this);\n this.detachMethod = new CompileMethod(this);\n this.viewType = getViewType(component, viewIndex);\n this.className = \"_View_\" + component.type.name + viewIndex;\n this.classType = importType(new CompileIdentifierMetadata({ name: this.className }));\n this.viewFactory = variable(getViewFactoryName(component, viewIndex));\n if (this.viewType === ViewType.COMPONENT || this.viewType === ViewType.HOST) {\n this.componentView = this;\n }\n else {\n this.componentView = this.declarationElement.view.componentView;\n }\n this.componentContext =\n getPropertyInView(THIS_EXPR.prop('context'), this, this.componentView);\n var viewQueries = new Map();\n if (this.viewType === ViewType.COMPONENT) {\n var directiveInstance = THIS_EXPR.prop('context');\n ListWrapper.forEachWithIndex(this.component.viewQueries, function (queryMeta, queryIndex) {\n var propName = \"_viewQuery_\" + queryMeta.selectors[0].name + \"_\" + queryIndex;\n var queryList = createQueryList(queryMeta, directiveInstance, propName, _this);\n var query = new CompileQuery(queryMeta, queryList, directiveInstance, _this);\n addQueryToTokenMap(viewQueries, query);\n });\n var constructorViewQueryCount = 0;\n this.component.type.diDeps.forEach(function (dep) {\n if (isPresent(dep.viewQuery)) {\n var queryList = THIS_EXPR.prop('declarationAppElement')\n .prop('componentConstructorViewQueries')\n .key(literal(constructorViewQueryCount++));\n var query = new CompileQuery(dep.viewQuery, queryList, null, _this);\n addQueryToTokenMap(viewQueries, query);\n }\n });\n }\n this.viewQueries = viewQueries;\n templateVariableBindings.forEach(function (entry) { _this.locals.set(entry[1], THIS_EXPR.prop('context').prop(entry[0])); });\n if (!this.declarationElement.isNull()) {\n this.declarationElement.setEmbeddedView(this);\n }\n }\n CompileView.prototype.callPipe = function (name, input, args) {\n return CompilePipe.call(this, name, [input].concat(args));\n };\n CompileView.prototype.getLocal = function (name) {\n if (name == EventHandlerVars.event.name) {\n return EventHandlerVars.event;\n }\n var currView = this;\n var result = currView.locals.get(name);\n while (isBlank(result) && isPresent(currView.declarationElement.view)) {\n currView = currView.declarationElement.view;\n result = currView.locals.get(name);\n }\n if (isPresent(result)) {\n return getPropertyInView(result, this, currView);\n }\n else {\n return null;\n }\n };\n CompileView.prototype.createLiteralArray = function (values) {\n if (values.length === 0) {\n return importExpr(resolveIdentifier(Identifiers.EMPTY_ARRAY));\n }\n var proxyExpr = THIS_EXPR.prop(\"_arr_\" + this.literalArrayCount++);\n var proxyParams = [];\n var proxyReturnEntries = [];\n for (var i = 0; i < values.length; i++) {\n var paramName = \"p\" + i;\n proxyParams.push(new FnParam(paramName));\n proxyReturnEntries.push(variable(paramName));\n }\n createPureProxy(fn(proxyParams, [new ReturnStatement(literalArr(proxyReturnEntries))], new ArrayType(DYNAMIC_TYPE)), values.length, proxyExpr, this);\n return proxyExpr.callFn(values);\n };\n CompileView.prototype.createLiteralMap = function (entries) {\n if (entries.length === 0) {\n return importExpr(resolveIdentifier(Identifiers.EMPTY_MAP));\n }\n var proxyExpr = THIS_EXPR.prop(\"_map_\" + this.literalMapCount++);\n var proxyParams = [];\n var proxyReturnEntries = [];\n var values = [];\n for (var i = 0; i < entries.length; i++) {\n var paramName = \"p\" + i;\n proxyParams.push(new FnParam(paramName));\n proxyReturnEntries.push([entries[i][0], variable(paramName)]);\n values.push(entries[i][1]);\n }\n createPureProxy(fn(proxyParams, [new ReturnStatement(literalMap(proxyReturnEntries))], new MapType(DYNAMIC_TYPE)), entries.length, proxyExpr, this);\n return proxyExpr.callFn(values);\n };\n CompileView.prototype.afterNodes = function () {\n var _this = this;\n MapWrapper.values(this.viewQueries)\n .forEach(function (queries) { return queries.forEach(function (query) { return query.afterChildren(_this.createMethod, _this.updateViewQueriesMethod); }); });\n };\n return CompileView;\n }());\n function getViewType(component, embeddedTemplateIndex) {\n if (embeddedTemplateIndex > 0) {\n return ViewType.EMBEDDED;\n }\n else if (component.type.isHost) {\n return ViewType.HOST;\n }\n else {\n return ViewType.COMPONENT;\n }\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var CompileBinding = (function () {\n function CompileBinding(node, sourceAst) {\n this.node = node;\n this.sourceAst = sourceAst;\n }\n return CompileBinding;\n }());\n\n var ExpressionWithWrappedValueInfo = (function () {\n function ExpressionWithWrappedValueInfo(expression, needsValueUnwrapper, temporaryCount) {\n this.expression = expression;\n this.needsValueUnwrapper = needsValueUnwrapper;\n this.temporaryCount = temporaryCount;\n }\n return ExpressionWithWrappedValueInfo;\n }());\n function convertCdExpressionToIr(nameResolver, implicitReceiver, expression, valueUnwrapper, bindingIndex) {\n var visitor = new _AstToIrVisitor(nameResolver, implicitReceiver, valueUnwrapper, bindingIndex);\n var irAst = expression.visit(visitor, _Mode.Expression);\n return new ExpressionWithWrappedValueInfo(irAst, visitor.needsValueUnwrapper, visitor.temporaryCount);\n }\n function convertCdStatementToIr(nameResolver, implicitReceiver, stmt, bindingIndex) {\n var visitor = new _AstToIrVisitor(nameResolver, implicitReceiver, null, bindingIndex);\n var statements = [];\n flattenStatements(stmt.visit(visitor, _Mode.Statement), statements);\n prependTemporaryDecls(visitor.temporaryCount, bindingIndex, statements);\n return statements;\n }\n function temporaryName(bindingIndex, temporaryNumber) {\n return \"tmp_\" + bindingIndex + \"_\" + temporaryNumber;\n }\n function temporaryDeclaration(bindingIndex, temporaryNumber) {\n return new DeclareVarStmt(temporaryName(bindingIndex, temporaryNumber), NULL_EXPR);\n }\n function prependTemporaryDecls(temporaryCount, bindingIndex, statements) {\n for (var i = temporaryCount - 1; i >= 0; i--) {\n statements.unshift(temporaryDeclaration(bindingIndex, i));\n }\n }\n var _Mode;\n (function (_Mode) {\n _Mode[_Mode[\"Statement\"] = 0] = \"Statement\";\n _Mode[_Mode[\"Expression\"] = 1] = \"Expression\";\n })(_Mode || (_Mode = {}));\n function ensureStatementMode(mode, ast) {\n if (mode !== _Mode.Statement) {\n throw new Error(\"Expected a statement, but saw \" + ast);\n }\n }\n function ensureExpressionMode(mode, ast) {\n if (mode !== _Mode.Expression) {\n throw new Error(\"Expected an expression, but saw \" + ast);\n }\n }\n function convertToStatementIfNeeded(mode, expr) {\n if (mode === _Mode.Statement) {\n return expr.toStmt();\n }\n else {\n return expr;\n }\n }\n var _AstToIrVisitor = (function () {\n function _AstToIrVisitor(_nameResolver, _implicitReceiver, _valueUnwrapper, bindingIndex) {\n this._nameResolver = _nameResolver;\n this._implicitReceiver = _implicitReceiver;\n this._valueUnwrapper = _valueUnwrapper;\n this.bindingIndex = bindingIndex;\n this._nodeMap = new Map();\n this._resultMap = new Map();\n this._currentTemporary = 0;\n this.needsValueUnwrapper = false;\n this.temporaryCount = 0;\n }\n _AstToIrVisitor.prototype.visitBinary = function (ast, mode) {\n var op;\n switch (ast.operation) {\n case '+':\n op = BinaryOperator.Plus;\n break;\n case '-':\n op = BinaryOperator.Minus;\n break;\n case '*':\n op = BinaryOperator.Multiply;\n break;\n case '/':\n op = BinaryOperator.Divide;\n break;\n case '%':\n op = BinaryOperator.Modulo;\n break;\n case '&&':\n op = BinaryOperator.And;\n break;\n case '||':\n op = BinaryOperator.Or;\n break;\n case '==':\n op = BinaryOperator.Equals;\n break;\n case '!=':\n op = BinaryOperator.NotEquals;\n break;\n case '===':\n op = BinaryOperator.Identical;\n break;\n case '!==':\n op = BinaryOperator.NotIdentical;\n break;\n case '<':\n op = BinaryOperator.Lower;\n break;\n case '>':\n op = BinaryOperator.Bigger;\n break;\n case '<=':\n op = BinaryOperator.LowerEquals;\n break;\n case '>=':\n op = BinaryOperator.BiggerEquals;\n break;\n default:\n throw new Error(\"Unsupported operation \" + ast.operation);\n }\n return convertToStatementIfNeeded(mode, new BinaryOperatorExpr(op, this.visit(ast.left, _Mode.Expression), this.visit(ast.right, _Mode.Expression)));\n };\n _AstToIrVisitor.prototype.visitChain = function (ast, mode) {\n ensureStatementMode(mode, ast);\n return this.visitAll(ast.expressions, mode);\n };\n _AstToIrVisitor.prototype.visitConditional = function (ast, mode) {\n var value = this.visit(ast.condition, _Mode.Expression);\n return convertToStatementIfNeeded(mode, value.conditional(this.visit(ast.trueExp, _Mode.Expression), this.visit(ast.falseExp, _Mode.Expression)));\n };\n _AstToIrVisitor.prototype.visitPipe = function (ast, mode) {\n var input = this.visit(ast.exp, _Mode.Expression);\n var args = this.visitAll(ast.args, _Mode.Expression);\n var value = this._nameResolver.callPipe(ast.name, input, args);\n this.needsValueUnwrapper = true;\n return convertToStatementIfNeeded(mode, this._valueUnwrapper.callMethod('unwrap', [value]));\n };\n _AstToIrVisitor.prototype.visitFunctionCall = function (ast, mode) {\n return convertToStatementIfNeeded(mode, this.visit(ast.target, _Mode.Expression).callFn(this.visitAll(ast.args, _Mode.Expression)));\n };\n _AstToIrVisitor.prototype.visitImplicitReceiver = function (ast, mode) {\n ensureExpressionMode(mode, ast);\n return this._implicitReceiver;\n };\n _AstToIrVisitor.prototype.visitInterpolation = function (ast, mode) {\n ensureExpressionMode(mode, ast);\n var args = [literal(ast.expressions.length)];\n for (var i = 0; i < ast.strings.length - 1; i++) {\n args.push(literal(ast.strings[i]));\n args.push(this.visit(ast.expressions[i], _Mode.Expression));\n }\n args.push(literal(ast.strings[ast.strings.length - 1]));\n return importExpr(resolveIdentifier(Identifiers.interpolate)).callFn(args);\n };\n _AstToIrVisitor.prototype.visitKeyedRead = function (ast, mode) {\n return convertToStatementIfNeeded(mode, this.visit(ast.obj, _Mode.Expression).key(this.visit(ast.key, _Mode.Expression)));\n };\n _AstToIrVisitor.prototype.visitKeyedWrite = function (ast, mode) {\n var obj = this.visit(ast.obj, _Mode.Expression);\n var key = this.visit(ast.key, _Mode.Expression);\n var value = this.visit(ast.value, _Mode.Expression);\n return convertToStatementIfNeeded(mode, obj.key(key).set(value));\n };\n _AstToIrVisitor.prototype.visitLiteralArray = function (ast, mode) {\n return convertToStatementIfNeeded(mode, this._nameResolver.createLiteralArray(this.visitAll(ast.expressions, mode)));\n };\n _AstToIrVisitor.prototype.visitLiteralMap = function (ast, mode) {\n var parts = [];\n for (var i = 0; i < ast.keys.length; i++) {\n parts.push([ast.keys[i], this.visit(ast.values[i], _Mode.Expression)]);\n }\n return convertToStatementIfNeeded(mode, this._nameResolver.createLiteralMap(parts));\n };\n _AstToIrVisitor.prototype.visitLiteralPrimitive = function (ast, mode) {\n return convertToStatementIfNeeded(mode, literal(ast.value));\n };\n _AstToIrVisitor.prototype.visitMethodCall = function (ast, mode) {\n var leftMostSafe = this.leftMostSafeNode(ast);\n if (leftMostSafe) {\n return this.convertSafeAccess(ast, leftMostSafe, mode);\n }\n else {\n var args = this.visitAll(ast.args, _Mode.Expression);\n var result = null;\n var receiver = this.visit(ast.receiver, _Mode.Expression);\n if (receiver === this._implicitReceiver) {\n var varExpr = this._nameResolver.getLocal(ast.name);\n if (isPresent(varExpr)) {\n result = varExpr.callFn(args);\n }\n }\n if (isBlank(result)) {\n result = receiver.callMethod(ast.name, args);\n }\n return convertToStatementIfNeeded(mode, result);\n }\n };\n _AstToIrVisitor.prototype.visitPrefixNot = function (ast, mode) {\n return convertToStatementIfNeeded(mode, not(this.visit(ast.expression, _Mode.Expression)));\n };\n _AstToIrVisitor.prototype.visitPropertyRead = function (ast, mode) {\n var leftMostSafe = this.leftMostSafeNode(ast);\n if (leftMostSafe) {\n return this.convertSafeAccess(ast, leftMostSafe, mode);\n }\n else {\n var result = null;\n var receiver = this.visit(ast.receiver, _Mode.Expression);\n if (receiver === this._implicitReceiver) {\n result = this._nameResolver.getLocal(ast.name);\n }\n if (isBlank(result)) {\n result = receiver.prop(ast.name);\n }\n return convertToStatementIfNeeded(mode, result);\n }\n };\n _AstToIrVisitor.prototype.visitPropertyWrite = function (ast, mode) {\n var receiver = this.visit(ast.receiver, _Mode.Expression);\n if (receiver === this._implicitReceiver) {\n var varExpr = this._nameResolver.getLocal(ast.name);\n if (isPresent(varExpr)) {\n throw new Error('Cannot assign to a reference or variable!');\n }\n }\n return convertToStatementIfNeeded(mode, receiver.prop(ast.name).set(this.visit(ast.value, _Mode.Expression)));\n };\n _AstToIrVisitor.prototype.visitSafePropertyRead = function (ast, mode) {\n return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);\n };\n _AstToIrVisitor.prototype.visitSafeMethodCall = function (ast, mode) {\n return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);\n };\n _AstToIrVisitor.prototype.visitAll = function (asts, mode) {\n var _this = this;\n return asts.map(function (ast) { return _this.visit(ast, mode); });\n };\n _AstToIrVisitor.prototype.visitQuote = function (ast, mode) {\n throw new Error('Quotes are not supported for evaluation!');\n };\n _AstToIrVisitor.prototype.visit = function (ast, mode) {\n var result = this._resultMap.get(ast);\n if (result)\n return result;\n return (this._nodeMap.get(ast) || ast).visit(this, mode);\n };\n _AstToIrVisitor.prototype.convertSafeAccess = function (ast, leftMostSafe, mode) {\n // If the expression contains a safe access node on the left it needs to be converted to\n // an expression that guards the access to the member by checking the receiver for blank. As\n // execution proceeds from left to right, the left most part of the expression must be guarded\n // first but, because member access is left associative, the right side of the expression is at\n // the top of the AST. The desired result requires lifting a copy of the the left part of the\n // expression up to test it for blank before generating the unguarded version.\n // Consider, for example the following expression: a?.b.c?.d.e\n // This results in the ast:\n // .\n // / \\\n // ?. e\n // / \\\n // . d\n // / \\\n // ?. c\n // / \\\n // a b\n // The following tree should be generated:\n //\n // /---- ? ----\\\n // / | \\\n // a /--- ? ---\\ null\n // / | \\\n // . . null\n // / \\ / \\\n // . c . e\n // / \\ / \\\n // a b , d\n // / \\\n // . c\n // / \\\n // a b\n //\n // Notice that the first guard condition is the left hand of the left most safe access node\n // which comes in as leftMostSafe to this routine.\n var guardedExpression = this.visit(leftMostSafe.receiver, mode);\n var temporary;\n if (this.needsTemporary(leftMostSafe.receiver)) {\n // If the expression has method calls or pipes then we need to save the result into a\n // temporary variable to avoid calling stateful or impure code more than once.\n temporary = this.allocateTemporary();\n // Preserve the result in the temporary variable\n guardedExpression = temporary.set(guardedExpression);\n // Ensure all further references to the guarded expression refer to the temporary instead.\n this._resultMap.set(leftMostSafe.receiver, temporary);\n }\n var condition = guardedExpression.isBlank();\n // Convert the ast to an unguarded access to the receiver's member. The map will substitute\n // leftMostNode with its unguarded version in the call to `this.visit()`.\n if (leftMostSafe instanceof SafeMethodCall) {\n this._nodeMap.set(leftMostSafe, new MethodCall(leftMostSafe.span, leftMostSafe.receiver, leftMostSafe.name, leftMostSafe.args));\n }\n else {\n this._nodeMap.set(leftMostSafe, new PropertyRead(leftMostSafe.span, leftMostSafe.receiver, leftMostSafe.name));\n }\n // Recursively convert the node now without the guarded member access.\n var access = this.visit(ast, mode);\n // Remove the mapping. This is not strictly required as the converter only traverses each node\n // once but is safer if the conversion is changed to traverse the nodes more than once.\n this._nodeMap.delete(leftMostSafe);\n // If we allcoated a temporary, release it.\n if (temporary) {\n this.releaseTemporary(temporary);\n }\n // Produce the conditional\n return condition.conditional(literal(null), access);\n };\n // Given a expression of the form a?.b.c?.d.e the the left most safe node is\n // the (a?.b). The . and ?. are left associative thus can be rewritten as:\n // ((((a?.c).b).c)?.d).e. This returns the most deeply nested safe read or\n // safe method call as this needs be transform initially to:\n // a == null ? null : a.c.b.c?.d.e\n // then to:\n // a == null ? null : a.b.c == null ? null : a.b.c.d.e\n _AstToIrVisitor.prototype.leftMostSafeNode = function (ast) {\n var _this = this;\n var visit = function (visitor, ast) {\n return (_this._nodeMap.get(ast) || ast).visit(visitor);\n };\n return ast.visit({\n visitBinary: function (ast) { return null; },\n visitChain: function (ast) { return null; },\n visitConditional: function (ast) { return null; },\n visitFunctionCall: function (ast) { return null; },\n visitImplicitReceiver: function (ast) { return null; },\n visitInterpolation: function (ast) { return null; },\n visitKeyedRead: function (ast) { return visit(this, ast.obj); },\n visitKeyedWrite: function (ast) { return null; },\n visitLiteralArray: function (ast) { return null; },\n visitLiteralMap: function (ast) { return null; },\n visitLiteralPrimitive: function (ast) { return null; },\n visitMethodCall: function (ast) { return visit(this, ast.receiver); },\n visitPipe: function (ast) { return null; },\n visitPrefixNot: function (ast) { return null; },\n visitPropertyRead: function (ast) { return visit(this, ast.receiver); },\n visitPropertyWrite: function (ast) { return null; },\n visitQuote: function (ast) { return null; },\n visitSafeMethodCall: function (ast) { return visit(this, ast.receiver) || ast; },\n visitSafePropertyRead: function (ast) {\n return visit(this, ast.receiver) || ast;\n }\n });\n };\n // Returns true of the AST includes a method or a pipe indicating that, if the\n // expression is used as the target of a safe property or method access then\n // the expression should be stored into a temporary variable.\n _AstToIrVisitor.prototype.needsTemporary = function (ast) {\n var _this = this;\n var visit = function (visitor, ast) {\n return ast && (_this._nodeMap.get(ast) || ast).visit(visitor);\n };\n var visitSome = function (visitor, ast) {\n return ast.some(function (ast) { return visit(visitor, ast); });\n };\n return ast.visit({\n visitBinary: function (ast) { return visit(this, ast.left) || visit(this, ast.right); },\n visitChain: function (ast) { return false; },\n visitConditional: function (ast) {\n return visit(this, ast.condition) || visit(this, ast.trueExp) ||\n visit(this, ast.falseExp);\n },\n visitFunctionCall: function (ast) { return true; },\n visitImplicitReceiver: function (ast) { return false; },\n visitInterpolation: function (ast) { return visitSome(this, ast.expressions); },\n visitKeyedRead: function (ast) { return false; },\n visitKeyedWrite: function (ast) { return false; },\n visitLiteralArray: function (ast) { return true; },\n visitLiteralMap: function (ast) { return true; },\n visitLiteralPrimitive: function (ast) { return false; },\n visitMethodCall: function (ast) { return true; },\n visitPipe: function (ast) { return true; },\n visitPrefixNot: function (ast) { return visit(this, ast.expression); },\n visitPropertyRead: function (ast) { return false; },\n visitPropertyWrite: function (ast) { return false; },\n visitQuote: function (ast) { return false; },\n visitSafeMethodCall: function (ast) { return true; },\n visitSafePropertyRead: function (ast) { return false; }\n });\n };\n _AstToIrVisitor.prototype.allocateTemporary = function () {\n var tempNumber = this._currentTemporary++;\n this.temporaryCount = Math.max(this._currentTemporary, this.temporaryCount);\n return new ReadVarExpr(temporaryName(this.bindingIndex, tempNumber));\n };\n _AstToIrVisitor.prototype.releaseTemporary = function (temporary) {\n this._currentTemporary--;\n if (temporary.name != temporaryName(this.bindingIndex, this._currentTemporary)) {\n throw new Error(\"Temporary \" + temporary.name + \" released out of order\");\n }\n };\n return _AstToIrVisitor;\n }());\n function flattenStatements(arg, output) {\n if (isArray(arg)) {\n arg.forEach(function (entry) { return flattenStatements(entry, output); });\n }\n else {\n output.push(arg);\n }\n }\n\n var CompileElementAnimationOutput = (function () {\n function CompileElementAnimationOutput(listener, output) {\n this.listener = listener;\n this.output = output;\n }\n return CompileElementAnimationOutput;\n }());\n var CompileEventListener = (function () {\n function CompileEventListener(compileElement, eventTarget, eventName, listenerIndex) {\n this.compileElement = compileElement;\n this.eventTarget = eventTarget;\n this.eventName = eventName;\n this._hasComponentHostListener = false;\n this._actionResultExprs = [];\n this._method = new CompileMethod(compileElement.view);\n this._methodName =\n \"_handle_\" + santitizeEventName(eventName) + \"_\" + compileElement.nodeIndex + \"_\" + listenerIndex;\n this._eventParam = new FnParam(EventHandlerVars.event.name, importType(this.compileElement.view.genConfig.renderTypes.renderEvent));\n }\n CompileEventListener.getOrCreate = function (compileElement, eventTarget, eventName, targetEventListeners) {\n var listener = targetEventListeners.find(function (listener) { return listener.eventTarget == eventTarget && listener.eventName == eventName; });\n if (isBlank(listener)) {\n listener = new CompileEventListener(compileElement, eventTarget, eventName, targetEventListeners.length);\n targetEventListeners.push(listener);\n }\n return listener;\n };\n Object.defineProperty(CompileEventListener.prototype, \"methodName\", {\n get: function () { return this._methodName; },\n enumerable: true,\n configurable: true\n });\n CompileEventListener.prototype.addAction = function (hostEvent, directive, directiveInstance) {\n if (isPresent(directive) && directive.isComponent) {\n this._hasComponentHostListener = true;\n }\n this._method.resetDebugInfo(this.compileElement.nodeIndex, hostEvent);\n var context = isPresent(directiveInstance) ? directiveInstance :\n this.compileElement.view.componentContext;\n var actionStmts = convertCdStatementToIr(this.compileElement.view, context, hostEvent.handler, this.compileElement.nodeIndex);\n var lastIndex = actionStmts.length - 1;\n if (lastIndex >= 0) {\n var lastStatement = actionStmts[lastIndex];\n var returnExpr = convertStmtIntoExpression(lastStatement);\n var preventDefaultVar = variable(\"pd_\" + this._actionResultExprs.length);\n this._actionResultExprs.push(preventDefaultVar);\n if (isPresent(returnExpr)) {\n // Note: We need to cast the result of the method call to dynamic,\n // as it might be a void method!\n actionStmts[lastIndex] =\n preventDefaultVar.set(returnExpr.cast(DYNAMIC_TYPE).notIdentical(literal(false)))\n .toDeclStmt(null, [StmtModifier.Final]);\n }\n }\n this._method.addStmts(actionStmts);\n };\n CompileEventListener.prototype.finishMethod = function () {\n var markPathToRootStart = this._hasComponentHostListener ?\n this.compileElement.appElement.prop('componentView') :\n THIS_EXPR;\n var resultExpr = literal(true);\n this._actionResultExprs.forEach(function (expr) { resultExpr = resultExpr.and(expr); });\n var stmts = [markPathToRootStart.callMethod('markPathToRootAsCheckOnce', []).toStmt()]\n .concat(this._method.finish())\n .concat([new ReturnStatement(resultExpr)]);\n // private is fine here as no child view will reference the event handler...\n this.compileElement.view.eventHandlerMethods.push(new ClassMethod(this._methodName, [this._eventParam], stmts, BOOL_TYPE, [StmtModifier.Private]));\n };\n CompileEventListener.prototype.listenToRenderer = function () {\n var listenExpr;\n var eventListener = THIS_EXPR.callMethod('eventHandler', [THIS_EXPR.prop(this._methodName).callMethod(BuiltinMethod.Bind, [THIS_EXPR])]);\n if (isPresent(this.eventTarget)) {\n listenExpr = ViewProperties.renderer.callMethod('listenGlobal', [literal(this.eventTarget), literal(this.eventName), eventListener]);\n }\n else {\n listenExpr = ViewProperties.renderer.callMethod('listen', [this.compileElement.renderNode, literal(this.eventName), eventListener]);\n }\n var disposable = variable(\"disposable_\" + this.compileElement.view.disposables.length);\n this.compileElement.view.disposables.push(disposable);\n // private is fine here as no child view will reference the event handler...\n this.compileElement.view.createMethod.addStmt(disposable.set(listenExpr).toDeclStmt(FUNCTION_TYPE, [StmtModifier.Private]));\n };\n CompileEventListener.prototype.listenToAnimation = function (output) {\n var outputListener = THIS_EXPR.callMethod('eventHandler', [THIS_EXPR.prop(this._methodName).callMethod(BuiltinMethod.Bind, [THIS_EXPR])]);\n // tie the property callback method to the view animations map\n var stmt = THIS_EXPR\n .callMethod('registerAnimationOutput', [\n this.compileElement.renderNode,\n importExpr(resolveIdentifier(Identifiers.AnimationOutput)).instantiate([\n literal(output.name), literal(output.phase)\n ]),\n outputListener\n ])\n .toStmt();\n this.compileElement.view.createMethod.addStmt(stmt);\n };\n CompileEventListener.prototype.listenToDirective = function (directiveInstance, observablePropName) {\n var subscription = variable(\"subscription_\" + this.compileElement.view.subscriptions.length);\n this.compileElement.view.subscriptions.push(subscription);\n var eventListener = THIS_EXPR.callMethod('eventHandler', [THIS_EXPR.prop(this._methodName).callMethod(BuiltinMethod.Bind, [THIS_EXPR])]);\n this.compileElement.view.createMethod.addStmt(subscription\n .set(directiveInstance.prop(observablePropName)\n .callMethod(BuiltinMethod.SubscribeObservable, [eventListener]))\n .toDeclStmt(null, [StmtModifier.Final]));\n };\n return CompileEventListener;\n }());\n function collectEventListeners(hostEvents, dirs, compileElement) {\n var eventListeners = [];\n hostEvents.forEach(function (hostEvent) {\n compileElement.view.bindings.push(new CompileBinding(compileElement, hostEvent));\n var listener = CompileEventListener.getOrCreate(compileElement, hostEvent.target, hostEvent.name, eventListeners);\n listener.addAction(hostEvent, null, null);\n });\n dirs.forEach(function (directiveAst) {\n var directiveInstance = compileElement.instances.get(identifierToken(directiveAst.directive.type).reference);\n directiveAst.hostEvents.forEach(function (hostEvent) {\n compileElement.view.bindings.push(new CompileBinding(compileElement, hostEvent));\n var listener = CompileEventListener.getOrCreate(compileElement, hostEvent.target, hostEvent.name, eventListeners);\n listener.addAction(hostEvent, directiveAst.directive, directiveInstance);\n });\n });\n eventListeners.forEach(function (listener) { return listener.finishMethod(); });\n return eventListeners;\n }\n function bindDirectiveOutputs(directiveAst, directiveInstance, eventListeners) {\n StringMapWrapper.forEach(directiveAst.directive.outputs, function (eventName /** TODO #9100 */, observablePropName /** TODO #9100 */) {\n eventListeners.filter(function (listener) { return listener.eventName == eventName; }).forEach(function (listener) {\n listener.listenToDirective(directiveInstance, observablePropName);\n });\n });\n }\n function bindRenderOutputs(eventListeners) {\n eventListeners.forEach(function (listener) { return listener.listenToRenderer(); });\n }\n function bindAnimationOutputs(eventListeners) {\n eventListeners.forEach(function (entry) { entry.listener.listenToAnimation(entry.output); });\n }\n function convertStmtIntoExpression(stmt) {\n if (stmt instanceof ExpressionStatement) {\n return stmt.expr;\n }\n else if (stmt instanceof ReturnStatement) {\n return stmt.value;\n }\n return null;\n }\n function santitizeEventName(name) {\n return StringWrapper.replaceAll(name, /[^a-zA-Z_]/g, '_');\n }\n\n var STATE_IS_NEVER_CHECKED = THIS_EXPR.prop('numberOfChecks').identical(new LiteralExpr(0));\n var NOT_THROW_ON_CHANGES = not(DetectChangesVars.throwOnChange);\n function bindDirectiveDetectChangesLifecycleCallbacks(directiveAst, directiveInstance, compileElement) {\n var view = compileElement.view;\n var detectChangesInInputsMethod = view.detectChangesInInputsMethod;\n var lifecycleHooks = directiveAst.directive.type.lifecycleHooks;\n if (lifecycleHooks.indexOf(LifecycleHooks.OnChanges) !== -1 && directiveAst.inputs.length > 0) {\n detectChangesInInputsMethod.addStmt(new IfStmt(DetectChangesVars.changes.notIdentical(NULL_EXPR), [directiveInstance.callMethod('ngOnChanges', [DetectChangesVars.changes]).toStmt()]));\n }\n if (lifecycleHooks.indexOf(LifecycleHooks.OnInit) !== -1) {\n detectChangesInInputsMethod.addStmt(new IfStmt(STATE_IS_NEVER_CHECKED.and(NOT_THROW_ON_CHANGES), [directiveInstance.callMethod('ngOnInit', []).toStmt()]));\n }\n if (lifecycleHooks.indexOf(LifecycleHooks.DoCheck) !== -1) {\n detectChangesInInputsMethod.addStmt(new IfStmt(NOT_THROW_ON_CHANGES, [directiveInstance.callMethod('ngDoCheck', []).toStmt()]));\n }\n }\n function bindDirectiveAfterContentLifecycleCallbacks(directiveMeta, directiveInstance, compileElement) {\n var view = compileElement.view;\n var lifecycleHooks = directiveMeta.type.lifecycleHooks;\n var afterContentLifecycleCallbacksMethod = view.afterContentLifecycleCallbacksMethod;\n afterContentLifecycleCallbacksMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\n if (lifecycleHooks.indexOf(LifecycleHooks.AfterContentInit) !== -1) {\n afterContentLifecycleCallbacksMethod.addStmt(new IfStmt(STATE_IS_NEVER_CHECKED, [directiveInstance.callMethod('ngAfterContentInit', []).toStmt()]));\n }\n if (lifecycleHooks.indexOf(LifecycleHooks.AfterContentChecked) !== -1) {\n afterContentLifecycleCallbacksMethod.addStmt(directiveInstance.callMethod('ngAfterContentChecked', []).toStmt());\n }\n }\n function bindDirectiveAfterViewLifecycleCallbacks(directiveMeta, directiveInstance, compileElement) {\n var view = compileElement.view;\n var lifecycleHooks = directiveMeta.type.lifecycleHooks;\n var afterViewLifecycleCallbacksMethod = view.afterViewLifecycleCallbacksMethod;\n afterViewLifecycleCallbacksMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\n if (lifecycleHooks.indexOf(LifecycleHooks.AfterViewInit) !== -1) {\n afterViewLifecycleCallbacksMethod.addStmt(new IfStmt(STATE_IS_NEVER_CHECKED, [directiveInstance.callMethod('ngAfterViewInit', []).toStmt()]));\n }\n if (lifecycleHooks.indexOf(LifecycleHooks.AfterViewChecked) !== -1) {\n afterViewLifecycleCallbacksMethod.addStmt(directiveInstance.callMethod('ngAfterViewChecked', []).toStmt());\n }\n }\n function bindInjectableDestroyLifecycleCallbacks(provider, providerInstance, compileElement) {\n var onDestroyMethod = compileElement.view.destroyMethod;\n onDestroyMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\n if (provider.lifecycleHooks.indexOf(LifecycleHooks.OnDestroy) !== -1) {\n onDestroyMethod.addStmt(providerInstance.callMethod('ngOnDestroy', []).toStmt());\n }\n }\n function bindPipeDestroyLifecycleCallbacks(pipeMeta, pipeInstance, view) {\n var onDestroyMethod = view.destroyMethod;\n if (pipeMeta.type.lifecycleHooks.indexOf(LifecycleHooks.OnDestroy) !== -1) {\n onDestroyMethod.addStmt(pipeInstance.callMethod('ngOnDestroy', []).toStmt());\n }\n }\n\n function createBindFieldExpr(exprIndex) {\n return THIS_EXPR.prop(\"_expr_\" + exprIndex);\n }\n function createCurrValueExpr(exprIndex) {\n return variable(\"currVal_\" + exprIndex); // fix syntax highlighting: `\n }\n var _animationViewCheckedFlagMap = new Map();\n function bind(view, currValExpr, fieldExpr, parsedExpression, context, actions, method, bindingIndex) {\n var checkExpression = convertCdExpressionToIr(view, context, parsedExpression, DetectChangesVars.valUnwrapper, bindingIndex);\n if (isBlank(checkExpression.expression)) {\n // e.g. an empty expression was given\n return;\n }\n if (checkExpression.temporaryCount) {\n for (var i = 0; i < checkExpression.temporaryCount; i++) {\n method.addStmt(temporaryDeclaration(bindingIndex, i));\n }\n }\n // private is fine here as no child view will reference the cached value...\n view.fields.push(new ClassField(fieldExpr.name, null, [StmtModifier.Private]));\n view.createMethod.addStmt(THIS_EXPR.prop(fieldExpr.name)\n .set(importExpr(resolveIdentifier(Identifiers.UNINITIALIZED)))\n .toStmt());\n if (checkExpression.needsValueUnwrapper) {\n var initValueUnwrapperStmt = DetectChangesVars.valUnwrapper.callMethod('reset', []).toStmt();\n method.addStmt(initValueUnwrapperStmt);\n }\n method.addStmt(currValExpr.set(checkExpression.expression).toDeclStmt(null, [StmtModifier.Final]));\n var condition = importExpr(resolveIdentifier(Identifiers.checkBinding)).callFn([\n DetectChangesVars.throwOnChange, fieldExpr, currValExpr\n ]);\n if (checkExpression.needsValueUnwrapper) {\n condition = DetectChangesVars.valUnwrapper.prop('hasWrappedValue').or(condition);\n }\n method.addStmt(new IfStmt(condition, actions.concat([THIS_EXPR.prop(fieldExpr.name).set(currValExpr).toStmt()])));\n }\n function bindRenderText(boundText, compileNode, view) {\n var bindingIndex = view.bindings.length;\n view.bindings.push(new CompileBinding(compileNode, boundText));\n var currValExpr = createCurrValueExpr(bindingIndex);\n var valueField = createBindFieldExpr(bindingIndex);\n view.detectChangesRenderPropertiesMethod.resetDebugInfo(compileNode.nodeIndex, boundText);\n bind(view, currValExpr, valueField, boundText.value, view.componentContext, [THIS_EXPR.prop('renderer')\n .callMethod('setText', [compileNode.renderNode, currValExpr])\n .toStmt()], view.detectChangesRenderPropertiesMethod, bindingIndex);\n }\n function bindAndWriteToRenderer(boundProps, context, compileElement, isHostProp) {\n var view = compileElement.view;\n var renderNode = compileElement.renderNode;\n boundProps.forEach(function (boundProp) {\n var bindingIndex = view.bindings.length;\n view.bindings.push(new CompileBinding(compileElement, boundProp));\n view.detectChangesRenderPropertiesMethod.resetDebugInfo(compileElement.nodeIndex, boundProp);\n var fieldExpr = createBindFieldExpr(bindingIndex);\n var currValExpr = createCurrValueExpr(bindingIndex);\n var renderMethod;\n var oldRenderValue = sanitizedValue(boundProp, fieldExpr);\n var renderValue = sanitizedValue(boundProp, currValExpr);\n var updateStmts = [];\n switch (boundProp.type) {\n case exports.PropertyBindingType.Property:\n if (view.genConfig.logBindingUpdate) {\n updateStmts.push(logBindingUpdateStmt(renderNode, boundProp.name, renderValue));\n }\n updateStmts.push(THIS_EXPR.prop('renderer')\n .callMethod('setElementProperty', [renderNode, literal(boundProp.name), renderValue])\n .toStmt());\n break;\n case exports.PropertyBindingType.Attribute:\n renderValue =\n renderValue.isBlank().conditional(NULL_EXPR, renderValue.callMethod('toString', []));\n updateStmts.push(THIS_EXPR.prop('renderer')\n .callMethod('setElementAttribute', [renderNode, literal(boundProp.name), renderValue])\n .toStmt());\n break;\n case exports.PropertyBindingType.Class:\n updateStmts.push(THIS_EXPR.prop('renderer')\n .callMethod('setElementClass', [renderNode, literal(boundProp.name), renderValue])\n .toStmt());\n break;\n case exports.PropertyBindingType.Style:\n var strValue = renderValue.callMethod('toString', []);\n if (isPresent(boundProp.unit)) {\n strValue = strValue.plus(literal(boundProp.unit));\n }\n renderValue = renderValue.isBlank().conditional(NULL_EXPR, strValue);\n updateStmts.push(THIS_EXPR.prop('renderer')\n .callMethod('setElementStyle', [renderNode, literal(boundProp.name), renderValue])\n .toStmt());\n break;\n case exports.PropertyBindingType.Animation:\n var animationName = boundProp.name;\n var targetViewExpr = THIS_EXPR;\n if (isHostProp) {\n targetViewExpr = compileElement.appElement.prop('componentView');\n }\n var animationFnExpr = targetViewExpr.prop('componentType').prop('animations').key(literal(animationName));\n // it's important to normalize the void value as `void` explicitly\n // so that the styles data can be obtained from the stringmap\n var emptyStateValue = literal(EMPTY_ANIMATION_STATE);\n // void => ...\n var oldRenderVar = variable('oldRenderVar');\n updateStmts.push(oldRenderVar.set(oldRenderValue).toDeclStmt());\n updateStmts.push(new IfStmt(oldRenderVar.equals(importExpr(resolveIdentifier(Identifiers.UNINITIALIZED))), [oldRenderVar.set(emptyStateValue).toStmt()]));\n // ... => void\n var newRenderVar = variable('newRenderVar');\n updateStmts.push(newRenderVar.set(renderValue).toDeclStmt());\n updateStmts.push(new IfStmt(newRenderVar.equals(importExpr(resolveIdentifier(Identifiers.UNINITIALIZED))), [newRenderVar.set(emptyStateValue).toStmt()]));\n updateStmts.push(animationFnExpr.callFn([THIS_EXPR, renderNode, oldRenderVar, newRenderVar]).toStmt());\n view.detachMethod.addStmt(animationFnExpr.callFn([THIS_EXPR, renderNode, oldRenderValue, emptyStateValue])\n .toStmt());\n if (!_animationViewCheckedFlagMap.get(view)) {\n _animationViewCheckedFlagMap.set(view, true);\n var triggerStmt = THIS_EXPR.callMethod('triggerQueuedAnimations', []).toStmt();\n view.afterViewLifecycleCallbacksMethod.addStmt(triggerStmt);\n view.detachMethod.addStmt(triggerStmt);\n }\n break;\n }\n bind(view, currValExpr, fieldExpr, boundProp.value, context, updateStmts, view.detectChangesRenderPropertiesMethod, view.bindings.length);\n });\n }\n function sanitizedValue(boundProp, renderValue) {\n var enumValue;\n switch (boundProp.securityContext) {\n case _angular_core.SecurityContext.NONE:\n return renderValue; // No sanitization needed.\n case _angular_core.SecurityContext.HTML:\n enumValue = 'HTML';\n break;\n case _angular_core.SecurityContext.STYLE:\n enumValue = 'STYLE';\n break;\n case _angular_core.SecurityContext.SCRIPT:\n enumValue = 'SCRIPT';\n break;\n case _angular_core.SecurityContext.URL:\n enumValue = 'URL';\n break;\n case _angular_core.SecurityContext.RESOURCE_URL:\n enumValue = 'RESOURCE_URL';\n break;\n default:\n throw new Error(\"internal error, unexpected SecurityContext \" + boundProp.securityContext + \".\");\n }\n var ctx = ViewProperties.viewUtils.prop('sanitizer');\n var args = [importExpr(resolveIdentifier(Identifiers.SecurityContext)).prop(enumValue), renderValue];\n return ctx.callMethod('sanitize', args);\n }\n function bindRenderInputs(boundProps, compileElement) {\n bindAndWriteToRenderer(boundProps, compileElement.view.componentContext, compileElement, false);\n }\n function bindDirectiveHostProps(directiveAst, directiveInstance, compileElement) {\n bindAndWriteToRenderer(directiveAst.hostProperties, directiveInstance, compileElement, true);\n }\n function bindDirectiveInputs(directiveAst, directiveInstance, compileElement) {\n if (directiveAst.inputs.length === 0) {\n return;\n }\n var view = compileElement.view;\n var detectChangesInInputsMethod = view.detectChangesInInputsMethod;\n detectChangesInInputsMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\n var lifecycleHooks = directiveAst.directive.type.lifecycleHooks;\n var calcChangesMap = lifecycleHooks.indexOf(LifecycleHooks.OnChanges) !== -1;\n var isOnPushComp = directiveAst.directive.isComponent &&\n !isDefaultChangeDetectionStrategy(directiveAst.directive.changeDetection);\n if (calcChangesMap) {\n detectChangesInInputsMethod.addStmt(DetectChangesVars.changes.set(NULL_EXPR).toStmt());\n }\n if (isOnPushComp) {\n detectChangesInInputsMethod.addStmt(DetectChangesVars.changed.set(literal(false)).toStmt());\n }\n directiveAst.inputs.forEach(function (input) {\n var bindingIndex = view.bindings.length;\n view.bindings.push(new CompileBinding(compileElement, input));\n detectChangesInInputsMethod.resetDebugInfo(compileElement.nodeIndex, input);\n var fieldExpr = createBindFieldExpr(bindingIndex);\n var currValExpr = createCurrValueExpr(bindingIndex);\n var statements = [directiveInstance.prop(input.directiveName).set(currValExpr).toStmt()];\n if (calcChangesMap) {\n statements.push(new IfStmt(DetectChangesVars.changes.identical(NULL_EXPR), [DetectChangesVars.changes\n .set(literalMap([], new MapType(importType(resolveIdentifier(Identifiers.SimpleChange)))))\n .toStmt()]));\n statements.push(DetectChangesVars.changes.key(literal(input.directiveName))\n .set(importExpr(resolveIdentifier(Identifiers.SimpleChange))\n .instantiate([fieldExpr, currValExpr]))\n .toStmt());\n }\n if (isOnPushComp) {\n statements.push(DetectChangesVars.changed.set(literal(true)).toStmt());\n }\n if (view.genConfig.logBindingUpdate) {\n statements.push(logBindingUpdateStmt(compileElement.renderNode, input.directiveName, currValExpr));\n }\n bind(view, currValExpr, fieldExpr, input.value, view.componentContext, statements, detectChangesInInputsMethod, bindingIndex);\n });\n if (isOnPushComp) {\n detectChangesInInputsMethod.addStmt(new IfStmt(DetectChangesVars.changed, [\n compileElement.appElement.prop('componentView').callMethod('markAsCheckOnce', []).toStmt()\n ]));\n }\n }\n function logBindingUpdateStmt(renderNode, propName, value) {\n var tryStmt = THIS_EXPR.prop('renderer')\n .callMethod('setBindingDebugInfo', [\n renderNode, literal(\"ng-reflect-\" + camelCaseToDashCase(propName)),\n value.isBlank().conditional(NULL_EXPR, value.callMethod('toString', []))\n ])\n .toStmt();\n var catchStmt = THIS_EXPR.prop('renderer')\n .callMethod('setBindingDebugInfo', [\n renderNode, literal(\"ng-reflect-\" + camelCaseToDashCase(propName)),\n literal('[ERROR] Exception while trying to serialize the value')\n ])\n .toStmt();\n return new TryCatchStmt([tryStmt], [catchStmt]);\n }\n\n function bindView(view, parsedTemplate, animationOutputs) {\n var visitor = new ViewBinderVisitor(view, animationOutputs);\n templateVisitAll(visitor, parsedTemplate);\n view.pipes.forEach(function (pipe) { bindPipeDestroyLifecycleCallbacks(pipe.meta, pipe.instance, pipe.view); });\n }\n var ViewBinderVisitor = (function () {\n function ViewBinderVisitor(view, animationOutputs) {\n var _this = this;\n this.view = view;\n this.animationOutputs = animationOutputs;\n this._nodeIndex = 0;\n this._animationOutputsMap = {};\n animationOutputs.forEach(function (entry) { _this._animationOutputsMap[entry.fullPropertyName] = entry; });\n }\n ViewBinderVisitor.prototype.visitBoundText = function (ast, parent) {\n var node = this.view.nodes[this._nodeIndex++];\n bindRenderText(ast, node, this.view);\n return null;\n };\n ViewBinderVisitor.prototype.visitText = function (ast, parent) {\n this._nodeIndex++;\n return null;\n };\n ViewBinderVisitor.prototype.visitNgContent = function (ast, parent) { return null; };\n ViewBinderVisitor.prototype.visitElement = function (ast, parent) {\n var _this = this;\n var compileElement = this.view.nodes[this._nodeIndex++];\n var eventListeners = [];\n var animationEventListeners = [];\n collectEventListeners(ast.outputs, ast.directives, compileElement).forEach(function (entry) {\n // TODO: figure out how to abstract this `if` statement elsewhere\n if (entry.eventName[0] == '@') {\n var animationOutputName = entry.eventName.substr(1);\n var output = _this._animationOutputsMap[animationOutputName];\n // no need to report an error here since the parser will\n // have caught the missing animation trigger definition\n if (output) {\n animationEventListeners.push(new CompileElementAnimationOutput(entry, output));\n }\n }\n else {\n eventListeners.push(entry);\n }\n });\n bindAnimationOutputs(animationEventListeners);\n bindRenderInputs(ast.inputs, compileElement);\n bindRenderOutputs(eventListeners);\n ast.directives.forEach(function (directiveAst) {\n var directiveInstance = compileElement.instances.get(directiveAst.directive.type.reference);\n bindDirectiveInputs(directiveAst, directiveInstance, compileElement);\n bindDirectiveDetectChangesLifecycleCallbacks(directiveAst, directiveInstance, compileElement);\n bindDirectiveHostProps(directiveAst, directiveInstance, compileElement);\n bindDirectiveOutputs(directiveAst, directiveInstance, eventListeners);\n });\n templateVisitAll(this, ast.children, compileElement);\n // afterContent and afterView lifecycles need to be called bottom up\n // so that children are notified before parents\n ast.directives.forEach(function (directiveAst) {\n var directiveInstance = compileElement.instances.get(directiveAst.directive.type.reference);\n bindDirectiveAfterContentLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\n bindDirectiveAfterViewLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\n });\n ast.providers.forEach(function (providerAst) {\n var providerInstance = compileElement.instances.get(providerAst.token.reference);\n bindInjectableDestroyLifecycleCallbacks(providerAst, providerInstance, compileElement);\n });\n return null;\n };\n ViewBinderVisitor.prototype.visitEmbeddedTemplate = function (ast, parent) {\n var compileElement = this.view.nodes[this._nodeIndex++];\n var eventListeners = collectEventListeners(ast.outputs, ast.directives, compileElement);\n ast.directives.forEach(function (directiveAst) {\n var directiveInstance = compileElement.instances.get(directiveAst.directive.type.reference);\n bindDirectiveInputs(directiveAst, directiveInstance, compileElement);\n bindDirectiveDetectChangesLifecycleCallbacks(directiveAst, directiveInstance, compileElement);\n bindDirectiveOutputs(directiveAst, directiveInstance, eventListeners);\n bindDirectiveAfterContentLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\n bindDirectiveAfterViewLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\n });\n ast.providers.forEach(function (providerAst) {\n var providerInstance = compileElement.instances.get(providerAst.token.reference);\n bindInjectableDestroyLifecycleCallbacks(providerAst, providerInstance, compileElement);\n });\n bindView(compileElement.embeddedView, ast.children, this.animationOutputs);\n return null;\n };\n ViewBinderVisitor.prototype.visitAttr = function (ast, ctx) { return null; };\n ViewBinderVisitor.prototype.visitDirective = function (ast, ctx) { return null; };\n ViewBinderVisitor.prototype.visitEvent = function (ast, eventTargetAndNames) {\n return null;\n };\n ViewBinderVisitor.prototype.visitReference = function (ast, ctx) { return null; };\n ViewBinderVisitor.prototype.visitVariable = function (ast, ctx) { return null; };\n ViewBinderVisitor.prototype.visitDirectiveProperty = function (ast, context) { return null; };\n ViewBinderVisitor.prototype.visitElementProperty = function (ast, context) { return null; };\n return ViewBinderVisitor;\n }());\n\n var IMPLICIT_TEMPLATE_VAR = '\\$implicit';\n var CLASS_ATTR$1 = 'class';\n var STYLE_ATTR = 'style';\n var NG_CONTAINER_TAG = 'ng-container';\n var parentRenderNodeVar = variable('parentRenderNode');\n var rootSelectorVar = variable('rootSelector');\n var ViewFactoryDependency = (function () {\n function ViewFactoryDependency(comp, placeholder) {\n this.comp = comp;\n this.placeholder = placeholder;\n }\n return ViewFactoryDependency;\n }());\n var ComponentFactoryDependency = (function () {\n function ComponentFactoryDependency(comp, placeholder) {\n this.comp = comp;\n this.placeholder = placeholder;\n }\n return ComponentFactoryDependency;\n }());\n function buildView(view, template, targetDependencies) {\n var builderVisitor = new ViewBuilderVisitor(view, targetDependencies);\n templateVisitAll(builderVisitor, template, view.declarationElement.isNull() ? view.declarationElement : view.declarationElement.parent);\n return builderVisitor.nestedViewCount;\n }\n function finishView(view, targetStatements) {\n view.afterNodes();\n createViewTopLevelStmts(view, targetStatements);\n view.nodes.forEach(function (node) {\n if (node instanceof CompileElement && node.hasEmbeddedView) {\n finishView(node.embeddedView, targetStatements);\n }\n });\n }\n var ViewBuilderVisitor = (function () {\n function ViewBuilderVisitor(view, targetDependencies) {\n this.view = view;\n this.targetDependencies = targetDependencies;\n this.nestedViewCount = 0;\n this._animationCompiler = new AnimationCompiler();\n }\n ViewBuilderVisitor.prototype._isRootNode = function (parent) { return parent.view !== this.view; };\n ViewBuilderVisitor.prototype._addRootNodeAndProject = function (node) {\n var projectedNode = _getOuterContainerOrSelf(node);\n var parent = projectedNode.parent;\n var ngContentIndex = projectedNode.sourceAst.ngContentIndex;\n var vcAppEl = (node instanceof CompileElement && node.hasViewContainer) ? node.appElement : null;\n if (this._isRootNode(parent)) {\n // store appElement as root node only for ViewContainers\n if (this.view.viewType !== ViewType.COMPONENT) {\n this.view.rootNodesOrAppElements.push(isPresent(vcAppEl) ? vcAppEl : node.renderNode);\n }\n }\n else if (isPresent(parent.component) && isPresent(ngContentIndex)) {\n parent.addContentNode(ngContentIndex, isPresent(vcAppEl) ? vcAppEl : node.renderNode);\n }\n };\n ViewBuilderVisitor.prototype._getParentRenderNode = function (parent) {\n parent = _getOuterContainerParentOrSelf(parent);\n if (this._isRootNode(parent)) {\n if (this.view.viewType === ViewType.COMPONENT) {\n return parentRenderNodeVar;\n }\n else {\n // root node of an embedded/host view\n return NULL_EXPR;\n }\n }\n else {\n return isPresent(parent.component) &&\n parent.component.template.encapsulation !== _angular_core.ViewEncapsulation.Native ?\n NULL_EXPR :\n parent.renderNode;\n }\n };\n ViewBuilderVisitor.prototype.visitBoundText = function (ast, parent) {\n return this._visitText(ast, '', parent);\n };\n ViewBuilderVisitor.prototype.visitText = function (ast, parent) {\n return this._visitText(ast, ast.value, parent);\n };\n ViewBuilderVisitor.prototype._visitText = function (ast, value, parent) {\n var fieldName = \"_text_\" + this.view.nodes.length;\n this.view.fields.push(new ClassField(fieldName, importType(this.view.genConfig.renderTypes.renderText)));\n var renderNode = THIS_EXPR.prop(fieldName);\n var compileNode = new CompileNode(parent, this.view, this.view.nodes.length, renderNode, ast);\n var createRenderNode = THIS_EXPR.prop(fieldName)\n .set(ViewProperties.renderer.callMethod('createText', [\n this._getParentRenderNode(parent), literal(value),\n this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length, ast)\n ]))\n .toStmt();\n this.view.nodes.push(compileNode);\n this.view.createMethod.addStmt(createRenderNode);\n this._addRootNodeAndProject(compileNode);\n return renderNode;\n };\n ViewBuilderVisitor.prototype.visitNgContent = function (ast, parent) {\n // the projected nodes originate from a different view, so we don't\n // have debug information for them...\n this.view.createMethod.resetDebugInfo(null, ast);\n var parentRenderNode = this._getParentRenderNode(parent);\n var nodesExpression = ViewProperties.projectableNodes.key(literal(ast.index), new ArrayType(importType(this.view.genConfig.renderTypes.renderNode)));\n if (parentRenderNode !== NULL_EXPR) {\n this.view.createMethod.addStmt(ViewProperties.renderer\n .callMethod('projectNodes', [\n parentRenderNode,\n importExpr(resolveIdentifier(Identifiers.flattenNestedViewRenderNodes))\n .callFn([nodesExpression])\n ])\n .toStmt());\n }\n else if (this._isRootNode(parent)) {\n if (this.view.viewType !== ViewType.COMPONENT) {\n // store root nodes only for embedded/host views\n this.view.rootNodesOrAppElements.push(nodesExpression);\n }\n }\n else {\n if (isPresent(parent.component) && isPresent(ast.ngContentIndex)) {\n parent.addContentNode(ast.ngContentIndex, nodesExpression);\n }\n }\n return null;\n };\n ViewBuilderVisitor.prototype.visitElement = function (ast, parent) {\n var _this = this;\n var nodeIndex = this.view.nodes.length;\n var createRenderNodeExpr;\n var debugContextExpr = this.view.createMethod.resetDebugInfoExpr(nodeIndex, ast);\n if (nodeIndex === 0 && this.view.viewType === ViewType.HOST) {\n createRenderNodeExpr = THIS_EXPR.callMethod('selectOrCreateHostElement', [literal(ast.name), rootSelectorVar, debugContextExpr]);\n }\n else {\n if (ast.name === NG_CONTAINER_TAG) {\n createRenderNodeExpr = ViewProperties.renderer.callMethod('createTemplateAnchor', [this._getParentRenderNode(parent), debugContextExpr]);\n }\n else {\n createRenderNodeExpr = ViewProperties.renderer.callMethod('createElement', [this._getParentRenderNode(parent), literal(ast.name), debugContextExpr]);\n }\n }\n var fieldName = \"_el_\" + nodeIndex;\n this.view.fields.push(new ClassField(fieldName, importType(this.view.genConfig.renderTypes.renderElement)));\n this.view.createMethod.addStmt(THIS_EXPR.prop(fieldName).set(createRenderNodeExpr).toStmt());\n var renderNode = THIS_EXPR.prop(fieldName);\n var directives = ast.directives.map(function (directiveAst) { return directiveAst.directive; });\n var component = directives.find(function (directive) { return directive.isComponent; });\n var htmlAttrs = _readHtmlAttrs(ast.attrs);\n var attrNameAndValues = _mergeHtmlAndDirectiveAttrs(htmlAttrs, directives);\n for (var i = 0; i < attrNameAndValues.length; i++) {\n var attrName = attrNameAndValues[i][0];\n if (ast.name !== NG_CONTAINER_TAG) {\n // <ng-container> are not rendered in the DOM\n var attrValue = attrNameAndValues[i][1];\n this.view.createMethod.addStmt(ViewProperties.renderer\n .callMethod('setElementAttribute', [renderNode, literal(attrName), literal(attrValue)])\n .toStmt());\n }\n }\n var compileElement = new CompileElement(parent, this.view, nodeIndex, renderNode, ast, component, directives, ast.providers, ast.hasViewContainer, false, ast.references);\n this.view.nodes.push(compileElement);\n var compViewExpr = null;\n if (isPresent(component)) {\n var nestedComponentIdentifier = new CompileIdentifierMetadata({ name: getViewFactoryName(component, 0) });\n this.targetDependencies.push(new ViewFactoryDependency(component.type, nestedComponentIdentifier));\n var entryComponentIdentifiers = component.entryComponents.map(function (entryComponent) {\n var id = new CompileIdentifierMetadata({ name: entryComponent.name });\n _this.targetDependencies.push(new ComponentFactoryDependency(entryComponent, id));\n return id;\n });\n compileElement.createComponentFactoryResolver(entryComponentIdentifiers);\n compViewExpr = variable(\"compView_\" + nodeIndex); // fix highlighting: `\n compileElement.setComponentView(compViewExpr);\n this.view.createMethod.addStmt(compViewExpr\n .set(importExpr(nestedComponentIdentifier).callFn([\n ViewProperties.viewUtils, compileElement.injector, compileElement.appElement\n ]))\n .toDeclStmt());\n }\n compileElement.beforeChildren();\n this._addRootNodeAndProject(compileElement);\n templateVisitAll(this, ast.children, compileElement);\n compileElement.afterChildren(this.view.nodes.length - nodeIndex - 1);\n if (isPresent(compViewExpr)) {\n var codeGenContentNodes;\n if (this.view.component.type.isHost) {\n codeGenContentNodes = ViewProperties.projectableNodes;\n }\n else {\n codeGenContentNodes = literalArr(compileElement.contentNodesByNgContentIndex.map(function (nodes) { return createFlatArray(nodes); }));\n }\n this.view.createMethod.addStmt(compViewExpr\n .callMethod('create', [compileElement.getComponent(), codeGenContentNodes, NULL_EXPR])\n .toStmt());\n }\n return null;\n };\n ViewBuilderVisitor.prototype.visitEmbeddedTemplate = function (ast, parent) {\n var nodeIndex = this.view.nodes.length;\n var fieldName = \"_anchor_\" + nodeIndex;\n this.view.fields.push(new ClassField(fieldName, importType(this.view.genConfig.renderTypes.renderComment)));\n this.view.createMethod.addStmt(THIS_EXPR.prop(fieldName)\n .set(ViewProperties.renderer.callMethod('createTemplateAnchor', [\n this._getParentRenderNode(parent),\n this.view.createMethod.resetDebugInfoExpr(nodeIndex, ast)\n ]))\n .toStmt());\n var renderNode = THIS_EXPR.prop(fieldName);\n var templateVariableBindings = ast.variables.map(function (varAst) { return [varAst.value.length > 0 ? varAst.value : IMPLICIT_TEMPLATE_VAR, varAst.name]; });\n var directives = ast.directives.map(function (directiveAst) { return directiveAst.directive; });\n var compileElement = new CompileElement(parent, this.view, nodeIndex, renderNode, ast, null, directives, ast.providers, ast.hasViewContainer, true, ast.references);\n this.view.nodes.push(compileElement);\n var compiledAnimations = this._animationCompiler.compileComponent(this.view.component, [ast]);\n this.nestedViewCount++;\n var embeddedView = new CompileView(this.view.component, this.view.genConfig, this.view.pipeMetas, NULL_EXPR, compiledAnimations.triggers, this.view.viewIndex + this.nestedViewCount, compileElement, templateVariableBindings);\n this.nestedViewCount += buildView(embeddedView, ast.children, this.targetDependencies);\n compileElement.beforeChildren();\n this._addRootNodeAndProject(compileElement);\n compileElement.afterChildren(0);\n return null;\n };\n ViewBuilderVisitor.prototype.visitAttr = function (ast, ctx) { return null; };\n ViewBuilderVisitor.prototype.visitDirective = function (ast, ctx) { return null; };\n ViewBuilderVisitor.prototype.visitEvent = function (ast, eventTargetAndNames) {\n return null;\n };\n ViewBuilderVisitor.prototype.visitReference = function (ast, ctx) { return null; };\n ViewBuilderVisitor.prototype.visitVariable = function (ast, ctx) { return null; };\n ViewBuilderVisitor.prototype.visitDirectiveProperty = function (ast, context) { return null; };\n ViewBuilderVisitor.prototype.visitElementProperty = function (ast, context) { return null; };\n return ViewBuilderVisitor;\n }());\n /**\n * Walks up the nodes while the direct parent is a container.\n *\n * Returns the outer container or the node itself when it is not a direct child of a container.\n *\n * @internal\n */\n function _getOuterContainerOrSelf(node) {\n var view = node.view;\n while (_isNgContainer(node.parent, view)) {\n node = node.parent;\n }\n return node;\n }\n /**\n * Walks up the nodes while they are container and returns the first parent which is not.\n *\n * Returns the parent of the outer container or the node itself when it is not a container.\n *\n * @internal\n */\n function _getOuterContainerParentOrSelf(el) {\n var view = el.view;\n while (_isNgContainer(el, view)) {\n el = el.parent;\n }\n return el;\n }\n function _isNgContainer(node, view) {\n return !node.isNull() && node.sourceAst.name === NG_CONTAINER_TAG &&\n node.view === view;\n }\n function _mergeHtmlAndDirectiveAttrs(declaredHtmlAttrs, directives) {\n var result = {};\n StringMapWrapper.forEach(declaredHtmlAttrs, function (value, key) { result[key] = value; });\n directives.forEach(function (directiveMeta) {\n StringMapWrapper.forEach(directiveMeta.hostAttributes, function (value, name) {\n var prevValue = result[name];\n result[name] = isPresent(prevValue) ? mergeAttributeValue(name, prevValue, value) : value;\n });\n });\n return mapToKeyValueArray(result);\n }\n function _readHtmlAttrs(attrs) {\n var htmlAttrs = {};\n attrs.forEach(function (ast) { htmlAttrs[ast.name] = ast.value; });\n return htmlAttrs;\n }\n function mergeAttributeValue(attrName, attrValue1, attrValue2) {\n if (attrName == CLASS_ATTR$1 || attrName == STYLE_ATTR) {\n return attrValue1 + \" \" + attrValue2;\n }\n else {\n return attrValue2;\n }\n }\n function mapToKeyValueArray(data) {\n var entryArray = [];\n StringMapWrapper.forEach(data, function (value, name) {\n entryArray.push([name, value]);\n });\n // We need to sort to get a defined output order\n // for tests and for caching generated artifacts...\n ListWrapper.sort(entryArray, function (entry1, entry2) { return StringWrapper.compare(entry1[0], entry2[0]); });\n return entryArray;\n }\n function createViewTopLevelStmts(view, targetStatements) {\n var nodeDebugInfosVar = NULL_EXPR;\n if (view.genConfig.genDebugInfo) {\n nodeDebugInfosVar = variable(\"nodeDebugInfos_\" + view.component.type.name + view.viewIndex); // fix highlighting: `\n targetStatements.push(nodeDebugInfosVar\n .set(literalArr(view.nodes.map(createStaticNodeDebugInfo), new ArrayType(new ExternalType(resolveIdentifier(Identifiers.StaticNodeDebugInfo)), [TypeModifier.Const])))\n .toDeclStmt(null, [StmtModifier.Final]));\n }\n var renderCompTypeVar = variable(\"renderType_\" + view.component.type.name); // fix highlighting: `\n if (view.viewIndex === 0) {\n targetStatements.push(renderCompTypeVar.set(NULL_EXPR)\n .toDeclStmt(importType(resolveIdentifier(Identifiers.RenderComponentType))));\n }\n var viewClass = createViewClass(view, renderCompTypeVar, nodeDebugInfosVar);\n targetStatements.push(viewClass);\n targetStatements.push(createViewFactory(view, viewClass, renderCompTypeVar));\n }\n function createStaticNodeDebugInfo(node) {\n var compileElement = node instanceof CompileElement ? node : null;\n var providerTokens = [];\n var componentToken = NULL_EXPR;\n var varTokenEntries = [];\n if (isPresent(compileElement)) {\n providerTokens = compileElement.getProviderTokens();\n if (isPresent(compileElement.component)) {\n componentToken = createDiTokenExpression(identifierToken(compileElement.component.type));\n }\n StringMapWrapper.forEach(compileElement.referenceTokens, function (token, varName) {\n varTokenEntries.push([varName, isPresent(token) ? createDiTokenExpression(token) : NULL_EXPR]);\n });\n }\n return importExpr(resolveIdentifier(Identifiers.StaticNodeDebugInfo))\n .instantiate([\n literalArr(providerTokens, new ArrayType(DYNAMIC_TYPE, [TypeModifier.Const])),\n componentToken,\n literalMap(varTokenEntries, new MapType(DYNAMIC_TYPE, [TypeModifier.Const]))\n ], importType(resolveIdentifier(Identifiers.StaticNodeDebugInfo), null, [TypeModifier.Const]));\n }\n function createViewClass(view, renderCompTypeVar, nodeDebugInfosVar) {\n var viewConstructorArgs = [\n new FnParam(ViewConstructorVars.viewUtils.name, importType(resolveIdentifier(Identifiers.ViewUtils))),\n new FnParam(ViewConstructorVars.parentInjector.name, importType(resolveIdentifier(Identifiers.Injector))),\n new FnParam(ViewConstructorVars.declarationEl.name, importType(resolveIdentifier(Identifiers.AppElement)))\n ];\n var superConstructorArgs = [\n variable(view.className), renderCompTypeVar, ViewTypeEnum.fromValue(view.viewType),\n ViewConstructorVars.viewUtils, ViewConstructorVars.parentInjector,\n ViewConstructorVars.declarationEl,\n ChangeDetectorStatusEnum.fromValue(getChangeDetectionMode(view))\n ];\n if (view.genConfig.genDebugInfo) {\n superConstructorArgs.push(nodeDebugInfosVar);\n }\n var viewConstructor = new ClassMethod(null, viewConstructorArgs, [SUPER_EXPR.callFn(superConstructorArgs).toStmt()]);\n var viewMethods = [\n new ClassMethod('createInternal', [new FnParam(rootSelectorVar.name, STRING_TYPE)], generateCreateMethod(view), importType(resolveIdentifier(Identifiers.AppElement))),\n new ClassMethod('injectorGetInternal', [\n new FnParam(InjectMethodVars.token.name, DYNAMIC_TYPE),\n // Note: Can't use o.INT_TYPE here as the method in AppView uses number\n new FnParam(InjectMethodVars.requestNodeIndex.name, NUMBER_TYPE),\n new FnParam(InjectMethodVars.notFoundResult.name, DYNAMIC_TYPE)\n ], addReturnValuefNotEmpty(view.injectorGetMethod.finish(), InjectMethodVars.notFoundResult), DYNAMIC_TYPE),\n new ClassMethod('detectChangesInternal', [new FnParam(DetectChangesVars.throwOnChange.name, BOOL_TYPE)], generateDetectChangesMethod(view)),\n new ClassMethod('dirtyParentQueriesInternal', [], view.dirtyParentQueriesMethod.finish()),\n new ClassMethod('destroyInternal', [], view.destroyMethod.finish()),\n new ClassMethod('detachInternal', [], view.detachMethod.finish())\n ].concat(view.eventHandlerMethods);\n var superClass = view.genConfig.genDebugInfo ? Identifiers.DebugAppView : Identifiers.AppView;\n var viewClass = new ClassStmt(view.className, importExpr(resolveIdentifier(superClass), [getContextType(view)]), view.fields, view.getters, viewConstructor, viewMethods.filter(function (method) { return method.body.length > 0; }));\n return viewClass;\n }\n function createViewFactory(view, viewClass, renderCompTypeVar) {\n var viewFactoryArgs = [\n new FnParam(ViewConstructorVars.viewUtils.name, importType(resolveIdentifier(Identifiers.ViewUtils))),\n new FnParam(ViewConstructorVars.parentInjector.name, importType(resolveIdentifier(Identifiers.Injector))),\n new FnParam(ViewConstructorVars.declarationEl.name, importType(resolveIdentifier(Identifiers.AppElement)))\n ];\n var initRenderCompTypeStmts = [];\n var templateUrlInfo;\n if (view.component.template.templateUrl == view.component.type.moduleUrl) {\n templateUrlInfo =\n view.component.type.moduleUrl + \" class \" + view.component.type.name + \" - inline template\";\n }\n else {\n templateUrlInfo = view.component.template.templateUrl;\n }\n if (view.viewIndex === 0) {\n var animationsExpr = literalMap(view.animations.map(function (entry) { return [entry.name, entry.fnVariable]; }));\n initRenderCompTypeStmts = [new IfStmt(renderCompTypeVar.identical(NULL_EXPR), [\n renderCompTypeVar\n .set(ViewConstructorVars.viewUtils.callMethod('createRenderComponentType', [\n literal(templateUrlInfo),\n literal(view.component.template.ngContentSelectors.length),\n ViewEncapsulationEnum.fromValue(view.component.template.encapsulation), view.styles,\n animationsExpr\n ]))\n .toStmt()\n ])];\n }\n return fn(viewFactoryArgs, initRenderCompTypeStmts.concat([new ReturnStatement(variable(viewClass.name)\n .instantiate(viewClass.constructorMethod.params.map(function (param) { return variable(param.name); })))]), importType(resolveIdentifier(Identifiers.AppView), [getContextType(view)]))\n .toDeclStmt(view.viewFactory.name, [StmtModifier.Final]);\n }\n function generateCreateMethod(view) {\n var parentRenderNodeExpr = NULL_EXPR;\n var parentRenderNodeStmts = [];\n if (view.viewType === ViewType.COMPONENT) {\n parentRenderNodeExpr = ViewProperties.renderer.callMethod('createViewRoot', [THIS_EXPR.prop('declarationAppElement').prop('nativeElement')]);\n parentRenderNodeStmts =\n [parentRenderNodeVar.set(parentRenderNodeExpr)\n .toDeclStmt(importType(view.genConfig.renderTypes.renderNode), [StmtModifier.Final])];\n }\n var resultExpr;\n if (view.viewType === ViewType.HOST) {\n resultExpr = view.nodes[0].appElement;\n }\n else {\n resultExpr = NULL_EXPR;\n }\n return parentRenderNodeStmts.concat(view.createMethod.finish(), [\n THIS_EXPR\n .callMethod('init', [\n createFlatArray(view.rootNodesOrAppElements),\n literalArr(view.nodes.map(function (node) { return node.renderNode; })), literalArr(view.disposables),\n literalArr(view.subscriptions)\n ])\n .toStmt(),\n new ReturnStatement(resultExpr)\n ]);\n }\n function generateDetectChangesMethod(view) {\n var stmts = [];\n if (view.detectChangesInInputsMethod.isEmpty() && view.updateContentQueriesMethod.isEmpty() &&\n view.afterContentLifecycleCallbacksMethod.isEmpty() &&\n view.detectChangesRenderPropertiesMethod.isEmpty() &&\n view.updateViewQueriesMethod.isEmpty() && view.afterViewLifecycleCallbacksMethod.isEmpty()) {\n return stmts;\n }\n ListWrapper.addAll(stmts, view.detectChangesInInputsMethod.finish());\n stmts.push(THIS_EXPR.callMethod('detectContentChildrenChanges', [DetectChangesVars.throwOnChange])\n .toStmt());\n var afterContentStmts = view.updateContentQueriesMethod.finish().concat(view.afterContentLifecycleCallbacksMethod.finish());\n if (afterContentStmts.length > 0) {\n stmts.push(new IfStmt(not(DetectChangesVars.throwOnChange), afterContentStmts));\n }\n ListWrapper.addAll(stmts, view.detectChangesRenderPropertiesMethod.finish());\n stmts.push(THIS_EXPR.callMethod('detectViewChildrenChanges', [DetectChangesVars.throwOnChange])\n .toStmt());\n var afterViewStmts = view.updateViewQueriesMethod.finish().concat(view.afterViewLifecycleCallbacksMethod.finish());\n if (afterViewStmts.length > 0) {\n stmts.push(new IfStmt(not(DetectChangesVars.throwOnChange), afterViewStmts));\n }\n var varStmts = [];\n var readVars = findReadVarNames(stmts);\n if (SetWrapper.has(readVars, DetectChangesVars.changed.name)) {\n varStmts.push(DetectChangesVars.changed.set(literal(true)).toDeclStmt(BOOL_TYPE));\n }\n if (SetWrapper.has(readVars, DetectChangesVars.changes.name)) {\n varStmts.push(DetectChangesVars.changes.set(NULL_EXPR)\n .toDeclStmt(new MapType(importType(resolveIdentifier(Identifiers.SimpleChange)))));\n }\n if (SetWrapper.has(readVars, DetectChangesVars.valUnwrapper.name)) {\n varStmts.push(DetectChangesVars.valUnwrapper\n .set(importExpr(resolveIdentifier(Identifiers.ValueUnwrapper)).instantiate([]))\n .toDeclStmt(null, [StmtModifier.Final]));\n }\n return varStmts.concat(stmts);\n }\n function addReturnValuefNotEmpty(statements, value) {\n if (statements.length > 0) {\n return statements.concat([new ReturnStatement(value)]);\n }\n else {\n return statements;\n }\n }\n function getContextType(view) {\n if (view.viewType === ViewType.COMPONENT) {\n return importType(view.component.type);\n }\n return DYNAMIC_TYPE;\n }\n function getChangeDetectionMode(view) {\n var mode;\n if (view.viewType === ViewType.COMPONENT) {\n mode = isDefaultChangeDetectionStrategy(view.component.changeDetection) ?\n ChangeDetectorStatus.CheckAlways :\n ChangeDetectorStatus.CheckOnce;\n }\n else {\n mode = ChangeDetectorStatus.CheckAlways;\n }\n return mode;\n }\n\n var ViewCompileResult = (function () {\n function ViewCompileResult(statements, viewFactoryVar, dependencies) {\n this.statements = statements;\n this.viewFactoryVar = viewFactoryVar;\n this.dependencies = dependencies;\n }\n return ViewCompileResult;\n }());\n var ViewCompiler = (function () {\n function ViewCompiler(_genConfig) {\n this._genConfig = _genConfig;\n this._animationCompiler = new AnimationCompiler();\n }\n ViewCompiler.prototype.compileComponent = function (component, template, styles, pipes) {\n var dependencies = [];\n var compiledAnimations = this._animationCompiler.compileComponent(component, template);\n var statements = [];\n var animationTriggers = compiledAnimations.triggers;\n animationTriggers.forEach(function (entry) {\n statements.push(entry.statesMapStatement);\n statements.push(entry.fnStatement);\n });\n var view = new CompileView(component, this._genConfig, pipes, styles, animationTriggers, 0, CompileElement.createNull(), []);\n buildView(view, template, dependencies);\n // Need to separate binding from creation to be able to refer to\n // variables that have been declared after usage.\n bindView(view, template, compiledAnimations.outputs);\n finishView(view, statements);\n return new ViewCompileResult(statements, view.viewFactory.name, dependencies);\n };\n ViewCompiler.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n ViewCompiler.ctorParameters = [\n { type: CompilerConfig, },\n ];\n return ViewCompiler;\n }());\n\n var SourceModule = (function () {\n function SourceModule(moduleUrl, source) {\n this.moduleUrl = moduleUrl;\n this.source = source;\n }\n return SourceModule;\n }());\n var NgModulesSummary = (function () {\n function NgModulesSummary(ngModuleByComponent) {\n this.ngModuleByComponent = ngModuleByComponent;\n }\n return NgModulesSummary;\n }());\n var OfflineCompiler = (function () {\n function OfflineCompiler(_metadataResolver, _directiveNormalizer, _templateParser, _styleCompiler, _viewCompiler, _ngModuleCompiler, _outputEmitter, _localeId, _translationFormat) {\n this._metadataResolver = _metadataResolver;\n this._directiveNormalizer = _directiveNormalizer;\n this._templateParser = _templateParser;\n this._styleCompiler = _styleCompiler;\n this._viewCompiler = _viewCompiler;\n this._ngModuleCompiler = _ngModuleCompiler;\n this._outputEmitter = _outputEmitter;\n this._localeId = _localeId;\n this._translationFormat = _translationFormat;\n }\n OfflineCompiler.prototype.analyzeModules = function (ngModules) {\n var _this = this;\n var ngModuleByComponent = new Map();\n ngModules.forEach(function (ngModule) {\n var ngModuleMeta = _this._metadataResolver.getNgModuleMetadata(ngModule);\n ngModuleMeta.declaredDirectives.forEach(function (dirMeta) {\n if (dirMeta.isComponent) {\n ngModuleByComponent.set(dirMeta.type.reference, ngModuleMeta);\n }\n });\n });\n return new NgModulesSummary(ngModuleByComponent);\n };\n OfflineCompiler.prototype.clearCache = function () {\n this._directiveNormalizer.clearCache();\n this._metadataResolver.clearCache();\n };\n OfflineCompiler.prototype.compile = function (moduleUrl, ngModulesSummary, components, ngModules) {\n var _this = this;\n var fileSuffix = _splitTypescriptSuffix(moduleUrl)[1];\n var statements = [];\n var exportedVars = [];\n var outputSourceModules = [];\n // compile all ng modules\n exportedVars.push.apply(exportedVars, ngModules.map(function (ngModuleType) { return _this._compileModule(ngModuleType, statements); }));\n // compile components\n return Promise\n .all(components.map(function (compType) {\n var compMeta = _this._metadataResolver.getDirectiveMetadata(compType);\n var ngModule = ngModulesSummary.ngModuleByComponent.get(compType);\n if (!ngModule) {\n throw new Error(\"Cannot determine the module for component \" + compMeta.type.name + \"!\");\n }\n return Promise\n .all([compMeta].concat(ngModule.transitiveModule.directives).map(function (dirMeta) { return _this._directiveNormalizer.normalizeDirective(dirMeta).asyncResult; }))\n .then(function (normalizedCompWithDirectives) {\n var compMeta = normalizedCompWithDirectives[0];\n var dirMetas = normalizedCompWithDirectives.slice(1);\n _assertComponent(compMeta);\n // compile styles\n var stylesCompileResults = _this._styleCompiler.compileComponent(compMeta);\n stylesCompileResults.externalStylesheets.forEach(function (compiledStyleSheet) {\n outputSourceModules.push(_this._codgenStyles(compiledStyleSheet, fileSuffix));\n });\n // compile components\n exportedVars.push(_this._compileComponentFactory(compMeta, fileSuffix, statements));\n exportedVars.push(_this._compileComponent(compMeta, dirMetas, ngModule.transitiveModule.pipes, ngModule.schemas, stylesCompileResults.componentStylesheet, fileSuffix, statements));\n });\n }))\n .then(function () {\n if (statements.length > 0) {\n outputSourceModules.unshift(_this._codegenSourceModule(_ngfactoryModuleUrl(moduleUrl), statements, exportedVars));\n }\n return outputSourceModules;\n });\n };\n OfflineCompiler.prototype._compileModule = function (ngModuleType, targetStatements) {\n var ngModule = this._metadataResolver.getNgModuleMetadata(ngModuleType);\n var appCompileResult = this._ngModuleCompiler.compile(ngModule, [\n new CompileProviderMetadata({ token: resolveIdentifierToken(Identifiers.LOCALE_ID), useValue: this._localeId }),\n new CompileProviderMetadata({\n token: resolveIdentifierToken(Identifiers.TRANSLATIONS_FORMAT),\n useValue: this._translationFormat\n })\n ]);\n appCompileResult.dependencies.forEach(function (dep) {\n dep.placeholder.name = _componentFactoryName(dep.comp);\n dep.placeholder.moduleUrl = _ngfactoryModuleUrl(dep.comp.moduleUrl);\n });\n targetStatements.push.apply(targetStatements, appCompileResult.statements);\n return appCompileResult.ngModuleFactoryVar;\n };\n OfflineCompiler.prototype._compileComponentFactory = function (compMeta, fileSuffix, targetStatements) {\n var hostMeta = createHostComponentMeta(compMeta);\n var hostViewFactoryVar = this._compileComponent(hostMeta, [compMeta], [], [], null, fileSuffix, targetStatements);\n var compFactoryVar = _componentFactoryName(compMeta.type);\n targetStatements.push(variable(compFactoryVar)\n .set(importExpr(resolveIdentifier(Identifiers.ComponentFactory), [importType(compMeta.type)])\n .instantiate([\n literal(compMeta.selector), variable(hostViewFactoryVar),\n importExpr(compMeta.type)\n ], importType(resolveIdentifier(Identifiers.ComponentFactory), [importType(compMeta.type)], [TypeModifier.Const])))\n .toDeclStmt(null, [StmtModifier.Final]));\n return compFactoryVar;\n };\n OfflineCompiler.prototype._compileComponent = function (compMeta, directives, pipes, schemas, componentStyles, fileSuffix, targetStatements) {\n var parsedTemplate = this._templateParser.parse(compMeta, compMeta.template.template, directives, pipes, schemas, compMeta.type.name);\n var stylesExpr = componentStyles ? variable(componentStyles.stylesVar) : literalArr([]);\n var viewResult = this._viewCompiler.compileComponent(compMeta, parsedTemplate, stylesExpr, pipes);\n if (componentStyles) {\n ListWrapper.addAll(targetStatements, _resolveStyleStatements(componentStyles, fileSuffix));\n }\n ListWrapper.addAll(targetStatements, _resolveViewStatements(viewResult));\n return viewResult.viewFactoryVar;\n };\n OfflineCompiler.prototype._codgenStyles = function (stylesCompileResult, fileSuffix) {\n _resolveStyleStatements(stylesCompileResult, fileSuffix);\n return this._codegenSourceModule(_stylesModuleUrl(stylesCompileResult.meta.moduleUrl, stylesCompileResult.isShimmed, fileSuffix), stylesCompileResult.statements, [stylesCompileResult.stylesVar]);\n };\n OfflineCompiler.prototype._codegenSourceModule = function (moduleUrl, statements, exportedVars) {\n return new SourceModule(moduleUrl, this._outputEmitter.emitStatements(moduleUrl, statements, exportedVars));\n };\n return OfflineCompiler;\n }());\n function _resolveViewStatements(compileResult) {\n compileResult.dependencies.forEach(function (dep) {\n if (dep instanceof ViewFactoryDependency) {\n var vfd = dep;\n vfd.placeholder.moduleUrl = _ngfactoryModuleUrl(vfd.comp.moduleUrl);\n }\n else if (dep instanceof ComponentFactoryDependency) {\n var cfd = dep;\n cfd.placeholder.name = _componentFactoryName(cfd.comp);\n cfd.placeholder.moduleUrl = _ngfactoryModuleUrl(cfd.comp.moduleUrl);\n }\n });\n return compileResult.statements;\n }\n function _resolveStyleStatements(compileResult, fileSuffix) {\n compileResult.dependencies.forEach(function (dep) {\n dep.valuePlaceholder.moduleUrl = _stylesModuleUrl(dep.moduleUrl, dep.isShimmed, fileSuffix);\n });\n return compileResult.statements;\n }\n function _ngfactoryModuleUrl(compUrl) {\n var urlWithSuffix = _splitTypescriptSuffix(compUrl);\n return urlWithSuffix[0] + \".ngfactory\" + urlWithSuffix[1];\n }\n function _componentFactoryName(comp) {\n return comp.name + \"NgFactory\";\n }\n function _stylesModuleUrl(stylesheetUrl, shim, suffix) {\n return shim ? stylesheetUrl + \".shim\" + suffix : \"\" + stylesheetUrl + suffix;\n }\n function _assertComponent(meta) {\n if (!meta.isComponent) {\n throw new Error(\"Could not compile '\" + meta.type.name + \"' because it is not a component.\");\n }\n }\n function _splitTypescriptSuffix(path) {\n if (/\\.d\\.ts$/.test(path)) {\n return [path.substring(0, path.length - 5), '.ts'];\n }\n var lastDot = path.lastIndexOf('.');\n if (lastDot !== -1) {\n return [path.substring(0, lastDot), path.substring(lastDot)];\n }\n else {\n return [path, ''];\n }\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * An interface for retrieving documents by URL that the compiler uses\n * to load templates.\n */\n var ResourceLoader = (function () {\n function ResourceLoader() {\n }\n ResourceLoader.prototype.get = function (url) { return null; };\n return ResourceLoader;\n }());\n\n var _ASSET_SCHEME = 'asset:';\n function createOfflineCompileUrlResolver() {\n return new UrlResolver(_ASSET_SCHEME);\n }\n /**\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\n */\n var DEFAULT_PACKAGE_URL_PROVIDER = {\n provide: _angular_core.PACKAGE_ROOT_URL,\n useValue: '/'\n };\n /**\n * Used by the {@link Compiler} when resolving HTML and CSS template URLs.\n *\n * This class can be overridden by the application developer to create custom behavior.\n *\n * See {@link Compiler}\n *\n * ## Example\n *\n * {@example compiler/ts/url_resolver/url_resolver.ts region='url_resolver'}\n *\n * @security When compiling templates at runtime, you must\n * ensure that the entire template comes from a trusted source.\n * Attacker-controlled data introduced by a template could expose your\n * application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).\n */\n var UrlResolver = (function () {\n function UrlResolver(_packagePrefix) {\n if (_packagePrefix === void 0) { _packagePrefix = null; }\n this._packagePrefix = _packagePrefix;\n }\n /**\n * Resolves the `url` given the `baseUrl`:\n * - when the `url` is null, the `baseUrl` is returned,\n * - if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of\n * `baseUrl` and `url`,\n * - if `url` is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the `url` is\n * returned as is (ignoring the `baseUrl`)\n */\n UrlResolver.prototype.resolve = function (baseUrl, url) {\n var resolvedUrl = url;\n if (isPresent(baseUrl) && baseUrl.length > 0) {\n resolvedUrl = _resolveUrl(baseUrl, resolvedUrl);\n }\n var resolvedParts = _split(resolvedUrl);\n var prefix = this._packagePrefix;\n if (isPresent(prefix) && isPresent(resolvedParts) &&\n resolvedParts[_ComponentIndex.Scheme] == 'package') {\n var path = resolvedParts[_ComponentIndex.Path];\n if (this._packagePrefix === _ASSET_SCHEME) {\n var pathSegements = path.split(/\\//);\n resolvedUrl = \"asset:\" + pathSegements[0] + \"/lib/\" + pathSegements.slice(1).join('/');\n }\n else {\n prefix = StringWrapper.stripRight(prefix, '/');\n path = StringWrapper.stripLeft(path, '/');\n return prefix + \"/\" + path;\n }\n }\n return resolvedUrl;\n };\n UrlResolver.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n UrlResolver.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [_angular_core.PACKAGE_ROOT_URL,] },] },\n ];\n return UrlResolver;\n }());\n /**\n * Extract the scheme of a URL.\n */\n function getUrlScheme(url) {\n var match = _split(url);\n return (match && match[_ComponentIndex.Scheme]) || '';\n }\n // The code below is adapted from Traceur:\n // https://github.com/google/traceur-compiler/blob/9511c1dafa972bf0de1202a8a863bad02f0f95a8/src/runtime/url.js\n /**\n * Builds a URI string from already-encoded parts.\n *\n * No encoding is performed. Any component may be omitted as either null or\n * undefined.\n *\n * @param opt_scheme The scheme such as 'http'.\n * @param opt_userInfo The user name before the '@'.\n * @param opt_domain The domain such as 'www.google.com', already\n * URI-encoded.\n * @param opt_port The port number.\n * @param opt_path The path, already URI-encoded. If it is not\n * empty, it must begin with a slash.\n * @param opt_queryData The URI-encoded query data.\n * @param opt_fragment The URI-encoded fragment identifier.\n * @return The fully combined URI.\n */\n function _buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {\n var out = [];\n if (isPresent(opt_scheme)) {\n out.push(opt_scheme + ':');\n }\n if (isPresent(opt_domain)) {\n out.push('//');\n if (isPresent(opt_userInfo)) {\n out.push(opt_userInfo + '@');\n }\n out.push(opt_domain);\n if (isPresent(opt_port)) {\n out.push(':' + opt_port);\n }\n }\n if (isPresent(opt_path)) {\n out.push(opt_path);\n }\n if (isPresent(opt_queryData)) {\n out.push('?' + opt_queryData);\n }\n if (isPresent(opt_fragment)) {\n out.push('#' + opt_fragment);\n }\n return out.join('');\n }\n /**\n * A regular expression for breaking a URI into its component parts.\n *\n * {@link http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#RFC2234} says\n * As the \"first-match-wins\" algorithm is identical to the \"greedy\"\n * disambiguation method used by POSIX regular expressions, it is natural and\n * commonplace to use a regular expression for parsing the potential five\n * components of a URI reference.\n *\n * The following line is the regular expression for breaking-down a\n * well-formed URI reference into its components.\n *\n * <pre>\n * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?\n * 12 3 4 5 6 7 8 9\n * </pre>\n *\n * The numbers in the second line above are only to assist readability; they\n * indicate the reference points for each subexpression (i.e., each paired\n * parenthesis). We refer to the value matched for subexpression <n> as $<n>.\n * For example, matching the above expression to\n * <pre>\n * http://www.ics.uci.edu/pub/ietf/uri/#Related\n * </pre>\n * results in the following subexpression matches:\n * <pre>\n * $1 = http:\n * $2 = http\n * $3 = //www.ics.uci.edu\n * $4 = www.ics.uci.edu\n * $5 = /pub/ietf/uri/\n * $6 = <undefined>\n * $7 = <undefined>\n * $8 = #Related\n * $9 = Related\n * </pre>\n * where <undefined> indicates that the component is not present, as is the\n * case for the query component in the above example. Therefore, we can\n * determine the value of the five components as\n * <pre>\n * scheme = $2\n * authority = $4\n * path = $5\n * query = $7\n * fragment = $9\n * </pre>\n *\n * The regular expression has been modified slightly to expose the\n * userInfo, domain, and port separately from the authority.\n * The modified version yields\n * <pre>\n * $1 = http scheme\n * $2 = <undefined> userInfo -\\\n * $3 = www.ics.uci.edu domain | authority\n * $4 = <undefined> port -/\n * $5 = /pub/ietf/uri/ path\n * $6 = <undefined> query without ?\n * $7 = Related fragment without #\n * </pre>\n * @type {!RegExp}\n * @internal\n */\n var _splitRe = new RegExp('^' +\n '(?:' +\n '([^:/?#.]+)' +\n // used by other URL parts such as :,\n // ?, /, #, and .\n ':)?' +\n '(?://' +\n '(?:([^/?#]*)@)?' +\n '([\\\\w\\\\d\\\\-\\\\u0100-\\\\uffff.%]*)' +\n // digits, dashes, dots, percent\n // escapes, and unicode characters.\n '(?::([0-9]+))?' +\n ')?' +\n '([^?#]+)?' +\n '(?:\\\\?([^#]*))?' +\n '(?:#(.*))?' +\n '$');\n /**\n * The index of each URI component in the return value of goog.uri.utils.split.\n * @enum {number}\n */\n var _ComponentIndex;\n (function (_ComponentIndex) {\n _ComponentIndex[_ComponentIndex[\"Scheme\"] = 1] = \"Scheme\";\n _ComponentIndex[_ComponentIndex[\"UserInfo\"] = 2] = \"UserInfo\";\n _ComponentIndex[_ComponentIndex[\"Domain\"] = 3] = \"Domain\";\n _ComponentIndex[_ComponentIndex[\"Port\"] = 4] = \"Port\";\n _ComponentIndex[_ComponentIndex[\"Path\"] = 5] = \"Path\";\n _ComponentIndex[_ComponentIndex[\"QueryData\"] = 6] = \"QueryData\";\n _ComponentIndex[_ComponentIndex[\"Fragment\"] = 7] = \"Fragment\";\n })(_ComponentIndex || (_ComponentIndex = {}));\n /**\n * Splits a URI into its component parts.\n *\n * Each component can be accessed via the component indices; for example:\n * <pre>\n * goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];\n * </pre>\n *\n * @param uri The URI string to examine.\n * @return Each component still URI-encoded.\n * Each component that is present will contain the encoded value, whereas\n * components that are not present will be undefined or empty, depending\n * on the browser's regular expression implementation. Never null, since\n * arbitrary strings may still look like path names.\n */\n function _split(uri) {\n return uri.match(_splitRe);\n }\n /**\n * Removes dot segments in given path component, as described in\n * RFC 3986, section 5.2.4.\n *\n * @param path A non-empty path component.\n * @return Path component with removed dot segments.\n */\n function _removeDotSegments(path) {\n if (path == '/')\n return '/';\n var leadingSlash = path[0] == '/' ? '/' : '';\n var trailingSlash = path[path.length - 1] === '/' ? '/' : '';\n var segments = path.split('/');\n var out = [];\n var up = 0;\n for (var pos = 0; pos < segments.length; pos++) {\n var segment = segments[pos];\n switch (segment) {\n case '':\n case '.':\n break;\n case '..':\n if (out.length > 0) {\n out.pop();\n }\n else {\n up++;\n }\n break;\n default:\n out.push(segment);\n }\n }\n if (leadingSlash == '') {\n while (up-- > 0) {\n out.unshift('..');\n }\n if (out.length === 0)\n out.push('.');\n }\n return leadingSlash + out.join('/') + trailingSlash;\n }\n /**\n * Takes an array of the parts from split and canonicalizes the path part\n * and then joins all the parts.\n */\n function _joinAndCanonicalizePath(parts) {\n var path = parts[_ComponentIndex.Path];\n path = isBlank(path) ? '' : _removeDotSegments(path);\n parts[_ComponentIndex.Path] = path;\n return _buildFromEncodedParts(parts[_ComponentIndex.Scheme], parts[_ComponentIndex.UserInfo], parts[_ComponentIndex.Domain], parts[_ComponentIndex.Port], path, parts[_ComponentIndex.QueryData], parts[_ComponentIndex.Fragment]);\n }\n /**\n * Resolves a URL.\n * @param base The URL acting as the base URL.\n * @param to The URL to resolve.\n */\n function _resolveUrl(base, url) {\n var parts = _split(encodeURI(url));\n var baseParts = _split(base);\n if (isPresent(parts[_ComponentIndex.Scheme])) {\n return _joinAndCanonicalizePath(parts);\n }\n else {\n parts[_ComponentIndex.Scheme] = baseParts[_ComponentIndex.Scheme];\n }\n for (var i = _ComponentIndex.Scheme; i <= _ComponentIndex.Port; i++) {\n if (isBlank(parts[i])) {\n parts[i] = baseParts[i];\n }\n }\n if (parts[_ComponentIndex.Path][0] == '/') {\n return _joinAndCanonicalizePath(parts);\n }\n var path = baseParts[_ComponentIndex.Path];\n if (isBlank(path))\n path = '/';\n var index = path.lastIndexOf('/');\n path = path.substring(0, index + 1) + parts[_ComponentIndex.Path];\n parts[_ComponentIndex.Path] = path;\n return _joinAndCanonicalizePath(parts);\n }\n\n var DirectiveNormalizer = (function () {\n function DirectiveNormalizer(_resourceLoader, _urlResolver, _htmlParser, _config) {\n this._resourceLoader = _resourceLoader;\n this._urlResolver = _urlResolver;\n this._htmlParser = _htmlParser;\n this._config = _config;\n this._resourceLoaderCache = new Map();\n }\n DirectiveNormalizer.prototype.clearCache = function () { this._resourceLoaderCache.clear(); };\n DirectiveNormalizer.prototype.clearCacheFor = function (normalizedDirective) {\n var _this = this;\n if (!normalizedDirective.isComponent) {\n return;\n }\n this._resourceLoaderCache.delete(normalizedDirective.template.templateUrl);\n normalizedDirective.template.externalStylesheets.forEach(function (stylesheet) { _this._resourceLoaderCache.delete(stylesheet.moduleUrl); });\n };\n DirectiveNormalizer.prototype._fetch = function (url) {\n var result = this._resourceLoaderCache.get(url);\n if (!result) {\n result = this._resourceLoader.get(url);\n this._resourceLoaderCache.set(url, result);\n }\n return result;\n };\n DirectiveNormalizer.prototype.normalizeDirective = function (directive) {\n var _this = this;\n if (!directive.isComponent) {\n // For non components there is nothing to be normalized yet.\n return new SyncAsyncResult(directive, Promise.resolve(directive));\n }\n var normalizedTemplateSync = null;\n var normalizedTemplateAsync;\n if (isPresent(directive.template.template)) {\n normalizedTemplateSync = this.normalizeTemplateSync(directive.type, directive.template);\n normalizedTemplateAsync = Promise.resolve(normalizedTemplateSync);\n }\n else if (directive.template.templateUrl) {\n normalizedTemplateAsync = this.normalizeTemplateAsync(directive.type, directive.template);\n }\n else {\n throw new Error(\"No template specified for component \" + directive.type.name);\n }\n if (normalizedTemplateSync && normalizedTemplateSync.styleUrls.length === 0) {\n // sync case\n var normalizedDirective = _cloneDirectiveWithTemplate(directive, normalizedTemplateSync);\n return new SyncAsyncResult(normalizedDirective, Promise.resolve(normalizedDirective));\n }\n else {\n // async case\n return new SyncAsyncResult(null, normalizedTemplateAsync\n .then(function (normalizedTemplate) { return _this.normalizeExternalStylesheets(normalizedTemplate); })\n .then(function (normalizedTemplate) {\n return _cloneDirectiveWithTemplate(directive, normalizedTemplate);\n }));\n }\n };\n DirectiveNormalizer.prototype.normalizeTemplateSync = function (directiveType, template) {\n return this.normalizeLoadedTemplate(directiveType, template, template.template, directiveType.moduleUrl);\n };\n DirectiveNormalizer.prototype.normalizeTemplateAsync = function (directiveType, template) {\n var _this = this;\n var templateUrl = this._urlResolver.resolve(directiveType.moduleUrl, template.templateUrl);\n return this._fetch(templateUrl)\n .then(function (value) { return _this.normalizeLoadedTemplate(directiveType, template, value, templateUrl); });\n };\n DirectiveNormalizer.prototype.normalizeLoadedTemplate = function (directiveType, templateMeta, template, templateAbsUrl) {\n var interpolationConfig = InterpolationConfig.fromArray(templateMeta.interpolation);\n var rootNodesAndErrors = this._htmlParser.parse(template, directiveType.name, false, interpolationConfig);\n if (rootNodesAndErrors.errors.length > 0) {\n var errorString = rootNodesAndErrors.errors.join('\\n');\n throw new Error(\"Template parse errors:\\n\" + errorString);\n }\n var templateMetadataStyles = this.normalizeStylesheet(new CompileStylesheetMetadata({\n styles: templateMeta.styles,\n styleUrls: templateMeta.styleUrls,\n moduleUrl: directiveType.moduleUrl\n }));\n var visitor = new TemplatePreparseVisitor();\n visitAll(visitor, rootNodesAndErrors.rootNodes);\n var templateStyles = this.normalizeStylesheet(new CompileStylesheetMetadata({ styles: visitor.styles, styleUrls: visitor.styleUrls, moduleUrl: templateAbsUrl }));\n var allStyles = templateMetadataStyles.styles.concat(templateStyles.styles);\n var allStyleUrls = templateMetadataStyles.styleUrls.concat(templateStyles.styleUrls);\n var encapsulation = templateMeta.encapsulation;\n if (isBlank(encapsulation)) {\n encapsulation = this._config.defaultEncapsulation;\n }\n if (encapsulation === _angular_core.ViewEncapsulation.Emulated && allStyles.length === 0 &&\n allStyleUrls.length === 0) {\n encapsulation = _angular_core.ViewEncapsulation.None;\n }\n return new CompileTemplateMetadata({\n encapsulation: encapsulation,\n template: template,\n templateUrl: templateAbsUrl,\n styles: allStyles,\n styleUrls: allStyleUrls,\n externalStylesheets: templateMeta.externalStylesheets,\n ngContentSelectors: visitor.ngContentSelectors,\n animations: templateMeta.animations,\n interpolation: templateMeta.interpolation\n });\n };\n DirectiveNormalizer.prototype.normalizeExternalStylesheets = function (templateMeta) {\n return this._loadMissingExternalStylesheets(templateMeta.styleUrls)\n .then(function (externalStylesheets) { return new CompileTemplateMetadata({\n encapsulation: templateMeta.encapsulation,\n template: templateMeta.template,\n templateUrl: templateMeta.templateUrl,\n styles: templateMeta.styles,\n styleUrls: templateMeta.styleUrls,\n externalStylesheets: externalStylesheets,\n ngContentSelectors: templateMeta.ngContentSelectors,\n animations: templateMeta.animations,\n interpolation: templateMeta.interpolation\n }); });\n };\n DirectiveNormalizer.prototype._loadMissingExternalStylesheets = function (styleUrls, loadedStylesheets) {\n var _this = this;\n if (loadedStylesheets === void 0) { loadedStylesheets = new Map(); }\n return Promise\n .all(styleUrls.filter(function (styleUrl) { return !loadedStylesheets.has(styleUrl); })\n .map(function (styleUrl) { return _this._fetch(styleUrl).then(function (loadedStyle) {\n var stylesheet = _this.normalizeStylesheet(new CompileStylesheetMetadata({ styles: [loadedStyle], moduleUrl: styleUrl }));\n loadedStylesheets.set(styleUrl, stylesheet);\n return _this._loadMissingExternalStylesheets(stylesheet.styleUrls, loadedStylesheets);\n }); }))\n .then(function (_) { return MapWrapper.values(loadedStylesheets); });\n };\n DirectiveNormalizer.prototype.normalizeStylesheet = function (stylesheet) {\n var _this = this;\n var allStyleUrls = stylesheet.styleUrls.filter(isStyleUrlResolvable)\n .map(function (url) { return _this._urlResolver.resolve(stylesheet.moduleUrl, url); });\n var allStyles = stylesheet.styles.map(function (style) {\n var styleWithImports = extractStyleUrls(_this._urlResolver, stylesheet.moduleUrl, style);\n allStyleUrls.push.apply(allStyleUrls, styleWithImports.styleUrls);\n return styleWithImports.style;\n });\n return new CompileStylesheetMetadata({ styles: allStyles, styleUrls: allStyleUrls, moduleUrl: stylesheet.moduleUrl });\n };\n DirectiveNormalizer.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n DirectiveNormalizer.ctorParameters = [\n { type: ResourceLoader, },\n { type: UrlResolver, },\n { type: HtmlParser, },\n { type: CompilerConfig, },\n ];\n return DirectiveNormalizer;\n }());\n var TemplatePreparseVisitor = (function () {\n function TemplatePreparseVisitor() {\n this.ngContentSelectors = [];\n this.styles = [];\n this.styleUrls = [];\n this.ngNonBindableStackCount = 0;\n }\n TemplatePreparseVisitor.prototype.visitElement = function (ast, context) {\n var preparsedElement = preparseElement(ast);\n switch (preparsedElement.type) {\n case PreparsedElementType.NG_CONTENT:\n if (this.ngNonBindableStackCount === 0) {\n this.ngContentSelectors.push(preparsedElement.selectAttr);\n }\n break;\n case PreparsedElementType.STYLE:\n var textContent = '';\n ast.children.forEach(function (child) {\n if (child instanceof Text) {\n textContent += child.value;\n }\n });\n this.styles.push(textContent);\n break;\n case PreparsedElementType.STYLESHEET:\n this.styleUrls.push(preparsedElement.hrefAttr);\n break;\n default:\n break;\n }\n if (preparsedElement.nonBindable) {\n this.ngNonBindableStackCount++;\n }\n visitAll(this, ast.children);\n if (preparsedElement.nonBindable) {\n this.ngNonBindableStackCount--;\n }\n return null;\n };\n TemplatePreparseVisitor.prototype.visitComment = function (ast, context) { return null; };\n TemplatePreparseVisitor.prototype.visitAttribute = function (ast, context) { return null; };\n TemplatePreparseVisitor.prototype.visitText = function (ast, context) { return null; };\n TemplatePreparseVisitor.prototype.visitExpansion = function (ast, context) { return null; };\n TemplatePreparseVisitor.prototype.visitExpansionCase = function (ast, context) { return null; };\n return TemplatePreparseVisitor;\n }());\n function _cloneDirectiveWithTemplate(directive, template) {\n return new CompileDirectiveMetadata({\n type: directive.type,\n isComponent: directive.isComponent,\n selector: directive.selector,\n exportAs: directive.exportAs,\n changeDetection: directive.changeDetection,\n inputs: directive.inputs,\n outputs: directive.outputs,\n hostListeners: directive.hostListeners,\n hostProperties: directive.hostProperties,\n hostAttributes: directive.hostAttributes,\n providers: directive.providers,\n viewProviders: directive.viewProviders,\n queries: directive.queries,\n viewQueries: directive.viewQueries,\n entryComponents: directive.entryComponents,\n template: template\n });\n }\n\n function _isDirectiveMetadata(type) {\n return type instanceof _angular_core.DirectiveMetadata;\n }\n /*\n * Resolve a `Type` for {@link DirectiveMetadata}.\n *\n * This interface can be overridden by the application developer to create custom behavior.\n *\n * See {@link Compiler}\n */\n var DirectiveResolver = (function () {\n function DirectiveResolver(_reflector) {\n if (_reflector === void 0) { _reflector = reflector; }\n this._reflector = _reflector;\n }\n /**\n * Return {@link DirectiveMetadata} for a given `Type`.\n */\n DirectiveResolver.prototype.resolve = function (type, throwIfNotFound) {\n if (throwIfNotFound === void 0) { throwIfNotFound = true; }\n var typeMetadata = this._reflector.annotations(_angular_core.resolveForwardRef(type));\n if (isPresent(typeMetadata)) {\n var metadata = typeMetadata.find(_isDirectiveMetadata);\n if (isPresent(metadata)) {\n var propertyMetadata = this._reflector.propMetadata(type);\n return this._mergeWithPropertyMetadata(metadata, propertyMetadata, type);\n }\n }\n if (throwIfNotFound) {\n throw new Error(\"No Directive annotation found on \" + stringify(type));\n }\n return null;\n };\n DirectiveResolver.prototype._mergeWithPropertyMetadata = function (dm, propertyMetadata, directiveType) {\n var inputs = [];\n var outputs = [];\n var host = {};\n var queries = {};\n StringMapWrapper.forEach(propertyMetadata, function (metadata, propName) {\n metadata.forEach(function (a) {\n if (a instanceof _angular_core.InputMetadata) {\n if (isPresent(a.bindingPropertyName)) {\n inputs.push(propName + \": \" + a.bindingPropertyName);\n }\n else {\n inputs.push(propName);\n }\n }\n else if (a instanceof _angular_core.OutputMetadata) {\n if (isPresent(a.bindingPropertyName)) {\n outputs.push(propName + \": \" + a.bindingPropertyName);\n }\n else {\n outputs.push(propName);\n }\n }\n else if (a instanceof _angular_core.HostBindingMetadata) {\n if (isPresent(a.hostPropertyName)) {\n host[(\"[\" + a.hostPropertyName + \"]\")] = propName;\n }\n else {\n host[(\"[\" + propName + \"]\")] = propName;\n }\n }\n else if (a instanceof _angular_core.HostListenerMetadata) {\n var args = isPresent(a.args) ? a.args.join(', ') : '';\n host[(\"(\" + a.eventName + \")\")] = propName + \"(\" + args + \")\";\n }\n else if (a instanceof _angular_core.QueryMetadata) {\n queries[propName] = a;\n }\n });\n });\n return this._merge(dm, inputs, outputs, host, queries, directiveType);\n };\n DirectiveResolver.prototype._extractPublicName = function (def) { return splitAtColon(def, [null, def])[1].trim(); };\n DirectiveResolver.prototype._merge = function (dm, inputs, outputs, host, queries, directiveType) {\n var _this = this;\n var mergedInputs;\n if (isPresent(dm.inputs)) {\n var inputNames_1 = dm.inputs.map(function (def) { return _this._extractPublicName(def); });\n inputs.forEach(function (inputDef) {\n var publicName = _this._extractPublicName(inputDef);\n if (inputNames_1.indexOf(publicName) > -1) {\n throw new Error(\"Input '\" + publicName + \"' defined multiple times in '\" + stringify(directiveType) + \"'\");\n }\n });\n mergedInputs = dm.inputs.concat(inputs);\n }\n else {\n mergedInputs = inputs;\n }\n var mergedOutputs;\n if (isPresent(dm.outputs)) {\n var outputNames_1 = dm.outputs.map(function (def) { return _this._extractPublicName(def); });\n outputs.forEach(function (outputDef) {\n var publicName = _this._extractPublicName(outputDef);\n if (outputNames_1.indexOf(publicName) > -1) {\n throw new Error(\"Output event '\" + publicName + \"' defined multiple times in '\" + stringify(directiveType) + \"'\");\n }\n });\n mergedOutputs = dm.outputs.concat(outputs);\n }\n else {\n mergedOutputs = outputs;\n }\n var mergedHost = isPresent(dm.host) ? StringMapWrapper.merge(dm.host, host) : host;\n var mergedQueries = isPresent(dm.queries) ? StringMapWrapper.merge(dm.queries, queries) : queries;\n if (dm instanceof _angular_core.ComponentMetadata) {\n return new _angular_core.ComponentMetadata({\n selector: dm.selector,\n inputs: mergedInputs,\n outputs: mergedOutputs,\n host: mergedHost,\n exportAs: dm.exportAs,\n moduleId: dm.moduleId,\n queries: mergedQueries,\n changeDetection: dm.changeDetection,\n providers: dm.providers,\n viewProviders: dm.viewProviders,\n entryComponents: dm.entryComponents,\n template: dm.template,\n templateUrl: dm.templateUrl,\n styles: dm.styles,\n styleUrls: dm.styleUrls,\n encapsulation: dm.encapsulation,\n animations: dm.animations,\n interpolation: dm.interpolation\n });\n }\n else {\n return new _angular_core.DirectiveMetadata({\n selector: dm.selector,\n inputs: mergedInputs,\n outputs: mergedOutputs,\n host: mergedHost,\n exportAs: dm.exportAs,\n queries: mergedQueries,\n providers: dm.providers\n });\n }\n };\n DirectiveResolver.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n DirectiveResolver.ctorParameters = [\n { type: ReflectorReader, },\n ];\n return DirectiveResolver;\n }());\n\n var LIFECYCLE_INTERFACES = MapWrapper.createFromPairs([\n [LifecycleHooks.OnInit, _angular_core.OnInit],\n [LifecycleHooks.OnDestroy, _angular_core.OnDestroy],\n [LifecycleHooks.DoCheck, _angular_core.DoCheck],\n [LifecycleHooks.OnChanges, _angular_core.OnChanges],\n [LifecycleHooks.AfterContentInit, _angular_core.AfterContentInit],\n [LifecycleHooks.AfterContentChecked, _angular_core.AfterContentChecked],\n [LifecycleHooks.AfterViewInit, _angular_core.AfterViewInit],\n [LifecycleHooks.AfterViewChecked, _angular_core.AfterViewChecked],\n ]);\n var LIFECYCLE_PROPS = MapWrapper.createFromPairs([\n [LifecycleHooks.OnInit, 'ngOnInit'],\n [LifecycleHooks.OnDestroy, 'ngOnDestroy'],\n [LifecycleHooks.DoCheck, 'ngDoCheck'],\n [LifecycleHooks.OnChanges, 'ngOnChanges'],\n [LifecycleHooks.AfterContentInit, 'ngAfterContentInit'],\n [LifecycleHooks.AfterContentChecked, 'ngAfterContentChecked'],\n [LifecycleHooks.AfterViewInit, 'ngAfterViewInit'],\n [LifecycleHooks.AfterViewChecked, 'ngAfterViewChecked'],\n ]);\n function hasLifecycleHook(hook, token) {\n var lcInterface = LIFECYCLE_INTERFACES.get(hook);\n var lcProp = LIFECYCLE_PROPS.get(hook);\n return reflector.hasLifecycleHook(token, lcInterface, lcProp);\n }\n\n function _isNgModuleMetadata(obj) {\n return obj instanceof _angular_core.NgModuleMetadata;\n }\n /**\n * Resolves types to {@link NgModuleMetadata}.\n */\n var NgModuleResolver = (function () {\n function NgModuleResolver(_reflector) {\n if (_reflector === void 0) { _reflector = reflector; }\n this._reflector = _reflector;\n }\n NgModuleResolver.prototype.resolve = function (type, throwIfNotFound) {\n if (throwIfNotFound === void 0) { throwIfNotFound = true; }\n var ngModuleMeta = this._reflector.annotations(type).find(_isNgModuleMetadata);\n if (isPresent(ngModuleMeta)) {\n return ngModuleMeta;\n }\n else {\n if (throwIfNotFound) {\n throw new Error(\"No NgModule metadata found for '\" + stringify(type) + \"'.\");\n }\n return null;\n }\n };\n NgModuleResolver.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n NgModuleResolver.ctorParameters = [\n { type: ReflectorReader, },\n ];\n return NgModuleResolver;\n }());\n\n function _isPipeMetadata(type) {\n return type instanceof _angular_core.PipeMetadata;\n }\n /**\n * Resolve a `Type` for {@link PipeMetadata}.\n *\n * This interface can be overridden by the application developer to create custom behavior.\n *\n * See {@link Compiler}\n */\n var PipeResolver = (function () {\n function PipeResolver(_reflector) {\n if (_reflector === void 0) { _reflector = reflector; }\n this._reflector = _reflector;\n }\n /**\n * Return {@link PipeMetadata} for a given `Type`.\n */\n PipeResolver.prototype.resolve = function (type, throwIfNotFound) {\n if (throwIfNotFound === void 0) { throwIfNotFound = true; }\n var metas = this._reflector.annotations(_angular_core.resolveForwardRef(type));\n if (isPresent(metas)) {\n var annotation = metas.find(_isPipeMetadata);\n if (isPresent(annotation)) {\n return annotation;\n }\n }\n if (throwIfNotFound) {\n throw new Error(\"No Pipe decorator found on \" + stringify(type));\n }\n return null;\n };\n PipeResolver.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n PipeResolver.ctorParameters = [\n { type: ReflectorReader, },\n ];\n return PipeResolver;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$14 = (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 };\n var CompileMetadataResolver = (function () {\n function CompileMetadataResolver(_ngModuleResolver, _directiveResolver, _pipeResolver, _schemaRegistry, _reflector) {\n if (_reflector === void 0) { _reflector = reflector; }\n this._ngModuleResolver = _ngModuleResolver;\n this._directiveResolver = _directiveResolver;\n this._pipeResolver = _pipeResolver;\n this._schemaRegistry = _schemaRegistry;\n this._reflector = _reflector;\n this._directiveCache = new Map();\n this._pipeCache = new Map();\n this._ngModuleCache = new Map();\n this._ngModuleOfTypes = new Map();\n this._anonymousTypes = new Map();\n this._anonymousTypeIndex = 0;\n }\n CompileMetadataResolver.prototype.sanitizeTokenName = function (token) {\n var identifier = stringify(token);\n if (identifier.indexOf('(') >= 0) {\n // case: anonymous functions!\n var found = this._anonymousTypes.get(token);\n if (isBlank(found)) {\n this._anonymousTypes.set(token, this._anonymousTypeIndex++);\n found = this._anonymousTypes.get(token);\n }\n identifier = \"anonymous_token_\" + found + \"_\";\n }\n return sanitizeIdentifier(identifier);\n };\n CompileMetadataResolver.prototype.clearCacheFor = function (type) {\n this._directiveCache.delete(type);\n this._pipeCache.delete(type);\n this._ngModuleOfTypes.delete(type);\n // Clear all of the NgModuleMetadata as they contain transitive information!\n this._ngModuleCache.clear();\n };\n CompileMetadataResolver.prototype.clearCache = function () {\n this._directiveCache.clear();\n this._pipeCache.clear();\n this._ngModuleCache.clear();\n this._ngModuleOfTypes.clear();\n };\n CompileMetadataResolver.prototype.getAnimationEntryMetadata = function (entry) {\n var _this = this;\n var defs = entry.definitions.map(function (def) { return _this.getAnimationStateMetadata(def); });\n return new CompileAnimationEntryMetadata(entry.name, defs);\n };\n CompileMetadataResolver.prototype.getAnimationStateMetadata = function (value) {\n if (value instanceof _angular_core.AnimationStateDeclarationMetadata) {\n var styles = this.getAnimationStyleMetadata(value.styles);\n return new CompileAnimationStateDeclarationMetadata(value.stateNameExpr, styles);\n }\n else if (value instanceof _angular_core.AnimationStateTransitionMetadata) {\n return new CompileAnimationStateTransitionMetadata(value.stateChangeExpr, this.getAnimationMetadata(value.steps));\n }\n return null;\n };\n CompileMetadataResolver.prototype.getAnimationStyleMetadata = function (value) {\n return new CompileAnimationStyleMetadata(value.offset, value.styles);\n };\n CompileMetadataResolver.prototype.getAnimationMetadata = function (value) {\n var _this = this;\n if (value instanceof _angular_core.AnimationStyleMetadata) {\n return this.getAnimationStyleMetadata(value);\n }\n else if (value instanceof _angular_core.AnimationKeyframesSequenceMetadata) {\n return new CompileAnimationKeyframesSequenceMetadata(value.steps.map(function (entry) { return _this.getAnimationStyleMetadata(entry); }));\n }\n else if (value instanceof _angular_core.AnimationAnimateMetadata) {\n var animateData = this\n .getAnimationMetadata(value.styles);\n return new CompileAnimationAnimateMetadata(value.timings, animateData);\n }\n else if (value instanceof _angular_core.AnimationWithStepsMetadata) {\n var steps = value.steps.map(function (step) { return _this.getAnimationMetadata(step); });\n if (value instanceof _angular_core.AnimationGroupMetadata) {\n return new CompileAnimationGroupMetadata(steps);\n }\n else {\n return new CompileAnimationSequenceMetadata(steps);\n }\n }\n return null;\n };\n CompileMetadataResolver.prototype.getDirectiveMetadata = function (directiveType, throwIfNotFound) {\n var _this = this;\n if (throwIfNotFound === void 0) { throwIfNotFound = true; }\n directiveType = _angular_core.resolveForwardRef(directiveType);\n var meta = this._directiveCache.get(directiveType);\n if (isBlank(meta)) {\n var dirMeta = this._directiveResolver.resolve(directiveType, throwIfNotFound);\n if (!dirMeta) {\n return null;\n }\n var templateMeta = null;\n var changeDetectionStrategy = null;\n var viewProviders = [];\n var moduleUrl = staticTypeModuleUrl(directiveType);\n var entryComponentMetadata = [];\n var selector = dirMeta.selector;\n if (dirMeta instanceof _angular_core.ComponentMetadata) {\n var cmpMeta = dirMeta;\n assertArrayOfStrings('styles', cmpMeta.styles);\n assertInterpolationSymbols('interpolation', cmpMeta.interpolation);\n var animations = isPresent(cmpMeta.animations) ?\n cmpMeta.animations.map(function (e) { return _this.getAnimationEntryMetadata(e); }) :\n null;\n assertArrayOfStrings('styles', cmpMeta.styles);\n assertArrayOfStrings('styleUrls', cmpMeta.styleUrls);\n templateMeta = new CompileTemplateMetadata({\n encapsulation: cmpMeta.encapsulation,\n template: cmpMeta.template,\n templateUrl: cmpMeta.templateUrl,\n styles: cmpMeta.styles,\n styleUrls: cmpMeta.styleUrls,\n animations: animations,\n interpolation: cmpMeta.interpolation\n });\n changeDetectionStrategy = cmpMeta.changeDetection;\n if (isPresent(dirMeta.viewProviders)) {\n viewProviders = this.getProvidersMetadata(dirMeta.viewProviders, entryComponentMetadata, \"viewProviders for \\\"\" + stringify(directiveType) + \"\\\"\");\n }\n moduleUrl = componentModuleUrl(this._reflector, directiveType, cmpMeta);\n if (cmpMeta.entryComponents) {\n entryComponentMetadata =\n flattenArray(cmpMeta.entryComponents)\n .map(function (type) { return _this.getTypeMetadata(type, staticTypeModuleUrl(type)); })\n .concat(entryComponentMetadata);\n }\n if (!selector) {\n selector = this._schemaRegistry.getDefaultComponentElementName();\n }\n }\n else {\n if (!selector) {\n throw new Error(\"Directive \" + stringify(directiveType) + \" has no selector, please add it!\");\n }\n }\n var providers = [];\n if (isPresent(dirMeta.providers)) {\n providers = this.getProvidersMetadata(dirMeta.providers, entryComponentMetadata, \"providers for \\\"\" + stringify(directiveType) + \"\\\"\");\n }\n var queries = [];\n var viewQueries = [];\n if (isPresent(dirMeta.queries)) {\n queries = this.getQueriesMetadata(dirMeta.queries, false, directiveType);\n viewQueries = this.getQueriesMetadata(dirMeta.queries, true, directiveType);\n }\n meta = CompileDirectiveMetadata.create({\n selector: selector,\n exportAs: dirMeta.exportAs,\n isComponent: isPresent(templateMeta),\n type: this.getTypeMetadata(directiveType, moduleUrl),\n template: templateMeta,\n changeDetection: changeDetectionStrategy,\n inputs: dirMeta.inputs,\n outputs: dirMeta.outputs,\n host: dirMeta.host,\n providers: providers,\n viewProviders: viewProviders,\n queries: queries,\n viewQueries: viewQueries,\n entryComponents: entryComponentMetadata\n });\n this._directiveCache.set(directiveType, meta);\n }\n return meta;\n };\n CompileMetadataResolver.prototype.getNgModuleMetadata = function (moduleType, throwIfNotFound) {\n var _this = this;\n if (throwIfNotFound === void 0) { throwIfNotFound = true; }\n moduleType = _angular_core.resolveForwardRef(moduleType);\n var compileMeta = this._ngModuleCache.get(moduleType);\n if (!compileMeta) {\n var meta = this._ngModuleResolver.resolve(moduleType, throwIfNotFound);\n if (!meta) {\n return null;\n }\n var declaredDirectives_1 = [];\n var exportedDirectives_1 = [];\n var declaredPipes_1 = [];\n var exportedPipes_1 = [];\n var importedModules_1 = [];\n var exportedModules_1 = [];\n var providers_1 = [];\n var entryComponents_1 = [];\n var bootstrapComponents = [];\n var schemas = [];\n if (meta.imports) {\n flattenArray(meta.imports).forEach(function (importedType) {\n var importedModuleType;\n if (isValidType(importedType)) {\n importedModuleType = importedType;\n }\n else if (importedType && importedType.ngModule) {\n var moduleWithProviders = importedType;\n importedModuleType = moduleWithProviders.ngModule;\n if (moduleWithProviders.providers) {\n providers_1.push.apply(providers_1, _this.getProvidersMetadata(moduleWithProviders.providers, entryComponents_1, \"provider for the NgModule '\" + stringify(importedModuleType) + \"'\"));\n }\n }\n if (importedModuleType) {\n var importedMeta = _this.getNgModuleMetadata(importedModuleType, false);\n if (importedMeta === null) {\n throw new Error(\"Unexpected \" + _this._getTypeDescriptor(importedType) + \" '\" + stringify(importedType) + \"' imported by the module '\" + stringify(moduleType) + \"'\");\n }\n importedModules_1.push(importedMeta);\n }\n else {\n throw new Error(\"Unexpected value '\" + stringify(importedType) + \"' imported by the module '\" + stringify(moduleType) + \"'\");\n }\n });\n }\n if (meta.exports) {\n flattenArray(meta.exports).forEach(function (exportedType) {\n if (!isValidType(exportedType)) {\n throw new Error(\"Unexpected value '\" + stringify(exportedType) + \"' exported by the module '\" + stringify(moduleType) + \"'\");\n }\n var exportedDirMeta;\n var exportedPipeMeta;\n var exportedModuleMeta;\n if (exportedDirMeta = _this.getDirectiveMetadata(exportedType, false)) {\n exportedDirectives_1.push(exportedDirMeta);\n }\n else if (exportedPipeMeta = _this.getPipeMetadata(exportedType, false)) {\n exportedPipes_1.push(exportedPipeMeta);\n }\n else if (exportedModuleMeta = _this.getNgModuleMetadata(exportedType, false)) {\n exportedModules_1.push(exportedModuleMeta);\n }\n else {\n throw new Error(\"Unexpected \" + _this._getTypeDescriptor(exportedType) + \" '\" + stringify(exportedType) + \"' exported by the module '\" + stringify(moduleType) + \"'\");\n }\n });\n }\n // Note: This will be modified later, so we rely on\n // getting a new instance every time!\n var transitiveModule_1 = this._getTransitiveNgModuleMetadata(importedModules_1, exportedModules_1);\n if (meta.declarations) {\n flattenArray(meta.declarations).forEach(function (declaredType) {\n if (!isValidType(declaredType)) {\n throw new Error(\"Unexpected value '\" + stringify(declaredType) + \"' declared by the module '\" + stringify(moduleType) + \"'\");\n }\n var declaredDirMeta;\n var declaredPipeMeta;\n if (declaredDirMeta = _this.getDirectiveMetadata(declaredType, false)) {\n _this._addDirectiveToModule(declaredDirMeta, moduleType, transitiveModule_1, declaredDirectives_1, true);\n }\n else if (declaredPipeMeta = _this.getPipeMetadata(declaredType, false)) {\n _this._addPipeToModule(declaredPipeMeta, moduleType, transitiveModule_1, declaredPipes_1, true);\n }\n else {\n throw new Error(\"Unexpected \" + _this._getTypeDescriptor(declaredType) + \" '\" + stringify(declaredType) + \"' declared by the module '\" + stringify(moduleType) + \"'\");\n }\n });\n }\n // The providers of the module have to go last\n // so that they overwrite any other provider we already added.\n if (meta.providers) {\n providers_1.push.apply(providers_1, this.getProvidersMetadata(meta.providers, entryComponents_1, \"provider for the NgModule '\" + stringify(moduleType) + \"'\"));\n }\n if (meta.entryComponents) {\n entryComponents_1.push.apply(entryComponents_1, flattenArray(meta.entryComponents)\n .map(function (type) { return _this.getTypeMetadata(type, staticTypeModuleUrl(type)); }));\n }\n if (meta.bootstrap) {\n bootstrapComponents.push.apply(bootstrapComponents, flattenArray(meta.bootstrap)\n .map(function (type) { return _this.getTypeMetadata(type, staticTypeModuleUrl(type)); }));\n }\n entryComponents_1.push.apply(entryComponents_1, bootstrapComponents);\n if (meta.schemas) {\n schemas.push.apply(schemas, flattenArray(meta.schemas));\n }\n (_a = transitiveModule_1.entryComponents).push.apply(_a, entryComponents_1);\n (_b = transitiveModule_1.providers).push.apply(_b, providers_1);\n compileMeta = new CompileNgModuleMetadata({\n type: this.getTypeMetadata(moduleType, staticTypeModuleUrl(moduleType)),\n providers: providers_1,\n entryComponents: entryComponents_1,\n bootstrapComponents: bootstrapComponents,\n schemas: schemas,\n declaredDirectives: declaredDirectives_1,\n exportedDirectives: exportedDirectives_1,\n declaredPipes: declaredPipes_1,\n exportedPipes: exportedPipes_1,\n importedModules: importedModules_1,\n exportedModules: exportedModules_1,\n transitiveModule: transitiveModule_1\n });\n transitiveModule_1.modules.push(compileMeta);\n this._verifyModule(compileMeta);\n this._ngModuleCache.set(moduleType, compileMeta);\n }\n return compileMeta;\n var _a, _b;\n };\n CompileMetadataResolver.prototype._verifyModule = function (moduleMeta) {\n moduleMeta.exportedDirectives.forEach(function (dirMeta) {\n if (!moduleMeta.transitiveModule.directivesSet.has(dirMeta.type.reference)) {\n throw new Error(\"Can't export directive \" + stringify(dirMeta.type.reference) + \" from \" + stringify(moduleMeta.type.reference) + \" as it was neither declared nor imported!\");\n }\n });\n moduleMeta.exportedPipes.forEach(function (pipeMeta) {\n if (!moduleMeta.transitiveModule.pipesSet.has(pipeMeta.type.reference)) {\n throw new Error(\"Can't export pipe \" + stringify(pipeMeta.type.reference) + \" from \" + stringify(moduleMeta.type.reference) + \" as it was neither declared nor imported!\");\n }\n });\n };\n CompileMetadataResolver.prototype._getTypeDescriptor = function (type) {\n if (this._directiveResolver.resolve(type, false) !== null) {\n return 'directive';\n }\n else if (this._pipeResolver.resolve(type, false) !== null) {\n return 'pipe';\n }\n else if (this._ngModuleResolver.resolve(type, false) !== null) {\n return 'module';\n }\n else if (type.provide) {\n return 'provider';\n }\n else {\n return 'value';\n }\n };\n CompileMetadataResolver.prototype._addTypeToModule = function (type, moduleType) {\n var oldModule = this._ngModuleOfTypes.get(type);\n if (oldModule && oldModule !== moduleType) {\n throw new Error(\"Type \" + stringify(type) + \" is part of the declarations of 2 modules: \" + stringify(oldModule) + \" and \" + stringify(moduleType) + \"!\");\n }\n this._ngModuleOfTypes.set(type, moduleType);\n };\n CompileMetadataResolver.prototype._getTransitiveNgModuleMetadata = function (importedModules, exportedModules) {\n // collect `providers` / `entryComponents` from all imported and all exported modules\n var transitiveModules = getTransitiveModules(importedModules.concat(exportedModules), true);\n var providers = flattenArray(transitiveModules.map(function (ngModule) { return ngModule.providers; }));\n var entryComponents = flattenArray(transitiveModules.map(function (ngModule) { return ngModule.entryComponents; }));\n var transitiveExportedModules = getTransitiveModules(importedModules, false);\n var directives = flattenArray(transitiveExportedModules.map(function (ngModule) { return ngModule.exportedDirectives; }));\n var pipes = flattenArray(transitiveExportedModules.map(function (ngModule) { return ngModule.exportedPipes; }));\n return new TransitiveCompileNgModuleMetadata(transitiveModules, providers, entryComponents, directives, pipes);\n };\n CompileMetadataResolver.prototype._addDirectiveToModule = function (dirMeta, moduleType, transitiveModule, declaredDirectives, force) {\n if (force === void 0) { force = false; }\n if (force || !transitiveModule.directivesSet.has(dirMeta.type.reference)) {\n transitiveModule.directivesSet.add(dirMeta.type.reference);\n transitiveModule.directives.push(dirMeta);\n declaredDirectives.push(dirMeta);\n this._addTypeToModule(dirMeta.type.reference, moduleType);\n return true;\n }\n return false;\n };\n CompileMetadataResolver.prototype._addPipeToModule = function (pipeMeta, moduleType, transitiveModule, declaredPipes, force) {\n if (force === void 0) { force = false; }\n if (force || !transitiveModule.pipesSet.has(pipeMeta.type.reference)) {\n transitiveModule.pipesSet.add(pipeMeta.type.reference);\n transitiveModule.pipes.push(pipeMeta);\n declaredPipes.push(pipeMeta);\n this._addTypeToModule(pipeMeta.type.reference, moduleType);\n return true;\n }\n return false;\n };\n CompileMetadataResolver.prototype.getTypeMetadata = function (type, moduleUrl, dependencies) {\n if (dependencies === void 0) { dependencies = null; }\n type = _angular_core.resolveForwardRef(type);\n return new CompileTypeMetadata({\n name: this.sanitizeTokenName(type),\n moduleUrl: moduleUrl,\n reference: type,\n diDeps: this.getDependenciesMetadata(type, dependencies),\n lifecycleHooks: LIFECYCLE_HOOKS_VALUES.filter(function (hook) { return hasLifecycleHook(hook, type); }),\n });\n };\n CompileMetadataResolver.prototype.getFactoryMetadata = function (factory, moduleUrl, dependencies) {\n if (dependencies === void 0) { dependencies = null; }\n factory = _angular_core.resolveForwardRef(factory);\n return new CompileFactoryMetadata({\n name: this.sanitizeTokenName(factory),\n moduleUrl: moduleUrl,\n reference: factory,\n diDeps: this.getDependenciesMetadata(factory, dependencies)\n });\n };\n CompileMetadataResolver.prototype.getPipeMetadata = function (pipeType, throwIfNotFound) {\n if (throwIfNotFound === void 0) { throwIfNotFound = true; }\n pipeType = _angular_core.resolveForwardRef(pipeType);\n var meta = this._pipeCache.get(pipeType);\n if (isBlank(meta)) {\n var pipeMeta = this._pipeResolver.resolve(pipeType, throwIfNotFound);\n if (!pipeMeta) {\n return null;\n }\n meta = new CompilePipeMetadata({\n type: this.getTypeMetadata(pipeType, staticTypeModuleUrl(pipeType)),\n name: pipeMeta.name,\n pure: pipeMeta.pure\n });\n this._pipeCache.set(pipeType, meta);\n }\n return meta;\n };\n CompileMetadataResolver.prototype.getDependenciesMetadata = function (typeOrFunc, dependencies) {\n var _this = this;\n var hasUnknownDeps = false;\n var params = isPresent(dependencies) ? dependencies : this._reflector.parameters(typeOrFunc);\n if (isBlank(params)) {\n params = [];\n }\n var dependenciesMetadata = params.map(function (param) {\n var isAttribute = false;\n var isHost = false;\n var isSelf = false;\n var isSkipSelf = false;\n var isOptional = false;\n var query = null;\n var viewQuery = null;\n var token = null;\n if (isArray(param)) {\n param.forEach(function (paramEntry) {\n if (paramEntry instanceof _angular_core.HostMetadata) {\n isHost = true;\n }\n else if (paramEntry instanceof _angular_core.SelfMetadata) {\n isSelf = true;\n }\n else if (paramEntry instanceof _angular_core.SkipSelfMetadata) {\n isSkipSelf = true;\n }\n else if (paramEntry instanceof _angular_core.OptionalMetadata) {\n isOptional = true;\n }\n else if (paramEntry instanceof _angular_core.AttributeMetadata) {\n isAttribute = true;\n token = paramEntry.attributeName;\n }\n else if (paramEntry instanceof _angular_core.QueryMetadata) {\n if (paramEntry.isViewQuery) {\n viewQuery = paramEntry;\n }\n else {\n query = paramEntry;\n }\n }\n else if (paramEntry instanceof _angular_core.InjectMetadata) {\n token = paramEntry.token;\n }\n else if (isValidType(paramEntry) && isBlank(token)) {\n token = paramEntry;\n }\n });\n }\n else {\n token = param;\n }\n if (isBlank(token)) {\n hasUnknownDeps = true;\n return null;\n }\n return new CompileDiDependencyMetadata({\n isAttribute: isAttribute,\n isHost: isHost,\n isSelf: isSelf,\n isSkipSelf: isSkipSelf,\n isOptional: isOptional,\n query: isPresent(query) ? _this.getQueryMetadata(query, null, typeOrFunc) : null,\n viewQuery: isPresent(viewQuery) ? _this.getQueryMetadata(viewQuery, null, typeOrFunc) : null,\n token: _this.getTokenMetadata(token)\n });\n });\n if (hasUnknownDeps) {\n var depsTokens = dependenciesMetadata.map(function (dep) { return dep ? stringify(dep.token) : '?'; })\n .join(', ');\n throw new Error(\"Can't resolve all parameters for \" + stringify(typeOrFunc) + \": (\" + depsTokens + \").\");\n }\n return dependenciesMetadata;\n };\n CompileMetadataResolver.prototype.getTokenMetadata = function (token) {\n token = _angular_core.resolveForwardRef(token);\n var compileToken;\n if (isString(token)) {\n compileToken = new CompileTokenMetadata({ value: token });\n }\n else {\n compileToken = new CompileTokenMetadata({\n identifier: new CompileIdentifierMetadata({\n reference: token,\n name: this.sanitizeTokenName(token),\n moduleUrl: staticTypeModuleUrl(token)\n })\n });\n }\n return compileToken;\n };\n CompileMetadataResolver.prototype.getProvidersMetadata = function (providers, targetEntryComponents, debugInfo) {\n var _this = this;\n var compileProviders = [];\n providers.forEach(function (provider, providerIdx) {\n provider = _angular_core.resolveForwardRef(provider);\n if (provider && typeof provider == 'object' && provider.hasOwnProperty('provide')) {\n provider = new ProviderMeta(provider.provide, provider);\n }\n var compileProvider;\n if (isArray(provider)) {\n compileProvider = _this.getProvidersMetadata(provider, targetEntryComponents, debugInfo);\n }\n else if (provider instanceof ProviderMeta) {\n var tokenMeta = _this.getTokenMetadata(provider.token);\n if (tokenMeta.reference ===\n resolveIdentifierToken(Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS).reference) {\n targetEntryComponents.push.apply(targetEntryComponents, _this._getEntryComponentsFromProvider(provider));\n }\n else {\n compileProvider = _this.getProviderMetadata(provider);\n }\n }\n else if (isValidType(provider)) {\n compileProvider = _this.getTypeMetadata(provider, staticTypeModuleUrl(provider));\n }\n else {\n var providersInfo = providers.reduce(function (soFar, seenProvider, seenProviderIdx) {\n if (seenProviderIdx < providerIdx) {\n soFar.push(\"\" + stringify(seenProvider));\n }\n else if (seenProviderIdx == providerIdx) {\n soFar.push(\"?\" + stringify(seenProvider) + \"?\");\n }\n else if (seenProviderIdx == providerIdx + 1) {\n soFar.push('...');\n }\n return soFar;\n }, [])\n .join(', ');\n throw new Error(\"Invalid \" + (debugInfo ? debugInfo : 'provider') + \" - only instances of Provider and Type are allowed, got: [\" + providersInfo + \"]\");\n }\n if (compileProvider) {\n compileProviders.push(compileProvider);\n }\n });\n return compileProviders;\n };\n CompileMetadataResolver.prototype._getEntryComponentsFromProvider = function (provider) {\n var _this = this;\n var components = [];\n var collectedIdentifiers = [];\n if (provider.useFactory || provider.useExisting || provider.useClass) {\n throw new Error(\"The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!\");\n }\n if (!provider.multi) {\n throw new Error(\"The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!\");\n }\n convertToCompileValue(provider.useValue, collectedIdentifiers);\n collectedIdentifiers.forEach(function (identifier) {\n var dirMeta = _this.getDirectiveMetadata(identifier.reference, false);\n if (dirMeta) {\n components.push(dirMeta.type);\n }\n });\n return components;\n };\n CompileMetadataResolver.prototype.getProviderMetadata = function (provider) {\n var compileDeps;\n var compileTypeMetadata = null;\n var compileFactoryMetadata = null;\n if (isPresent(provider.useClass)) {\n compileTypeMetadata = this.getTypeMetadata(provider.useClass, staticTypeModuleUrl(provider.useClass), provider.dependencies);\n compileDeps = compileTypeMetadata.diDeps;\n }\n else if (isPresent(provider.useFactory)) {\n compileFactoryMetadata = this.getFactoryMetadata(provider.useFactory, staticTypeModuleUrl(provider.useFactory), provider.dependencies);\n compileDeps = compileFactoryMetadata.diDeps;\n }\n return new CompileProviderMetadata({\n token: this.getTokenMetadata(provider.token),\n useClass: compileTypeMetadata,\n useValue: convertToCompileValue(provider.useValue, []),\n useFactory: compileFactoryMetadata,\n useExisting: isPresent(provider.useExisting) ? this.getTokenMetadata(provider.useExisting) :\n null,\n deps: compileDeps,\n multi: provider.multi\n });\n };\n CompileMetadataResolver.prototype.getQueriesMetadata = function (queries, isViewQuery, directiveType) {\n var _this = this;\n var res = [];\n StringMapWrapper.forEach(queries, function (query, propertyName) {\n if (query.isViewQuery === isViewQuery) {\n res.push(_this.getQueryMetadata(query, propertyName, directiveType));\n }\n });\n return res;\n };\n CompileMetadataResolver.prototype.getQueryMetadata = function (q, propertyName, typeOrFunc) {\n var _this = this;\n var selectors;\n if (q.isVarBindingQuery) {\n selectors = q.varBindings.map(function (varName) { return _this.getTokenMetadata(varName); });\n }\n else {\n if (!isPresent(q.selector)) {\n throw new Error(\"Can't construct a query for the property \\\"\" + propertyName + \"\\\" of \\\"\" + stringify(typeOrFunc) + \"\\\" since the query selector wasn't defined.\");\n }\n selectors = [this.getTokenMetadata(q.selector)];\n }\n return new CompileQueryMetadata({\n selectors: selectors,\n first: q.first,\n descendants: q.descendants,\n propertyName: propertyName,\n read: isPresent(q.read) ? this.getTokenMetadata(q.read) : null\n });\n };\n CompileMetadataResolver.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n CompileMetadataResolver.ctorParameters = [\n { type: NgModuleResolver, },\n { type: DirectiveResolver, },\n { type: PipeResolver, },\n { type: ElementSchemaRegistry, },\n { type: ReflectorReader, },\n ];\n return CompileMetadataResolver;\n }());\n function getTransitiveModules(modules, includeImports, targetModules, visitedModules) {\n if (targetModules === void 0) { targetModules = []; }\n if (visitedModules === void 0) { visitedModules = new Set(); }\n modules.forEach(function (ngModule) {\n if (!visitedModules.has(ngModule.type.reference)) {\n visitedModules.add(ngModule.type.reference);\n var nestedModules = includeImports ?\n ngModule.importedModules.concat(ngModule.exportedModules) :\n ngModule.exportedModules;\n getTransitiveModules(nestedModules, includeImports, targetModules, visitedModules);\n // Add after recursing so imported/exported modules are before the module itself.\n // This is important for overwriting providers of imported modules!\n targetModules.push(ngModule);\n }\n });\n return targetModules;\n }\n function flattenArray(tree, out) {\n if (out === void 0) { out = []; }\n if (tree) {\n for (var i = 0; i < tree.length; i++) {\n var item = _angular_core.resolveForwardRef(tree[i]);\n if (isArray(item)) {\n flattenArray(item, out);\n }\n else {\n out.push(item);\n }\n }\n }\n return out;\n }\n function isValidType(value) {\n return isStaticSymbol(value) || (value instanceof _angular_core.Type);\n }\n function staticTypeModuleUrl(value) {\n return isStaticSymbol(value) ? value.filePath : null;\n }\n function componentModuleUrl(reflector, type, cmpMetadata) {\n if (isStaticSymbol(type)) {\n return staticTypeModuleUrl(type);\n }\n if (isPresent(cmpMetadata.moduleId)) {\n var moduleId = cmpMetadata.moduleId;\n var scheme = getUrlScheme(moduleId);\n return isPresent(scheme) && scheme.length > 0 ? moduleId :\n \"package:\" + moduleId + MODULE_SUFFIX;\n }\n return reflector.importUri(type);\n }\n function convertToCompileValue(value, targetIdentifiers) {\n return visitValue(value, new _CompileValueConverter(), targetIdentifiers);\n }\n var _CompileValueConverter = (function (_super) {\n __extends$14(_CompileValueConverter, _super);\n function _CompileValueConverter() {\n _super.apply(this, arguments);\n }\n _CompileValueConverter.prototype.visitOther = function (value, targetIdentifiers) {\n var identifier;\n if (isStaticSymbol(value)) {\n identifier = new CompileIdentifierMetadata({ name: value.name, moduleUrl: value.filePath, reference: value });\n }\n else {\n identifier = new CompileIdentifierMetadata({ reference: value });\n }\n targetIdentifiers.push(identifier);\n return identifier;\n };\n return _CompileValueConverter;\n }(ValueTransformer));\n\n var ComponentFactoryDependency$1 = (function () {\n function ComponentFactoryDependency(comp, placeholder) {\n this.comp = comp;\n this.placeholder = placeholder;\n }\n return ComponentFactoryDependency;\n }());\n var NgModuleCompileResult = (function () {\n function NgModuleCompileResult(statements, ngModuleFactoryVar, dependencies) {\n this.statements = statements;\n this.ngModuleFactoryVar = ngModuleFactoryVar;\n this.dependencies = dependencies;\n }\n return NgModuleCompileResult;\n }());\n var NgModuleCompiler = (function () {\n function NgModuleCompiler() {\n }\n NgModuleCompiler.prototype.compile = function (ngModuleMeta, extraProviders) {\n var sourceFileName = isPresent(ngModuleMeta.type.moduleUrl) ?\n \"in NgModule \" + ngModuleMeta.type.name + \" in \" + ngModuleMeta.type.moduleUrl :\n \"in NgModule \" + ngModuleMeta.type.name;\n var sourceFile = new ParseSourceFile('', sourceFileName);\n var sourceSpan = new ParseSourceSpan(new ParseLocation(sourceFile, null, null, null), new ParseLocation(sourceFile, null, null, null));\n var deps = [];\n var bootstrapComponentFactories = [];\n var entryComponentFactories = ngModuleMeta.transitiveModule.entryComponents.map(function (entryComponent) {\n var id = new CompileIdentifierMetadata({ name: entryComponent.name });\n if (ngModuleMeta.bootstrapComponents.indexOf(entryComponent) > -1) {\n bootstrapComponentFactories.push(id);\n }\n deps.push(new ComponentFactoryDependency$1(entryComponent, id));\n return id;\n });\n var builder = new _InjectorBuilder(ngModuleMeta, entryComponentFactories, bootstrapComponentFactories, sourceSpan);\n var providerParser = new NgModuleProviderAnalyzer(ngModuleMeta, extraProviders, sourceSpan);\n providerParser.parse().forEach(function (provider) { return builder.addProvider(provider); });\n var injectorClass = builder.build();\n var ngModuleFactoryVar = ngModuleMeta.type.name + \"NgFactory\";\n var ngModuleFactoryStmt = variable(ngModuleFactoryVar)\n .set(importExpr(resolveIdentifier(Identifiers.NgModuleFactory))\n .instantiate([variable(injectorClass.name), importExpr(ngModuleMeta.type)], importType(resolveIdentifier(Identifiers.NgModuleFactory), [importType(ngModuleMeta.type)], [TypeModifier.Const])))\n .toDeclStmt(null, [StmtModifier.Final]);\n return new NgModuleCompileResult([injectorClass, ngModuleFactoryStmt], ngModuleFactoryVar, deps);\n };\n NgModuleCompiler.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n NgModuleCompiler.ctorParameters = [];\n return NgModuleCompiler;\n }());\n var _InjectorBuilder = (function () {\n function _InjectorBuilder(_ngModuleMeta, _entryComponentFactories, _bootstrapComponentFactories, _sourceSpan) {\n this._ngModuleMeta = _ngModuleMeta;\n this._entryComponentFactories = _entryComponentFactories;\n this._bootstrapComponentFactories = _bootstrapComponentFactories;\n this._sourceSpan = _sourceSpan;\n this._tokens = [];\n this._instances = new Map();\n this._fields = [];\n this._createStmts = [];\n this._destroyStmts = [];\n this._getters = [];\n }\n _InjectorBuilder.prototype.addProvider = function (resolvedProvider) {\n var _this = this;\n var providerValueExpressions = resolvedProvider.providers.map(function (provider) { return _this._getProviderValue(provider); });\n var propName = \"_\" + resolvedProvider.token.name + \"_\" + this._instances.size;\n var instance = this._createProviderProperty(propName, resolvedProvider, providerValueExpressions, resolvedProvider.multiProvider, resolvedProvider.eager);\n if (resolvedProvider.lifecycleHooks.indexOf(LifecycleHooks.OnDestroy) !== -1) {\n this._destroyStmts.push(instance.callMethod('ngOnDestroy', []).toStmt());\n }\n this._tokens.push(resolvedProvider.token);\n this._instances.set(resolvedProvider.token.reference, instance);\n };\n _InjectorBuilder.prototype.build = function () {\n var _this = this;\n var getMethodStmts = this._tokens.map(function (token) {\n var providerExpr = _this._instances.get(token.reference);\n return new IfStmt(InjectMethodVars$1.token.identical(createDiTokenExpression(token)), [new ReturnStatement(providerExpr)]);\n });\n var methods = [\n new ClassMethod('createInternal', [], this._createStmts.concat(new ReturnStatement(this._instances.get(this._ngModuleMeta.type.reference))), importType(this._ngModuleMeta.type)),\n new ClassMethod('getInternal', [\n new FnParam(InjectMethodVars$1.token.name, DYNAMIC_TYPE),\n new FnParam(InjectMethodVars$1.notFoundResult.name, DYNAMIC_TYPE)\n ], getMethodStmts.concat([new ReturnStatement(InjectMethodVars$1.notFoundResult)]), DYNAMIC_TYPE),\n new ClassMethod('destroyInternal', [], this._destroyStmts),\n ];\n var ctor = new ClassMethod(null, [new FnParam(InjectorProps.parent.name, importType(resolveIdentifier(Identifiers.Injector)))], [SUPER_EXPR\n .callFn([\n variable(InjectorProps.parent.name),\n literalArr(this._entryComponentFactories.map(function (componentFactory) { return importExpr(componentFactory); })),\n literalArr(this._bootstrapComponentFactories.map(function (componentFactory) { return importExpr(componentFactory); }))\n ])\n .toStmt()]);\n var injClassName = this._ngModuleMeta.type.name + \"Injector\";\n return new ClassStmt(injClassName, importExpr(resolveIdentifier(Identifiers.NgModuleInjector), [importType(this._ngModuleMeta.type)]), this._fields, this._getters, ctor, methods);\n };\n _InjectorBuilder.prototype._getProviderValue = function (provider) {\n var _this = this;\n var result;\n if (isPresent(provider.useExisting)) {\n result = this._getDependency(new CompileDiDependencyMetadata({ token: provider.useExisting }));\n }\n else if (isPresent(provider.useFactory)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useFactory.diDeps;\n var depsExpr = deps.map(function (dep) { return _this._getDependency(dep); });\n result = importExpr(provider.useFactory).callFn(depsExpr);\n }\n else if (isPresent(provider.useClass)) {\n var deps = isPresent(provider.deps) ? provider.deps : provider.useClass.diDeps;\n var depsExpr = deps.map(function (dep) { return _this._getDependency(dep); });\n result =\n importExpr(provider.useClass).instantiate(depsExpr, importType(provider.useClass));\n }\n else {\n result = convertValueToOutputAst(provider.useValue);\n }\n return result;\n };\n _InjectorBuilder.prototype._createProviderProperty = function (propName, provider, providerValueExpressions, isMulti, isEager) {\n var resolvedProviderValueExpr;\n var type;\n if (isMulti) {\n resolvedProviderValueExpr = literalArr(providerValueExpressions);\n type = new ArrayType(DYNAMIC_TYPE);\n }\n else {\n resolvedProviderValueExpr = providerValueExpressions[0];\n type = providerValueExpressions[0].type;\n }\n if (isBlank(type)) {\n type = DYNAMIC_TYPE;\n }\n if (isEager) {\n this._fields.push(new ClassField(propName, type));\n this._createStmts.push(THIS_EXPR.prop(propName).set(resolvedProviderValueExpr).toStmt());\n }\n else {\n var internalField = \"_\" + propName;\n this._fields.push(new ClassField(internalField, type));\n // Note: Equals is important for JS so that it also checks the undefined case!\n var getterStmts = [\n new IfStmt(THIS_EXPR.prop(internalField).isBlank(), [THIS_EXPR.prop(internalField).set(resolvedProviderValueExpr).toStmt()]),\n new ReturnStatement(THIS_EXPR.prop(internalField))\n ];\n this._getters.push(new ClassGetter(propName, getterStmts, type));\n }\n return THIS_EXPR.prop(propName);\n };\n _InjectorBuilder.prototype._getDependency = function (dep) {\n var result = null;\n if (dep.isValue) {\n result = literal(dep.value);\n }\n if (!dep.isSkipSelf) {\n if (dep.token &&\n (dep.token.reference === resolveIdentifierToken(Identifiers.Injector).reference ||\n dep.token.reference ===\n resolveIdentifierToken(Identifiers.ComponentFactoryResolver).reference)) {\n result = THIS_EXPR;\n }\n if (isBlank(result)) {\n result = this._instances.get(dep.token.reference);\n }\n }\n if (isBlank(result)) {\n var args = [createDiTokenExpression(dep.token)];\n if (dep.isOptional) {\n args.push(NULL_EXPR);\n }\n result = InjectorProps.parent.callMethod('get', args);\n }\n return result;\n };\n return _InjectorBuilder;\n }());\n var InjectorProps = (function () {\n function InjectorProps() {\n }\n InjectorProps.parent = THIS_EXPR.prop('parent');\n return InjectorProps;\n }());\n var InjectMethodVars$1 = (function () {\n function InjectMethodVars() {\n }\n InjectMethodVars.token = variable('token');\n InjectMethodVars.notFoundResult = variable('notFoundResult');\n return InjectMethodVars;\n }());\n\n var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\\\|\\n|\\r|\\$/g;\n var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;\n var CATCH_ERROR_VAR$2 = variable('error');\n var CATCH_STACK_VAR$2 = variable('stack');\n var _EmittedLine = (function () {\n function _EmittedLine(indent) {\n this.indent = indent;\n this.parts = [];\n }\n return _EmittedLine;\n }());\n var EmitterVisitorContext = (function () {\n function EmitterVisitorContext(_exportedVars, _indent) {\n this._exportedVars = _exportedVars;\n this._indent = _indent;\n this._classes = [];\n this._lines = [new _EmittedLine(_indent)];\n }\n EmitterVisitorContext.createRoot = function (exportedVars) {\n return new EmitterVisitorContext(exportedVars, 0);\n };\n Object.defineProperty(EmitterVisitorContext.prototype, \"_currentLine\", {\n get: function () { return this._lines[this._lines.length - 1]; },\n enumerable: true,\n configurable: true\n });\n EmitterVisitorContext.prototype.isExportedVar = function (varName) { return this._exportedVars.indexOf(varName) !== -1; };\n EmitterVisitorContext.prototype.println = function (lastPart) {\n if (lastPart === void 0) { lastPart = ''; }\n this.print(lastPart, true);\n };\n EmitterVisitorContext.prototype.lineIsEmpty = function () { return this._currentLine.parts.length === 0; };\n EmitterVisitorContext.prototype.print = function (part, newLine) {\n if (newLine === void 0) { newLine = false; }\n if (part.length > 0) {\n this._currentLine.parts.push(part);\n }\n if (newLine) {\n this._lines.push(new _EmittedLine(this._indent));\n }\n };\n EmitterVisitorContext.prototype.removeEmptyLastLine = function () {\n if (this.lineIsEmpty()) {\n this._lines.pop();\n }\n };\n EmitterVisitorContext.prototype.incIndent = function () {\n this._indent++;\n this._currentLine.indent = this._indent;\n };\n EmitterVisitorContext.prototype.decIndent = function () {\n this._indent--;\n this._currentLine.indent = this._indent;\n };\n EmitterVisitorContext.prototype.pushClass = function (clazz) { this._classes.push(clazz); };\n EmitterVisitorContext.prototype.popClass = function () { return this._classes.pop(); };\n Object.defineProperty(EmitterVisitorContext.prototype, \"currentClass\", {\n get: function () {\n return this._classes.length > 0 ? this._classes[this._classes.length - 1] : null;\n },\n enumerable: true,\n configurable: true\n });\n EmitterVisitorContext.prototype.toSource = function () {\n var lines = this._lines;\n if (lines[lines.length - 1].parts.length === 0) {\n lines = lines.slice(0, lines.length - 1);\n }\n return lines\n .map(function (line) {\n if (line.parts.length > 0) {\n return _createIndent(line.indent) + line.parts.join('');\n }\n else {\n return '';\n }\n })\n .join('\\n');\n };\n return EmitterVisitorContext;\n }());\n var AbstractEmitterVisitor = (function () {\n function AbstractEmitterVisitor(_escapeDollarInStrings) {\n this._escapeDollarInStrings = _escapeDollarInStrings;\n }\n AbstractEmitterVisitor.prototype.visitExpressionStmt = function (stmt, ctx) {\n stmt.expr.visitExpression(this, ctx);\n ctx.println(';');\n return null;\n };\n AbstractEmitterVisitor.prototype.visitReturnStmt = function (stmt, ctx) {\n ctx.print(\"return \");\n stmt.value.visitExpression(this, ctx);\n ctx.println(';');\n return null;\n };\n AbstractEmitterVisitor.prototype.visitIfStmt = function (stmt, ctx) {\n ctx.print(\"if (\");\n stmt.condition.visitExpression(this, ctx);\n ctx.print(\") {\");\n var hasElseCase = isPresent(stmt.falseCase) && stmt.falseCase.length > 0;\n if (stmt.trueCase.length <= 1 && !hasElseCase) {\n ctx.print(\" \");\n this.visitAllStatements(stmt.trueCase, ctx);\n ctx.removeEmptyLastLine();\n ctx.print(\" \");\n }\n else {\n ctx.println();\n ctx.incIndent();\n this.visitAllStatements(stmt.trueCase, ctx);\n ctx.decIndent();\n if (hasElseCase) {\n ctx.println(\"} else {\");\n ctx.incIndent();\n this.visitAllStatements(stmt.falseCase, ctx);\n ctx.decIndent();\n }\n }\n ctx.println(\"}\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitThrowStmt = function (stmt, ctx) {\n ctx.print(\"throw \");\n stmt.error.visitExpression(this, ctx);\n ctx.println(\";\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitCommentStmt = function (stmt, ctx) {\n var lines = stmt.comment.split('\\n');\n lines.forEach(function (line) { ctx.println(\"// \" + line); });\n return null;\n };\n AbstractEmitterVisitor.prototype.visitWriteVarExpr = function (expr, ctx) {\n var lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print('(');\n }\n ctx.print(expr.name + \" = \");\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(')');\n }\n return null;\n };\n AbstractEmitterVisitor.prototype.visitWriteKeyExpr = function (expr, ctx) {\n var lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print('(');\n }\n expr.receiver.visitExpression(this, ctx);\n ctx.print(\"[\");\n expr.index.visitExpression(this, ctx);\n ctx.print(\"] = \");\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(')');\n }\n return null;\n };\n AbstractEmitterVisitor.prototype.visitWritePropExpr = function (expr, ctx) {\n var lineWasEmpty = ctx.lineIsEmpty();\n if (!lineWasEmpty) {\n ctx.print('(');\n }\n expr.receiver.visitExpression(this, ctx);\n ctx.print(\".\" + expr.name + \" = \");\n expr.value.visitExpression(this, ctx);\n if (!lineWasEmpty) {\n ctx.print(')');\n }\n return null;\n };\n AbstractEmitterVisitor.prototype.visitInvokeMethodExpr = function (expr, ctx) {\n expr.receiver.visitExpression(this, ctx);\n var name = expr.name;\n if (isPresent(expr.builtin)) {\n name = this.getBuiltinMethodName(expr.builtin);\n if (isBlank(name)) {\n // some builtins just mean to skip the call.\n return null;\n }\n }\n ctx.print(\".\" + name + \"(\");\n this.visitAllExpressions(expr.args, ctx, \",\");\n ctx.print(\")\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitInvokeFunctionExpr = function (expr, ctx) {\n expr.fn.visitExpression(this, ctx);\n ctx.print(\"(\");\n this.visitAllExpressions(expr.args, ctx, ',');\n ctx.print(\")\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitReadVarExpr = function (ast, ctx) {\n var varName = ast.name;\n if (isPresent(ast.builtin)) {\n switch (ast.builtin) {\n case BuiltinVar.Super:\n varName = 'super';\n break;\n case BuiltinVar.This:\n varName = 'this';\n break;\n case BuiltinVar.CatchError:\n varName = CATCH_ERROR_VAR$2.name;\n break;\n case BuiltinVar.CatchStack:\n varName = CATCH_STACK_VAR$2.name;\n break;\n default:\n throw new Error(\"Unknown builtin variable \" + ast.builtin);\n }\n }\n ctx.print(varName);\n return null;\n };\n AbstractEmitterVisitor.prototype.visitInstantiateExpr = function (ast, ctx) {\n ctx.print(\"new \");\n ast.classExpr.visitExpression(this, ctx);\n ctx.print(\"(\");\n this.visitAllExpressions(ast.args, ctx, ',');\n ctx.print(\")\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitLiteralExpr = function (ast, ctx, absentValue) {\n if (absentValue === void 0) { absentValue = 'null'; }\n var value = ast.value;\n if (isString(value)) {\n ctx.print(escapeIdentifier(value, this._escapeDollarInStrings));\n }\n else if (isBlank(value)) {\n ctx.print(absentValue);\n }\n else {\n ctx.print(\"\" + value);\n }\n return null;\n };\n AbstractEmitterVisitor.prototype.visitConditionalExpr = function (ast, ctx) {\n ctx.print(\"(\");\n ast.condition.visitExpression(this, ctx);\n ctx.print('? ');\n ast.trueCase.visitExpression(this, ctx);\n ctx.print(': ');\n ast.falseCase.visitExpression(this, ctx);\n ctx.print(\")\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitNotExpr = function (ast, ctx) {\n ctx.print('!');\n ast.condition.visitExpression(this, ctx);\n return null;\n };\n AbstractEmitterVisitor.prototype.visitBinaryOperatorExpr = function (ast, ctx) {\n var opStr;\n switch (ast.operator) {\n case BinaryOperator.Equals:\n opStr = '==';\n break;\n case BinaryOperator.Identical:\n opStr = '===';\n break;\n case BinaryOperator.NotEquals:\n opStr = '!=';\n break;\n case BinaryOperator.NotIdentical:\n opStr = '!==';\n break;\n case BinaryOperator.And:\n opStr = '&&';\n break;\n case BinaryOperator.Or:\n opStr = '||';\n break;\n case BinaryOperator.Plus:\n opStr = '+';\n break;\n case BinaryOperator.Minus:\n opStr = '-';\n break;\n case BinaryOperator.Divide:\n opStr = '/';\n break;\n case BinaryOperator.Multiply:\n opStr = '*';\n break;\n case BinaryOperator.Modulo:\n opStr = '%';\n break;\n case BinaryOperator.Lower:\n opStr = '<';\n break;\n case BinaryOperator.LowerEquals:\n opStr = '<=';\n break;\n case BinaryOperator.Bigger:\n opStr = '>';\n break;\n case BinaryOperator.BiggerEquals:\n opStr = '>=';\n break;\n default:\n throw new Error(\"Unknown operator \" + ast.operator);\n }\n ctx.print(\"(\");\n ast.lhs.visitExpression(this, ctx);\n ctx.print(\" \" + opStr + \" \");\n ast.rhs.visitExpression(this, ctx);\n ctx.print(\")\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitReadPropExpr = function (ast, ctx) {\n ast.receiver.visitExpression(this, ctx);\n ctx.print(\".\");\n ctx.print(ast.name);\n return null;\n };\n AbstractEmitterVisitor.prototype.visitReadKeyExpr = function (ast, ctx) {\n ast.receiver.visitExpression(this, ctx);\n ctx.print(\"[\");\n ast.index.visitExpression(this, ctx);\n ctx.print(\"]\");\n return null;\n };\n AbstractEmitterVisitor.prototype.visitLiteralArrayExpr = function (ast, ctx) {\n var useNewLine = ast.entries.length > 1;\n ctx.print(\"[\", useNewLine);\n ctx.incIndent();\n this.visitAllExpressions(ast.entries, ctx, ',', useNewLine);\n ctx.decIndent();\n ctx.print(\"]\", useNewLine);\n return null;\n };\n AbstractEmitterVisitor.prototype.visitLiteralMapExpr = function (ast, ctx) {\n var _this = this;\n var useNewLine = ast.entries.length > 1;\n ctx.print(\"{\", useNewLine);\n ctx.incIndent();\n this.visitAllObjects(function (entry /** TODO #9100 */) {\n ctx.print(escapeIdentifier(entry[0], _this._escapeDollarInStrings, false) + \": \");\n entry[1].visitExpression(_this, ctx);\n }, ast.entries, ctx, ',', useNewLine);\n ctx.decIndent();\n ctx.print(\"}\", useNewLine);\n return null;\n };\n AbstractEmitterVisitor.prototype.visitAllExpressions = function (expressions, ctx, separator, newLine) {\n var _this = this;\n if (newLine === void 0) { newLine = false; }\n this.visitAllObjects(function (expr /** TODO #9100 */) { return expr.visitExpression(_this, ctx); }, expressions, ctx, separator, newLine);\n };\n AbstractEmitterVisitor.prototype.visitAllObjects = function (handler, expressions, ctx, separator, newLine) {\n if (newLine === void 0) { newLine = false; }\n for (var i = 0; i < expressions.length; i++) {\n if (i > 0) {\n ctx.print(separator, newLine);\n }\n handler(expressions[i]);\n }\n if (newLine) {\n ctx.println();\n }\n };\n AbstractEmitterVisitor.prototype.visitAllStatements = function (statements, ctx) {\n var _this = this;\n statements.forEach(function (stmt) { return stmt.visitStatement(_this, ctx); });\n };\n return AbstractEmitterVisitor;\n }());\n function escapeIdentifier(input, escapeDollar, alwaysQuote) {\n if (alwaysQuote === void 0) { alwaysQuote = true; }\n if (isBlank(input)) {\n return null;\n }\n var body = StringWrapper.replaceAllMapped(input, _SINGLE_QUOTE_ESCAPE_STRING_RE, function (match /** TODO #9100 */) {\n if (match[0] == '$') {\n return escapeDollar ? '\\\\$' : '$';\n }\n else if (match[0] == '\\n') {\n return '\\\\n';\n }\n else if (match[0] == '\\r') {\n return '\\\\r';\n }\n else {\n return \"\\\\\" + match[0];\n }\n });\n var requiresQuotes = alwaysQuote || !_LEGAL_IDENTIFIER_RE.test(body);\n return requiresQuotes ? \"'\" + body + \"'\" : body;\n }\n function _createIndent(count) {\n var res = '';\n for (var i = 0; i < count; i++) {\n res += ' ';\n }\n return res;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$15 = (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 };\n var _debugModuleUrl = 'asset://debug/lib';\n function debugOutputAstAsTypeScript(ast) {\n var converter = new _TsEmitterVisitor(_debugModuleUrl);\n var ctx = EmitterVisitorContext.createRoot([]);\n var asts;\n if (isArray(ast)) {\n asts = ast;\n }\n else {\n asts = [ast];\n }\n asts.forEach(function (ast) {\n if (ast instanceof Statement) {\n ast.visitStatement(converter, ctx);\n }\n else if (ast instanceof Expression) {\n ast.visitExpression(converter, ctx);\n }\n else if (ast instanceof Type$1) {\n ast.visitType(converter, ctx);\n }\n else {\n throw new Error(\"Don't know how to print debug info for \" + ast);\n }\n });\n return ctx.toSource();\n }\n var TypeScriptEmitter = (function () {\n function TypeScriptEmitter(_importGenerator) {\n this._importGenerator = _importGenerator;\n }\n TypeScriptEmitter.prototype.emitStatements = function (moduleUrl, stmts, exportedVars) {\n var _this = this;\n var converter = new _TsEmitterVisitor(moduleUrl);\n var ctx = EmitterVisitorContext.createRoot(exportedVars);\n converter.visitAllStatements(stmts, ctx);\n var srcParts = [];\n converter.importsWithPrefixes.forEach(function (prefix, importedModuleUrl) {\n // Note: can't write the real word for import as it screws up system.js auto detection...\n srcParts.push(\"imp\" +\n (\"ort * as \" + prefix + \" from '\" + _this._importGenerator.getImportPath(moduleUrl, importedModuleUrl) + \"';\"));\n });\n srcParts.push(ctx.toSource());\n return srcParts.join('\\n');\n };\n return TypeScriptEmitter;\n }());\n var _TsEmitterVisitor = (function (_super) {\n __extends$15(_TsEmitterVisitor, _super);\n function _TsEmitterVisitor(_moduleUrl) {\n _super.call(this, false);\n this._moduleUrl = _moduleUrl;\n this.importsWithPrefixes = new Map();\n }\n _TsEmitterVisitor.prototype.visitType = function (t, ctx, defaultType) {\n if (defaultType === void 0) { defaultType = 'any'; }\n if (isPresent(t)) {\n t.visitType(this, ctx);\n }\n else {\n ctx.print(defaultType);\n }\n };\n _TsEmitterVisitor.prototype.visitLiteralExpr = function (ast, ctx) {\n _super.prototype.visitLiteralExpr.call(this, ast, ctx, '(null as any)');\n };\n _TsEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) {\n this._visitIdentifier(ast.value, ast.typeParams, ctx);\n return null;\n };\n _TsEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) {\n if (ctx.isExportedVar(stmt.name)) {\n ctx.print(\"export \");\n }\n if (stmt.hasModifier(StmtModifier.Final)) {\n ctx.print(\"const\");\n }\n else {\n ctx.print(\"var\");\n }\n ctx.print(\" \" + stmt.name + \":\");\n this.visitType(stmt.type, ctx);\n ctx.print(\" = \");\n stmt.value.visitExpression(this, ctx);\n ctx.println(\";\");\n return null;\n };\n _TsEmitterVisitor.prototype.visitCastExpr = function (ast, ctx) {\n ctx.print(\"(<\");\n ast.type.visitType(this, ctx);\n ctx.print(\">\");\n ast.value.visitExpression(this, ctx);\n ctx.print(\")\");\n return null;\n };\n _TsEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) {\n var _this = this;\n ctx.pushClass(stmt);\n if (ctx.isExportedVar(stmt.name)) {\n ctx.print(\"export \");\n }\n ctx.print(\"class \" + stmt.name);\n if (isPresent(stmt.parent)) {\n ctx.print(\" extends \");\n stmt.parent.visitExpression(this, ctx);\n }\n ctx.println(\" {\");\n ctx.incIndent();\n stmt.fields.forEach(function (field) { return _this._visitClassField(field, ctx); });\n if (isPresent(stmt.constructorMethod)) {\n this._visitClassConstructor(stmt, ctx);\n }\n stmt.getters.forEach(function (getter) { return _this._visitClassGetter(getter, ctx); });\n stmt.methods.forEach(function (method) { return _this._visitClassMethod(method, ctx); });\n ctx.decIndent();\n ctx.println(\"}\");\n ctx.popClass();\n return null;\n };\n _TsEmitterVisitor.prototype._visitClassField = function (field, ctx) {\n if (field.hasModifier(StmtModifier.Private)) {\n // comment out as a workaround for #10967\n ctx.print(\"/*private*/ \");\n }\n ctx.print(field.name);\n ctx.print(':');\n this.visitType(field.type, ctx);\n ctx.println(\";\");\n };\n _TsEmitterVisitor.prototype._visitClassGetter = function (getter, ctx) {\n if (getter.hasModifier(StmtModifier.Private)) {\n ctx.print(\"private \");\n }\n ctx.print(\"get \" + getter.name + \"()\");\n ctx.print(':');\n this.visitType(getter.type, ctx);\n ctx.println(\" {\");\n ctx.incIndent();\n this.visitAllStatements(getter.body, ctx);\n ctx.decIndent();\n ctx.println(\"}\");\n };\n _TsEmitterVisitor.prototype._visitClassConstructor = function (stmt, ctx) {\n ctx.print(\"constructor(\");\n this._visitParams(stmt.constructorMethod.params, ctx);\n ctx.println(\") {\");\n ctx.incIndent();\n this.visitAllStatements(stmt.constructorMethod.body, ctx);\n ctx.decIndent();\n ctx.println(\"}\");\n };\n _TsEmitterVisitor.prototype._visitClassMethod = function (method, ctx) {\n if (method.hasModifier(StmtModifier.Private)) {\n ctx.print(\"private \");\n }\n ctx.print(method.name + \"(\");\n this._visitParams(method.params, ctx);\n ctx.print(\"):\");\n this.visitType(method.type, ctx, 'void');\n ctx.println(\" {\");\n ctx.incIndent();\n this.visitAllStatements(method.body, ctx);\n ctx.decIndent();\n ctx.println(\"}\");\n };\n _TsEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) {\n ctx.print(\"(\");\n this._visitParams(ast.params, ctx);\n ctx.print(\"):\");\n this.visitType(ast.type, ctx, 'void');\n ctx.println(\" => {\");\n ctx.incIndent();\n this.visitAllStatements(ast.statements, ctx);\n ctx.decIndent();\n ctx.print(\"}\");\n return null;\n };\n _TsEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\n if (ctx.isExportedVar(stmt.name)) {\n ctx.print(\"export \");\n }\n ctx.print(\"function \" + stmt.name + \"(\");\n this._visitParams(stmt.params, ctx);\n ctx.print(\"):\");\n this.visitType(stmt.type, ctx, 'void');\n ctx.println(\" {\");\n ctx.incIndent();\n this.visitAllStatements(stmt.statements, ctx);\n ctx.decIndent();\n ctx.println(\"}\");\n return null;\n };\n _TsEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) {\n ctx.println(\"try {\");\n ctx.incIndent();\n this.visitAllStatements(stmt.bodyStmts, ctx);\n ctx.decIndent();\n ctx.println(\"} catch (\" + CATCH_ERROR_VAR$2.name + \") {\");\n ctx.incIndent();\n var catchStmts = [CATCH_STACK_VAR$2.set(CATCH_ERROR_VAR$2.prop('stack')).toDeclStmt(null, [\n StmtModifier.Final\n ])].concat(stmt.catchStmts);\n this.visitAllStatements(catchStmts, ctx);\n ctx.decIndent();\n ctx.println(\"}\");\n return null;\n };\n _TsEmitterVisitor.prototype.visitBuiltintType = function (type, ctx) {\n var typeStr;\n switch (type.name) {\n case BuiltinTypeName.Bool:\n typeStr = 'boolean';\n break;\n case BuiltinTypeName.Dynamic:\n typeStr = 'any';\n break;\n case BuiltinTypeName.Function:\n typeStr = 'Function';\n break;\n case BuiltinTypeName.Number:\n typeStr = 'number';\n break;\n case BuiltinTypeName.Int:\n typeStr = 'number';\n break;\n case BuiltinTypeName.String:\n typeStr = 'string';\n break;\n default:\n throw new Error(\"Unsupported builtin type \" + type.name);\n }\n ctx.print(typeStr);\n return null;\n };\n _TsEmitterVisitor.prototype.visitExternalType = function (ast, ctx) {\n this._visitIdentifier(ast.value, ast.typeParams, ctx);\n return null;\n };\n _TsEmitterVisitor.prototype.visitArrayType = function (type, ctx) {\n this.visitType(type.of, ctx);\n ctx.print(\"[]\");\n return null;\n };\n _TsEmitterVisitor.prototype.visitMapType = function (type, ctx) {\n ctx.print(\"{[key: string]:\");\n this.visitType(type.valueType, ctx);\n ctx.print(\"}\");\n return null;\n };\n _TsEmitterVisitor.prototype.getBuiltinMethodName = function (method) {\n var name;\n switch (method) {\n case BuiltinMethod.ConcatArray:\n name = 'concat';\n break;\n case BuiltinMethod.SubscribeObservable:\n name = 'subscribe';\n break;\n case BuiltinMethod.Bind:\n name = 'bind';\n break;\n default:\n throw new Error(\"Unknown builtin method: \" + method);\n }\n return name;\n };\n _TsEmitterVisitor.prototype._visitParams = function (params, ctx) {\n var _this = this;\n this.visitAllObjects(function (param /** TODO #9100 */) {\n ctx.print(param.name);\n ctx.print(':');\n _this.visitType(param.type, ctx);\n }, params, ctx, ',');\n };\n _TsEmitterVisitor.prototype._visitIdentifier = function (value, typeParams, ctx) {\n var _this = this;\n if (isBlank(value.name)) {\n throw new Error(\"Internal error: unknown identifier \" + value);\n }\n if (isPresent(value.moduleUrl) && value.moduleUrl != this._moduleUrl) {\n var prefix = this.importsWithPrefixes.get(value.moduleUrl);\n if (isBlank(prefix)) {\n prefix = \"import\" + this.importsWithPrefixes.size;\n this.importsWithPrefixes.set(value.moduleUrl, prefix);\n }\n ctx.print(prefix + \".\");\n }\n if (value.reference && value.reference.members) {\n ctx.print(value.reference.name);\n ctx.print('.');\n ctx.print(value.reference.members.join('.'));\n }\n else {\n ctx.print(value.name);\n }\n if (isPresent(typeParams) && typeParams.length > 0) {\n ctx.print(\"<\");\n this.visitAllObjects(function (type /** TODO #9100 */) { return type.visitType(_this, ctx); }, typeParams, ctx, ',');\n ctx.print(\">\");\n }\n };\n return _TsEmitterVisitor;\n }(AbstractEmitterVisitor));\n\n function interpretStatements(statements, resultVar) {\n var stmtsWithReturn = statements.concat([new ReturnStatement(variable(resultVar))]);\n var ctx = new _ExecutionContext(null, null, null, new Map());\n var visitor = new StatementInterpreter();\n var result = visitor.visitAllStatements(stmtsWithReturn, ctx);\n return isPresent(result) ? result.value : null;\n }\n function _executeFunctionStatements(varNames, varValues, statements, ctx, visitor) {\n var childCtx = ctx.createChildWihtLocalVars();\n for (var i = 0; i < varNames.length; i++) {\n childCtx.vars.set(varNames[i], varValues[i]);\n }\n var result = visitor.visitAllStatements(statements, childCtx);\n return isPresent(result) ? result.value : null;\n }\n var _ExecutionContext = (function () {\n function _ExecutionContext(parent, instance, className, vars) {\n this.parent = parent;\n this.instance = instance;\n this.className = className;\n this.vars = vars;\n }\n _ExecutionContext.prototype.createChildWihtLocalVars = function () {\n return new _ExecutionContext(this, this.instance, this.className, new Map());\n };\n return _ExecutionContext;\n }());\n var ReturnValue = (function () {\n function ReturnValue(value) {\n this.value = value;\n }\n return ReturnValue;\n }());\n function createDynamicClass(_classStmt, _ctx, _visitor) {\n var propertyDescriptors = {};\n _classStmt.getters.forEach(function (getter) {\n // Note: use `function` instead of arrow function to capture `this`\n propertyDescriptors[getter.name] = {\n configurable: false,\n get: function () {\n var instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);\n return _executeFunctionStatements([], [], getter.body, instanceCtx, _visitor);\n }\n };\n });\n _classStmt.methods.forEach(function (method) {\n var paramNames = method.params.map(function (param) { return param.name; });\n // Note: use `function` instead of arrow function to capture `this`\n propertyDescriptors[method.name] = {\n writable: false,\n configurable: false,\n value: function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i - 0] = arguments[_i];\n }\n var instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);\n return _executeFunctionStatements(paramNames, args, method.body, instanceCtx, _visitor);\n }\n };\n });\n var ctorParamNames = _classStmt.constructorMethod.params.map(function (param) { return param.name; });\n // Note: use `function` instead of arrow function to capture `this`\n var ctor = function () {\n var _this = this;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i - 0] = arguments[_i];\n }\n var instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);\n _classStmt.fields.forEach(function (field) { _this[field.name] = undefined; });\n _executeFunctionStatements(ctorParamNames, args, _classStmt.constructorMethod.body, instanceCtx, _visitor);\n };\n var superClass = _classStmt.parent.visitExpression(_visitor, _ctx);\n ctor.prototype = Object.create(superClass.prototype, propertyDescriptors);\n return ctor;\n }\n var StatementInterpreter = (function () {\n function StatementInterpreter() {\n }\n StatementInterpreter.prototype.debugAst = function (ast) { return debugOutputAstAsTypeScript(ast); };\n StatementInterpreter.prototype.visitDeclareVarStmt = function (stmt, ctx) {\n ctx.vars.set(stmt.name, stmt.value.visitExpression(this, ctx));\n return null;\n };\n StatementInterpreter.prototype.visitWriteVarExpr = function (expr, ctx) {\n var value = expr.value.visitExpression(this, ctx);\n var currCtx = ctx;\n while (currCtx != null) {\n if (currCtx.vars.has(expr.name)) {\n currCtx.vars.set(expr.name, value);\n return value;\n }\n currCtx = currCtx.parent;\n }\n throw new Error(\"Not declared variable \" + expr.name);\n };\n StatementInterpreter.prototype.visitReadVarExpr = function (ast, ctx) {\n var varName = ast.name;\n if (isPresent(ast.builtin)) {\n switch (ast.builtin) {\n case BuiltinVar.Super:\n return ctx.instance.__proto__;\n case BuiltinVar.This:\n return ctx.instance;\n case BuiltinVar.CatchError:\n varName = CATCH_ERROR_VAR$1;\n break;\n case BuiltinVar.CatchStack:\n varName = CATCH_STACK_VAR$1;\n break;\n default:\n throw new Error(\"Unknown builtin variable \" + ast.builtin);\n }\n }\n var currCtx = ctx;\n while (currCtx != null) {\n if (currCtx.vars.has(varName)) {\n return currCtx.vars.get(varName);\n }\n currCtx = currCtx.parent;\n }\n throw new Error(\"Not declared variable \" + varName);\n };\n StatementInterpreter.prototype.visitWriteKeyExpr = function (expr, ctx) {\n var receiver = expr.receiver.visitExpression(this, ctx);\n var index = expr.index.visitExpression(this, ctx);\n var value = expr.value.visitExpression(this, ctx);\n receiver[index] = value;\n return value;\n };\n StatementInterpreter.prototype.visitWritePropExpr = function (expr, ctx) {\n var receiver = expr.receiver.visitExpression(this, ctx);\n var value = expr.value.visitExpression(this, ctx);\n receiver[expr.name] = value;\n return value;\n };\n StatementInterpreter.prototype.visitInvokeMethodExpr = function (expr, ctx) {\n var receiver = expr.receiver.visitExpression(this, ctx);\n var args = this.visitAllExpressions(expr.args, ctx);\n var result;\n if (isPresent(expr.builtin)) {\n switch (expr.builtin) {\n case BuiltinMethod.ConcatArray:\n result = ListWrapper.concat(receiver, args[0]);\n break;\n case BuiltinMethod.SubscribeObservable:\n result = receiver.subscribe({ next: args[0] });\n break;\n case BuiltinMethod.Bind:\n result = receiver.bind(args[0]);\n break;\n default:\n throw new Error(\"Unknown builtin method \" + expr.builtin);\n }\n }\n else {\n result = receiver[expr.name].apply(receiver, args);\n }\n return result;\n };\n StatementInterpreter.prototype.visitInvokeFunctionExpr = function (stmt, ctx) {\n var args = this.visitAllExpressions(stmt.args, ctx);\n var fnExpr = stmt.fn;\n if (fnExpr instanceof ReadVarExpr && fnExpr.builtin === BuiltinVar.Super) {\n ctx.instance.constructor.prototype.constructor.apply(ctx.instance, args);\n return null;\n }\n else {\n var fn = stmt.fn.visitExpression(this, ctx);\n return fn.apply(null, args);\n }\n };\n StatementInterpreter.prototype.visitReturnStmt = function (stmt, ctx) {\n return new ReturnValue(stmt.value.visitExpression(this, ctx));\n };\n StatementInterpreter.prototype.visitDeclareClassStmt = function (stmt, ctx) {\n var clazz = createDynamicClass(stmt, ctx, this);\n ctx.vars.set(stmt.name, clazz);\n return null;\n };\n StatementInterpreter.prototype.visitExpressionStmt = function (stmt, ctx) {\n return stmt.expr.visitExpression(this, ctx);\n };\n StatementInterpreter.prototype.visitIfStmt = function (stmt, ctx) {\n var condition = stmt.condition.visitExpression(this, ctx);\n if (condition) {\n return this.visitAllStatements(stmt.trueCase, ctx);\n }\n else if (isPresent(stmt.falseCase)) {\n return this.visitAllStatements(stmt.falseCase, ctx);\n }\n return null;\n };\n StatementInterpreter.prototype.visitTryCatchStmt = function (stmt, ctx) {\n try {\n return this.visitAllStatements(stmt.bodyStmts, ctx);\n }\n catch (e) {\n var childCtx = ctx.createChildWihtLocalVars();\n childCtx.vars.set(CATCH_ERROR_VAR$1, e);\n childCtx.vars.set(CATCH_STACK_VAR$1, e.stack);\n return this.visitAllStatements(stmt.catchStmts, childCtx);\n }\n };\n StatementInterpreter.prototype.visitThrowStmt = function (stmt, ctx) {\n throw stmt.error.visitExpression(this, ctx);\n };\n StatementInterpreter.prototype.visitCommentStmt = function (stmt, context) { return null; };\n StatementInterpreter.prototype.visitInstantiateExpr = function (ast, ctx) {\n var args = this.visitAllExpressions(ast.args, ctx);\n var clazz = ast.classExpr.visitExpression(this, ctx);\n return new (clazz.bind.apply(clazz, [void 0].concat(args)))();\n };\n StatementInterpreter.prototype.visitLiteralExpr = function (ast, ctx) { return ast.value; };\n StatementInterpreter.prototype.visitExternalExpr = function (ast, ctx) {\n return ast.value.reference;\n };\n StatementInterpreter.prototype.visitConditionalExpr = function (ast, ctx) {\n if (ast.condition.visitExpression(this, ctx)) {\n return ast.trueCase.visitExpression(this, ctx);\n }\n else if (isPresent(ast.falseCase)) {\n return ast.falseCase.visitExpression(this, ctx);\n }\n return null;\n };\n StatementInterpreter.prototype.visitNotExpr = function (ast, ctx) {\n return !ast.condition.visitExpression(this, ctx);\n };\n StatementInterpreter.prototype.visitCastExpr = function (ast, ctx) {\n return ast.value.visitExpression(this, ctx);\n };\n StatementInterpreter.prototype.visitFunctionExpr = function (ast, ctx) {\n var paramNames = ast.params.map(function (param) { return param.name; });\n return _declareFn(paramNames, ast.statements, ctx, this);\n };\n StatementInterpreter.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\n var paramNames = stmt.params.map(function (param) { return param.name; });\n ctx.vars.set(stmt.name, _declareFn(paramNames, stmt.statements, ctx, this));\n return null;\n };\n StatementInterpreter.prototype.visitBinaryOperatorExpr = function (ast, ctx) {\n var _this = this;\n var lhs = function () { return ast.lhs.visitExpression(_this, ctx); };\n var rhs = function () { return ast.rhs.visitExpression(_this, ctx); };\n switch (ast.operator) {\n case BinaryOperator.Equals:\n return lhs() == rhs();\n case BinaryOperator.Identical:\n return lhs() === rhs();\n case BinaryOperator.NotEquals:\n return lhs() != rhs();\n case BinaryOperator.NotIdentical:\n return lhs() !== rhs();\n case BinaryOperator.And:\n return lhs() && rhs();\n case BinaryOperator.Or:\n return lhs() || rhs();\n case BinaryOperator.Plus:\n return lhs() + rhs();\n case BinaryOperator.Minus:\n return lhs() - rhs();\n case BinaryOperator.Divide:\n return lhs() / rhs();\n case BinaryOperator.Multiply:\n return lhs() * rhs();\n case BinaryOperator.Modulo:\n return lhs() % rhs();\n case BinaryOperator.Lower:\n return lhs() < rhs();\n case BinaryOperator.LowerEquals:\n return lhs() <= rhs();\n case BinaryOperator.Bigger:\n return lhs() > rhs();\n case BinaryOperator.BiggerEquals:\n return lhs() >= rhs();\n default:\n throw new Error(\"Unknown operator \" + ast.operator);\n }\n };\n StatementInterpreter.prototype.visitReadPropExpr = function (ast, ctx) {\n var result;\n var receiver = ast.receiver.visitExpression(this, ctx);\n result = receiver[ast.name];\n return result;\n };\n StatementInterpreter.prototype.visitReadKeyExpr = function (ast, ctx) {\n var receiver = ast.receiver.visitExpression(this, ctx);\n var prop = ast.index.visitExpression(this, ctx);\n return receiver[prop];\n };\n StatementInterpreter.prototype.visitLiteralArrayExpr = function (ast, ctx) {\n return this.visitAllExpressions(ast.entries, ctx);\n };\n StatementInterpreter.prototype.visitLiteralMapExpr = function (ast, ctx) {\n var _this = this;\n var result = {};\n ast.entries.forEach(function (entry) { return result[entry[0]] =\n entry[1].visitExpression(_this, ctx); });\n return result;\n };\n StatementInterpreter.prototype.visitAllExpressions = function (expressions, ctx) {\n var _this = this;\n return expressions.map(function (expr) { return expr.visitExpression(_this, ctx); });\n };\n StatementInterpreter.prototype.visitAllStatements = function (statements, ctx) {\n for (var i = 0; i < statements.length; i++) {\n var stmt = statements[i];\n var val = stmt.visitStatement(this, ctx);\n if (val instanceof ReturnValue) {\n return val;\n }\n }\n return null;\n };\n return StatementInterpreter;\n }());\n function _declareFn(varNames, statements, ctx, visitor) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i - 0] = arguments[_i];\n }\n return _executeFunctionStatements(varNames, args, statements, ctx, visitor);\n };\n }\n var CATCH_ERROR_VAR$1 = 'error';\n var CATCH_STACK_VAR$1 = 'stack';\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$17 = (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 };\n var AbstractJsEmitterVisitor = (function (_super) {\n __extends$17(AbstractJsEmitterVisitor, _super);\n function AbstractJsEmitterVisitor() {\n _super.call(this, false);\n }\n AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) {\n var _this = this;\n ctx.pushClass(stmt);\n this._visitClassConstructor(stmt, ctx);\n if (isPresent(stmt.parent)) {\n ctx.print(stmt.name + \".prototype = Object.create(\");\n stmt.parent.visitExpression(this, ctx);\n ctx.println(\".prototype);\");\n }\n stmt.getters.forEach(function (getter) { return _this._visitClassGetter(stmt, getter, ctx); });\n stmt.methods.forEach(function (method) { return _this._visitClassMethod(stmt, method, ctx); });\n ctx.popClass();\n return null;\n };\n AbstractJsEmitterVisitor.prototype._visitClassConstructor = function (stmt, ctx) {\n ctx.print(\"function \" + stmt.name + \"(\");\n if (isPresent(stmt.constructorMethod)) {\n this._visitParams(stmt.constructorMethod.params, ctx);\n }\n ctx.println(\") {\");\n ctx.incIndent();\n if (isPresent(stmt.constructorMethod)) {\n if (stmt.constructorMethod.body.length > 0) {\n ctx.println(\"var self = this;\");\n this.visitAllStatements(stmt.constructorMethod.body, ctx);\n }\n }\n ctx.decIndent();\n ctx.println(\"}\");\n };\n AbstractJsEmitterVisitor.prototype._visitClassGetter = function (stmt, getter, ctx) {\n ctx.println(\"Object.defineProperty(\" + stmt.name + \".prototype, '\" + getter.name + \"', { get: function() {\");\n ctx.incIndent();\n if (getter.body.length > 0) {\n ctx.println(\"var self = this;\");\n this.visitAllStatements(getter.body, ctx);\n }\n ctx.decIndent();\n ctx.println(\"}});\");\n };\n AbstractJsEmitterVisitor.prototype._visitClassMethod = function (stmt, method, ctx) {\n ctx.print(stmt.name + \".prototype.\" + method.name + \" = function(\");\n this._visitParams(method.params, ctx);\n ctx.println(\") {\");\n ctx.incIndent();\n if (method.body.length > 0) {\n ctx.println(\"var self = this;\");\n this.visitAllStatements(method.body, ctx);\n }\n ctx.decIndent();\n ctx.println(\"};\");\n };\n AbstractJsEmitterVisitor.prototype.visitReadVarExpr = function (ast, ctx) {\n if (ast.builtin === BuiltinVar.This) {\n ctx.print('self');\n }\n else if (ast.builtin === BuiltinVar.Super) {\n throw new Error(\"'super' needs to be handled at a parent ast node, not at the variable level!\");\n }\n else {\n _super.prototype.visitReadVarExpr.call(this, ast, ctx);\n }\n return null;\n };\n AbstractJsEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) {\n ctx.print(\"var \" + stmt.name + \" = \");\n stmt.value.visitExpression(this, ctx);\n ctx.println(\";\");\n return null;\n };\n AbstractJsEmitterVisitor.prototype.visitCastExpr = function (ast, ctx) {\n ast.value.visitExpression(this, ctx);\n return null;\n };\n AbstractJsEmitterVisitor.prototype.visitInvokeFunctionExpr = function (expr, ctx) {\n var fnExpr = expr.fn;\n if (fnExpr instanceof ReadVarExpr && fnExpr.builtin === BuiltinVar.Super) {\n ctx.currentClass.parent.visitExpression(this, ctx);\n ctx.print(\".call(this\");\n if (expr.args.length > 0) {\n ctx.print(\", \");\n this.visitAllExpressions(expr.args, ctx, ',');\n }\n ctx.print(\")\");\n }\n else {\n _super.prototype.visitInvokeFunctionExpr.call(this, expr, ctx);\n }\n return null;\n };\n AbstractJsEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) {\n ctx.print(\"function(\");\n this._visitParams(ast.params, ctx);\n ctx.println(\") {\");\n ctx.incIndent();\n this.visitAllStatements(ast.statements, ctx);\n ctx.decIndent();\n ctx.print(\"}\");\n return null;\n };\n AbstractJsEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\n ctx.print(\"function \" + stmt.name + \"(\");\n this._visitParams(stmt.params, ctx);\n ctx.println(\") {\");\n ctx.incIndent();\n this.visitAllStatements(stmt.statements, ctx);\n ctx.decIndent();\n ctx.println(\"}\");\n return null;\n };\n AbstractJsEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) {\n ctx.println(\"try {\");\n ctx.incIndent();\n this.visitAllStatements(stmt.bodyStmts, ctx);\n ctx.decIndent();\n ctx.println(\"} catch (\" + CATCH_ERROR_VAR$2.name + \") {\");\n ctx.incIndent();\n var catchStmts = [CATCH_STACK_VAR$2.set(CATCH_ERROR_VAR$2.prop('stack')).toDeclStmt(null, [\n StmtModifier.Final\n ])].concat(stmt.catchStmts);\n this.visitAllStatements(catchStmts, ctx);\n ctx.decIndent();\n ctx.println(\"}\");\n return null;\n };\n AbstractJsEmitterVisitor.prototype._visitParams = function (params, ctx) {\n this.visitAllObjects(function (param /** TODO #9100 */) { return ctx.print(param.name); }, params, ctx, ',');\n };\n AbstractJsEmitterVisitor.prototype.getBuiltinMethodName = function (method) {\n var name;\n switch (method) {\n case BuiltinMethod.ConcatArray:\n name = 'concat';\n break;\n case BuiltinMethod.SubscribeObservable:\n name = 'subscribe';\n break;\n case BuiltinMethod.Bind:\n name = 'bind';\n break;\n default:\n throw new Error(\"Unknown builtin method: \" + method);\n }\n return name;\n };\n return AbstractJsEmitterVisitor;\n }(AbstractEmitterVisitor));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$16 = (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 };\n function jitStatements(sourceUrl, statements, resultVar) {\n var converter = new JitEmitterVisitor();\n var ctx = EmitterVisitorContext.createRoot([resultVar]);\n converter.visitAllStatements(statements, ctx);\n return evalExpression(sourceUrl, resultVar, ctx.toSource(), converter.getArgs());\n }\n var JitEmitterVisitor = (function (_super) {\n __extends$16(JitEmitterVisitor, _super);\n function JitEmitterVisitor() {\n _super.apply(this, arguments);\n this._evalArgNames = [];\n this._evalArgValues = [];\n }\n JitEmitterVisitor.prototype.getArgs = function () {\n var result = {};\n for (var i = 0; i < this._evalArgNames.length; i++) {\n result[this._evalArgNames[i]] = this._evalArgValues[i];\n }\n return result;\n };\n JitEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) {\n var value = ast.value.reference;\n var id = this._evalArgValues.indexOf(value);\n if (id === -1) {\n id = this._evalArgValues.length;\n this._evalArgValues.push(value);\n var name = isPresent(ast.value.name) ? sanitizeIdentifier(ast.value.name) : 'val';\n this._evalArgNames.push(sanitizeIdentifier(\"jit_\" + name + id));\n }\n ctx.print(this._evalArgNames[id]);\n return null;\n };\n return JitEmitterVisitor;\n }(AbstractJsEmitterVisitor));\n\n /**\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\n *\n * Please make sure to keep to edits in sync with the source file.\n *\n * Source:\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n *\n * The original file level comment is reproduced below\n */\n /*\n This is a limited shim for ShadowDOM css styling.\n https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles\n\n The intention here is to support only the styling features which can be\n relatively simply implemented. The goal is to allow users to avoid the\n most obvious pitfalls and do so without compromising performance significantly.\n For ShadowDOM styling that's not covered here, a set of best practices\n can be provided that should allow users to accomplish more complex styling.\n\n The following is a list of specific ShadowDOM styling features and a brief\n discussion of the approach used to shim.\n\n Shimmed features:\n\n * :host, :host-context: ShadowDOM allows styling of the shadowRoot's host\n element using the :host rule. To shim this feature, the :host styles are\n reformatted and prefixed with a given scope name and promoted to a\n document level stylesheet.\n For example, given a scope name of .foo, a rule like this:\n\n :host {\n background: red;\n }\n }\n\n becomes:\n\n .foo {\n background: red;\n }\n\n * encapsulation: Styles defined within ShadowDOM, apply only to\n dom inside the ShadowDOM. Polymer uses one of two techniques to implement\n this feature.\n\n By default, rules are prefixed with the host element tag name\n as a descendant selector. This ensures styling does not leak out of the 'top'\n of the element's ShadowDOM. For example,\n\n div {\n font-weight: bold;\n }\n\n becomes:\n\n x-foo div {\n font-weight: bold;\n }\n\n becomes:\n\n\n Alternatively, if WebComponents.ShadowCSS.strictStyling is set to true then\n selectors are scoped by adding an attribute selector suffix to each\n simple selector that contains the host element tag name. Each element\n in the element's ShadowDOM template is also given the scope attribute.\n Thus, these rules match only elements that have the scope attribute.\n For example, given a scope name of x-foo, a rule like this:\n\n div {\n font-weight: bold;\n }\n\n becomes:\n\n div[x-foo] {\n font-weight: bold;\n }\n\n Note that elements that are dynamically added to a scope must have the scope\n selector added to them manually.\n\n * upper/lower bound encapsulation: Styles which are defined outside a\n shadowRoot should not cross the ShadowDOM boundary and should not apply\n inside a shadowRoot.\n\n This styling behavior is not emulated. Some possible ways to do this that\n were rejected due to complexity and/or performance concerns include: (1) reset\n every possible property for every possible selector for a given scope name;\n (2) re-implement css in javascript.\n\n As an alternative, users should make sure to use selectors\n specific to the scope in which they are working.\n\n * ::distributed: This behavior is not emulated. It's often not necessary\n to style the contents of a specific insertion point and instead, descendants\n of the host element can be styled selectively. Users can also create an\n extra node around an insertion point and style that node's contents\n via descendent selectors. For example, with a shadowRoot like this:\n\n <style>\n ::content(div) {\n background: red;\n }\n </style>\n <content></content>\n\n could become:\n\n <style>\n / *@polyfill .content-container div * /\n ::content(div) {\n background: red;\n }\n </style>\n <div class=\"content-container\">\n <content></content>\n </div>\n\n Note the use of @polyfill in the comment above a ShadowDOM specific style\n declaration. This is a directive to the styling shim to use the selector\n in comments in lieu of the next selector when running under polyfill.\n */\n var ShadowCss = (function () {\n function ShadowCss() {\n this.strictStyling = true;\n }\n /*\n * Shim some cssText with the given selector. Returns cssText that can\n * be included in the document via WebComponents.ShadowCSS.addCssToDocument(css).\n *\n * When strictStyling is true:\n * - selector is the attribute added to all elements inside the host,\n * - hostSelector is the attribute added to the host itself.\n */\n ShadowCss.prototype.shimCssText = function (cssText, selector, hostSelector) {\n if (hostSelector === void 0) { hostSelector = ''; }\n var sourceMappingUrl = extractSourceMappingUrl(cssText);\n cssText = stripComments(cssText);\n cssText = this._insertDirectives(cssText);\n return this._scopeCssText(cssText, selector, hostSelector) + sourceMappingUrl;\n };\n ShadowCss.prototype._insertDirectives = function (cssText) {\n cssText = this._insertPolyfillDirectivesInCssText(cssText);\n return this._insertPolyfillRulesInCssText(cssText);\n };\n /*\n * Process styles to convert native ShadowDOM rules that will trip\n * up the css parser; we rely on decorating the stylesheet with inert rules.\n *\n * For example, we convert this rule:\n *\n * polyfill-next-selector { content: ':host menu-item'; }\n * ::content menu-item {\n *\n * to this:\n *\n * scopeName menu-item {\n *\n **/\n ShadowCss.prototype._insertPolyfillDirectivesInCssText = function (cssText) {\n // Difference with webcomponents.js: does not handle comments\n return StringWrapper.replaceAllMapped(cssText, _cssContentNextSelectorRe, function (m /** TODO #9100 */) { return m[1] + '{'; });\n };\n /*\n * Process styles to add rules which will only apply under the polyfill\n *\n * For example, we convert this rule:\n *\n * polyfill-rule {\n * content: ':host menu-item';\n * ...\n * }\n *\n * to this:\n *\n * scopeName menu-item {...}\n *\n **/\n ShadowCss.prototype._insertPolyfillRulesInCssText = function (cssText) {\n // Difference with webcomponents.js: does not handle comments\n return StringWrapper.replaceAllMapped(cssText, _cssContentRuleRe, function (m /** TODO #9100 */) {\n var rule = m[0];\n rule = StringWrapper.replace(rule, m[1], '');\n rule = StringWrapper.replace(rule, m[2], '');\n return m[3] + rule;\n });\n };\n /* Ensure styles are scoped. Pseudo-scoping takes a rule like:\n *\n * .foo {... }\n *\n * and converts this to\n *\n * scopeName .foo { ... }\n */\n ShadowCss.prototype._scopeCssText = function (cssText, scopeSelector, hostSelector) {\n var unscoped = this._extractUnscopedRulesFromCssText(cssText);\n cssText = this._insertPolyfillHostInCssText(cssText);\n cssText = this._convertColonHost(cssText);\n cssText = this._convertColonHostContext(cssText);\n cssText = this._convertShadowDOMSelectors(cssText);\n if (isPresent(scopeSelector)) {\n cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);\n }\n cssText = cssText + '\\n' + unscoped;\n return cssText.trim();\n };\n /*\n * Process styles to add rules which will only apply under the polyfill\n * and do not process via CSSOM. (CSSOM is destructive to rules on rare\n * occasions, e.g. -webkit-calc on Safari.)\n * For example, we convert this rule:\n *\n * @polyfill-unscoped-rule {\n * content: 'menu-item';\n * ... }\n *\n * to this:\n *\n * menu-item {...}\n *\n **/\n ShadowCss.prototype._extractUnscopedRulesFromCssText = function (cssText) {\n // Difference with webcomponents.js: does not handle comments\n var r = '';\n var m;\n _cssContentUnscopedRuleRe.lastIndex = 0;\n while ((m = _cssContentUnscopedRuleRe.exec(cssText)) !== null) {\n var rule = m[0];\n rule = StringWrapper.replace(rule, m[2], '');\n rule = StringWrapper.replace(rule, m[1], m[3]);\n r += rule + '\\n\\n';\n }\n return r;\n };\n /*\n * convert a rule like :host(.foo) > .bar { }\n *\n * to\n *\n * scopeName.foo > .bar\n */\n ShadowCss.prototype._convertColonHost = function (cssText) {\n return this._convertColonRule(cssText, _cssColonHostRe, this._colonHostPartReplacer);\n };\n /*\n * convert a rule like :host-context(.foo) > .bar { }\n *\n * to\n *\n * scopeName.foo > .bar, .foo scopeName > .bar { }\n *\n * and\n *\n * :host-context(.foo:host) .bar { ... }\n *\n * to\n *\n * scopeName.foo .bar { ... }\n */\n ShadowCss.prototype._convertColonHostContext = function (cssText) {\n return this._convertColonRule(cssText, _cssColonHostContextRe, this._colonHostContextPartReplacer);\n };\n ShadowCss.prototype._convertColonRule = function (cssText, regExp, partReplacer) {\n // p1 = :host, p2 = contents of (), p3 rest of rule\n return StringWrapper.replaceAllMapped(cssText, regExp, function (m /** TODO #9100 */) {\n if (isPresent(m[2])) {\n var parts = m[2].split(','), r = [];\n for (var i = 0; i < parts.length; i++) {\n var p = parts[i];\n if (isBlank(p))\n break;\n p = p.trim();\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\n }\n return r.join(',');\n }\n else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n };\n ShadowCss.prototype._colonHostContextPartReplacer = function (host, part, suffix) {\n if (StringWrapper.contains(part, _polyfillHost)) {\n return this._colonHostPartReplacer(host, part, suffix);\n }\n else {\n return host + part + suffix + ', ' + part + ' ' + host + suffix;\n }\n };\n ShadowCss.prototype._colonHostPartReplacer = function (host, part, suffix) {\n return host + StringWrapper.replace(part, _polyfillHost, '') + suffix;\n };\n /*\n * Convert combinators like ::shadow and pseudo-elements like ::content\n * by replacing with space.\n */\n ShadowCss.prototype._convertShadowDOMSelectors = function (cssText) {\n return _shadowDOMSelectorsRe.reduce(function (result, pattern) { return StringWrapper.replaceAll(result, pattern, ' '); }, cssText);\n };\n // change a selector like 'div' to 'name div'\n ShadowCss.prototype._scopeSelectors = function (cssText, scopeSelector, hostSelector) {\n var _this = this;\n return processRules(cssText, function (rule) {\n var selector = rule.selector;\n var content = rule.content;\n if (rule.selector[0] != '@' || rule.selector.startsWith('@page')) {\n selector =\n _this._scopeSelector(rule.selector, scopeSelector, hostSelector, _this.strictStyling);\n }\n else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports')) {\n content = _this._scopeSelectors(rule.content, scopeSelector, hostSelector);\n }\n return new CssRule(selector, content);\n });\n };\n ShadowCss.prototype._scopeSelector = function (selector, scopeSelector, hostSelector, strict) {\n var _this = this;\n return selector.split(',')\n .map(function (part) { return part.trim().split(_shadowDeepSelectors); })\n .map(function (deepParts) {\n var shallowPart = deepParts[0], otherParts = deepParts.slice(1);\n var applyScope = function (shallowPart) {\n if (_this._selectorNeedsScoping(shallowPart, scopeSelector)) {\n return strict ?\n _this._applyStrictSelectorScope(shallowPart, scopeSelector, hostSelector) :\n _this._applySelectorScope(shallowPart, scopeSelector, hostSelector);\n }\n else {\n return shallowPart;\n }\n };\n return [applyScope(shallowPart)].concat(otherParts).join(' ');\n })\n .join(', ');\n };\n ShadowCss.prototype._selectorNeedsScoping = function (selector, scopeSelector) {\n var re = this._makeScopeMatcher(scopeSelector);\n return !re.test(selector);\n };\n ShadowCss.prototype._makeScopeMatcher = function (scopeSelector) {\n var lre = /\\[/g;\n var rre = /\\]/g;\n scopeSelector = StringWrapper.replaceAll(scopeSelector, lre, '\\\\[');\n scopeSelector = StringWrapper.replaceAll(scopeSelector, rre, '\\\\]');\n return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\n };\n ShadowCss.prototype._applySelectorScope = function (selector, scopeSelector, hostSelector) {\n // Difference from webcomponents.js: scopeSelector could not be an array\n return this._applySimpleSelectorScope(selector, scopeSelector, hostSelector);\n };\n // scope via name and [is=name]\n ShadowCss.prototype._applySimpleSelectorScope = function (selector, scopeSelector, hostSelector) {\n // In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n var replaceBy = this.strictStyling ? \"[\" + hostSelector + \"]\" : scopeSelector;\n selector = StringWrapper.replace(selector, _polyfillHostNoCombinator, replaceBy);\n return StringWrapper.replaceAll(selector, _polyfillHostRe, replaceBy + ' ');\n }\n else {\n return scopeSelector + ' ' + selector;\n }\n };\n // return a selector with [name] suffix on each simple selector\n // e.g. .foo.bar > .zot becomes .foo[name].bar[name] > .zot[name] /** @internal */\n ShadowCss.prototype._applyStrictSelectorScope = function (selector, scopeSelector, hostSelector) {\n var _this = this;\n var isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector = scopeSelector.replace(isRe, function (_) {\n var parts = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n parts[_i - 1] = arguments[_i];\n }\n return parts[0];\n });\n var attrName = '[' + scopeSelector + ']';\n var _scopeSelectorPart = function (p) {\n var scopedP = p.trim();\n if (scopedP.length == 0) {\n return '';\n }\n if (p.indexOf(_polyfillHostNoCombinator) > -1) {\n scopedP = _this._applySimpleSelectorScope(p, scopeSelector, hostSelector);\n }\n else {\n // remove :host since it should be unnecessary\n var t = p.replace(_polyfillHostRe, '');\n if (t.length > 0) {\n var matches = t.match(/([^:]*)(:*)(.*)/);\n if (matches !== null) {\n scopedP = matches[1] + attrName + matches[2] + matches[3];\n }\n }\n }\n return scopedP;\n };\n var sep = /( |>|\\+|~)\\s*/g;\n var scopeAfter = selector.indexOf(_polyfillHostNoCombinator);\n var scoped = '';\n var startIndex = 0;\n var res;\n while ((res = sep.exec(selector)) !== null) {\n var separator = res[1];\n var part = selector.slice(startIndex, res.index).trim();\n // if a selector appears before :host-context it should not be shimmed as it\n // matches on ancestor elements and not on elements in the host's shadow\n var scopedPart = startIndex >= scopeAfter ? _scopeSelectorPart(part) : part;\n scoped += scopedPart + \" \" + separator + \" \";\n startIndex = sep.lastIndex;\n }\n return scoped + _scopeSelectorPart(selector.substring(startIndex));\n };\n ShadowCss.prototype._insertPolyfillHostInCssText = function (selector) {\n return selector.replace(_colonHostContextRe, _polyfillHostContext)\n .replace(_colonHostRe, _polyfillHost);\n };\n return ShadowCss;\n }());\n var _cssContentNextSelectorRe = /polyfill-next-selector[^}]*content:[\\s]*?['\"](.*?)['\"][;\\s]*}([^{]*?){/gim;\n var _cssContentRuleRe = /(polyfill-rule)[^}]*(content:[\\s]*['\"](.*?)['\"])[;\\s]*[^}]*}/gim;\n var _cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content:[\\s]*['\"](.*?)['\"])[;\\s]*[^}]*}/gim;\n var _polyfillHost = '-shadowcsshost';\n // note: :host-context pre-processed to -shadowcsshostcontext.\n var _polyfillHostContext = '-shadowcsscontext';\n var _parenSuffix = ')(?:\\\\((' +\n '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' +\n ')\\\\))?([^,{]*)';\n var _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');\n var _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');\n var _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\n var _shadowDOMSelectorsRe = [\n /::shadow/g,\n /::content/g,\n // Deprecated selectors\n /\\/shadow-deep\\//g,\n /\\/shadow\\//g,\n ];\n var _shadowDeepSelectors = /(?:>>>)|(?:\\/deep\\/)/g;\n var _selectorReSuffix = '([>\\\\s~+\\[.,{:][\\\\s\\\\S]*)?$';\n var _polyfillHostRe = /-shadowcsshost/gim;\n var _colonHostRe = /:host/gim;\n var _colonHostContextRe = /:host-context/gim;\n var _commentRe = /\\/\\*\\s*[\\s\\S]*?\\*\\//g;\n function stripComments(input) {\n return StringWrapper.replaceAllMapped(input, _commentRe, function (_ /** TODO #9100 */) { return ''; });\n }\n // all comments except inline source mapping (\"/* #sourceMappingURL= ... */\")\n var _sourceMappingUrlRe = /[\\s\\S]*(\\/\\*\\s*#\\s*sourceMappingURL=[\\s\\S]+?\\*\\/)\\s*$/;\n function extractSourceMappingUrl(input) {\n var matcher = input.match(_sourceMappingUrlRe);\n return matcher ? matcher[1] : '';\n }\n var _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\n var _curlyRe = /([{}])/g;\n var OPEN_CURLY = '{';\n var CLOSE_CURLY = '}';\n var BLOCK_PLACEHOLDER = '%BLOCK%';\n var CssRule = (function () {\n function CssRule(selector, content) {\n this.selector = selector;\n this.content = content;\n }\n return CssRule;\n }());\n function processRules(input, ruleCallback) {\n var inputWithEscapedBlocks = escapeBlocks(input);\n var nextBlockIndex = 0;\n return StringWrapper.replaceAllMapped(inputWithEscapedBlocks.escapedString, _ruleRe, function (m /** TODO #9100 */) {\n var selector = m[2];\n var content = '';\n var suffix = m[4];\n var contentPrefix = '';\n if (isPresent(m[4]) && m[4].startsWith('{' + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = m[4].substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = '{';\n }\n var rule = ruleCallback(new CssRule(selector, content));\n return \"\" + m[1] + rule.selector + m[3] + contentPrefix + rule.content + suffix;\n });\n }\n var StringWithEscapedBlocks = (function () {\n function StringWithEscapedBlocks(escapedString, blocks) {\n this.escapedString = escapedString;\n this.blocks = blocks;\n }\n return StringWithEscapedBlocks;\n }());\n function escapeBlocks(input) {\n var inputParts = StringWrapper.split(input, _curlyRe);\n var resultParts = [];\n var escapedBlocks = [];\n var bracketCount = 0;\n var currentBlockParts = [];\n for (var partIndex = 0; partIndex < inputParts.length; partIndex++) {\n var part = inputParts[partIndex];\n if (part == CLOSE_CURLY) {\n bracketCount--;\n }\n if (bracketCount > 0) {\n currentBlockParts.push(part);\n }\n else {\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(''));\n resultParts.push(BLOCK_PLACEHOLDER);\n currentBlockParts = [];\n }\n resultParts.push(part);\n }\n if (part == OPEN_CURLY) {\n bracketCount++;\n }\n }\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(''));\n resultParts.push(BLOCK_PLACEHOLDER);\n }\n return new StringWithEscapedBlocks(resultParts.join(''), escapedBlocks);\n }\n\n var COMPONENT_VARIABLE = '%COMP%';\n var HOST_ATTR = \"_nghost-\" + COMPONENT_VARIABLE;\n var CONTENT_ATTR = \"_ngcontent-\" + COMPONENT_VARIABLE;\n var StylesCompileDependency = (function () {\n function StylesCompileDependency(moduleUrl, isShimmed, valuePlaceholder) {\n this.moduleUrl = moduleUrl;\n this.isShimmed = isShimmed;\n this.valuePlaceholder = valuePlaceholder;\n }\n return StylesCompileDependency;\n }());\n var StylesCompileResult = (function () {\n function StylesCompileResult(componentStylesheet, externalStylesheets) {\n this.componentStylesheet = componentStylesheet;\n this.externalStylesheets = externalStylesheets;\n }\n return StylesCompileResult;\n }());\n var CompiledStylesheet = (function () {\n function CompiledStylesheet(statements, stylesVar, dependencies, isShimmed, meta) {\n this.statements = statements;\n this.stylesVar = stylesVar;\n this.dependencies = dependencies;\n this.isShimmed = isShimmed;\n this.meta = meta;\n }\n return CompiledStylesheet;\n }());\n var StyleCompiler = (function () {\n function StyleCompiler(_urlResolver) {\n this._urlResolver = _urlResolver;\n this._shadowCss = new ShadowCss();\n }\n StyleCompiler.prototype.compileComponent = function (comp) {\n var _this = this;\n var externalStylesheets = [];\n var componentStylesheet = this._compileStyles(comp, new CompileStylesheetMetadata({\n styles: comp.template.styles,\n styleUrls: comp.template.styleUrls,\n moduleUrl: comp.type.moduleUrl\n }), true);\n comp.template.externalStylesheets.forEach(function (stylesheetMeta) {\n var compiledStylesheet = _this._compileStyles(comp, stylesheetMeta, false);\n externalStylesheets.push(compiledStylesheet);\n });\n return new StylesCompileResult(componentStylesheet, externalStylesheets);\n };\n StyleCompiler.prototype._compileStyles = function (comp, stylesheet, isComponentStylesheet) {\n var _this = this;\n var shim = comp.template.encapsulation === _angular_core.ViewEncapsulation.Emulated;\n var styleExpressions = stylesheet.styles.map(function (plainStyle) { return literal(_this._shimIfNeeded(plainStyle, shim)); });\n var dependencies = [];\n for (var i = 0; i < stylesheet.styleUrls.length; i++) {\n var identifier = new CompileIdentifierMetadata({ name: getStylesVarName(null) });\n dependencies.push(new StylesCompileDependency(stylesheet.styleUrls[i], shim, identifier));\n styleExpressions.push(new ExternalExpr(identifier));\n }\n // styles variable contains plain strings and arrays of other styles arrays (recursive),\n // so we set its type to dynamic.\n var stylesVar = getStylesVarName(isComponentStylesheet ? comp : null);\n var stmt = variable(stylesVar)\n .set(literalArr(styleExpressions, new ArrayType(DYNAMIC_TYPE, [TypeModifier.Const])))\n .toDeclStmt(null, [StmtModifier.Final]);\n return new CompiledStylesheet([stmt], stylesVar, dependencies, shim, stylesheet);\n };\n StyleCompiler.prototype._shimIfNeeded = function (style, shim) {\n return shim ? this._shadowCss.shimCssText(style, CONTENT_ATTR, HOST_ATTR) : style;\n };\n StyleCompiler.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n StyleCompiler.ctorParameters = [\n { type: UrlResolver, },\n ];\n return StyleCompiler;\n }());\n function getStylesVarName(component) {\n var result = \"styles\";\n if (component) {\n result += \"_\" + component.type.name;\n }\n return result;\n }\n\n /**\n * An internal module of the Angular compiler that begins with component types,\n * extracts templates, and eventually produces a compiled version of the component\n * ready for linking into an application.\n *\n * @security When compiling templates at runtime, you must ensure that the entire template comes\n * from a trusted source. Attacker-controlled data introduced by a template could expose your\n * application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).\n */\n var RuntimeCompiler = (function () {\n function RuntimeCompiler(_injector, _metadataResolver, _templateNormalizer, _templateParser, _styleCompiler, _viewCompiler, _ngModuleCompiler, _compilerConfig) {\n this._injector = _injector;\n this._metadataResolver = _metadataResolver;\n this._templateNormalizer = _templateNormalizer;\n this._templateParser = _templateParser;\n this._styleCompiler = _styleCompiler;\n this._viewCompiler = _viewCompiler;\n this._ngModuleCompiler = _ngModuleCompiler;\n this._compilerConfig = _compilerConfig;\n this._compiledTemplateCache = new Map();\n this._compiledHostTemplateCache = new Map();\n this._compiledNgModuleCache = new Map();\n }\n Object.defineProperty(RuntimeCompiler.prototype, \"injector\", {\n get: function () { return this._injector; },\n enumerable: true,\n configurable: true\n });\n RuntimeCompiler.prototype.compileModuleSync = function (moduleType) {\n return this._compileModuleAndComponents(moduleType, true).syncResult;\n };\n RuntimeCompiler.prototype.compileModuleAsync = function (moduleType) {\n return this._compileModuleAndComponents(moduleType, false).asyncResult;\n };\n RuntimeCompiler.prototype.compileModuleAndAllComponentsSync = function (moduleType) {\n return this._compileModuleAndAllComponents(moduleType, true).syncResult;\n };\n RuntimeCompiler.prototype.compileModuleAndAllComponentsAsync = function (moduleType) {\n return this._compileModuleAndAllComponents(moduleType, false).asyncResult;\n };\n RuntimeCompiler.prototype._compileModuleAndComponents = function (moduleType, isSync) {\n var componentPromise = this._compileComponents(moduleType, isSync);\n var ngModuleFactory = this._compileModule(moduleType);\n return new SyncAsyncResult(ngModuleFactory, componentPromise.then(function () { return ngModuleFactory; }));\n };\n RuntimeCompiler.prototype._compileModuleAndAllComponents = function (moduleType, isSync) {\n var _this = this;\n var componentPromise = this._compileComponents(moduleType, isSync);\n var ngModuleFactory = this._compileModule(moduleType);\n var moduleMeta = this._metadataResolver.getNgModuleMetadata(moduleType);\n var componentFactories = [];\n var templates = new Set();\n moduleMeta.transitiveModule.modules.forEach(function (moduleMeta) {\n moduleMeta.declaredDirectives.forEach(function (dirMeta) {\n if (dirMeta.isComponent) {\n var template = _this._createCompiledHostTemplate(dirMeta.type.reference);\n templates.add(template);\n componentFactories.push(template.proxyComponentFactory);\n }\n });\n });\n var syncResult = new _angular_core.ModuleWithComponentFactories(ngModuleFactory, componentFactories);\n // Note: host components themselves can always be compiled synchronously as they have an\n // inline template. However, we still need to wait for the components that they\n // reference to be loaded / compiled.\n var compile = function () {\n templates.forEach(function (template) { _this._compileTemplate(template); });\n return syncResult;\n };\n var asyncResult = isSync ? Promise.resolve(compile()) : componentPromise.then(compile);\n return new SyncAsyncResult(syncResult, asyncResult);\n };\n RuntimeCompiler.prototype._compileModule = function (moduleType) {\n var _this = this;\n var ngModuleFactory = this._compiledNgModuleCache.get(moduleType);\n if (!ngModuleFactory) {\n var moduleMeta_1 = this._metadataResolver.getNgModuleMetadata(moduleType);\n // Always provide a bound Compiler\n var extraProviders = [this._metadataResolver.getProviderMetadata(new ProviderMeta(_angular_core.Compiler, { useFactory: function () { return new ModuleBoundCompiler(_this, moduleMeta_1.type.reference); } }))];\n var compileResult = this._ngModuleCompiler.compile(moduleMeta_1, extraProviders);\n compileResult.dependencies.forEach(function (dep) {\n dep.placeholder.reference =\n _this._assertComponentKnown(dep.comp.reference, true).proxyComponentFactory;\n dep.placeholder.name = \"compFactory_\" + dep.comp.name;\n });\n if (!this._compilerConfig.useJit) {\n ngModuleFactory =\n interpretStatements(compileResult.statements, compileResult.ngModuleFactoryVar);\n }\n else {\n ngModuleFactory = jitStatements(moduleMeta_1.type.name + \".ngfactory.js\", compileResult.statements, compileResult.ngModuleFactoryVar);\n }\n this._compiledNgModuleCache.set(moduleMeta_1.type.reference, ngModuleFactory);\n }\n return ngModuleFactory;\n };\n /**\n * @internal\n */\n RuntimeCompiler.prototype._compileComponents = function (mainModule, isSync) {\n var _this = this;\n var templates = new Set();\n var loadingPromises = [];\n var ngModule = this._metadataResolver.getNgModuleMetadata(mainModule);\n ngModule.transitiveModule.modules.forEach(function (localModuleMeta) {\n localModuleMeta.declaredDirectives.forEach(function (dirMeta) {\n if (dirMeta.isComponent) {\n templates.add(_this._createCompiledTemplate(dirMeta, localModuleMeta));\n dirMeta.entryComponents.forEach(function (entryComponentType) {\n templates.add(_this._createCompiledHostTemplate(entryComponentType.reference));\n });\n }\n });\n localModuleMeta.entryComponents.forEach(function (entryComponentType) {\n templates.add(_this._createCompiledHostTemplate(entryComponentType.reference));\n // TODO: what about entryComponents of entryComponents?\n });\n });\n templates.forEach(function (template) {\n if (template.loading) {\n if (isSync) {\n throw new ComponentStillLoadingError(template.compType.reference);\n }\n else {\n loadingPromises.push(template.loading);\n }\n }\n });\n var compile = function () { templates.forEach(function (template) { _this._compileTemplate(template); }); };\n if (isSync) {\n compile();\n return Promise.resolve(null);\n }\n else {\n return Promise.all(loadingPromises).then(compile);\n }\n };\n RuntimeCompiler.prototype.clearCacheFor = function (type) {\n this._compiledNgModuleCache.delete(type);\n this._metadataResolver.clearCacheFor(type);\n this._compiledHostTemplateCache.delete(type);\n var compiledTemplate = this._compiledTemplateCache.get(type);\n if (compiledTemplate) {\n this._templateNormalizer.clearCacheFor(compiledTemplate.normalizedCompMeta);\n this._compiledTemplateCache.delete(type);\n }\n };\n RuntimeCompiler.prototype.clearCache = function () {\n this._metadataResolver.clearCache();\n this._compiledTemplateCache.clear();\n this._compiledHostTemplateCache.clear();\n this._templateNormalizer.clearCache();\n this._compiledNgModuleCache.clear();\n };\n RuntimeCompiler.prototype._createCompiledHostTemplate = function (compType) {\n var compiledTemplate = this._compiledHostTemplateCache.get(compType);\n if (isBlank(compiledTemplate)) {\n var compMeta = this._metadataResolver.getDirectiveMetadata(compType);\n assertComponent(compMeta);\n var hostMeta = createHostComponentMeta(compMeta);\n compiledTemplate = new CompiledTemplate(true, compMeta.selector, compMeta.type, [compMeta], [], [], this._templateNormalizer.normalizeDirective(hostMeta));\n this._compiledHostTemplateCache.set(compType, compiledTemplate);\n }\n return compiledTemplate;\n };\n RuntimeCompiler.prototype._createCompiledTemplate = function (compMeta, ngModule) {\n var compiledTemplate = this._compiledTemplateCache.get(compMeta.type.reference);\n if (isBlank(compiledTemplate)) {\n assertComponent(compMeta);\n compiledTemplate = new CompiledTemplate(false, compMeta.selector, compMeta.type, ngModule.transitiveModule.directives, ngModule.transitiveModule.pipes, ngModule.schemas, this._templateNormalizer.normalizeDirective(compMeta));\n this._compiledTemplateCache.set(compMeta.type.reference, compiledTemplate);\n }\n return compiledTemplate;\n };\n RuntimeCompiler.prototype._assertComponentKnown = function (compType, isHost) {\n var compiledTemplate = isHost ? this._compiledHostTemplateCache.get(compType) :\n this._compiledTemplateCache.get(compType);\n if (!compiledTemplate) {\n if (isHost) {\n throw new Error(\"Illegal state: Compiled view for component \" + stringify(compType) + \" does not exist!\");\n }\n else {\n throw new Error(\"Component \" + stringify(compType) + \" is not part of any NgModule or the module has not been imported into your module.\");\n }\n }\n return compiledTemplate;\n };\n RuntimeCompiler.prototype._assertComponentLoaded = function (compType, isHost) {\n var compiledTemplate = this._assertComponentKnown(compType, isHost);\n if (compiledTemplate.loading) {\n throw new Error(\"Illegal state: CompiledTemplate for \" + stringify(compType) + \" (isHost: \" + isHost + \") is still loading!\");\n }\n return compiledTemplate;\n };\n RuntimeCompiler.prototype._compileTemplate = function (template) {\n var _this = this;\n if (template.isCompiled) {\n return;\n }\n var compMeta = template.normalizedCompMeta;\n var externalStylesheetsByModuleUrl = new Map();\n var stylesCompileResult = this._styleCompiler.compileComponent(compMeta);\n stylesCompileResult.externalStylesheets.forEach(function (r) { externalStylesheetsByModuleUrl.set(r.meta.moduleUrl, r); });\n this._resolveStylesCompileResult(stylesCompileResult.componentStylesheet, externalStylesheetsByModuleUrl);\n var viewCompMetas = template.viewComponentTypes.map(function (compType) { return _this._assertComponentLoaded(compType, false).normalizedCompMeta; });\n var parsedTemplate = this._templateParser.parse(compMeta, compMeta.template.template, template.viewDirectives.concat(viewCompMetas), template.viewPipes, template.schemas, compMeta.type.name);\n var compileResult = this._viewCompiler.compileComponent(compMeta, parsedTemplate, variable(stylesCompileResult.componentStylesheet.stylesVar), template.viewPipes);\n compileResult.dependencies.forEach(function (dep) {\n var depTemplate;\n if (dep instanceof ViewFactoryDependency) {\n var vfd = dep;\n depTemplate = _this._assertComponentLoaded(vfd.comp.reference, false);\n vfd.placeholder.reference = depTemplate.proxyViewFactory;\n vfd.placeholder.name = \"viewFactory_\" + vfd.comp.name;\n }\n else if (dep instanceof ComponentFactoryDependency) {\n var cfd = dep;\n depTemplate = _this._assertComponentLoaded(cfd.comp.reference, true);\n cfd.placeholder.reference = depTemplate.proxyComponentFactory;\n cfd.placeholder.name = \"compFactory_\" + cfd.comp.name;\n }\n });\n var statements = stylesCompileResult.componentStylesheet.statements.concat(compileResult.statements);\n var factory;\n if (!this._compilerConfig.useJit) {\n factory = interpretStatements(statements, compileResult.viewFactoryVar);\n }\n else {\n factory = jitStatements(\"\" + template.compType.name + (template.isHost ? '_Host' : '') + \".ngfactory.js\", statements, compileResult.viewFactoryVar);\n }\n template.compiled(factory);\n };\n RuntimeCompiler.prototype._resolveStylesCompileResult = function (result, externalStylesheetsByModuleUrl) {\n var _this = this;\n result.dependencies.forEach(function (dep, i) {\n var nestedCompileResult = externalStylesheetsByModuleUrl.get(dep.moduleUrl);\n var nestedStylesArr = _this._resolveAndEvalStylesCompileResult(nestedCompileResult, externalStylesheetsByModuleUrl);\n dep.valuePlaceholder.reference = nestedStylesArr;\n dep.valuePlaceholder.name = \"importedStyles\" + i;\n });\n };\n RuntimeCompiler.prototype._resolveAndEvalStylesCompileResult = function (result, externalStylesheetsByModuleUrl) {\n this._resolveStylesCompileResult(result, externalStylesheetsByModuleUrl);\n if (!this._compilerConfig.useJit) {\n return interpretStatements(result.statements, result.stylesVar);\n }\n else {\n return jitStatements(result.meta.moduleUrl + \".css.js\", result.statements, result.stylesVar);\n }\n };\n RuntimeCompiler.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n RuntimeCompiler.ctorParameters = [\n { type: _angular_core.Injector, },\n { type: CompileMetadataResolver, },\n { type: DirectiveNormalizer, },\n { type: TemplateParser, },\n { type: StyleCompiler, },\n { type: ViewCompiler, },\n { type: NgModuleCompiler, },\n { type: CompilerConfig, },\n ];\n return RuntimeCompiler;\n }());\n var CompiledTemplate = (function () {\n function CompiledTemplate(isHost, selector, compType, viewDirectivesAndComponents, viewPipes, schemas, _normalizeResult) {\n var _this = this;\n this.isHost = isHost;\n this.compType = compType;\n this.viewPipes = viewPipes;\n this.schemas = schemas;\n this._viewFactory = null;\n this.loading = null;\n this._normalizedCompMeta = null;\n this.isCompiled = false;\n this.isCompiledWithDeps = false;\n this.viewComponentTypes = [];\n this.viewDirectives = [];\n viewDirectivesAndComponents.forEach(function (dirMeta) {\n if (dirMeta.isComponent) {\n _this.viewComponentTypes.push(dirMeta.type.reference);\n }\n else {\n _this.viewDirectives.push(dirMeta);\n }\n });\n this.proxyViewFactory = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i - 0] = arguments[_i];\n }\n if (!_this._viewFactory) {\n throw new Error(\"Illegal state: CompiledTemplate for \" + stringify(_this.compType) + \" is not compiled yet!\");\n }\n return _this._viewFactory.apply(null, args);\n };\n this.proxyComponentFactory = isHost ?\n new _angular_core.ComponentFactory(selector, this.proxyViewFactory, compType.reference) :\n null;\n if (_normalizeResult.syncResult) {\n this._normalizedCompMeta = _normalizeResult.syncResult;\n }\n else {\n this.loading = _normalizeResult.asyncResult.then(function (normalizedCompMeta) {\n _this._normalizedCompMeta = normalizedCompMeta;\n _this.loading = null;\n });\n }\n }\n Object.defineProperty(CompiledTemplate.prototype, \"normalizedCompMeta\", {\n get: function () {\n if (this.loading) {\n throw new Error(\"Template is still loading for \" + this.compType.name + \"!\");\n }\n return this._normalizedCompMeta;\n },\n enumerable: true,\n configurable: true\n });\n CompiledTemplate.prototype.compiled = function (viewFactory) {\n this._viewFactory = viewFactory;\n this.isCompiled = true;\n };\n CompiledTemplate.prototype.depsCompiled = function () { this.isCompiledWithDeps = true; };\n return CompiledTemplate;\n }());\n function assertComponent(meta) {\n if (!meta.isComponent) {\n throw new Error(\"Could not compile '\" + meta.type.name + \"' because it is not a component.\");\n }\n }\n /**\n * Implements `Compiler` by delegating to the RuntimeCompiler using a known module.\n */\n var ModuleBoundCompiler = (function () {\n function ModuleBoundCompiler(_delegate, _ngModule) {\n this._delegate = _delegate;\n this._ngModule = _ngModule;\n }\n Object.defineProperty(ModuleBoundCompiler.prototype, \"_injector\", {\n get: function () { return this._delegate.injector; },\n enumerable: true,\n configurable: true\n });\n ModuleBoundCompiler.prototype.compileModuleSync = function (moduleType) {\n return this._delegate.compileModuleSync(moduleType);\n };\n ModuleBoundCompiler.prototype.compileModuleAsync = function (moduleType) {\n return this._delegate.compileModuleAsync(moduleType);\n };\n ModuleBoundCompiler.prototype.compileModuleAndAllComponentsSync = function (moduleType) {\n return this._delegate.compileModuleAndAllComponentsSync(moduleType);\n };\n ModuleBoundCompiler.prototype.compileModuleAndAllComponentsAsync = function (moduleType) {\n return this._delegate.compileModuleAndAllComponentsAsync(moduleType);\n };\n /**\n * Clears all caches\n */\n ModuleBoundCompiler.prototype.clearCache = function () { this._delegate.clearCache(); };\n /**\n * Clears the cache for the given component/ngModule.\n */\n ModuleBoundCompiler.prototype.clearCacheFor = function (type) { this._delegate.clearCacheFor(type); };\n return ModuleBoundCompiler;\n }());\n\n // =================================================================================================\n // =================================================================================================\n // =========== S T O P - S T O P - S T O P - S T O P - S T O P - S T O P ===========\n // =================================================================================================\n // =================================================================================================\n //\n // DO NOT EDIT THIS LIST OF SECURITY SENSITIVE PROPERTIES WITHOUT A SECURITY REVIEW!\n // Reach out to mprobst for details.\n //\n // =================================================================================================\n /** Map from tagName|propertyName SecurityContext. Properties applying to all tags use '*'. */\n var SECURITY_SCHEMA = {};\n function registerContext(ctx, specs) {\n for (var _i = 0, specs_1 = specs; _i < specs_1.length; _i++) {\n var spec = specs_1[_i];\n SECURITY_SCHEMA[spec.toLowerCase()] = ctx;\n }\n }\n // Case is insignificant below, all element and attribute names are lower-cased for lookup.\n registerContext(_angular_core.SecurityContext.HTML, [\n 'iframe|srcdoc',\n '*|innerHTML',\n '*|outerHTML',\n ]);\n registerContext(_angular_core.SecurityContext.STYLE, ['*|style']);\n // NB: no SCRIPT contexts here, they are never allowed due to the parser stripping them.\n registerContext(_angular_core.SecurityContext.URL, [\n '*|formAction', 'area|href', 'area|ping', 'audio|src', 'a|href',\n 'a|ping', 'blockquote|cite', 'body|background', 'del|cite', 'form|action',\n 'img|src', 'img|srcset', 'input|src', 'ins|cite', 'q|cite',\n 'source|src', 'source|srcset', 'track|src', 'video|poster', 'video|src',\n ]);\n registerContext(_angular_core.SecurityContext.RESOURCE_URL, [\n 'applet|code',\n 'applet|codebase',\n 'base|href',\n 'embed|src',\n 'frame|src',\n 'head|profile',\n 'html|manifest',\n 'iframe|src',\n 'link|href',\n 'media|src',\n 'object|codebase',\n 'object|data',\n 'script|src',\n ]);\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$18 = (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 };\n var BOOLEAN = 'boolean';\n var NUMBER = 'number';\n var STRING = 'string';\n var OBJECT = 'object';\n /**\n * This array represents the DOM schema. It encodes inheritance, properties, and events.\n *\n * ## Overview\n *\n * Each line represents one kind of element. The `element_inheritance` and properties are joined\n * using `element_inheritance|properties` syntax.\n *\n * ## Element Inheritance\n *\n * The `element_inheritance` can be further subdivided as `element1,element2,...^parentElement`.\n * Here the individual elements are separated by `,` (commas). Every element in the list\n * has identical properties.\n *\n * An `element` may inherit additional properties from `parentElement` If no `^parentElement` is\n * specified then `\"\"` (blank) element is assumed.\n *\n * NOTE: The blank element inherits from root `*` element, the super element of all elements.\n *\n * NOTE an element prefix such as `:svg:` has no special meaning to the schema.\n *\n * ## Properties\n *\n * Each element has a set of properties separated by `,` (commas). Each property can be prefixed\n * by a special character designating its type:\n *\n * - (no prefix): property is a string.\n * - `*`: property represents an event.\n * - `!`: property is a boolean.\n * - `#`: property is a number.\n * - `%`: property is an object.\n *\n * ## Query\n *\n * The class creates an internal squas representation which allows to easily answer the query of\n * if a given property exist on a given element.\n *\n * NOTE: We don't yet support querying for types or events.\n * NOTE: This schema is auto extracted from `schema_extractor.ts` located in the test folder,\n * see dom_element_schema_registry_spec.ts\n */\n // =================================================================================================\n // =================================================================================================\n // =========== S T O P - S T O P - S T O P - S T O P - S T O P - S T O P ===========\n // =================================================================================================\n // =================================================================================================\n //\n // DO NOT EDIT THIS DOM SCHEMA WITHOUT A SECURITY REVIEW!\n //\n // Newly added properties must be security reviewed and assigned an appropriate SecurityContext in\n // dom_security_schema.ts. Reach out to mprobst & rjamet for details.\n //\n // =================================================================================================\n var SCHEMA = ([\n '*|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop',\n 'abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^*|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',\n 'media^abbr|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume',\n ':svg:^abbr|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex',\n ':svg:graphics^:svg:|',\n ':svg:animation^:svg:|*begin,*end,*repeat',\n ':svg:geometry^:svg:|',\n ':svg:componentTransferFunction^:svg:|',\n ':svg:gradient^:svg:|',\n ':svg:textContent^:svg:graphics|',\n ':svg:textPositioning^:svg:textContent|',\n 'abbr^*|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate',\n 'a^abbr|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username',\n 'area^abbr|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username',\n 'audio^media|',\n 'br^abbr|clear',\n 'base^abbr|href,target',\n 'body^abbr|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',\n 'button^abbr|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value',\n 'canvas^abbr|#height,#width',\n 'content^abbr|select',\n 'dl^abbr|!compact',\n 'datalist^abbr|',\n 'details^abbr|!open',\n 'dialog^abbr|!open,returnValue',\n 'dir^abbr|!compact',\n 'div^abbr|align',\n 'embed^abbr|align,height,name,src,type,width',\n 'fieldset^abbr|!disabled,name',\n 'font^abbr|color,face,size',\n 'form^abbr|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',\n 'frame^abbr|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',\n 'frameset^abbr|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',\n 'hr^abbr|align,color,!noShade,size,width',\n 'head^abbr|',\n 'h1,h2,h3,h4,h5,h6^abbr|align',\n 'html^abbr|version',\n 'iframe^abbr|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',\n 'img^abbr|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',\n 'input^abbr|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',\n 'keygen^abbr|!autofocus,challenge,!disabled,keytype,name',\n 'li^abbr|type,#value',\n 'label^abbr|htmlFor',\n 'legend^abbr|align',\n 'link^abbr|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type',\n 'map^abbr|name',\n 'marquee^abbr|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',\n 'menu^abbr|!compact',\n 'meta^abbr|content,httpEquiv,name,scheme',\n 'meter^abbr|#high,#low,#max,#min,#optimum,#value',\n 'ins,del^abbr|cite,dateTime',\n 'ol^abbr|!compact,!reversed,#start,type',\n 'object^abbr|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width',\n 'optgroup^abbr|!disabled,label',\n 'option^abbr|!defaultSelected,!disabled,label,!selected,text,value',\n 'output^abbr|defaultValue,%htmlFor,name,value',\n 'p^abbr|align',\n 'param^abbr|name,type,value,valueType',\n 'picture^abbr|',\n 'pre^abbr|#width',\n 'progress^abbr|#max,#value',\n 'q,blockquote,cite^abbr|',\n 'script^abbr|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type',\n 'select^abbr|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',\n 'shadow^abbr|',\n 'source^abbr|media,sizes,src,srcset,type',\n 'span^abbr|',\n 'style^abbr|!disabled,media,type',\n 'caption^abbr|align',\n 'th,td^abbr|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width',\n 'col,colgroup^abbr|align,ch,chOff,#span,vAlign,width',\n 'table^abbr|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width',\n 'tr^abbr|align,bgColor,ch,chOff,vAlign',\n 'tfoot,thead,tbody^abbr|align,ch,chOff,vAlign',\n 'template^abbr|',\n 'textarea^abbr|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap',\n 'title^abbr|text',\n 'track^abbr|!default,kind,label,src,srclang',\n 'ul^abbr|!compact,type',\n 'unknown^abbr|',\n 'video^media|#height,poster,#width',\n ':svg:a^:svg:graphics|',\n ':svg:animate^:svg:animation|',\n ':svg:animateMotion^:svg:animation|',\n ':svg:animateTransform^:svg:animation|',\n ':svg:circle^:svg:geometry|',\n ':svg:clipPath^:svg:graphics|',\n ':svg:cursor^:svg:|',\n ':svg:defs^:svg:graphics|',\n ':svg:desc^:svg:|',\n ':svg:discard^:svg:|',\n ':svg:ellipse^:svg:geometry|',\n ':svg:feBlend^:svg:|',\n ':svg:feColorMatrix^:svg:|',\n ':svg:feComponentTransfer^:svg:|',\n ':svg:feComposite^:svg:|',\n ':svg:feConvolveMatrix^:svg:|',\n ':svg:feDiffuseLighting^:svg:|',\n ':svg:feDisplacementMap^:svg:|',\n ':svg:feDistantLight^:svg:|',\n ':svg:feDropShadow^:svg:|',\n ':svg:feFlood^:svg:|',\n ':svg:feFuncA^:svg:componentTransferFunction|',\n ':svg:feFuncB^:svg:componentTransferFunction|',\n ':svg:feFuncG^:svg:componentTransferFunction|',\n ':svg:feFuncR^:svg:componentTransferFunction|',\n ':svg:feGaussianBlur^:svg:|',\n ':svg:feImage^:svg:|',\n ':svg:feMerge^:svg:|',\n ':svg:feMergeNode^:svg:|',\n ':svg:feMorphology^:svg:|',\n ':svg:feOffset^:svg:|',\n ':svg:fePointLight^:svg:|',\n ':svg:feSpecularLighting^:svg:|',\n ':svg:feSpotLight^:svg:|',\n ':svg:feTile^:svg:|',\n ':svg:feTurbulence^:svg:|',\n ':svg:filter^:svg:|',\n ':svg:foreignObject^:svg:graphics|',\n ':svg:g^:svg:graphics|',\n ':svg:image^:svg:graphics|',\n ':svg:line^:svg:geometry|',\n ':svg:linearGradient^:svg:gradient|',\n ':svg:mpath^:svg:|',\n ':svg:marker^:svg:|',\n ':svg:mask^:svg:|',\n ':svg:metadata^:svg:|',\n ':svg:path^:svg:geometry|',\n ':svg:pattern^:svg:|',\n ':svg:polygon^:svg:geometry|',\n ':svg:polyline^:svg:geometry|',\n ':svg:radialGradient^:svg:gradient|',\n ':svg:rect^:svg:geometry|',\n ':svg:svg^:svg:graphics|#currentScale,#zoomAndPan',\n ':svg:script^:svg:|type',\n ':svg:set^:svg:animation|',\n ':svg:stop^:svg:|',\n ':svg:style^:svg:|!disabled,media,title,type',\n ':svg:switch^:svg:graphics|',\n ':svg:symbol^:svg:|',\n ':svg:tspan^:svg:textPositioning|',\n ':svg:text^:svg:textPositioning|',\n ':svg:textPath^:svg:textContent|',\n ':svg:title^:svg:|',\n ':svg:use^:svg:graphics|',\n ':svg:view^:svg:|#zoomAndPan',\n ]);\n var _ATTR_TO_PROP = {\n 'class': 'className',\n 'formaction': 'formAction',\n 'innerHtml': 'innerHTML',\n 'readonly': 'readOnly',\n 'tabindex': 'tabIndex'\n };\n var DomElementSchemaRegistry = (function (_super) {\n __extends$18(DomElementSchemaRegistry, _super);\n function DomElementSchemaRegistry() {\n var _this = this;\n _super.call(this);\n this._schema = {};\n SCHEMA.forEach(function (encodedType) {\n var _a = encodedType.split('|'), strType = _a[0], strProperties = _a[1];\n var properties = strProperties.split(',');\n var _b = strType.split('^'), typeNames = _b[0], superName = _b[1];\n var type = {};\n typeNames.split(',').forEach(function (tag) { return _this._schema[tag.toLowerCase()] = type; });\n var superType = _this._schema[superName];\n if (superType) {\n Object.keys(superType).forEach(function (prop) { type[prop] = superType[prop]; });\n }\n properties.forEach(function (property) {\n if (property.length > 0) {\n switch (property[0]) {\n case '*':\n // We don't yet support events.\n // If ever allowing to bind to events, GO THROUGH A SECURITY REVIEW, allowing events\n // will\n // almost certainly introduce bad XSS vulnerabilities.\n // type[property.substring(1)] = EVENT;\n break;\n case '!':\n type[property.substring(1)] = BOOLEAN;\n break;\n case '#':\n type[property.substring(1)] = NUMBER;\n break;\n case '%':\n type[property.substring(1)] = OBJECT;\n break;\n default:\n type[property] = STRING;\n }\n }\n });\n });\n }\n DomElementSchemaRegistry.prototype.hasProperty = function (tagName, propName, schemaMetas) {\n if (schemaMetas.some(function (schema) { return schema.name === _angular_core.NO_ERRORS_SCHEMA.name; })) {\n return true;\n }\n if (tagName.indexOf('-') > -1) {\n if (tagName === 'ng-container' || tagName === 'ng-content') {\n return false;\n }\n if (schemaMetas.some(function (schema) { return schema.name === _angular_core.CUSTOM_ELEMENTS_SCHEMA.name; })) {\n // Can't tell now as we don't know which properties a custom element will get\n // once it is instantiated\n return true;\n }\n }\n var elementProperties = this._schema[tagName.toLowerCase()] || this._schema['unknown'];\n return !!elementProperties[propName];\n };\n DomElementSchemaRegistry.prototype.hasElement = function (tagName, schemaMetas) {\n if (schemaMetas.some(function (schema) { return schema.name === _angular_core.NO_ERRORS_SCHEMA.name; })) {\n return true;\n }\n if (tagName.indexOf('-') > -1) {\n if (tagName === 'ng-container' || tagName === 'ng-content') {\n return true;\n }\n if (schemaMetas.some(function (schema) { return schema.name === _angular_core.CUSTOM_ELEMENTS_SCHEMA.name; })) {\n // Allow any custom elements\n return true;\n }\n }\n return !!this._schema[tagName.toLowerCase()];\n };\n /**\n * securityContext returns the security context for the given property on the given DOM tag.\n *\n * Tag and property name are statically known and cannot change at runtime, i.e. it is not\n * possible to bind a value into a changing attribute or tag name.\n *\n * The filtering is white list based. All attributes in the schema above are assumed to have the\n * 'NONE' security context, i.e. that they are safe inert string values. Only specific well known\n * attack vectors are assigned their appropriate context.\n */\n DomElementSchemaRegistry.prototype.securityContext = function (tagName, propName) {\n // Make sure comparisons are case insensitive, so that case differences between attribute and\n // property names do not have a security impact.\n tagName = tagName.toLowerCase();\n propName = propName.toLowerCase();\n var ctx = SECURITY_SCHEMA[tagName + '|' + propName];\n if (ctx) {\n return ctx;\n }\n ctx = SECURITY_SCHEMA['*|' + propName];\n return ctx ? ctx : _angular_core.SecurityContext.NONE;\n };\n DomElementSchemaRegistry.prototype.getMappedPropName = function (propName) { return _ATTR_TO_PROP[propName] || propName; };\n DomElementSchemaRegistry.prototype.getDefaultComponentElementName = function () { return 'ng-component'; };\n DomElementSchemaRegistry.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n DomElementSchemaRegistry.ctorParameters = [];\n return DomElementSchemaRegistry;\n }(ElementSchemaRegistry));\n\n var _NO_RESOURCE_LOADER = {\n get: function (url) {\n throw new Error(\"No ResourceLoader implementation has been provided. Can't read the url \\\"\" + url + \"\\\"\");\n }\n };\n /**\n * A set of providers that provide `RuntimeCompiler` and its dependencies to use for\n * template compilation.\n */\n var COMPILER_PROVIDERS = [\n { provide: Reflector, useValue: reflector },\n { provide: ReflectorReader, useExisting: Reflector },\n { provide: ResourceLoader, useValue: _NO_RESOURCE_LOADER },\n Console,\n Lexer,\n Parser,\n HtmlParser,\n {\n provide: I18NHtmlParser,\n useFactory: function (parser, translations, format) {\n return new I18NHtmlParser(parser, translations, format);\n },\n deps: [\n HtmlParser,\n [new _angular_core.OptionalMetadata(), new _angular_core.Inject(_angular_core.TRANSLATIONS)],\n [new _angular_core.OptionalMetadata(), new _angular_core.Inject(_angular_core.TRANSLATIONS_FORMAT)],\n ]\n },\n TemplateParser,\n DirectiveNormalizer,\n CompileMetadataResolver,\n DEFAULT_PACKAGE_URL_PROVIDER,\n StyleCompiler,\n ViewCompiler,\n NgModuleCompiler,\n { provide: CompilerConfig, useValue: new CompilerConfig() },\n RuntimeCompiler,\n { provide: _angular_core.Compiler, useExisting: RuntimeCompiler },\n DomElementSchemaRegistry,\n { provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry },\n UrlResolver,\n DirectiveResolver,\n PipeResolver,\n NgModuleResolver\n ];\n var RuntimeCompilerFactory = (function () {\n function RuntimeCompilerFactory(defaultOptions) {\n this._defaultOptions = [{\n useDebug: _angular_core.isDevMode(),\n useJit: true,\n defaultEncapsulation: _angular_core.ViewEncapsulation.Emulated\n }].concat(defaultOptions);\n }\n RuntimeCompilerFactory.prototype.createCompiler = function (options) {\n if (options === void 0) { options = []; }\n var mergedOptions = _mergeOptions(this._defaultOptions.concat(options));\n var injector = _angular_core.ReflectiveInjector.resolveAndCreate([\n COMPILER_PROVIDERS, {\n provide: CompilerConfig,\n useFactory: function () {\n return new CompilerConfig({\n // let explicit values from the compiler options overwrite options\n // from the app providers. E.g. important for the testing platform.\n genDebugInfo: mergedOptions.useDebug,\n // let explicit values from the compiler options overwrite options\n // from the app providers\n useJit: mergedOptions.useJit,\n // let explicit values from the compiler options overwrite options\n // from the app providers\n defaultEncapsulation: mergedOptions.defaultEncapsulation,\n logBindingUpdate: mergedOptions.useDebug\n });\n },\n deps: []\n },\n mergedOptions.providers\n ]);\n return injector.get(_angular_core.Compiler);\n };\n RuntimeCompilerFactory.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n RuntimeCompilerFactory.ctorParameters = [\n { type: Array, decorators: [{ type: _angular_core.Inject, args: [_angular_core.COMPILER_OPTIONS,] },] },\n ];\n return RuntimeCompilerFactory;\n }());\n function _initReflector() {\n reflector.reflectionCapabilities = new ReflectionCapabilities();\n }\n /**\n * A platform that included corePlatform and the compiler.\n *\n * @experimental\n */\n var platformCoreDynamic = _angular_core.createPlatformFactory(_angular_core.platformCore, 'coreDynamic', [\n { provide: _angular_core.COMPILER_OPTIONS, useValue: {}, multi: true },\n { provide: _angular_core.CompilerFactory, useClass: RuntimeCompilerFactory },\n { provide: _angular_core.PLATFORM_INITIALIZER, useValue: _initReflector, multi: true },\n ]);\n function _mergeOptions(optionsArr) {\n return {\n useDebug: _lastDefined(optionsArr.map(function (options) { return options.useDebug; })),\n useJit: _lastDefined(optionsArr.map(function (options) { return options.useJit; })),\n defaultEncapsulation: _lastDefined(optionsArr.map(function (options) { return options.defaultEncapsulation; })),\n providers: _mergeArrays(optionsArr.map(function (options) { return options.providers; }))\n };\n }\n function _lastDefined(args) {\n for (var i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n }\n function _mergeArrays(parts) {\n var result = [];\n parts.forEach(function (part) { return part && result.push.apply(result, part); });\n return result;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n // asset:<package-name>/<realm>/<path-to-module>\n var _ASSET_URL_RE = /asset:([^\\/]+)\\/([^\\/]+)\\/(.+)/;\n /**\n * Interface that defines how import statements should be generated.\n */\n var ImportGenerator = (function () {\n function ImportGenerator() {\n }\n ImportGenerator.parseAssetUrl = function (url) { return AssetUrl.parse(url); };\n return ImportGenerator;\n }());\n var AssetUrl = (function () {\n function AssetUrl(packageName, firstLevelDir, modulePath) {\n this.packageName = packageName;\n this.firstLevelDir = firstLevelDir;\n this.modulePath = modulePath;\n }\n AssetUrl.parse = function (url, allowNonMatching) {\n if (allowNonMatching === void 0) { allowNonMatching = true; }\n var match = url.match(_ASSET_URL_RE);\n if (match !== null) {\n return new AssetUrl(match[1], match[2], match[3]);\n }\n if (allowNonMatching) {\n return null;\n }\n throw new Error(\"Url \" + url + \" is not a valid asset: url\");\n };\n return AssetUrl;\n }());\n\n var __compiler_private__ = {\n SelectorMatcher: SelectorMatcher,\n CssSelector: CssSelector,\n AssetUrl: AssetUrl,\n ImportGenerator: ImportGenerator,\n CompileMetadataResolver: CompileMetadataResolver,\n HtmlParser: HtmlParser,\n InterpolationConfig: InterpolationConfig,\n DirectiveNormalizer: DirectiveNormalizer,\n Lexer: Lexer,\n Parser: Parser,\n ParseLocation: ParseLocation,\n ParseError: ParseError,\n ParseErrorLevel: ParseErrorLevel,\n ParseSourceFile: ParseSourceFile,\n ParseSourceSpan: ParseSourceSpan,\n TemplateParser: TemplateParser,\n DomElementSchemaRegistry: DomElementSchemaRegistry,\n StyleCompiler: StyleCompiler,\n ViewCompiler: ViewCompiler,\n NgModuleCompiler: NgModuleCompiler,\n TypeScriptEmitter: TypeScriptEmitter\n };\n\n exports.COMPILER_PROVIDERS = COMPILER_PROVIDERS;\n exports.CompileDiDependencyMetadata = CompileDiDependencyMetadata;\n exports.CompileDirectiveMetadata = CompileDirectiveMetadata;\n exports.CompileFactoryMetadata = CompileFactoryMetadata;\n exports.CompileIdentifierMetadata = CompileIdentifierMetadata;\n exports.CompileMetadataWithIdentifier = CompileMetadataWithIdentifier;\n exports.CompilePipeMetadata = CompilePipeMetadata;\n exports.CompileProviderMetadata = CompileProviderMetadata;\n exports.CompileQueryMetadata = CompileQueryMetadata;\n exports.CompileTemplateMetadata = CompileTemplateMetadata;\n exports.CompileTokenMetadata = CompileTokenMetadata;\n exports.CompileTypeMetadata = CompileTypeMetadata;\n exports.CompilerConfig = CompilerConfig;\n exports.DEFAULT_PACKAGE_URL_PROVIDER = DEFAULT_PACKAGE_URL_PROVIDER;\n exports.DirectiveResolver = DirectiveResolver;\n exports.NgModuleResolver = NgModuleResolver;\n exports.OfflineCompiler = OfflineCompiler;\n exports.PipeResolver = PipeResolver;\n exports.RenderTypes = RenderTypes;\n exports.ResourceLoader = ResourceLoader;\n exports.RuntimeCompiler = RuntimeCompiler;\n exports.SourceModule = SourceModule;\n exports.TEMPLATE_TRANSFORMS = TEMPLATE_TRANSFORMS;\n exports.UrlResolver = UrlResolver;\n exports.createOfflineCompileUrlResolver = createOfflineCompileUrlResolver;\n exports.platformCoreDynamic = platformCoreDynamic;\n exports.DEFAULT_INTERPOLATION_CONFIG = DEFAULT_INTERPOLATION_CONFIG;\n exports.InterpolationConfig = InterpolationConfig;\n exports.ElementSchemaRegistry = ElementSchemaRegistry;\n exports.I18NHtmlParser = I18NHtmlParser;\n exports.MessageBundle = MessageBundle;\n exports.Xliff = Xliff;\n exports.Xmb = Xmb;\n exports.Xtb = Xtb;\n exports.TextAst = TextAst;\n exports.BoundTextAst = BoundTextAst;\n exports.AttrAst = AttrAst;\n exports.BoundElementPropertyAst = BoundElementPropertyAst;\n exports.BoundEventAst = BoundEventAst;\n exports.ReferenceAst = ReferenceAst;\n exports.VariableAst = VariableAst;\n exports.ElementAst = ElementAst;\n exports.EmbeddedTemplateAst = EmbeddedTemplateAst;\n exports.BoundDirectivePropertyAst = BoundDirectivePropertyAst;\n exports.DirectiveAst = DirectiveAst;\n exports.ProviderAst = ProviderAst;\n exports.NgContentAst = NgContentAst;\n exports.templateVisitAll = templateVisitAll;\n exports.__compiler_private__ = __compiler_private__;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/compiler/bundles/compiler.umd.js\n ** module id = 312\n ** module chunks = 0\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/Subject'), require('rxjs/Observable')) :\n typeof define === 'function' && define.amd ? define(['exports', 'rxjs/Subject', 'rxjs/Observable'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.core = global.ng.core || {}),global.Rx,global.Rx));\n}(this, function (exports,rxjs_Subject,rxjs_Observable) { 'use strict';\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var globalScope;\n if (typeof window === 'undefined') {\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\n globalScope = self;\n }\n else {\n globalScope = global;\n }\n }\n else {\n globalScope = window;\n }\n function scheduleMicroTask(fn) {\n Zone.current.scheduleMicroTask('scheduleMicrotask', fn);\n }\n // Need to declare a new variable for global here since TypeScript\n // exports the original value of the symbol.\n var global$1 = globalScope;\n function getTypeNameForDebugging(type) {\n if (type['name']) {\n return type['name'];\n }\n return typeof type;\n }\n var Math = global$1.Math;\n // TODO: remove calls to assert in production environment\n // Note: Can't just export this and import in in other files\n // as `assert` is a reserved keyword in Dart\n global$1.assert = function assert(condition) {\n // TODO: to be fixed properly via #2830, noop for now\n };\n function isPresent(obj) {\n return obj !== undefined && obj !== null;\n }\n function isBlank(obj) {\n return obj === undefined || obj === null;\n }\n function isString(obj) {\n return typeof obj === 'string';\n }\n function isFunction(obj) {\n return typeof obj === 'function';\n }\n function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return isPresent(obj) && isFunction(obj.then);\n }\n function isArray(obj) {\n return Array.isArray(obj);\n }\n function stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (token === undefined || token === null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return token.overriddenName;\n }\n if (token.name) {\n return token.name;\n }\n var res = token.toString();\n var newLineIndex = res.indexOf('\\n');\n return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);\n }\n var StringWrapper = (function () {\n function StringWrapper() {\n }\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\n StringWrapper.equals = function (s, s2) { return s === s2; };\n StringWrapper.stripLeft = function (s, charVal) {\n if (s && s.length) {\n var pos = 0;\n for (var i = 0; i < s.length; i++) {\n if (s[i] != charVal)\n break;\n pos++;\n }\n s = s.substring(pos);\n }\n return s;\n };\n StringWrapper.stripRight = function (s, charVal) {\n if (s && s.length) {\n var pos = s.length;\n for (var i = s.length - 1; i >= 0; i--) {\n if (s[i] != charVal)\n break;\n pos--;\n }\n s = s.substring(0, pos);\n }\n return s;\n };\n StringWrapper.replace = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.replaceAll = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.slice = function (s, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return s.slice(from, to === null ? undefined : to);\n };\n StringWrapper.replaceAllMapped = function (s, from, cb) {\n return s.replace(from, function () {\n var matches = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n matches[_i - 0] = arguments[_i];\n }\n // Remove offset & string from the result array\n matches.splice(-2, 2);\n // The callback receives match, p1, ..., pn\n return cb(matches);\n });\n };\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\n StringWrapper.compare = function (a, b) {\n if (a < b) {\n return -1;\n }\n else if (a > b) {\n return 1;\n }\n else {\n return 0;\n }\n };\n return StringWrapper;\n }());\n var NumberWrapper = (function () {\n function NumberWrapper() {\n }\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\n NumberWrapper.equal = function (a, b) { return a === b; };\n NumberWrapper.parseIntAutoRadix = function (text) {\n var result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n };\n NumberWrapper.parseInt = function (text, radix) {\n if (radix == 10) {\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else if (radix == 16) {\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else {\n var result = parseInt(text, radix);\n if (!isNaN(result)) {\n return result;\n }\n }\n throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);\n };\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\n Object.defineProperty(NumberWrapper, \"NaN\", {\n get: function () { return NaN; },\n enumerable: true,\n configurable: true\n });\n NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\n return NumberWrapper;\n }());\n // JS has NaN !== NaN\n function looseIdentical(a, b) {\n return a === b || typeof a === 'number' && typeof b === 'number' && isNaN(a) && isNaN(b);\n }\n // JS considers NaN is the same as NaN for map Key (while NaN !== NaN otherwise)\n // see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n function getMapKey(value) {\n return value;\n }\n function isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n }\n function print(obj) {\n console.log(obj);\n }\n function warn(obj) {\n console.warn(obj);\n }\n var _symbolIterator = null;\n function getSymbolIterator() {\n if (isBlank(_symbolIterator)) {\n if (isPresent(globalScope.Symbol) && isPresent(Symbol.iterator)) {\n _symbolIterator = Symbol.iterator;\n }\n else {\n // es6-shim specific logic\n var keys = Object.getOwnPropertyNames(Map.prototype);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (key !== 'entries' && key !== 'size' &&\n Map.prototype[key] === Map.prototype['entries']) {\n _symbolIterator = key;\n }\n }\n }\n }\n return _symbolIterator;\n }\n function isPrimitive(obj) {\n return !isJsObject(obj);\n }\n\n /**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared,\n * but not yet defined. It is also used when the `token` which we use when creating a query is not\n * yet defined.\n *\n * ### Example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n * @experimental\n */\n function forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function () { return stringify(this()); };\n return forwardRefFn;\n }\n /**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * ### Example ([live demo](http://plnkr.co/edit/GU72mJrk1fiodChcmiDR?p=preview))\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * See: {@link forwardRef}\n * @experimental\n */\n function resolveForwardRef(type) {\n if (isFunction(type) && type.hasOwnProperty('__forward_ref__') &&\n type.__forward_ref__ === forwardRef) {\n return type();\n }\n else {\n return type;\n }\n }\n\n /**\n * A parameter metadata that specifies a dependency.\n *\n * ### Example ([live demo](http://plnkr.co/edit/6uHYJK?p=preview))\n *\n * ```typescript\n * class Engine {}\n *\n * @Injectable()\n * class Car {\n * engine;\n * constructor(@Inject(\"MyEngine\") engine:Engine) {\n * this.engine = engine;\n * }\n * }\n *\n * var injector = Injector.resolveAndCreate([\n * {provide: \"MyEngine\", useClass: Engine},\n * Car\n * ]);\n *\n * expect(injector.get(Car).engine instanceof Engine).toBe(true);\n * ```\n *\n * When `@Inject()` is not present, {@link Injector} will use the type annotation of the parameter.\n *\n * ### Example\n *\n * ```typescript\n * class Engine {}\n *\n * @Injectable()\n * class Car {\n * constructor(public engine: Engine) {} //same as constructor(@Inject(Engine) engine:Engine)\n * }\n *\n * var injector = Injector.resolveAndCreate([Engine, Car]);\n * expect(injector.get(Car).engine instanceof Engine).toBe(true);\n * ```\n * @stable\n */\n var InjectMetadata = (function () {\n function InjectMetadata(token) {\n this.token = token;\n }\n InjectMetadata.prototype.toString = function () { return \"@Inject(\" + stringify(this.token) + \")\"; };\n return InjectMetadata;\n }());\n /**\n * A parameter metadata that marks a dependency as optional. {@link Injector} provides `null` if\n * the dependency is not found.\n *\n * ### Example ([live demo](http://plnkr.co/edit/AsryOm?p=preview))\n *\n * ```typescript\n * class Engine {}\n *\n * @Injectable()\n * class Car {\n * engine;\n * constructor(@Optional() engine:Engine) {\n * this.engine = engine;\n * }\n * }\n *\n * var injector = Injector.resolveAndCreate([Car]);\n * expect(injector.get(Car).engine).toBeNull();\n * ```\n * @stable\n */\n var OptionalMetadata = (function () {\n function OptionalMetadata() {\n }\n OptionalMetadata.prototype.toString = function () { return \"@Optional()\"; };\n return OptionalMetadata;\n }());\n /**\n * `DependencyMetadata` is used by the framework to extend DI.\n * This is internal to Angular and should not be used directly.\n * @stable\n */\n var DependencyMetadata = (function () {\n function DependencyMetadata() {\n }\n Object.defineProperty(DependencyMetadata.prototype, \"token\", {\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n return DependencyMetadata;\n }());\n /**\n * A marker metadata that marks a class as available to {@link Injector} for creation.\n *\n * ### Example ([live demo](http://plnkr.co/edit/Wk4DMQ?p=preview))\n *\n * ```typescript\n * @Injectable()\n * class UsefulService {}\n *\n * @Injectable()\n * class NeedsService {\n * constructor(public service:UsefulService) {}\n * }\n *\n * var injector = Injector.resolveAndCreate([NeedsService, UsefulService]);\n * expect(injector.get(NeedsService).service instanceof UsefulService).toBe(true);\n * ```\n * {@link Injector} will throw {@link NoAnnotationError} when trying to instantiate a class that\n * does not have `@Injectable` marker, as shown in the example below.\n *\n * ```typescript\n * class UsefulService {}\n *\n * class NeedsService {\n * constructor(public service:UsefulService) {}\n * }\n *\n * var injector = Injector.resolveAndCreate([NeedsService, UsefulService]);\n * expect(() => injector.get(NeedsService)).toThrowError();\n * ```\n * @stable\n */\n var InjectableMetadata = (function () {\n function InjectableMetadata() {\n }\n return InjectableMetadata;\n }());\n /**\n * Specifies that an {@link Injector} should retrieve a dependency only from itself.\n *\n * ### Example ([live demo](http://plnkr.co/edit/NeagAg?p=preview))\n *\n * ```typescript\n * class Dependency {\n * }\n *\n * @Injectable()\n * class NeedsDependency {\n * dependency;\n * constructor(@Self() dependency:Dependency) {\n * this.dependency = dependency;\n * }\n * }\n *\n * var inj = Injector.resolveAndCreate([Dependency, NeedsDependency]);\n * var nd = inj.get(NeedsDependency);\n *\n * expect(nd.dependency instanceof Dependency).toBe(true);\n *\n * var inj = Injector.resolveAndCreate([Dependency]);\n * var child = inj.resolveAndCreateChild([NeedsDependency]);\n * expect(() => child.get(NeedsDependency)).toThrowError();\n * ```\n * @stable\n */\n var SelfMetadata = (function () {\n function SelfMetadata() {\n }\n SelfMetadata.prototype.toString = function () { return \"@Self()\"; };\n return SelfMetadata;\n }());\n /**\n * Specifies that the dependency resolution should start from the parent injector.\n *\n * ### Example ([live demo](http://plnkr.co/edit/Wchdzb?p=preview))\n *\n * ```typescript\n * class Dependency {\n * }\n *\n * @Injectable()\n * class NeedsDependency {\n * dependency;\n * constructor(@SkipSelf() dependency:Dependency) {\n * this.dependency = dependency;\n * }\n * }\n *\n * var parent = Injector.resolveAndCreate([Dependency]);\n * var child = parent.resolveAndCreateChild([NeedsDependency]);\n * expect(child.get(NeedsDependency).dependency instanceof Depedency).toBe(true);\n *\n * var inj = Injector.resolveAndCreate([Dependency, NeedsDependency]);\n * expect(() => inj.get(NeedsDependency)).toThrowError();\n * ```\n * @stable\n */\n var SkipSelfMetadata = (function () {\n function SkipSelfMetadata() {\n }\n SkipSelfMetadata.prototype.toString = function () { return \"@SkipSelf()\"; };\n return SkipSelfMetadata;\n }());\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * closest host.\n *\n * In Angular, a component element is automatically declared as a host for all the injectors in\n * its view.\n *\n * ### Example ([live demo](http://plnkr.co/edit/GX79pV?p=preview))\n *\n * In the following example `App` contains `ParentCmp`, which contains `ChildDirective`.\n * So `ParentCmp` is the host of `ChildDirective`.\n *\n * `ChildDirective` depends on two services: `HostService` and `OtherService`.\n * `HostService` is defined at `ParentCmp`, and `OtherService` is defined at `App`.\n *\n *```typescript\n * class OtherService {}\n * class HostService {}\n *\n * @Directive({\n * selector: 'child-directive'\n * })\n * class ChildDirective {\n * constructor(@Optional() @Host() os:OtherService, @Optional() @Host() hs:HostService){\n * console.log(\"os is null\", os);\n * console.log(\"hs is NOT null\", hs);\n * }\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * providers: [HostService],\n * template: `\n * Dir: <child-directive></child-directive>\n * `,\n * directives: [ChildDirective]\n * })\n * class ParentCmp {\n * }\n *\n * @Component({\n * selector: 'app',\n * providers: [OtherService],\n * template: `\n * Parent: <parent-cmp></parent-cmp>\n * `,\n * directives: [ParentCmp]\n * })\n * class App {\n * }\n *```\n * @stable\n */\n var HostMetadata = (function () {\n function HostMetadata() {\n }\n HostMetadata.prototype.toString = function () { return \"@Host()\"; };\n return HostMetadata;\n }());\n\n var _nextClassId = 0;\n function extractAnnotation(annotation) {\n if (isFunction(annotation) && annotation.hasOwnProperty('annotation')) {\n // it is a decorator, extract annotation\n annotation = annotation.annotation;\n }\n return annotation;\n }\n function applyParams(fnOrArray, key) {\n if (fnOrArray === Object || fnOrArray === String || fnOrArray === Function ||\n fnOrArray === Number || fnOrArray === Array) {\n throw new Error(\"Can not use native \" + stringify(fnOrArray) + \" as constructor\");\n }\n if (isFunction(fnOrArray)) {\n return fnOrArray;\n }\n else if (fnOrArray instanceof Array) {\n var annotations = fnOrArray;\n var annoLength = annotations.length - 1;\n var fn = fnOrArray[annoLength];\n if (!isFunction(fn)) {\n throw new Error(\"Last position of Class method array must be Function in key \" + key + \" was '\" + stringify(fn) + \"'\");\n }\n if (annoLength != fn.length) {\n throw new Error(\"Number of annotations (\" + annoLength + \") does not match number of arguments (\" + fn.length + \") in the function: \" + stringify(fn));\n }\n var paramsAnnotations = [];\n for (var i = 0, ii = annotations.length - 1; i < ii; i++) {\n var paramAnnotations = [];\n paramsAnnotations.push(paramAnnotations);\n var annotation = annotations[i];\n if (annotation instanceof Array) {\n for (var j = 0; j < annotation.length; j++) {\n paramAnnotations.push(extractAnnotation(annotation[j]));\n }\n }\n else if (isFunction(annotation)) {\n paramAnnotations.push(extractAnnotation(annotation));\n }\n else {\n paramAnnotations.push(annotation);\n }\n }\n Reflect.defineMetadata('parameters', paramsAnnotations, fn);\n return fn;\n }\n else {\n throw new Error(\"Only Function or Array is supported in Class definition for key '\" + key + \"' is '\" + stringify(fnOrArray) + \"'\");\n }\n }\n /**\n * Provides a way for expressing ES6 classes with parameter annotations in ES5.\n *\n * ## Basic Example\n *\n * ```\n * var Greeter = ng.Class({\n * constructor: function(name) {\n * this.name = name;\n * },\n *\n * greet: function() {\n * alert('Hello ' + this.name + '!');\n * }\n * });\n * ```\n *\n * is equivalent to ES6:\n *\n * ```\n * class Greeter {\n * constructor(name) {\n * this.name = name;\n * }\n *\n * greet() {\n * alert('Hello ' + this.name + '!');\n * }\n * }\n * ```\n *\n * or equivalent to ES5:\n *\n * ```\n * var Greeter = function (name) {\n * this.name = name;\n * }\n *\n * Greeter.prototype.greet = function () {\n * alert('Hello ' + this.name + '!');\n * }\n * ```\n *\n * ### Example with parameter annotations\n *\n * ```\n * var MyService = ng.Class({\n * constructor: [String, [new Query(), QueryList], function(name, queryList) {\n * ...\n * }]\n * });\n * ```\n *\n * is equivalent to ES6:\n *\n * ```\n * class MyService {\n * constructor(name: string, @Query() queryList: QueryList) {\n * ...\n * }\n * }\n * ```\n *\n * ### Example with inheritance\n *\n * ```\n * var Shape = ng.Class({\n * constructor: (color) {\n * this.color = color;\n * }\n * });\n *\n * var Square = ng.Class({\n * extends: Shape,\n * constructor: function(color, size) {\n * Shape.call(this, color);\n * this.size = size;\n * }\n * });\n * ```\n * @stable\n */\n function Class(clsDef) {\n var constructor = applyParams(clsDef.hasOwnProperty('constructor') ? clsDef.constructor : undefined, 'constructor');\n var proto = constructor.prototype;\n if (clsDef.hasOwnProperty('extends')) {\n if (isFunction(clsDef.extends)) {\n constructor.prototype = proto =\n Object.create(clsDef.extends.prototype);\n }\n else {\n throw new Error(\"Class definition 'extends' property must be a constructor function was: \" + stringify(clsDef.extends));\n }\n }\n for (var key in clsDef) {\n if (key != 'extends' && key != 'prototype' && clsDef.hasOwnProperty(key)) {\n proto[key] = applyParams(clsDef[key], key);\n }\n }\n if (this && this.annotations instanceof Array) {\n Reflect.defineMetadata('annotations', this.annotations, constructor);\n }\n var constructorName = constructor['name'];\n if (!constructorName || constructorName === 'constructor') {\n constructor['overriddenName'] = \"class\" + _nextClassId++;\n }\n return constructor;\n }\n var Reflect = global$1.Reflect;\n function makeDecorator(annotationCls, chainFn) {\n if (chainFn === void 0) { chainFn = null; }\n function DecoratorFactory(objOrType) {\n if (!(Reflect && Reflect.getMetadata)) {\n throw 'reflect-metadata shim is required when using class decorators';\n }\n var annotationInstance = new annotationCls(objOrType);\n if (this instanceof annotationCls) {\n return annotationInstance;\n }\n else {\n var chainAnnotation = isFunction(this) && this.annotations instanceof Array ? this.annotations : [];\n chainAnnotation.push(annotationInstance);\n var TypeDecorator = function TypeDecorator(cls) {\n var annotations = Reflect.getOwnMetadata('annotations', cls) || [];\n annotations.push(annotationInstance);\n Reflect.defineMetadata('annotations', annotations, cls);\n return cls;\n };\n TypeDecorator.annotations = chainAnnotation;\n TypeDecorator.Class = Class;\n if (chainFn)\n chainFn(TypeDecorator);\n return TypeDecorator;\n }\n }\n DecoratorFactory.prototype = Object.create(annotationCls.prototype);\n DecoratorFactory.annotationCls = annotationCls;\n return DecoratorFactory;\n }\n function makeParamDecorator(annotationCls) {\n function ParamDecoratorFactory() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i - 0] = arguments[_i];\n }\n var annotationInstance = Object.create(annotationCls.prototype);\n annotationCls.apply(annotationInstance, args);\n if (this instanceof annotationCls) {\n return annotationInstance;\n }\n else {\n ParamDecorator.annotation = annotationInstance;\n return ParamDecorator;\n }\n function ParamDecorator(cls, unusedKey, index) {\n var parameters = Reflect.getMetadata('parameters', cls) || [];\n // there might be gaps if some in between parameters do not have annotations.\n // we pad with nulls.\n while (parameters.length <= index) {\n parameters.push(null);\n }\n parameters[index] = parameters[index] || [];\n var annotationsForParam = parameters[index];\n annotationsForParam.push(annotationInstance);\n Reflect.defineMetadata('parameters', parameters, cls);\n return cls;\n }\n }\n ParamDecoratorFactory.prototype = Object.create(annotationCls.prototype);\n ParamDecoratorFactory.annotationCls = annotationCls;\n return ParamDecoratorFactory;\n }\n function makePropDecorator(annotationCls) {\n function PropDecoratorFactory() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i - 0] = arguments[_i];\n }\n var decoratorInstance = Object.create(annotationCls.prototype);\n annotationCls.apply(decoratorInstance, args);\n if (this instanceof annotationCls) {\n return decoratorInstance;\n }\n else {\n return function PropDecorator(target, name) {\n var meta = Reflect.getOwnMetadata('propMetadata', target.constructor) || {};\n meta[name] = meta[name] || [];\n meta[name].unshift(decoratorInstance);\n Reflect.defineMetadata('propMetadata', meta, target.constructor);\n };\n }\n }\n PropDecoratorFactory.prototype = Object.create(annotationCls.prototype);\n PropDecoratorFactory.annotationCls = annotationCls;\n return PropDecoratorFactory;\n }\n\n /**\n * Factory for creating {@link InjectMetadata}.\n * @stable\n * @Annotation\n */\n var Inject = makeParamDecorator(InjectMetadata);\n /**\n * Factory for creating {@link OptionalMetadata}.\n * @stable\n * @Annotation\n */\n var Optional = makeParamDecorator(OptionalMetadata);\n /**\n * Factory for creating {@link InjectableMetadata}.\n * @stable\n * @Annotation\n */\n var Injectable = makeDecorator(InjectableMetadata);\n /**\n * Factory for creating {@link SelfMetadata}.\n * @stable\n * @Annotation\n */\n var Self = makeParamDecorator(SelfMetadata);\n /**\n * Factory for creating {@link HostMetadata}.\n * @stable\n * @Annotation\n */\n var Host = makeParamDecorator(HostMetadata);\n /**\n * Factory for creating {@link SkipSelfMetadata}.\n * @stable\n * @Annotation\n */\n var SkipSelf = makeParamDecorator(SkipSelfMetadata);\n\n /**\n * Creates a token that can be used in a DI Provider.\n *\n * ### Example ([live demo](http://plnkr.co/edit/Ys9ezXpj2Mnoy3Uc8KBp?p=preview))\n *\n * ```typescript\n * var t = new OpaqueToken(\"value\");\n *\n * var injector = Injector.resolveAndCreate([\n * {provide: t, useValue: \"bindingValue\"}\n * ]);\n *\n * expect(injector.get(t)).toEqual(\"bindingValue\");\n * ```\n *\n * Using an `OpaqueToken` is preferable to using strings as tokens because of possible collisions\n * caused by multiple providers using the same string as two different tokens.\n *\n * Using an `OpaqueToken` is preferable to using an `Object` as tokens because it provides better\n * error messages.\n * @stable\n */\n // so that metadata is gathered for this class\n var OpaqueToken = (function () {\n function OpaqueToken(_desc) {\n this._desc = _desc;\n }\n OpaqueToken.prototype.toString = function () { return \"Token \" + this._desc; };\n OpaqueToken.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n OpaqueToken.ctorParameters = [\n null,\n ];\n return OpaqueToken;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __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 };\n /**\n * This token can be used to create a virtual provider that will populate the\n * `entryComponents` fields of components and ng modules based on its `useValue`.\n * All components that are referenced in the `useValue` value (either directly\n * or in a nested array or map) will be added to the `entryComponents` property.\n *\n * ### Example\n * The following example shows how the router can populate the `entryComponents`\n * field of an NgModule based on the router configuration which refers\n * to components.\n *\n * ```typescript\n * // helper function inside the router\n * function provideRoutes(routes) {\n * return [\n * {provide: ROUTES, useValue: routes},\n * {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}\n * ];\n * }\n *\n * // user code\n * let routes = [\n * {path: '/root', component: RootComp},\n * {path: /teams', component: TeamsComp}\n * ];\n *\n * @NgModule({\n * providers: [provideRoutes(routes)]\n * })\n * class ModuleWithRoutes {}\n * ```\n *\n * @experimental\n */\n var ANALYZE_FOR_ENTRY_COMPONENTS = new OpaqueToken('AnalyzeForEntryComponents');\n /**\n * Specifies that a constant attribute value should be injected.\n *\n * The directive can inject constant string literals of host element attributes.\n *\n * ### Example\n *\n * Suppose we have an `<input>` element and want to know its `type`.\n *\n * ```html\n * <input type=\"text\">\n * ```\n *\n * A decorator can inject string literal `text` like so:\n *\n * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}\n * @stable\n */\n var AttributeMetadata = (function (_super) {\n __extends(AttributeMetadata, _super);\n function AttributeMetadata(attributeName) {\n _super.call(this);\n this.attributeName = attributeName;\n }\n Object.defineProperty(AttributeMetadata.prototype, \"token\", {\n get: function () {\n // Normally one would default a token to a type of an injected value but here\n // the type of a variable is \"string\" and we can't use primitive type as a return value\n // so we use instance of Attribute instead. This doesn't matter much in practice as arguments\n // with @Attribute annotation are injected by ElementInjector that doesn't take tokens into\n // account.\n return this;\n },\n enumerable: true,\n configurable: true\n });\n AttributeMetadata.prototype.toString = function () { return \"@Attribute(\" + stringify(this.attributeName) + \")\"; };\n return AttributeMetadata;\n }(DependencyMetadata));\n /**\n * Declares an injectable parameter to be a live list of directives or variable\n * bindings from the content children of a directive.\n *\n * ### Example ([live demo](http://plnkr.co/edit/lY9m8HLy7z06vDoUaSN2?p=preview))\n *\n * Assume that `<tabs>` component would like to get a list its children `<pane>`\n * components as shown in this example:\n *\n * ```html\n * <tabs>\n * <pane title=\"Overview\">...</pane>\n * <pane *ngFor=\"let o of objects\" [title]=\"o.title\">{{o.text}}</pane>\n * </tabs>\n * ```\n *\n * The preferred solution is to query for `Pane` directives using this decorator.\n *\n * ```javascript\n * @Component({\n * selector: 'pane',\n * inputs: ['title']\n * })\n * class Pane {\n * title:string;\n * }\n *\n * @Component({\n * selector: 'tabs',\n * template: `\n * <ul>\n * <li *ngFor=\"let pane of panes\">{{pane.title}}</li>\n * </ul>\n * <ng-content></ng-content>\n * `\n * })\n * class Tabs {\n * @ContentChildren(Pane) panes: QueryList<Pane>;\n * }\n * ```\n *\n * A query can look for variable bindings by passing in a string with desired binding symbol.\n *\n * ### Example ([live demo](http://plnkr.co/edit/sT2j25cH1dURAyBRCKx1?p=preview))\n * ```html\n * <seeker>\n * <div #findme>...</div>\n * </seeker>\n *\n * @Component({ selector: 'seeker' })\n * class Seeker {\n * @ContentChildren('findme') elList;\n * }\n * ```\n *\n * In this case the object that is injected depend on the type of the variable\n * binding. It can be an ElementRef, a directive or a component.\n *\n * Passing in a comma separated list of variable bindings will query for all of them.\n *\n * ```html\n * <seeker>\n * <div #find-me>...</div>\n * <div #find-me-too>...</div>\n * </seeker>\n *\n * @Component({\n * selector: 'seeker'\n * })\n * class Seeker {\n * @ContentChildren('findMe, findMeToo') elList: QueryList<ElementRef>;\n * }\n * ```\n *\n * Configure whether query looks for direct children or all descendants\n * of the querying element, by using the `descendants` parameter.\n * It is set to `false` by default.\n *\n * ### Example ([live demo](http://plnkr.co/edit/wtGeB977bv7qvA5FTYl9?p=preview))\n * ```html\n * <container #first>\n * <item>a</item>\n * <item>b</item>\n * <container #second>\n * <item>c</item>\n * </container>\n * </container>\n * ```\n *\n * When querying for items, the first container will see only `a` and `b` by default,\n * but with `ContentChildren(TextDirective, {descendants: true})` it will see `c` too.\n *\n * The queried directives are kept in a depth-first pre-order with respect to their\n * positions in the DOM.\n *\n * ContentChildren does not look deep into any subcomponent views.\n *\n * ContentChildren is updated as part of the change-detection cycle. Since change detection\n * happens after construction of a directive, QueryList will always be empty when observed in the\n * constructor.\n *\n * The injected object is an unmodifiable live list.\n * See {@link QueryList} for more details.\n * @stable\n */\n var QueryMetadata = (function (_super) {\n __extends(QueryMetadata, _super);\n function QueryMetadata(_selector, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.descendants, descendants = _c === void 0 ? false : _c, _d = _b.first, first = _d === void 0 ? false : _d, _e = _b.read, read = _e === void 0 ? null : _e;\n _super.call(this);\n this._selector = _selector;\n this.descendants = descendants;\n this.first = first;\n this.read = read;\n }\n Object.defineProperty(QueryMetadata.prototype, \"isViewQuery\", {\n /**\n * always `false` to differentiate it with {@link ViewQueryMetadata}.\n */\n get: function () { return false; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryMetadata.prototype, \"selector\", {\n /**\n * what this is querying for.\n */\n get: function () { return resolveForwardRef(this._selector); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryMetadata.prototype, \"isVarBindingQuery\", {\n /**\n * whether this is querying for a variable binding or a directive.\n */\n get: function () { return isString(this.selector); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryMetadata.prototype, \"varBindings\", {\n /**\n * returns a list of variable bindings this is querying for.\n * Only applicable if this is a variable bindings query.\n */\n get: function () { return StringWrapper.split(this.selector, /\\s*,\\s*/g); },\n enumerable: true,\n configurable: true\n });\n QueryMetadata.prototype.toString = function () { return \"@Query(\" + stringify(this.selector) + \")\"; };\n return QueryMetadata;\n }(DependencyMetadata));\n // TODO: add an example after ContentChildren and ViewChildren are in master\n /**\n * Configures a content query.\n *\n * Content queries are set before the `ngAfterContentInit` callback is called.\n *\n * ### Example\n *\n * ```\n * @Directive({\n * selector: 'someDir'\n * })\n * class SomeDir {\n * @ContentChildren(ChildDirective) contentChildren: QueryList<ChildDirective>;\n *\n * ngAfterContentInit() {\n * // contentChildren is set\n * }\n * }\n * ```\n * @stable\n */\n var ContentChildrenMetadata = (function (_super) {\n __extends(ContentChildrenMetadata, _super);\n function ContentChildrenMetadata(_selector, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.descendants, descendants = _c === void 0 ? false : _c, _d = _b.read, read = _d === void 0 ? null : _d;\n _super.call(this, _selector, { descendants: descendants, read: read });\n }\n return ContentChildrenMetadata;\n }(QueryMetadata));\n // TODO: add an example after ContentChild and ViewChild are in master\n /**\n * Configures a content query.\n *\n * Content queries are set before the `ngAfterContentInit` callback is called.\n *\n * ### Example\n *\n * ```\n * @Directive({\n * selector: 'someDir'\n * })\n * class SomeDir {\n * @ContentChild(ChildDirective) contentChild;\n *\n * ngAfterContentInit() {\n * // contentChild is set\n * }\n * }\n * ```\n * @stable\n */\n var ContentChildMetadata = (function (_super) {\n __extends(ContentChildMetadata, _super);\n function ContentChildMetadata(_selector, _a) {\n var _b = (_a === void 0 ? {} : _a).read, read = _b === void 0 ? null : _b;\n _super.call(this, _selector, { descendants: true, first: true, read: read });\n }\n return ContentChildMetadata;\n }(QueryMetadata));\n /**\n * Similar to {@link ContentChildMetadata}, but querying the component view, instead\n * of the content children.\n *\n * ### Example ([live demo](http://plnkr.co/edit/eNsFHDf7YjyM6IzKxM1j?p=preview))\n *\n * ```javascript\n * @Component({\n * ...,\n * template: `\n * <item> a </item>\n * <item> b </item>\n * <item> c </item>\n * `\n * })\n * class MyComponent {\n * shown: boolean;\n *\n * constructor(private @ViewChildren(Item) items:QueryList<Item>) {\n * items.changes.subscribe(() => console.log(items.length));\n * }\n * }\n * ```\n *\n * As `shown` is flipped between true and false, items will contain zero of one\n * items.\n *\n * Specifies that a {@link QueryList} should be injected.\n *\n * The injected object is an iterable and observable live list.\n * See {@link QueryList} for more details.\n * @stable\n */\n var ViewQueryMetadata = (function (_super) {\n __extends(ViewQueryMetadata, _super);\n function ViewQueryMetadata(_selector, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.descendants, descendants = _c === void 0 ? false : _c, _d = _b.first, first = _d === void 0 ? false : _d, _e = _b.read, read = _e === void 0 ? null : _e;\n _super.call(this, _selector, { descendants: descendants, first: first, read: read });\n }\n Object.defineProperty(ViewQueryMetadata.prototype, \"isViewQuery\", {\n /**\n * always `true` to differentiate it with {@link QueryMetadata}.\n */\n get: function () { return true; },\n enumerable: true,\n configurable: true\n });\n return ViewQueryMetadata;\n }(QueryMetadata));\n /**\n * Declares a list of child element references.\n *\n * Angular automatically updates the list when the DOM is updated.\n *\n * `ViewChildren` takes an argument to select elements.\n *\n * - If the argument is a type, directives or components with the type will be bound.\n *\n * - If the argument is a string, the string is interpreted as a list of comma-separated selectors.\n * For each selector, an element containing the matching template variable (e.g. `#child`) will be\n * bound.\n *\n * View children are set before the `ngAfterViewInit` callback is called.\n *\n * ### Example\n *\n * With type selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: `\n * <child-cmp></child-cmp>\n * <child-cmp></child-cmp>\n * <child-cmp></child-cmp>\n * `,\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChildren(ChildCmp) children:QueryList<ChildCmp>;\n *\n * ngAfterViewInit() {\n * // children are set\n * this.children.toArray().forEach((child)=>child.doSomething());\n * }\n * }\n * ```\n *\n * With string selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: `\n * <child-cmp #child1></child-cmp>\n * <child-cmp #child2></child-cmp>\n * <child-cmp #child3></child-cmp>\n * `,\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChildren('child1,child2,child3') children:QueryList<ChildCmp>;\n *\n * ngAfterViewInit() {\n * // children are set\n * this.children.toArray().forEach((child)=>child.doSomething());\n * }\n * }\n * ```\n * @stable\n */\n var ViewChildrenMetadata = (function (_super) {\n __extends(ViewChildrenMetadata, _super);\n function ViewChildrenMetadata(_selector, _a) {\n var _b = (_a === void 0 ? {} : _a).read, read = _b === void 0 ? null : _b;\n _super.call(this, _selector, { descendants: true, read: read });\n }\n ViewChildrenMetadata.prototype.toString = function () { return \"@ViewChildren(\" + stringify(this.selector) + \")\"; };\n return ViewChildrenMetadata;\n }(ViewQueryMetadata));\n /**\n *\n * Declares a reference of child element.\n *\n * `ViewChildren` takes an argument to select elements.\n *\n * - If the argument is a type, a directive or a component with the type will be bound.\n *\n If the argument is a string, the string is interpreted as a selector. An element containing the\n matching template variable (e.g. `#child`) will be bound.\n *\n * In either case, `@ViewChild()` assigns the first (looking from above) element if there are\n multiple matches.\n *\n * View child is set before the `ngAfterViewInit` callback is called.\n *\n * ### Example\n *\n * With type selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: '<child-cmp></child-cmp>',\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChild(ChildCmp) child:ChildCmp;\n *\n * ngAfterViewInit() {\n * // child is set\n * this.child.doSomething();\n * }\n * }\n * ```\n *\n * With string selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: '<child-cmp #child></child-cmp>',\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChild('child') child:ChildCmp;\n *\n * ngAfterViewInit() {\n * // child is set\n * this.child.doSomething();\n * }\n * }\n * ```\n * @stable\n */\n var ViewChildMetadata = (function (_super) {\n __extends(ViewChildMetadata, _super);\n function ViewChildMetadata(_selector, _a) {\n var _b = (_a === void 0 ? {} : _a).read, read = _b === void 0 ? null : _b;\n _super.call(this, _selector, { descendants: true, first: true, read: read });\n }\n return ViewChildMetadata;\n }(ViewQueryMetadata));\n\n /**\n * Describes within the change detector which strategy will be used the next time change\n * detection is triggered.\n * @stable\n */\n exports.ChangeDetectionStrategy;\n (function (ChangeDetectionStrategy) {\n /**\n * `OnPush` means that the change detector's mode will be set to `CheckOnce` during hydration.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n /**\n * `Default` means that the change detector's mode will be set to `CheckAlways` during hydration.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n })(exports.ChangeDetectionStrategy || (exports.ChangeDetectionStrategy = {}));\n /**\n * Describes the status of the detector.\n */\n var ChangeDetectorStatus;\n (function (ChangeDetectorStatus) {\n /**\n * `CheckedOnce` means that after calling detectChanges the mode of the change detector\n * will become `Checked`.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"CheckOnce\"] = 0] = \"CheckOnce\";\n /**\n * `Checked` means that the change detector should be skipped until its mode changes to\n * `CheckOnce`.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Checked\"] = 1] = \"Checked\";\n /**\n * `CheckAlways` means that after calling detectChanges the mode of the change detector\n * will remain `CheckAlways`.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"CheckAlways\"] = 2] = \"CheckAlways\";\n /**\n * `Detached` means that the change detector sub tree is not a part of the main tree and\n * should be skipped.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Detached\"] = 3] = \"Detached\";\n /**\n * `Errored` means that the change detector encountered an error checking a binding\n * or calling a directive lifecycle method and is now in an inconsistent state. Change\n * detectors in this state will no longer detect changes.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Errored\"] = 4] = \"Errored\";\n /**\n * `Destroyed` means that the change detector is destroyed.\n */\n ChangeDetectorStatus[ChangeDetectorStatus[\"Destroyed\"] = 5] = \"Destroyed\";\n })(ChangeDetectorStatus || (ChangeDetectorStatus = {}));\n /**\n * List of possible {@link ChangeDetectionStrategy} values.\n */\n var CHANGE_DETECTION_STRATEGY_VALUES = [\n exports.ChangeDetectionStrategy.OnPush,\n exports.ChangeDetectionStrategy.Default,\n ];\n function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {\n return isBlank(changeDetectionStrategy) ||\n changeDetectionStrategy === exports.ChangeDetectionStrategy.Default;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$2 = (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 };\n function unimplemented() {\n throw new Error('unimplemented');\n }\n /**\n * @stable\n */\n var BaseError = (function (_super) {\n __extends$2(BaseError, _super);\n function BaseError(message) {\n // Errors don't use current this, instead they create a new instance.\n // We have to do forward all of our api to the nativeInstance.\n var nativeError = _super.call(this, message);\n this._nativeError = nativeError;\n }\n Object.defineProperty(BaseError.prototype, \"message\", {\n get: function () { return this._nativeError.message; },\n set: function (message) { this._nativeError.message = message; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BaseError.prototype, \"name\", {\n get: function () { return this._nativeError.name; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BaseError.prototype, \"stack\", {\n get: function () { return this._nativeError.stack; },\n set: function (value) { this._nativeError.stack = value; },\n enumerable: true,\n configurable: true\n });\n BaseError.prototype.toString = function () { return this._nativeError.toString(); };\n return BaseError;\n }(Error));\n /**\n * @stable\n */\n var WrappedError = (function (_super) {\n __extends$2(WrappedError, _super);\n function WrappedError(message, error) {\n _super.call(this, message + \" caused by: \" + (error instanceof Error ? error.message : error));\n this.originalError = error;\n }\n Object.defineProperty(WrappedError.prototype, \"stack\", {\n get: function () {\n return (this.originalError instanceof Error ? this.originalError : this._nativeError)\n .stack;\n },\n enumerable: true,\n configurable: true\n });\n return WrappedError;\n }(BaseError));\n\n var _THROW_IF_NOT_FOUND = new Object();\n var THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n var _NullInjector = (function () {\n function _NullInjector() {\n }\n _NullInjector.prototype.get = function (token, notFoundValue) {\n if (notFoundValue === void 0) { notFoundValue = _THROW_IF_NOT_FOUND; }\n if (notFoundValue === _THROW_IF_NOT_FOUND) {\n throw new Error(\"No provider for \" + stringify(token) + \"!\");\n }\n return notFoundValue;\n };\n return _NullInjector;\n }());\n /**\n * @stable\n */\n var Injector = (function () {\n function Injector() {\n }\n /**\n * Retrieves an instance from the injector based on the provided token.\n * If not found:\n * - Throws {@link NoProviderError} if no `notFoundValue` that is not equal to\n * Injector.THROW_IF_NOT_FOUND is given\n * - Returns the `notFoundValue` otherwise\n *\n * ### Example ([live demo](http://plnkr.co/edit/HeXSHg?p=preview))\n *\n * ```typescript\n * var injector = ReflectiveInjector.resolveAndCreate([\n * {provide: \"validToken\", useValue: \"Value\"}\n * ]);\n * expect(injector.get(\"validToken\")).toEqual(\"Value\");\n * expect(() => injector.get(\"invalidToken\")).toThrowError();\n * ```\n *\n * `Injector` returns itself when given `Injector` as a token.\n *\n * ```typescript\n * var injector = ReflectiveInjector.resolveAndCreate([]);\n * expect(injector.get(Injector)).toBe(injector);\n * ```\n */\n Injector.prototype.get = function (token, notFoundValue) { return unimplemented(); };\n Injector.THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n Injector.NULL = new _NullInjector();\n return Injector;\n }());\n\n var Map$1 = global$1.Map;\n var Set = global$1.Set;\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Map constructor. We work around that by manually adding the items.\n var createMapFromPairs = (function () {\n try {\n if (new Map$1([[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs) { return new Map$1(pairs); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromPairs(pairs) {\n var map = new Map$1();\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n map.set(pair[0], pair[1]);\n }\n return map;\n };\n })();\n var createMapFromMap = (function () {\n try {\n if (new Map$1(new Map$1())) {\n return function createMapFromMap(m) { return new Map$1(m); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromMap(m) {\n var map = new Map$1();\n m.forEach(function (v, k) { map.set(k, v); });\n return map;\n };\n })();\n var _clearValues = (function () {\n if ((new Map$1()).keys().next) {\n return function _clearValues(m) {\n var keyIterator = m.keys();\n var k;\n while (!((k = keyIterator.next()).done)) {\n m.set(k.value, null);\n }\n };\n }\n else {\n return function _clearValuesWithForeEach(m) {\n m.forEach(function (v, k) { m.set(k, null); });\n };\n }\n })();\n // Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\n // TODO(mlaval): remove the work around once we have a working polyfill of Array.from\n var _arrayFromMap = (function () {\n try {\n if ((new Map$1()).values().next) {\n return function createArrayFromMap(m, getValues) {\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\n };\n }\n }\n catch (e) {\n }\n return function createArrayFromMapWithForeach(m, getValues) {\n var res = ListWrapper.createFixedSize(m.size), i = 0;\n m.forEach(function (v, k) {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n })();\n var MapWrapper = (function () {\n function MapWrapper() {\n }\n MapWrapper.clone = function (m) { return createMapFromMap(m); };\n MapWrapper.createFromStringMap = function (stringMap) {\n var result = new Map$1();\n for (var prop in stringMap) {\n result.set(prop, stringMap[prop]);\n }\n return result;\n };\n MapWrapper.toStringMap = function (m) {\n var r = {};\n m.forEach(function (v, k) { return r[k] = v; });\n return r;\n };\n MapWrapper.createFromPairs = function (pairs) { return createMapFromPairs(pairs); };\n MapWrapper.clearValues = function (m) { _clearValues(m); };\n MapWrapper.iterable = function (m) { return m; };\n MapWrapper.keys = function (m) { return _arrayFromMap(m, false); };\n MapWrapper.values = function (m) { return _arrayFromMap(m, true); };\n return MapWrapper;\n }());\n /**\n * Wraps Javascript Objects\n */\n var StringMapWrapper = (function () {\n function StringMapWrapper() {\n }\n StringMapWrapper.create = function () {\n // Note: We are not using Object.create(null) here due to\n // performance!\n // http://jsperf.com/ng2-object-create-null\n return {};\n };\n StringMapWrapper.contains = function (map, key) {\n return map.hasOwnProperty(key);\n };\n StringMapWrapper.get = function (map, key) {\n return map.hasOwnProperty(key) ? map[key] : undefined;\n };\n StringMapWrapper.set = function (map, key, value) { map[key] = value; };\n StringMapWrapper.keys = function (map) { return Object.keys(map); };\n StringMapWrapper.values = function (map) {\n return Object.keys(map).map(function (k) { return map[k]; });\n };\n StringMapWrapper.isEmpty = function (map) {\n for (var prop in map) {\n return false;\n }\n return true;\n };\n StringMapWrapper.delete = function (map, key) { delete map[key]; };\n StringMapWrapper.forEach = function (map, callback) {\n for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) {\n var k = _a[_i];\n callback(map[k], k);\n }\n };\n StringMapWrapper.merge = function (m1, m2) {\n var m = {};\n for (var _i = 0, _a = Object.keys(m1); _i < _a.length; _i++) {\n var k = _a[_i];\n m[k] = m1[k];\n }\n for (var _b = 0, _c = Object.keys(m2); _b < _c.length; _b++) {\n var k = _c[_b];\n m[k] = m2[k];\n }\n return m;\n };\n StringMapWrapper.equals = function (m1, m2) {\n var k1 = Object.keys(m1);\n var k2 = Object.keys(m2);\n if (k1.length != k2.length) {\n return false;\n }\n var key;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (m1[key] !== m2[key]) {\n return false;\n }\n }\n return true;\n };\n return StringMapWrapper;\n }());\n var ListWrapper = (function () {\n function ListWrapper() {\n }\n // JS has no way to express a statically fixed size list, but dart does so we\n // keep both methods.\n ListWrapper.createFixedSize = function (size) { return new Array(size); };\n ListWrapper.createGrowableSize = function (size) { return new Array(size); };\n ListWrapper.clone = function (array) { return array.slice(0); };\n ListWrapper.forEachWithIndex = function (array, fn) {\n for (var i = 0; i < array.length; i++) {\n fn(array[i], i);\n }\n };\n ListWrapper.first = function (array) {\n if (!array)\n return null;\n return array[0];\n };\n ListWrapper.last = function (array) {\n if (!array || array.length == 0)\n return null;\n return array[array.length - 1];\n };\n ListWrapper.indexOf = function (array, value, startIndex) {\n if (startIndex === void 0) { startIndex = 0; }\n return array.indexOf(value, startIndex);\n };\n ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; };\n ListWrapper.reversed = function (array) {\n var a = ListWrapper.clone(array);\n return a.reverse();\n };\n ListWrapper.concat = function (a, b) { return a.concat(b); };\n ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); };\n ListWrapper.removeAt = function (list, index) {\n var res = list[index];\n list.splice(index, 1);\n return res;\n };\n ListWrapper.removeAll = function (list, items) {\n for (var i = 0; i < items.length; ++i) {\n var index = list.indexOf(items[i]);\n list.splice(index, 1);\n }\n };\n ListWrapper.remove = function (list, el) {\n var index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n return true;\n }\n return false;\n };\n ListWrapper.clear = function (list) { list.length = 0; };\n ListWrapper.isEmpty = function (list) { return list.length == 0; };\n ListWrapper.fill = function (list, value, start, end) {\n if (start === void 0) { start = 0; }\n if (end === void 0) { end = null; }\n list.fill(value, start, end === null ? list.length : end);\n };\n ListWrapper.equals = function (a, b) {\n if (a.length != b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n };\n ListWrapper.slice = function (l, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return l.slice(from, to === null ? undefined : to);\n };\n ListWrapper.splice = function (l, from, length) { return l.splice(from, length); };\n ListWrapper.sort = function (l, compareFn) {\n if (isPresent(compareFn)) {\n l.sort(compareFn);\n }\n else {\n l.sort();\n }\n };\n ListWrapper.toString = function (l) { return l.toString(); };\n ListWrapper.toJSON = function (l) { return JSON.stringify(l); };\n ListWrapper.maximum = function (list, predicate) {\n if (list.length == 0) {\n return null;\n }\n var solution = null;\n var maxValue = -Infinity;\n for (var index = 0; index < list.length; index++) {\n var candidate = list[index];\n if (isBlank(candidate)) {\n continue;\n }\n var candidateValue = predicate(candidate);\n if (candidateValue > maxValue) {\n solution = candidate;\n maxValue = candidateValue;\n }\n }\n return solution;\n };\n ListWrapper.flatten = function (list) {\n var target = [];\n _flattenArray(list, target);\n return target;\n };\n ListWrapper.addAll = function (list, source) {\n for (var i = 0; i < source.length; i++) {\n list.push(source[i]);\n }\n };\n return ListWrapper;\n }());\n function _flattenArray(source, target) {\n if (isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (isArray(item)) {\n _flattenArray(item, target);\n }\n else {\n target.push(item);\n }\n }\n }\n return target;\n }\n function isListLikeIterable(obj) {\n if (!isJsObject(obj))\n return false;\n return isArray(obj) ||\n (!(obj instanceof Map$1) &&\n getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\n }\n function areIterablesEqual(a, b, comparator) {\n var iterator1 = a[getSymbolIterator()]();\n var iterator2 = b[getSymbolIterator()]();\n while (true) {\n var item1 = iterator1.next();\n var item2 = iterator2.next();\n if (item1.done && item2.done)\n return true;\n if (item1.done || item2.done)\n return false;\n if (!comparator(item1.value, item2.value))\n return false;\n }\n }\n function iterateListLike(obj, fn) {\n if (isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n }\n else {\n var iterator = obj[getSymbolIterator()]();\n var item;\n while (!((item = iterator.next()).done)) {\n fn(item.value);\n }\n }\n }\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Set constructor. We work around that by manually adding the items.\n var createSetFromList = (function () {\n var test = new Set([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst) { return new Set(lst); };\n }\n else {\n return function createSetAndPopulateFromList(lst) {\n var res = new Set(lst);\n if (res.size !== lst.length) {\n for (var i = 0; i < lst.length; i++) {\n res.add(lst[i]);\n }\n }\n return res;\n };\n }\n })();\n var SetWrapper = (function () {\n function SetWrapper() {\n }\n SetWrapper.createFromList = function (lst) { return createSetFromList(lst); };\n SetWrapper.has = function (s, key) { return s.has(key); };\n SetWrapper.delete = function (m, k) { m.delete(k); };\n return SetWrapper;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$3 = (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 };\n function findFirstClosedCycle(keys) {\n var res = [];\n for (var i = 0; i < keys.length; ++i) {\n if (ListWrapper.contains(res, keys[i])) {\n res.push(keys[i]);\n return res;\n }\n res.push(keys[i]);\n }\n return res;\n }\n function constructResolvingPath(keys) {\n if (keys.length > 1) {\n var reversed = findFirstClosedCycle(ListWrapper.reversed(keys));\n var tokenStrs = reversed.map(function (k) { return stringify(k.token); });\n return ' (' + tokenStrs.join(' -> ') + ')';\n }\n return '';\n }\n /**\n * Base class for all errors arising from misconfigured providers.\n * @stable\n */\n var AbstractProviderError = (function (_super) {\n __extends$3(AbstractProviderError, _super);\n function AbstractProviderError(injector, key, constructResolvingMessage) {\n _super.call(this, 'DI Error');\n this.keys = [key];\n this.injectors = [injector];\n this.constructResolvingMessage = constructResolvingMessage;\n this.message = this.constructResolvingMessage(this.keys);\n }\n AbstractProviderError.prototype.addKey = function (injector, key) {\n this.injectors.push(injector);\n this.keys.push(key);\n this.message = this.constructResolvingMessage(this.keys);\n };\n return AbstractProviderError;\n }(BaseError));\n /**\n * Thrown when trying to retrieve a dependency by key from {@link Injector}, but the\n * {@link Injector} does not have a {@link Provider} for the given key.\n *\n * ### Example ([live demo](http://plnkr.co/edit/vq8D3FRB9aGbnWJqtEPE?p=preview))\n *\n * ```typescript\n * class A {\n * constructor(b:B) {}\n * }\n *\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\n * ```\n * @stable\n */\n var NoProviderError = (function (_super) {\n __extends$3(NoProviderError, _super);\n function NoProviderError(injector, key) {\n _super.call(this, injector, key, function (keys) {\n var first = stringify(ListWrapper.first(keys).token);\n return \"No provider for \" + first + \"!\" + constructResolvingPath(keys);\n });\n }\n return NoProviderError;\n }(AbstractProviderError));\n /**\n * Thrown when dependencies form a cycle.\n *\n * ### Example ([live demo](http://plnkr.co/edit/wYQdNos0Tzql3ei1EV9j?p=info))\n *\n * ```typescript\n * var injector = Injector.resolveAndCreate([\n * {provide: \"one\", useFactory: (two) => \"two\", deps: [[new Inject(\"two\")]]},\n * {provide: \"two\", useFactory: (one) => \"one\", deps: [[new Inject(\"one\")]]}\n * ]);\n *\n * expect(() => injector.get(\"one\")).toThrowError();\n * ```\n *\n * Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.\n * @stable\n */\n var CyclicDependencyError = (function (_super) {\n __extends$3(CyclicDependencyError, _super);\n function CyclicDependencyError(injector, key) {\n _super.call(this, injector, key, function (keys) {\n return \"Cannot instantiate cyclic dependency!\" + constructResolvingPath(keys);\n });\n }\n return CyclicDependencyError;\n }(AbstractProviderError));\n /**\n * Thrown when a constructing type returns with an Error.\n *\n * The `InstantiationError` class contains the original error plus the dependency graph which caused\n * this object to be instantiated.\n *\n * ### Example ([live demo](http://plnkr.co/edit/7aWYdcqTQsP0eNqEdUAf?p=preview))\n *\n * ```typescript\n * class A {\n * constructor() {\n * throw new Error('message');\n * }\n * }\n *\n * var injector = Injector.resolveAndCreate([A]);\n\n * try {\n * injector.get(A);\n * } catch (e) {\n * expect(e instanceof InstantiationError).toBe(true);\n * expect(e.originalException.message).toEqual(\"message\");\n * expect(e.originalStack).toBeDefined();\n * }\n * ```\n * @stable\n */\n var InstantiationError = (function (_super) {\n __extends$3(InstantiationError, _super);\n function InstantiationError(injector, originalException, originalStack, key) {\n _super.call(this, 'DI Error', originalException);\n this.keys = [key];\n this.injectors = [injector];\n }\n InstantiationError.prototype.addKey = function (injector, key) {\n this.injectors.push(injector);\n this.keys.push(key);\n };\n Object.defineProperty(InstantiationError.prototype, \"message\", {\n get: function () {\n var first = stringify(ListWrapper.first(this.keys).token);\n return this.originalError.message + \": Error during instantiation of \" + first + \"!\" + constructResolvingPath(this.keys) + \".\";\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(InstantiationError.prototype, \"causeKey\", {\n get: function () { return this.keys[0]; },\n enumerable: true,\n configurable: true\n });\n return InstantiationError;\n }(WrappedError));\n /**\n * Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}\n * creation.\n *\n * ### Example ([live demo](http://plnkr.co/edit/YatCFbPAMCL0JSSQ4mvH?p=preview))\n *\n * ```typescript\n * expect(() => Injector.resolveAndCreate([\"not a type\"])).toThrowError();\n * ```\n * @stable\n */\n var InvalidProviderError = (function (_super) {\n __extends$3(InvalidProviderError, _super);\n function InvalidProviderError(provider) {\n _super.call(this, \"Invalid provider - only instances of Provider and Type are allowed, got: \" + provider);\n }\n return InvalidProviderError;\n }(BaseError));\n /**\n * Thrown when the class has no annotation information.\n *\n * Lack of annotation information prevents the {@link Injector} from determining which dependencies\n * need to be injected into the constructor.\n *\n * ### Example ([live demo](http://plnkr.co/edit/rHnZtlNS7vJOPQ6pcVkm?p=preview))\n *\n * ```typescript\n * class A {\n * constructor(b) {}\n * }\n *\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\n * ```\n *\n * This error is also thrown when the class not marked with {@link Injectable} has parameter types.\n *\n * ```typescript\n * class B {}\n *\n * class A {\n * constructor(b:B) {} // no information about the parameter types of A is available at runtime.\n * }\n *\n * expect(() => Injector.resolveAndCreate([A,B])).toThrowError();\n * ```\n * @stable\n */\n var NoAnnotationError = (function (_super) {\n __extends$3(NoAnnotationError, _super);\n function NoAnnotationError(typeOrFunc, params) {\n _super.call(this, NoAnnotationError._genMessage(typeOrFunc, params));\n }\n NoAnnotationError._genMessage = function (typeOrFunc, params) {\n var signature = [];\n for (var i = 0, ii = params.length; i < ii; i++) {\n var parameter = params[i];\n if (isBlank(parameter) || parameter.length == 0) {\n signature.push('?');\n }\n else {\n signature.push(parameter.map(stringify).join(' '));\n }\n }\n return 'Cannot resolve all parameters for \\'' + stringify(typeOrFunc) + '\\'(' +\n signature.join(', ') + '). ' +\n 'Make sure that all the parameters are decorated with Inject or have valid type annotations and that \\'' +\n stringify(typeOrFunc) + '\\' is decorated with Injectable.';\n };\n return NoAnnotationError;\n }(BaseError));\n /**\n * Thrown when getting an object by index.\n *\n * ### Example ([live demo](http://plnkr.co/edit/bRs0SX2OTQiJzqvjgl8P?p=preview))\n *\n * ```typescript\n * class A {}\n *\n * var injector = Injector.resolveAndCreate([A]);\n *\n * expect(() => injector.getAt(100)).toThrowError();\n * ```\n * @stable\n */\n var OutOfBoundsError = (function (_super) {\n __extends$3(OutOfBoundsError, _super);\n function OutOfBoundsError(index) {\n _super.call(this, \"Index \" + index + \" is out-of-bounds.\");\n }\n return OutOfBoundsError;\n }(BaseError));\n // TODO: add a working example after alpha38 is released\n /**\n * Thrown when a multi provider and a regular provider are bound to the same token.\n *\n * ### Example\n *\n * ```typescript\n * expect(() => Injector.resolveAndCreate([\n * { provide: \"Strings\", useValue: \"string1\", multi: true},\n * { provide: \"Strings\", useValue: \"string2\", multi: false}\n * ])).toThrowError();\n * ```\n */\n var MixingMultiProvidersWithRegularProvidersError = (function (_super) {\n __extends$3(MixingMultiProvidersWithRegularProvidersError, _super);\n function MixingMultiProvidersWithRegularProvidersError(provider1, provider2) {\n _super.call(this, 'Cannot mix multi providers and regular providers, got: ' + provider1.toString() + ' ' +\n provider2.toString());\n }\n return MixingMultiProvidersWithRegularProvidersError;\n }(BaseError));\n\n /**\n * A unique object used for retrieving items from the {@link ReflectiveInjector}.\n *\n * Keys have:\n * - a system-wide unique `id`.\n * - a `token`.\n *\n * `Key` is used internally by {@link ReflectiveInjector} because its system-wide unique `id` allows\n * the\n * injector to store created objects in a more efficient way.\n *\n * `Key` should not be created directly. {@link ReflectiveInjector} creates keys automatically when\n * resolving\n * providers.\n * @experimental\n */\n var ReflectiveKey = (function () {\n /**\n * Private\n */\n function ReflectiveKey(token, id) {\n this.token = token;\n this.id = id;\n if (isBlank(token)) {\n throw new Error('Token must be defined!');\n }\n }\n Object.defineProperty(ReflectiveKey.prototype, \"displayName\", {\n /**\n * Returns a stringified token.\n */\n get: function () { return stringify(this.token); },\n enumerable: true,\n configurable: true\n });\n /**\n * Retrieves a `Key` for a token.\n */\n ReflectiveKey.get = function (token) {\n return _globalKeyRegistry.get(resolveForwardRef(token));\n };\n Object.defineProperty(ReflectiveKey, \"numberOfKeys\", {\n /**\n * @returns the number of keys registered in the system.\n */\n get: function () { return _globalKeyRegistry.numberOfKeys; },\n enumerable: true,\n configurable: true\n });\n return ReflectiveKey;\n }());\n /**\n * @internal\n */\n var KeyRegistry = (function () {\n function KeyRegistry() {\n this._allKeys = new Map();\n }\n KeyRegistry.prototype.get = function (token) {\n if (token instanceof ReflectiveKey)\n return token;\n if (this._allKeys.has(token)) {\n return this._allKeys.get(token);\n }\n var newKey = new ReflectiveKey(token, ReflectiveKey.numberOfKeys);\n this._allKeys.set(token, newKey);\n return newKey;\n };\n Object.defineProperty(KeyRegistry.prototype, \"numberOfKeys\", {\n get: function () { return this._allKeys.size; },\n enumerable: true,\n configurable: true\n });\n return KeyRegistry;\n }());\n var _globalKeyRegistry = new KeyRegistry();\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Runtime representation a type that a Component or other object is instances of.\n *\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by\n * the `MyCustomComponent` constructor function.\n *\n * @stable\n */\n var Type = Function;\n\n var ReflectionCapabilities = (function () {\n function ReflectionCapabilities(reflect) {\n this._reflect = reflect || global$1.Reflect;\n }\n ReflectionCapabilities.prototype.isReflectionEnabled = function () { return true; };\n ReflectionCapabilities.prototype.factory = function (t) {\n var prototype = t.prototype;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i - 0] = arguments[_i];\n }\n var instance = Object.create(prototype);\n t.apply(instance, args);\n return instance;\n };\n };\n /** @internal */\n ReflectionCapabilities.prototype._zipTypesAndAnnotations = function (paramTypes /** TODO #9100 */, paramAnnotations /** TODO #9100 */) {\n var result;\n if (typeof paramTypes === 'undefined') {\n result = new Array(paramAnnotations.length);\n }\n else {\n result = new Array(paramTypes.length);\n }\n for (var i = 0; i < result.length; i++) {\n // TS outputs Object for parameters without types, while Traceur omits\n // the annotations. For now we preserve the Traceur behavior to aid\n // migration, but this can be revisited.\n if (typeof paramTypes === 'undefined') {\n result[i] = [];\n }\n else if (paramTypes[i] != Object) {\n result[i] = [paramTypes[i]];\n }\n else {\n result[i] = [];\n }\n if (isPresent(paramAnnotations) && isPresent(paramAnnotations[i])) {\n result[i] = result[i].concat(paramAnnotations[i]);\n }\n }\n return result;\n };\n ReflectionCapabilities.prototype.parameters = function (typeOrFunc) {\n // Prefer the direct API.\n if (isPresent(typeOrFunc.parameters)) {\n return typeOrFunc.parameters;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (isPresent(typeOrFunc.ctorParameters)) {\n var ctorParameters = typeOrFunc.ctorParameters;\n var paramTypes_1 = ctorParameters.map(function (ctorParam /** TODO #9100 */) { return ctorParam && ctorParam.type; });\n var paramAnnotations_1 = ctorParameters.map(function (ctorParam /** TODO #9100 */) {\n return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators);\n });\n return this._zipTypesAndAnnotations(paramTypes_1, paramAnnotations_1);\n }\n // API for metadata created by invoking the decorators.\n if (isPresent(this._reflect) && isPresent(this._reflect.getMetadata)) {\n var paramAnnotations = this._reflect.getMetadata('parameters', typeOrFunc);\n var paramTypes = this._reflect.getMetadata('design:paramtypes', typeOrFunc);\n if (isPresent(paramTypes) || isPresent(paramAnnotations)) {\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n }\n // The array has to be filled with `undefined` because holes would be skipped by `some`\n var parameters = new Array(typeOrFunc.length);\n parameters.fill(undefined);\n return parameters;\n };\n ReflectionCapabilities.prototype.annotations = function (typeOrFunc) {\n // Prefer the direct API.\n if (isPresent(typeOrFunc.annotations)) {\n var annotations = typeOrFunc.annotations;\n if (isFunction(annotations) && annotations.annotations) {\n annotations = annotations.annotations;\n }\n return annotations;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (isPresent(typeOrFunc.decorators)) {\n return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);\n }\n // API for metadata created by invoking the decorators.\n if (isPresent(this._reflect) && isPresent(this._reflect.getMetadata)) {\n var annotations = this._reflect.getMetadata('annotations', typeOrFunc);\n if (isPresent(annotations))\n return annotations;\n }\n return [];\n };\n ReflectionCapabilities.prototype.propMetadata = function (typeOrFunc) {\n // Prefer the direct API.\n if (isPresent(typeOrFunc.propMetadata)) {\n var propMetadata = typeOrFunc.propMetadata;\n if (isFunction(propMetadata) && propMetadata.propMetadata) {\n propMetadata = propMetadata.propMetadata;\n }\n return propMetadata;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (isPresent(typeOrFunc.propDecorators)) {\n var propDecorators_1 = typeOrFunc.propDecorators;\n var propMetadata_1 = {};\n Object.keys(propDecorators_1).forEach(function (prop) {\n propMetadata_1[prop] = convertTsickleDecoratorIntoMetadata(propDecorators_1[prop]);\n });\n return propMetadata_1;\n }\n // API for metadata created by invoking the decorators.\n if (isPresent(this._reflect) && isPresent(this._reflect.getMetadata)) {\n var propMetadata = this._reflect.getMetadata('propMetadata', typeOrFunc);\n if (isPresent(propMetadata))\n return propMetadata;\n }\n return {};\n };\n // Note: JavaScript does not support to query for interfaces during runtime.\n // However, we can't throw here as the reflector will always call this method\n // when asked for a lifecycle interface as this is what we check in Dart.\n ReflectionCapabilities.prototype.interfaces = function (type) { return []; };\n ReflectionCapabilities.prototype.hasLifecycleHook = function (type, lcInterface, lcProperty) {\n if (!(type instanceof Type))\n return false;\n var proto = type.prototype;\n return !!proto[lcProperty];\n };\n ReflectionCapabilities.prototype.getter = function (name) { return new Function('o', 'return o.' + name + ';'); };\n ReflectionCapabilities.prototype.setter = function (name) {\n return new Function('o', 'v', 'return o.' + name + ' = v;');\n };\n ReflectionCapabilities.prototype.method = function (name) {\n var functionBody = \"if (!o.\" + name + \") throw new Error('\\\"\" + name + \"\\\" is undefined');\\n return o.\" + name + \".apply(o, args);\";\n return new Function('o', 'args', functionBody);\n };\n // There is not a concept of import uri in Js, but this is useful in developing Dart applications.\n ReflectionCapabilities.prototype.importUri = function (type) {\n // StaticSymbol\n if (typeof type === 'object' && type['filePath']) {\n return type['filePath'];\n }\n // Runtime type\n return \"./\" + stringify(type);\n };\n ReflectionCapabilities.prototype.resolveIdentifier = function (name, moduleUrl, runtime) { return runtime; };\n ReflectionCapabilities.prototype.resolveEnum = function (enumIdentifier, name) { return enumIdentifier[name]; };\n return ReflectionCapabilities;\n }());\n function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\n if (!decoratorInvocations) {\n return [];\n }\n return decoratorInvocations.map(function (decoratorInvocation) {\n var decoratorType = decoratorInvocation.type;\n var annotationCls = decoratorType.annotationCls;\n var annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\n var annotation = Object.create(annotationCls.prototype);\n annotationCls.apply(annotation, annotationArgs);\n return annotation;\n });\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Provides read-only access to reflection data about symbols. Used internally by Angular\n * to power dependency injection and compilation.\n */\n var ReflectorReader = (function () {\n function ReflectorReader() {\n }\n return ReflectorReader;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$4 = (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 };\n /**\n * Provides access to reflection data about symbols. Used internally by Angular\n * to power dependency injection and compilation.\n */\n var Reflector = (function (_super) {\n __extends$4(Reflector, _super);\n function Reflector(reflectionCapabilities) {\n _super.call(this);\n /** @internal */\n this._injectableInfo = new Map$1();\n /** @internal */\n this._getters = new Map$1();\n /** @internal */\n this._setters = new Map$1();\n /** @internal */\n this._methods = new Map$1();\n this._usedKeys = null;\n this.reflectionCapabilities = reflectionCapabilities;\n }\n Reflector.prototype.updateCapabilities = function (caps) { this.reflectionCapabilities = caps; };\n Reflector.prototype.isReflectionEnabled = function () { return this.reflectionCapabilities.isReflectionEnabled(); };\n /**\n * Causes `this` reflector to track keys used to access\n * {@link ReflectionInfo} objects.\n */\n Reflector.prototype.trackUsage = function () { this._usedKeys = new Set(); };\n /**\n * Lists types for which reflection information was not requested since\n * {@link #trackUsage} was called. This list could later be audited as\n * potential dead code.\n */\n Reflector.prototype.listUnusedKeys = function () {\n var _this = this;\n if (this._usedKeys == null) {\n throw new Error('Usage tracking is disabled');\n }\n var allTypes = MapWrapper.keys(this._injectableInfo);\n return allTypes.filter(function (key) { return !SetWrapper.has(_this._usedKeys, key); });\n };\n Reflector.prototype.registerFunction = function (func, funcInfo) {\n this._injectableInfo.set(func, funcInfo);\n };\n Reflector.prototype.registerType = function (type, typeInfo) {\n this._injectableInfo.set(type, typeInfo);\n };\n Reflector.prototype.registerGetters = function (getters) { _mergeMaps(this._getters, getters); };\n Reflector.prototype.registerSetters = function (setters) { _mergeMaps(this._setters, setters); };\n Reflector.prototype.registerMethods = function (methods) { _mergeMaps(this._methods, methods); };\n Reflector.prototype.factory = function (type) {\n if (this._containsReflectionInfo(type)) {\n var res = this._getReflectionInfo(type).factory;\n return isPresent(res) ? res : null;\n }\n else {\n return this.reflectionCapabilities.factory(type);\n }\n };\n Reflector.prototype.parameters = function (typeOrFunc) {\n if (this._injectableInfo.has(typeOrFunc)) {\n var res = this._getReflectionInfo(typeOrFunc).parameters;\n return isPresent(res) ? res : [];\n }\n else {\n return this.reflectionCapabilities.parameters(typeOrFunc);\n }\n };\n Reflector.prototype.annotations = function (typeOrFunc) {\n if (this._injectableInfo.has(typeOrFunc)) {\n var res = this._getReflectionInfo(typeOrFunc).annotations;\n return isPresent(res) ? res : [];\n }\n else {\n return this.reflectionCapabilities.annotations(typeOrFunc);\n }\n };\n Reflector.prototype.propMetadata = function (typeOrFunc) {\n if (this._injectableInfo.has(typeOrFunc)) {\n var res = this._getReflectionInfo(typeOrFunc).propMetadata;\n return isPresent(res) ? res : {};\n }\n else {\n return this.reflectionCapabilities.propMetadata(typeOrFunc);\n }\n };\n Reflector.prototype.interfaces = function (type) {\n if (this._injectableInfo.has(type)) {\n var res = this._getReflectionInfo(type).interfaces;\n return isPresent(res) ? res : [];\n }\n else {\n return this.reflectionCapabilities.interfaces(type);\n }\n };\n Reflector.prototype.hasLifecycleHook = function (type, lcInterface, lcProperty) {\n var interfaces = this.interfaces(type);\n if (interfaces.indexOf(lcInterface) !== -1) {\n return true;\n }\n else {\n return this.reflectionCapabilities.hasLifecycleHook(type, lcInterface, lcProperty);\n }\n };\n Reflector.prototype.getter = function (name) {\n if (this._getters.has(name)) {\n return this._getters.get(name);\n }\n else {\n return this.reflectionCapabilities.getter(name);\n }\n };\n Reflector.prototype.setter = function (name) {\n if (this._setters.has(name)) {\n return this._setters.get(name);\n }\n else {\n return this.reflectionCapabilities.setter(name);\n }\n };\n Reflector.prototype.method = function (name) {\n if (this._methods.has(name)) {\n return this._methods.get(name);\n }\n else {\n return this.reflectionCapabilities.method(name);\n }\n };\n /** @internal */\n Reflector.prototype._getReflectionInfo = function (typeOrFunc) {\n if (isPresent(this._usedKeys)) {\n this._usedKeys.add(typeOrFunc);\n }\n return this._injectableInfo.get(typeOrFunc);\n };\n /** @internal */\n Reflector.prototype._containsReflectionInfo = function (typeOrFunc) { return this._injectableInfo.has(typeOrFunc); };\n Reflector.prototype.importUri = function (type) { return this.reflectionCapabilities.importUri(type); };\n Reflector.prototype.resolveIdentifier = function (name, moduleUrl, runtime) {\n return this.reflectionCapabilities.resolveIdentifier(name, moduleUrl, runtime);\n };\n Reflector.prototype.resolveEnum = function (identifier, name) {\n return this.reflectionCapabilities.resolveEnum(identifier, name);\n };\n return Reflector;\n }(ReflectorReader));\n function _mergeMaps(target, config) {\n StringMapWrapper.forEach(config, function (v, k) { return target.set(k, v); });\n }\n\n /**\n * The {@link Reflector} used internally in Angular to access metadata\n * about symbols.\n */\n var reflector = new Reflector(new ReflectionCapabilities());\n\n /**\n * `Dependency` is used by the framework to extend DI.\n * This is internal to Angular and should not be used directly.\n */\n var ReflectiveDependency = (function () {\n function ReflectiveDependency(key, optional, lowerBoundVisibility, upperBoundVisibility, properties) {\n this.key = key;\n this.optional = optional;\n this.lowerBoundVisibility = lowerBoundVisibility;\n this.upperBoundVisibility = upperBoundVisibility;\n this.properties = properties;\n }\n ReflectiveDependency.fromKey = function (key) {\n return new ReflectiveDependency(key, false, null, null, []);\n };\n return ReflectiveDependency;\n }());\n var _EMPTY_LIST = [];\n var ResolvedReflectiveProvider_ = (function () {\n function ResolvedReflectiveProvider_(key, resolvedFactories, multiProvider) {\n this.key = key;\n this.resolvedFactories = resolvedFactories;\n this.multiProvider = multiProvider;\n }\n Object.defineProperty(ResolvedReflectiveProvider_.prototype, \"resolvedFactory\", {\n get: function () { return this.resolvedFactories[0]; },\n enumerable: true,\n configurable: true\n });\n return ResolvedReflectiveProvider_;\n }());\n /**\n * An internal resolved representation of a factory function created by resolving {@link\n * Provider}.\n * @experimental\n */\n var ResolvedReflectiveFactory = (function () {\n function ResolvedReflectiveFactory(\n /**\n * Factory function which can return an instance of an object represented by a key.\n */\n factory,\n /**\n * Arguments (dependencies) to the `factory` function.\n */\n dependencies) {\n this.factory = factory;\n this.dependencies = dependencies;\n }\n return ResolvedReflectiveFactory;\n }());\n /**\n * Resolve a single provider.\n */\n function resolveReflectiveFactory(provider) {\n var factoryFn;\n var resolvedDeps;\n if (isPresent(provider.useClass)) {\n var useClass = resolveForwardRef(provider.useClass);\n factoryFn = reflector.factory(useClass);\n resolvedDeps = _dependenciesFor(useClass);\n }\n else if (isPresent(provider.useExisting)) {\n factoryFn = function (aliasInstance) { return aliasInstance; };\n resolvedDeps = [ReflectiveDependency.fromKey(ReflectiveKey.get(provider.useExisting))];\n }\n else if (isPresent(provider.useFactory)) {\n factoryFn = provider.useFactory;\n resolvedDeps = constructDependencies(provider.useFactory, provider.deps);\n }\n else {\n factoryFn = function () { return provider.useValue; };\n resolvedDeps = _EMPTY_LIST;\n }\n return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);\n }\n /**\n * Converts the {@link Provider} into {@link ResolvedProvider}.\n *\n * {@link Injector} internally only uses {@link ResolvedProvider}, {@link Provider} contains\n * convenience provider syntax.\n */\n function resolveReflectiveProvider(provider) {\n return new ResolvedReflectiveProvider_(ReflectiveKey.get(provider.provide), [resolveReflectiveFactory(provider)], provider.multi);\n }\n /**\n * Resolve a list of Providers.\n */\n function resolveReflectiveProviders(providers) {\n var normalized = _normalizeProviders(providers, []);\n var resolved = normalized.map(resolveReflectiveProvider);\n return MapWrapper.values(mergeResolvedReflectiveProviders(resolved, new Map()));\n }\n /**\n * Merges a list of ResolvedProviders into a list where\n * each key is contained exactly once and multi providers\n * have been merged.\n */\n function mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {\n for (var i = 0; i < providers.length; i++) {\n var provider = providers[i];\n var existing = normalizedProvidersMap.get(provider.key.id);\n if (isPresent(existing)) {\n if (provider.multiProvider !== existing.multiProvider) {\n throw new MixingMultiProvidersWithRegularProvidersError(existing, provider);\n }\n if (provider.multiProvider) {\n for (var j = 0; j < provider.resolvedFactories.length; j++) {\n existing.resolvedFactories.push(provider.resolvedFactories[j]);\n }\n }\n else {\n normalizedProvidersMap.set(provider.key.id, provider);\n }\n }\n else {\n var resolvedProvider;\n if (provider.multiProvider) {\n resolvedProvider = new ResolvedReflectiveProvider_(provider.key, ListWrapper.clone(provider.resolvedFactories), provider.multiProvider);\n }\n else {\n resolvedProvider = provider;\n }\n normalizedProvidersMap.set(provider.key.id, resolvedProvider);\n }\n }\n return normalizedProvidersMap;\n }\n function _normalizeProviders(providers, res) {\n providers.forEach(function (b) {\n if (b instanceof Type) {\n res.push({ provide: b, useClass: b });\n }\n else if (b && typeof b == 'object' && b.provide !== undefined) {\n res.push(b);\n }\n else if (b instanceof Array) {\n _normalizeProviders(b, res);\n }\n else {\n throw new InvalidProviderError(b);\n }\n });\n return res;\n }\n function constructDependencies(typeOrFunc, dependencies) {\n if (isBlank(dependencies)) {\n return _dependenciesFor(typeOrFunc);\n }\n else {\n var params = dependencies.map(function (t) { return [t]; });\n return dependencies.map(function (t) { return _extractToken(typeOrFunc, t, params); });\n }\n }\n function _dependenciesFor(typeOrFunc) {\n var params = reflector.parameters(typeOrFunc);\n if (isBlank(params))\n return [];\n if (params.some(isBlank)) {\n throw new NoAnnotationError(typeOrFunc, params);\n }\n return params.map(function (p) { return _extractToken(typeOrFunc, p, params); });\n }\n function _extractToken(typeOrFunc /** TODO #9100 */, metadata /** TODO #9100 */ /*any[] | any*/, params) {\n var depProps = [];\n var token = null;\n var optional = false;\n if (!isArray(metadata)) {\n if (metadata instanceof InjectMetadata) {\n return _createDependency(metadata.token, optional, null, null, depProps);\n }\n else {\n return _createDependency(metadata, optional, null, null, depProps);\n }\n }\n var lowerBoundVisibility = null;\n var upperBoundVisibility = null;\n for (var i = 0; i < metadata.length; ++i) {\n var paramMetadata = metadata[i];\n if (paramMetadata instanceof Type) {\n token = paramMetadata;\n }\n else if (paramMetadata instanceof InjectMetadata) {\n token = paramMetadata.token;\n }\n else if (paramMetadata instanceof OptionalMetadata) {\n optional = true;\n }\n else if (paramMetadata instanceof SelfMetadata) {\n upperBoundVisibility = paramMetadata;\n }\n else if (paramMetadata instanceof HostMetadata) {\n upperBoundVisibility = paramMetadata;\n }\n else if (paramMetadata instanceof SkipSelfMetadata) {\n lowerBoundVisibility = paramMetadata;\n }\n else if (paramMetadata instanceof DependencyMetadata) {\n if (isPresent(paramMetadata.token)) {\n token = paramMetadata.token;\n }\n depProps.push(paramMetadata);\n }\n }\n token = resolveForwardRef(token);\n if (isPresent(token)) {\n return _createDependency(token, optional, lowerBoundVisibility, upperBoundVisibility, depProps);\n }\n else {\n throw new NoAnnotationError(typeOrFunc, params);\n }\n }\n function _createDependency(token /** TODO #9100 */, optional /** TODO #9100 */, lowerBoundVisibility /** TODO #9100 */, upperBoundVisibility /** TODO #9100 */, depProps /** TODO #9100 */) {\n return new ReflectiveDependency(ReflectiveKey.get(token), optional, lowerBoundVisibility, upperBoundVisibility, depProps);\n }\n\n // avoid unused import when Type union types are erased\n // Threshold for the dynamic version\n var _MAX_CONSTRUCTION_COUNTER = 10;\n var UNDEFINED = new Object();\n var ReflectiveProtoInjectorInlineStrategy = (function () {\n function ReflectiveProtoInjectorInlineStrategy(protoEI, providers) {\n this.provider0 = null;\n this.provider1 = null;\n this.provider2 = null;\n this.provider3 = null;\n this.provider4 = null;\n this.provider5 = null;\n this.provider6 = null;\n this.provider7 = null;\n this.provider8 = null;\n this.provider9 = null;\n this.keyId0 = null;\n this.keyId1 = null;\n this.keyId2 = null;\n this.keyId3 = null;\n this.keyId4 = null;\n this.keyId5 = null;\n this.keyId6 = null;\n this.keyId7 = null;\n this.keyId8 = null;\n this.keyId9 = null;\n var length = providers.length;\n if (length > 0) {\n this.provider0 = providers[0];\n this.keyId0 = providers[0].key.id;\n }\n if (length > 1) {\n this.provider1 = providers[1];\n this.keyId1 = providers[1].key.id;\n }\n if (length > 2) {\n this.provider2 = providers[2];\n this.keyId2 = providers[2].key.id;\n }\n if (length > 3) {\n this.provider3 = providers[3];\n this.keyId3 = providers[3].key.id;\n }\n if (length > 4) {\n this.provider4 = providers[4];\n this.keyId4 = providers[4].key.id;\n }\n if (length > 5) {\n this.provider5 = providers[5];\n this.keyId5 = providers[5].key.id;\n }\n if (length > 6) {\n this.provider6 = providers[6];\n this.keyId6 = providers[6].key.id;\n }\n if (length > 7) {\n this.provider7 = providers[7];\n this.keyId7 = providers[7].key.id;\n }\n if (length > 8) {\n this.provider8 = providers[8];\n this.keyId8 = providers[8].key.id;\n }\n if (length > 9) {\n this.provider9 = providers[9];\n this.keyId9 = providers[9].key.id;\n }\n }\n ReflectiveProtoInjectorInlineStrategy.prototype.getProviderAtIndex = function (index) {\n if (index == 0)\n return this.provider0;\n if (index == 1)\n return this.provider1;\n if (index == 2)\n return this.provider2;\n if (index == 3)\n return this.provider3;\n if (index == 4)\n return this.provider4;\n if (index == 5)\n return this.provider5;\n if (index == 6)\n return this.provider6;\n if (index == 7)\n return this.provider7;\n if (index == 8)\n return this.provider8;\n if (index == 9)\n return this.provider9;\n throw new OutOfBoundsError(index);\n };\n ReflectiveProtoInjectorInlineStrategy.prototype.createInjectorStrategy = function (injector) {\n return new ReflectiveInjectorInlineStrategy(injector, this);\n };\n return ReflectiveProtoInjectorInlineStrategy;\n }());\n var ReflectiveProtoInjectorDynamicStrategy = (function () {\n function ReflectiveProtoInjectorDynamicStrategy(protoInj, providers) {\n this.providers = providers;\n var len = providers.length;\n this.keyIds = ListWrapper.createFixedSize(len);\n for (var i = 0; i < len; i++) {\n this.keyIds[i] = providers[i].key.id;\n }\n }\n ReflectiveProtoInjectorDynamicStrategy.prototype.getProviderAtIndex = function (index) {\n if (index < 0 || index >= this.providers.length) {\n throw new OutOfBoundsError(index);\n }\n return this.providers[index];\n };\n ReflectiveProtoInjectorDynamicStrategy.prototype.createInjectorStrategy = function (ei) {\n return new ReflectiveInjectorDynamicStrategy(this, ei);\n };\n return ReflectiveProtoInjectorDynamicStrategy;\n }());\n var ReflectiveProtoInjector = (function () {\n function ReflectiveProtoInjector(providers) {\n this.numberOfProviders = providers.length;\n this._strategy = providers.length > _MAX_CONSTRUCTION_COUNTER ?\n new ReflectiveProtoInjectorDynamicStrategy(this, providers) :\n new ReflectiveProtoInjectorInlineStrategy(this, providers);\n }\n ReflectiveProtoInjector.fromResolvedProviders = function (providers) {\n return new ReflectiveProtoInjector(providers);\n };\n ReflectiveProtoInjector.prototype.getProviderAtIndex = function (index) {\n return this._strategy.getProviderAtIndex(index);\n };\n return ReflectiveProtoInjector;\n }());\n var ReflectiveInjectorInlineStrategy = (function () {\n function ReflectiveInjectorInlineStrategy(injector, protoStrategy) {\n this.injector = injector;\n this.protoStrategy = protoStrategy;\n this.obj0 = UNDEFINED;\n this.obj1 = UNDEFINED;\n this.obj2 = UNDEFINED;\n this.obj3 = UNDEFINED;\n this.obj4 = UNDEFINED;\n this.obj5 = UNDEFINED;\n this.obj6 = UNDEFINED;\n this.obj7 = UNDEFINED;\n this.obj8 = UNDEFINED;\n this.obj9 = UNDEFINED;\n }\n ReflectiveInjectorInlineStrategy.prototype.resetConstructionCounter = function () { this.injector._constructionCounter = 0; };\n ReflectiveInjectorInlineStrategy.prototype.instantiateProvider = function (provider) {\n return this.injector._new(provider);\n };\n ReflectiveInjectorInlineStrategy.prototype.getObjByKeyId = function (keyId) {\n var p = this.protoStrategy;\n var inj = this.injector;\n if (p.keyId0 === keyId) {\n if (this.obj0 === UNDEFINED) {\n this.obj0 = inj._new(p.provider0);\n }\n return this.obj0;\n }\n if (p.keyId1 === keyId) {\n if (this.obj1 === UNDEFINED) {\n this.obj1 = inj._new(p.provider1);\n }\n return this.obj1;\n }\n if (p.keyId2 === keyId) {\n if (this.obj2 === UNDEFINED) {\n this.obj2 = inj._new(p.provider2);\n }\n return this.obj2;\n }\n if (p.keyId3 === keyId) {\n if (this.obj3 === UNDEFINED) {\n this.obj3 = inj._new(p.provider3);\n }\n return this.obj3;\n }\n if (p.keyId4 === keyId) {\n if (this.obj4 === UNDEFINED) {\n this.obj4 = inj._new(p.provider4);\n }\n return this.obj4;\n }\n if (p.keyId5 === keyId) {\n if (this.obj5 === UNDEFINED) {\n this.obj5 = inj._new(p.provider5);\n }\n return this.obj5;\n }\n if (p.keyId6 === keyId) {\n if (this.obj6 === UNDEFINED) {\n this.obj6 = inj._new(p.provider6);\n }\n return this.obj6;\n }\n if (p.keyId7 === keyId) {\n if (this.obj7 === UNDEFINED) {\n this.obj7 = inj._new(p.provider7);\n }\n return this.obj7;\n }\n if (p.keyId8 === keyId) {\n if (this.obj8 === UNDEFINED) {\n this.obj8 = inj._new(p.provider8);\n }\n return this.obj8;\n }\n if (p.keyId9 === keyId) {\n if (this.obj9 === UNDEFINED) {\n this.obj9 = inj._new(p.provider9);\n }\n return this.obj9;\n }\n return UNDEFINED;\n };\n ReflectiveInjectorInlineStrategy.prototype.getObjAtIndex = function (index) {\n if (index == 0)\n return this.obj0;\n if (index == 1)\n return this.obj1;\n if (index == 2)\n return this.obj2;\n if (index == 3)\n return this.obj3;\n if (index == 4)\n return this.obj4;\n if (index == 5)\n return this.obj5;\n if (index == 6)\n return this.obj6;\n if (index == 7)\n return this.obj7;\n if (index == 8)\n return this.obj8;\n if (index == 9)\n return this.obj9;\n throw new OutOfBoundsError(index);\n };\n ReflectiveInjectorInlineStrategy.prototype.getMaxNumberOfObjects = function () { return _MAX_CONSTRUCTION_COUNTER; };\n return ReflectiveInjectorInlineStrategy;\n }());\n var ReflectiveInjectorDynamicStrategy = (function () {\n function ReflectiveInjectorDynamicStrategy(protoStrategy, injector) {\n this.protoStrategy = protoStrategy;\n this.injector = injector;\n this.objs = ListWrapper.createFixedSize(protoStrategy.providers.length);\n ListWrapper.fill(this.objs, UNDEFINED);\n }\n ReflectiveInjectorDynamicStrategy.prototype.resetConstructionCounter = function () { this.injector._constructionCounter = 0; };\n ReflectiveInjectorDynamicStrategy.prototype.instantiateProvider = function (provider) {\n return this.injector._new(provider);\n };\n ReflectiveInjectorDynamicStrategy.prototype.getObjByKeyId = function (keyId) {\n var p = this.protoStrategy;\n for (var i = 0; i < p.keyIds.length; i++) {\n if (p.keyIds[i] === keyId) {\n if (this.objs[i] === UNDEFINED) {\n this.objs[i] = this.injector._new(p.providers[i]);\n }\n return this.objs[i];\n }\n }\n return UNDEFINED;\n };\n ReflectiveInjectorDynamicStrategy.prototype.getObjAtIndex = function (index) {\n if (index < 0 || index >= this.objs.length) {\n throw new OutOfBoundsError(index);\n }\n return this.objs[index];\n };\n ReflectiveInjectorDynamicStrategy.prototype.getMaxNumberOfObjects = function () { return this.objs.length; };\n return ReflectiveInjectorDynamicStrategy;\n }());\n /**\n * A ReflectiveDependency injection container used for instantiating objects and resolving\n * dependencies.\n *\n * An `Injector` is a replacement for a `new` operator, which can automatically resolve the\n * constructor dependencies.\n *\n * In typical use, application code asks for the dependencies in the constructor and they are\n * resolved by the `Injector`.\n *\n * ### Example ([live demo](http://plnkr.co/edit/jzjec0?p=preview))\n *\n * The following example creates an `Injector` configured to create `Engine` and `Car`.\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\n * var car = injector.get(Car);\n * expect(car instanceof Car).toBe(true);\n * expect(car.engine instanceof Engine).toBe(true);\n * ```\n *\n * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`\n * resolve all of the object's dependencies automatically.\n *\n * @stable\n */\n var ReflectiveInjector = (function () {\n function ReflectiveInjector() {\n }\n /**\n * Turns an array of provider definitions into an array of resolved providers.\n *\n * A resolution is a process of flattening multiple nested arrays and converting individual\n * providers into an array of {@link ResolvedReflectiveProvider}s.\n *\n * ### Example ([live demo](http://plnkr.co/edit/AiXTHi?p=preview))\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);\n *\n * expect(providers.length).toEqual(2);\n *\n * expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);\n * expect(providers[0].key.displayName).toBe(\"Car\");\n * expect(providers[0].dependencies.length).toEqual(1);\n * expect(providers[0].factory).toBeDefined();\n *\n * expect(providers[1].key.displayName).toBe(\"Engine\");\n * });\n * ```\n *\n * See {@link ReflectiveInjector#fromResolvedProviders} for more info.\n */\n ReflectiveInjector.resolve = function (providers) {\n return resolveReflectiveProviders(providers);\n };\n /**\n * Resolves an array of providers and creates an injector from those providers.\n *\n * The passed-in providers can be an array of `Type`, {@link Provider},\n * or a recursive array of more providers.\n *\n * ### Example ([live demo](http://plnkr.co/edit/ePOccA?p=preview))\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\n * expect(injector.get(Car) instanceof Car).toBe(true);\n * ```\n *\n * This function is slower than the corresponding `fromResolvedProviders`\n * because it needs to resolve the passed-in providers first.\n * See {@link Injector#resolve} and {@link Injector#fromResolvedProviders}.\n */\n ReflectiveInjector.resolveAndCreate = function (providers, parent) {\n if (parent === void 0) { parent = null; }\n var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\n return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);\n };\n /**\n * Creates an injector from previously resolved providers.\n *\n * This API is the recommended way to construct injectors in performance-sensitive parts.\n *\n * ### Example ([live demo](http://plnkr.co/edit/KrSMci?p=preview))\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var providers = ReflectiveInjector.resolve([Car, Engine]);\n * var injector = ReflectiveInjector.fromResolvedProviders(providers);\n * expect(injector.get(Car) instanceof Car).toBe(true);\n * ```\n * @experimental\n */\n ReflectiveInjector.fromResolvedProviders = function (providers, parent) {\n if (parent === void 0) { parent = null; }\n return new ReflectiveInjector_(ReflectiveProtoInjector.fromResolvedProviders(providers), parent);\n };\n Object.defineProperty(ReflectiveInjector.prototype, \"parent\", {\n /**\n * Parent of this injector.\n *\n * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\n * -->\n *\n * ### Example ([live demo](http://plnkr.co/edit/eosMGo?p=preview))\n *\n * ```typescript\n * var parent = ReflectiveInjector.resolveAndCreate([]);\n * var child = parent.resolveAndCreateChild([]);\n * expect(child.parent).toBe(parent);\n * ```\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n /**\n * Resolves an array of providers and creates a child injector from those providers.\n *\n * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\n * -->\n *\n * The passed-in providers can be an array of `Type`, {@link Provider},\n * or a recursive array of more providers.\n *\n * ### Example ([live demo](http://plnkr.co/edit/opB3T4?p=preview))\n *\n * ```typescript\n * class ParentProvider {}\n * class ChildProvider {}\n *\n * var parent = ReflectiveInjector.resolveAndCreate([ParentProvider]);\n * var child = parent.resolveAndCreateChild([ChildProvider]);\n *\n * expect(child.get(ParentProvider) instanceof ParentProvider).toBe(true);\n * expect(child.get(ChildProvider) instanceof ChildProvider).toBe(true);\n * expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider));\n * ```\n *\n * This function is slower than the corresponding `createChildFromResolved`\n * because it needs to resolve the passed-in providers first.\n * See {@link Injector#resolve} and {@link Injector#createChildFromResolved}.\n */\n ReflectiveInjector.prototype.resolveAndCreateChild = function (providers) { return unimplemented(); };\n /**\n * Creates a child injector from previously resolved providers.\n *\n * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\n * -->\n *\n * This API is the recommended way to construct injectors in performance-sensitive parts.\n *\n * ### Example ([live demo](http://plnkr.co/edit/VhyfjN?p=preview))\n *\n * ```typescript\n * class ParentProvider {}\n * class ChildProvider {}\n *\n * var parentProviders = ReflectiveInjector.resolve([ParentProvider]);\n * var childProviders = ReflectiveInjector.resolve([ChildProvider]);\n *\n * var parent = ReflectiveInjector.fromResolvedProviders(parentProviders);\n * var child = parent.createChildFromResolved(childProviders);\n *\n * expect(child.get(ParentProvider) instanceof ParentProvider).toBe(true);\n * expect(child.get(ChildProvider) instanceof ChildProvider).toBe(true);\n * expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider));\n * ```\n */\n ReflectiveInjector.prototype.createChildFromResolved = function (providers) {\n return unimplemented();\n };\n /**\n * Resolves a provider and instantiates an object in the context of the injector.\n *\n * The created object does not get cached by the injector.\n *\n * ### Example ([live demo](http://plnkr.co/edit/yvVXoB?p=preview))\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var injector = ReflectiveInjector.resolveAndCreate([Engine]);\n *\n * var car = injector.resolveAndInstantiate(Car);\n * expect(car.engine).toBe(injector.get(Engine));\n * expect(car).not.toBe(injector.resolveAndInstantiate(Car));\n * ```\n */\n ReflectiveInjector.prototype.resolveAndInstantiate = function (provider) { return unimplemented(); };\n /**\n * Instantiates an object using a resolved provider in the context of the injector.\n *\n * The created object does not get cached by the injector.\n *\n * ### Example ([live demo](http://plnkr.co/edit/ptCImQ?p=preview))\n *\n * ```typescript\n * @Injectable()\n * class Engine {\n * }\n *\n * @Injectable()\n * class Car {\n * constructor(public engine:Engine) {}\n * }\n *\n * var injector = ReflectiveInjector.resolveAndCreate([Engine]);\n * var carProvider = ReflectiveInjector.resolve([Car])[0];\n * var car = injector.instantiateResolved(carProvider);\n * expect(car.engine).toBe(injector.get(Engine));\n * expect(car).not.toBe(injector.instantiateResolved(carProvider));\n * ```\n */\n ReflectiveInjector.prototype.instantiateResolved = function (provider) { return unimplemented(); };\n return ReflectiveInjector;\n }());\n var ReflectiveInjector_ = (function () {\n /**\n * Private\n */\n function ReflectiveInjector_(_proto /* ProtoInjector */, _parent) {\n if (_parent === void 0) { _parent = null; }\n /** @internal */\n this._constructionCounter = 0;\n this._proto = _proto;\n this._parent = _parent;\n this._strategy = _proto._strategy.createInjectorStrategy(this);\n }\n ReflectiveInjector_.prototype.get = function (token, notFoundValue) {\n if (notFoundValue === void 0) { notFoundValue = THROW_IF_NOT_FOUND; }\n return this._getByKey(ReflectiveKey.get(token), null, null, notFoundValue);\n };\n ReflectiveInjector_.prototype.getAt = function (index) { return this._strategy.getObjAtIndex(index); };\n Object.defineProperty(ReflectiveInjector_.prototype, \"parent\", {\n get: function () { return this._parent; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ReflectiveInjector_.prototype, \"internalStrategy\", {\n /**\n * @internal\n * Internal. Do not use.\n * We return `any` not to export the InjectorStrategy type.\n */\n get: function () { return this._strategy; },\n enumerable: true,\n configurable: true\n });\n ReflectiveInjector_.prototype.resolveAndCreateChild = function (providers) {\n var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\n return this.createChildFromResolved(ResolvedReflectiveProviders);\n };\n ReflectiveInjector_.prototype.createChildFromResolved = function (providers) {\n var proto = new ReflectiveProtoInjector(providers);\n var inj = new ReflectiveInjector_(proto);\n inj._parent = this;\n return inj;\n };\n ReflectiveInjector_.prototype.resolveAndInstantiate = function (provider) {\n return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);\n };\n ReflectiveInjector_.prototype.instantiateResolved = function (provider) {\n return this._instantiateProvider(provider);\n };\n /** @internal */\n ReflectiveInjector_.prototype._new = function (provider) {\n if (this._constructionCounter++ > this._strategy.getMaxNumberOfObjects()) {\n throw new CyclicDependencyError(this, provider.key);\n }\n return this._instantiateProvider(provider);\n };\n ReflectiveInjector_.prototype._instantiateProvider = function (provider) {\n if (provider.multiProvider) {\n var res = ListWrapper.createFixedSize(provider.resolvedFactories.length);\n for (var i = 0; i < provider.resolvedFactories.length; ++i) {\n res[i] = this._instantiate(provider, provider.resolvedFactories[i]);\n }\n return res;\n }\n else {\n return this._instantiate(provider, provider.resolvedFactories[0]);\n }\n };\n ReflectiveInjector_.prototype._instantiate = function (provider, ResolvedReflectiveFactory) {\n var factory = ResolvedReflectiveFactory.factory;\n var deps = ResolvedReflectiveFactory.dependencies;\n var length = deps.length;\n var d0;\n var d1;\n var d2;\n var d3;\n var d4;\n var d5;\n var d6;\n var d7;\n var d8;\n var d9;\n var d10;\n var d11;\n var d12;\n var d13;\n var d14;\n var d15;\n var d16;\n var d17;\n var d18;\n var d19;\n try {\n d0 = length > 0 ? this._getByReflectiveDependency(provider, deps[0]) : null;\n d1 = length > 1 ? this._getByReflectiveDependency(provider, deps[1]) : null;\n d2 = length > 2 ? this._getByReflectiveDependency(provider, deps[2]) : null;\n d3 = length > 3 ? this._getByReflectiveDependency(provider, deps[3]) : null;\n d4 = length > 4 ? this._getByReflectiveDependency(provider, deps[4]) : null;\n d5 = length > 5 ? this._getByReflectiveDependency(provider, deps[5]) : null;\n d6 = length > 6 ? this._getByReflectiveDependency(provider, deps[6]) : null;\n d7 = length > 7 ? this._getByReflectiveDependency(provider, deps[7]) : null;\n d8 = length > 8 ? this._getByReflectiveDependency(provider, deps[8]) : null;\n d9 = length > 9 ? this._getByReflectiveDependency(provider, deps[9]) : null;\n d10 = length > 10 ? this._getByReflectiveDependency(provider, deps[10]) : null;\n d11 = length > 11 ? this._getByReflectiveDependency(provider, deps[11]) : null;\n d12 = length > 12 ? this._getByReflectiveDependency(provider, deps[12]) : null;\n d13 = length > 13 ? this._getByReflectiveDependency(provider, deps[13]) : null;\n d14 = length > 14 ? this._getByReflectiveDependency(provider, deps[14]) : null;\n d15 = length > 15 ? this._getByReflectiveDependency(provider, deps[15]) : null;\n d16 = length > 16 ? this._getByReflectiveDependency(provider, deps[16]) : null;\n d17 = length > 17 ? this._getByReflectiveDependency(provider, deps[17]) : null;\n d18 = length > 18 ? this._getByReflectiveDependency(provider, deps[18]) : null;\n d19 = length > 19 ? this._getByReflectiveDependency(provider, deps[19]) : null;\n }\n catch (e) {\n if (e instanceof AbstractProviderError || e instanceof InstantiationError) {\n e.addKey(this, provider.key);\n }\n throw e;\n }\n var obj;\n try {\n switch (length) {\n case 0:\n obj = factory();\n break;\n case 1:\n obj = factory(d0);\n break;\n case 2:\n obj = factory(d0, d1);\n break;\n case 3:\n obj = factory(d0, d1, d2);\n break;\n case 4:\n obj = factory(d0, d1, d2, d3);\n break;\n case 5:\n obj = factory(d0, d1, d2, d3, d4);\n break;\n case 6:\n obj = factory(d0, d1, d2, d3, d4, d5);\n break;\n case 7:\n obj = factory(d0, d1, d2, d3, d4, d5, d6);\n break;\n case 8:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7);\n break;\n case 9:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8);\n break;\n case 10:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9);\n break;\n case 11:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10);\n break;\n case 12:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11);\n break;\n case 13:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12);\n break;\n case 14:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13);\n break;\n case 15:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14);\n break;\n case 16:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15);\n break;\n case 17:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16);\n break;\n case 18:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17);\n break;\n case 19:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18);\n break;\n case 20:\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18, d19);\n break;\n default:\n throw new Error(\"Cannot instantiate '\" + provider.key.displayName + \"' because it has more than 20 dependencies\");\n }\n }\n catch (e) {\n throw new InstantiationError(this, e, e.stack, provider.key);\n }\n return obj;\n };\n ReflectiveInjector_.prototype._getByReflectiveDependency = function (provider, dep) {\n return this._getByKey(dep.key, dep.lowerBoundVisibility, dep.upperBoundVisibility, dep.optional ? null : THROW_IF_NOT_FOUND);\n };\n ReflectiveInjector_.prototype._getByKey = function (key, lowerBoundVisibility, upperBoundVisibility, notFoundValue) {\n if (key === INJECTOR_KEY) {\n return this;\n }\n if (upperBoundVisibility instanceof SelfMetadata) {\n return this._getByKeySelf(key, notFoundValue);\n }\n else {\n return this._getByKeyDefault(key, notFoundValue, lowerBoundVisibility);\n }\n };\n /** @internal */\n ReflectiveInjector_.prototype._throwOrNull = function (key, notFoundValue) {\n if (notFoundValue !== THROW_IF_NOT_FOUND) {\n return notFoundValue;\n }\n else {\n throw new NoProviderError(this, key);\n }\n };\n /** @internal */\n ReflectiveInjector_.prototype._getByKeySelf = function (key, notFoundValue) {\n var obj = this._strategy.getObjByKeyId(key.id);\n return (obj !== UNDEFINED) ? obj : this._throwOrNull(key, notFoundValue);\n };\n /** @internal */\n ReflectiveInjector_.prototype._getByKeyDefault = function (key, notFoundValue, lowerBoundVisibility) {\n var inj;\n if (lowerBoundVisibility instanceof SkipSelfMetadata) {\n inj = this._parent;\n }\n else {\n inj = this;\n }\n while (inj instanceof ReflectiveInjector_) {\n var inj_ = inj;\n var obj = inj_._strategy.getObjByKeyId(key.id);\n if (obj !== UNDEFINED)\n return obj;\n inj = inj_._parent;\n }\n if (inj !== null) {\n return inj.get(key.token, notFoundValue);\n }\n else {\n return this._throwOrNull(key, notFoundValue);\n }\n };\n Object.defineProperty(ReflectiveInjector_.prototype, \"displayName\", {\n get: function () {\n var providers = _mapProviders(this, function (b) { return ' \"' + b.key.displayName + '\" '; })\n .join(', ');\n return \"ReflectiveInjector(providers: [\" + providers + \"])\";\n },\n enumerable: true,\n configurable: true\n });\n ReflectiveInjector_.prototype.toString = function () { return this.displayName; };\n return ReflectiveInjector_;\n }());\n var INJECTOR_KEY = ReflectiveKey.get(Injector);\n function _mapProviders(injector, fn) {\n var res = new Array(injector._proto.numberOfProviders);\n for (var i = 0; i < injector._proto.numberOfProviders; ++i) {\n res[i] = fn(injector._proto.getProviderAtIndex(i));\n }\n return res;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n /**\n * Directives allow you to attach behavior to elements in the DOM.\n *\n * {@link DirectiveMetadata}s with an embedded view are called {@link ComponentMetadata}s.\n *\n * A directive consists of a single directive annotation and a controller class. When the\n * directive's `selector` matches\n * elements in the DOM, the following steps occur:\n *\n * 1. For each directive, the `ElementInjector` attempts to resolve the directive's constructor\n * arguments.\n * 2. Angular instantiates directives for each matched element using `ElementInjector` in a\n * depth-first order,\n * as declared in the HTML.\n *\n * ## Understanding How Injection Works\n *\n * There are three stages of injection resolution.\n * - *Pre-existing Injectors*:\n * - The terminal {@link Injector} cannot resolve dependencies. It either throws an error or, if\n * the dependency was\n * specified as `@Optional`, returns `null`.\n * - The platform injector resolves browser singleton resources, such as: cookies, title,\n * location, and others.\n * - *Component Injectors*: Each component instance has its own {@link Injector}, and they follow\n * the same parent-child hierarchy\n * as the component instances in the DOM.\n * - *Element Injectors*: Each component instance has a Shadow DOM. Within the Shadow DOM each\n * element has an `ElementInjector`\n * which follow the same parent-child hierarchy as the DOM elements themselves.\n *\n * When a template is instantiated, it also must instantiate the corresponding directives in a\n * depth-first order. The\n * current `ElementInjector` resolves the constructor dependencies for each directive.\n *\n * Angular then resolves dependencies as follows, according to the order in which they appear in the\n * {@link ComponentMetadata}:\n *\n * 1. Dependencies on the current element\n * 2. Dependencies on element injectors and their parents until it encounters a Shadow DOM boundary\n * 3. Dependencies on component injectors and their parents until it encounters the root component\n * 4. Dependencies on pre-existing injectors\n *\n *\n * The `ElementInjector` can inject other directives, element-specific special objects, or it can\n * delegate to the parent\n * injector.\n *\n * To inject other directives, declare the constructor parameter as:\n * - `directive:DirectiveType`: a directive on the current element only\n * - `@Host() directive:DirectiveType`: any directive that matches the type between the current\n * element and the\n * Shadow DOM root.\n * - `@Query(DirectiveType) query:QueryList<DirectiveType>`: A live collection of direct child\n * directives.\n * - `@QueryDescendants(DirectiveType) query:QueryList<DirectiveType>`: A live collection of any\n * child directives.\n *\n * To inject element-specific special objects, declare the constructor parameter as:\n * - `element: ElementRef` to obtain a reference to logical element in the view.\n * - `viewContainer: ViewContainerRef` to control child template instantiation, for\n * {@link DirectiveMetadata} directives only\n * - `bindingPropagation: BindingPropagation` to control change detection in a more granular way.\n *\n * ### Example\n *\n * The following example demonstrates how dependency injection resolves constructor arguments in\n * practice.\n *\n *\n * Assume this HTML template:\n *\n * ```\n * <div dependency=\"1\">\n * <div dependency=\"2\">\n * <div dependency=\"3\" my-directive>\n * <div dependency=\"4\">\n * <div dependency=\"5\"></div>\n * </div>\n * <div dependency=\"6\"></div>\n * </div>\n * </div>\n * </div>\n * ```\n *\n * With the following `dependency` decorator and `SomeService` injectable class.\n *\n * ```\n * @Injectable()\n * class SomeService {\n * }\n *\n * @Directive({\n * selector: '[dependency]',\n * inputs: [\n * 'id: dependency'\n * ]\n * })\n * class Dependency {\n * id:string;\n * }\n * ```\n *\n * Let's step through the different ways in which `MyDirective` could be declared...\n *\n *\n * ### No injection\n *\n * Here the constructor is declared with no arguments, therefore nothing is injected into\n * `MyDirective`.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor() {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with no dependencies.\n *\n *\n * ### Component-level injection\n *\n * Directives can inject any injectable instance from the closest component injector or any of its\n * parents.\n *\n * Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type\n * from the parent\n * component's injector.\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(someService: SomeService) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a dependency on `SomeService`.\n *\n *\n * ### Injecting a directive from the current element\n *\n * Directives can inject other directives declared on the current element.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(dependency: Dependency) {\n * expect(dependency.id).toEqual(3);\n * }\n * }\n * ```\n * This directive would be instantiated with `Dependency` declared at the same element, in this case\n * `dependency=\"3\"`.\n *\n * ### Injecting a directive from any ancestor elements\n *\n * Directives can inject other directives declared on any ancestor element (in the current Shadow\n * DOM), i.e. on the current element, the\n * parent element, or its parents.\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Host() dependency: Dependency) {\n * expect(dependency.id).toEqual(2);\n * }\n * }\n * ```\n *\n * `@Host` checks the current element, the parent, as well as its parents recursively. If\n * `dependency=\"2\"` didn't\n * exist on the direct parent, this injection would\n * have returned\n * `dependency=\"1\"`.\n *\n *\n * ### Injecting a live collection of direct child directives\n *\n *\n * A directive can also query for other child directives. Since parent directives are instantiated\n * before child directives, a directive can't simply inject the list of child directives. Instead,\n * the directive injects a {@link QueryList}, which updates its contents as children are added,\n * removed, or moved by a directive that uses a {@link ViewContainerRef} such as a `ngFor`, an\n * `ngIf`, or an `ngSwitch`.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Query(Dependency) dependencies:QueryList<Dependency>) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a {@link QueryList} which contains `Dependency` 4 and\n * `Dependency` 6. Here, `Dependency` 5 would not be included, because it is not a direct child.\n *\n * ### Injecting a live collection of descendant directives\n *\n * By passing the descendant flag to `@Query` above, we can include the children of the child\n * elements.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Query(Dependency, {descendants: true}) dependencies:QueryList<Dependency>) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a Query which would contain `Dependency` 4, 5 and 6.\n *\n * ### Optional injection\n *\n * The normal behavior of directives is to return an error when a specified dependency cannot be\n * resolved. If you\n * would like to inject `null` on unresolved dependency instead, you can annotate that dependency\n * with `@Optional()`.\n * This explicitly permits the author of a template to treat some of the surrounding directives as\n * optional.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Optional() dependency:Dependency) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a `Dependency` directive found on the current element.\n * If none can be\n * found, the injector supplies `null` instead of throwing an error.\n *\n * ### Example\n *\n * Here we use a decorator directive to simply define basic tool-tip behavior.\n *\n * ```\n * @Directive({\n * selector: '[tooltip]',\n * inputs: [\n * 'text: tooltip'\n * ],\n * host: {\n * '(mouseenter)': 'onMouseEnter()',\n * '(mouseleave)': 'onMouseLeave()'\n * }\n * })\n * class Tooltip{\n * text:string;\n * overlay:Overlay; // NOT YET IMPLEMENTED\n * overlayManager:OverlayManager; // NOT YET IMPLEMENTED\n *\n * constructor(overlayManager:OverlayManager) {\n * this.overlay = overlay;\n * }\n *\n * onMouseEnter() {\n * // exact signature to be determined\n * this.overlay = this.overlayManager.open(text, ...);\n * }\n *\n * onMouseLeave() {\n * this.overlay.close();\n * this.overlay = null;\n * }\n * }\n * ```\n * In our HTML template, we can then add this behavior to a `<div>` or any other element with the\n * `tooltip` selector,\n * like so:\n *\n * ```\n * <div tooltip=\"some text here\"></div>\n * ```\n *\n * Directives can also control the instantiation, destruction, and positioning of inline template\n * elements:\n *\n * A directive uses a {@link ViewContainerRef} to instantiate, insert, move, and destroy views at\n * runtime.\n * The {@link ViewContainerRef} is created as a result of `<template>` element, and represents a\n * location in the current view\n * where these actions are performed.\n *\n * Views are always created as children of the current {@link ComponentMetadata}, and as siblings of\n * the\n * `<template>` element. Thus a\n * directive in a child view cannot inject the directive that created it.\n *\n * Since directives that create views via ViewContainers are common in Angular, and using the full\n * `<template>` element syntax is wordy, Angular\n * also supports a shorthand notation: `<li *foo=\"bar\">` and `<li template=\"foo: bar\">` are\n * equivalent.\n *\n * Thus,\n *\n * ```\n * <ul>\n * <li *foo=\"bar\" title=\"text\"></li>\n * </ul>\n * ```\n *\n * Expands in use to:\n *\n * ```\n * <ul>\n * <template [foo]=\"bar\">\n * <li title=\"text\"></li>\n * </template>\n * </ul>\n * ```\n *\n * Notice that although the shorthand places `*foo=\"bar\"` within the `<li>` element, the binding for\n * the directive\n * controller is correctly instantiated on the `<template>` element rather than the `<li>` element.\n *\n * ## Lifecycle hooks\n *\n * When the directive class implements some {@linkDocs guide/lifecycle-hooks} the\n * callbacks are called by the change detection at defined points in time during the life of the\n * directive.\n *\n * ### Example\n *\n * Let's suppose we want to implement the `unless` behavior, to conditionally include a template.\n *\n * Here is a simple directive that triggers on an `unless` selector:\n *\n * ```\n * @Directive({\n * selector: '[unless]',\n * inputs: ['unless']\n * })\n * export class Unless {\n * viewContainer: ViewContainerRef;\n * templateRef: TemplateRef;\n * prevCondition: boolean;\n *\n * constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef) {\n * this.viewContainer = viewContainer;\n * this.templateRef = templateRef;\n * this.prevCondition = null;\n * }\n *\n * set unless(newCondition) {\n * if (newCondition && (isBlank(this.prevCondition) || !this.prevCondition)) {\n * this.prevCondition = true;\n * this.viewContainer.clear();\n * } else if (!newCondition && (isBlank(this.prevCondition) || this.prevCondition)) {\n * this.prevCondition = false;\n * this.viewContainer.create(this.templateRef);\n * }\n * }\n * }\n * ```\n *\n * We can then use this `unless` selector in a template:\n * ```\n * <ul>\n * <li *unless=\"expr\"></li>\n * </ul>\n * ```\n *\n * Once the directive instantiates the child view, the shorthand notation for the template expands\n * and the result is:\n *\n * ```\n * <ul>\n * <template [unless]=\"exp\">\n * <li></li>\n * </template>\n * <li></li>\n * </ul>\n * ```\n *\n * Note also that although the `<li></li>` template still exists inside the `<template></template>`,\n * the instantiated\n * view occurs on the second `<li></li>` which is a sibling to the `<template>` element.\n * @stable\n */\n var DirectiveMetadata = (function (_super) {\n __extends$1(DirectiveMetadata, _super);\n function DirectiveMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, selector = _b.selector, inputs = _b.inputs, outputs = _b.outputs, host = _b.host, providers = _b.providers, exportAs = _b.exportAs, queries = _b.queries;\n _super.call(this);\n this.selector = selector;\n this._inputs = inputs;\n this._outputs = outputs;\n this.host = host;\n this.exportAs = exportAs;\n this.queries = queries;\n this._providers = providers;\n }\n Object.defineProperty(DirectiveMetadata.prototype, \"inputs\", {\n /**\n * Enumerates the set of data-bound input properties for a directive\n *\n * Angular automatically updates input properties during change detection.\n *\n * The `inputs` property defines a set of `directiveProperty` to `bindingProperty`\n * configuration:\n *\n * - `directiveProperty` specifies the component property where the value is written.\n * - `bindingProperty` specifies the DOM property where the value is read from.\n *\n * When `bindingProperty` is not provided, it is assumed to be equal to `directiveProperty`.\n *\n * ### Example ([live demo](http://plnkr.co/edit/ivhfXY?p=preview))\n *\n * The following example creates a component with two data-bound properties.\n *\n * ```typescript\n * @Component({\n * selector: 'bank-account',\n * inputs: ['bankName', 'id: account-id'],\n * template: `\n * Bank Name: {{bankName}}\n * Account Id: {{id}}\n * `\n * })\n * class BankAccount {\n * bankName: string;\n * id: string;\n *\n * // this property is not bound, and won't be automatically updated by Angular\n * normalizedBankName: string;\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <bank-account bank-name=\"RBC\" account-id=\"4747\"></bank-account>\n * `\n * })\n * class App {}\n * ```\n *\n */\n get: function () { return this._inputs; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DirectiveMetadata.prototype, \"outputs\", {\n /**\n * Enumerates the set of event-bound output properties.\n *\n * When an output property emits an event, an event handler attached to that event\n * the template is invoked.\n *\n * The `outputs` property defines a set of `directiveProperty` to `bindingProperty`\n * configuration:\n *\n * - `directiveProperty` specifies the component property that emits events.\n * - `bindingProperty` specifies the DOM property the event handler is attached to.\n *\n * ### Example ([live demo](http://plnkr.co/edit/d5CNq7?p=preview))\n *\n * ```typescript\n * @Directive({\n * selector: 'interval-dir',\n * outputs: ['everySecond', 'five5Secs: everyFiveSeconds']\n * })\n * class IntervalDir {\n * everySecond = new EventEmitter();\n * five5Secs = new EventEmitter();\n *\n * constructor() {\n * setInterval(() => this.everySecond.emit(\"event\"), 1000);\n * setInterval(() => this.five5Secs.emit(\"event\"), 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <interval-dir (everySecond)=\"everySecond()\" (everyFiveSeconds)=\"everyFiveSeconds()\">\n * </interval-dir>\n * `\n * })\n * class App {\n * everySecond() { console.log('second'); }\n * everyFiveSeconds() { console.log('five seconds'); }\n * }\n * ```\n *\n */\n get: function () { return this._outputs; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DirectiveMetadata.prototype, \"providers\", {\n /**\n * Defines the set of injectable objects that are visible to a Directive and its light DOM\n * children.\n *\n * ## Simple Example\n *\n * Here is an example of a class that can be injected:\n *\n * ```\n * class Greeter {\n * greet(name:string) {\n * return 'Hello ' + name + '!';\n * }\n * }\n *\n * @Directive({\n * selector: 'greet',\n * providers: [\n * Greeter\n * ]\n * })\n * class HelloWorld {\n * greeter:Greeter;\n *\n * constructor(greeter:Greeter) {\n * this.greeter = greeter;\n * }\n * }\n * ```\n */\n get: function () { return this._providers; },\n enumerable: true,\n configurable: true\n });\n return DirectiveMetadata;\n }(InjectableMetadata));\n /**\n * Declare reusable UI building blocks for an application.\n *\n * Each Angular component requires a single `@Component` annotation. The\n * `@Component`\n * annotation specifies when a component is instantiated, and which properties and hostListeners it\n * binds to.\n *\n * When a component is instantiated, Angular\n * - creates a shadow DOM for the component.\n * - loads the selected template into the shadow DOM.\n * - creates all the injectable objects configured with `providers` and `viewProviders`.\n *\n * All template expressions and statements are then evaluated against the component instance.\n *\n * ## Lifecycle hooks\n *\n * When the component class implements some {@linkDocs guide/lifecycle-hooks} the\n * callbacks are called by the change detection at defined points in time during the life of the\n * component.\n *\n * ### Example\n *\n * {@example core/ts/metadata/metadata.ts region='component'}\n * @stable\n */\n var ComponentMetadata = (function (_super) {\n __extends$1(ComponentMetadata, _super);\n function ComponentMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, selector = _b.selector, inputs = _b.inputs, outputs = _b.outputs, host = _b.host, exportAs = _b.exportAs, moduleId = _b.moduleId, providers = _b.providers, viewProviders = _b.viewProviders, _c = _b.changeDetection, changeDetection = _c === void 0 ? exports.ChangeDetectionStrategy.Default : _c, queries = _b.queries, templateUrl = _b.templateUrl, template = _b.template, styleUrls = _b.styleUrls, styles = _b.styles, animations = _b.animations, encapsulation = _b.encapsulation, interpolation = _b.interpolation, entryComponents = _b.entryComponents;\n _super.call(this, {\n selector: selector,\n inputs: inputs,\n outputs: outputs,\n host: host,\n exportAs: exportAs,\n providers: providers,\n queries: queries\n });\n this.changeDetection = changeDetection;\n this._viewProviders = viewProviders;\n this.templateUrl = templateUrl;\n this.template = template;\n this.styleUrls = styleUrls;\n this.styles = styles;\n this.encapsulation = encapsulation;\n this.moduleId = moduleId;\n this.animations = animations;\n this.interpolation = interpolation;\n this.entryComponents = entryComponents;\n }\n Object.defineProperty(ComponentMetadata.prototype, \"viewProviders\", {\n /**\n * Defines the set of injectable objects that are visible to its view DOM children.\n *\n * ## Simple Example\n *\n * Here is an example of a class that can be injected:\n *\n * ```\n * class Greeter {\n * greet(name:string) {\n * return 'Hello ' + name + '!';\n * }\n * }\n *\n * @Directive({\n * selector: 'needs-greeter'\n * })\n * class NeedsGreeter {\n * greeter:Greeter;\n *\n * constructor(greeter:Greeter) {\n * this.greeter = greeter;\n * }\n * }\n *\n * @Component({\n * selector: 'greet',\n * viewProviders: [\n * Greeter\n * ],\n * template: `<needs-greeter></needs-greeter>`\n * })\n * class HelloWorld {\n * }\n *\n * ```\n */\n get: function () { return this._viewProviders; },\n enumerable: true,\n configurable: true\n });\n return ComponentMetadata;\n }(DirectiveMetadata));\n /**\n * Declare reusable pipe function.\n *\n * A \"pure\" pipe is only re-evaluated when either the input or any of the arguments change.\n *\n * When not specified, pipes default to being pure.\n *\n * ### Example\n *\n * {@example core/ts/metadata/metadata.ts region='pipe'}\n * @stable\n */\n var PipeMetadata = (function (_super) {\n __extends$1(PipeMetadata, _super);\n function PipeMetadata(_a) {\n var name = _a.name, pure = _a.pure;\n _super.call(this);\n this.name = name;\n this._pure = pure;\n }\n Object.defineProperty(PipeMetadata.prototype, \"pure\", {\n get: function () { return isPresent(this._pure) ? this._pure : true; },\n enumerable: true,\n configurable: true\n });\n return PipeMetadata;\n }(InjectableMetadata));\n /**\n * Declares a data-bound input property.\n *\n * Angular automatically updates data-bound properties during change detection.\n *\n * `InputMetadata` takes an optional parameter that specifies the name\n * used when instantiating a component in the template. When not provided,\n * the name of the decorated property is used.\n *\n * ### Example\n *\n * The following example creates a component with two input properties.\n *\n * ```typescript\n * @Component({\n * selector: 'bank-account',\n * template: `\n * Bank Name: {{bankName}}\n * Account Id: {{id}}\n * `\n * })\n * class BankAccount {\n * @Input() bankName: string;\n * @Input('account-id') id: string;\n *\n * // this property is not bound, and won't be automatically updated by Angular\n * normalizedBankName: string;\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <bank-account bank-name=\"RBC\" account-id=\"4747\"></bank-account>\n * `\n * })\n *\n * class App {}\n * ```\n * @stable\n */\n var InputMetadata = (function () {\n function InputMetadata(\n /**\n * Name used when instantiating a component in the template.\n */\n bindingPropertyName) {\n this.bindingPropertyName = bindingPropertyName;\n }\n return InputMetadata;\n }());\n /**\n * Declares an event-bound output property.\n *\n * When an output property emits an event, an event handler attached to that event\n * the template is invoked.\n *\n * `OutputMetadata` takes an optional parameter that specifies the name\n * used when instantiating a component in the template. When not provided,\n * the name of the decorated property is used.\n *\n * ### Example\n *\n * ```typescript\n * @Directive({\n * selector: 'interval-dir',\n * })\n * class IntervalDir {\n * @Output() everySecond = new EventEmitter();\n * @Output('everyFiveSeconds') five5Secs = new EventEmitter();\n *\n * constructor() {\n * setInterval(() => this.everySecond.emit(\"event\"), 1000);\n * setInterval(() => this.five5Secs.emit(\"event\"), 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <interval-dir (everySecond)=\"everySecond()\" (everyFiveSeconds)=\"everyFiveSeconds()\">\n * </interval-dir>\n * `\n * })\n * class App {\n * everySecond() { console.log('second'); }\n * everyFiveSeconds() { console.log('five seconds'); }\n * }\n * ```\n * @stable\n */\n var OutputMetadata = (function () {\n function OutputMetadata(bindingPropertyName) {\n this.bindingPropertyName = bindingPropertyName;\n }\n return OutputMetadata;\n }());\n /**\n * Declares a host property binding.\n *\n * Angular automatically checks host property bindings during change detection.\n * If a binding changes, it will update the host element of the directive.\n *\n * `HostBindingMetadata` takes an optional parameter that specifies the property\n * name of the host element that will be updated. When not provided,\n * the class property name is used.\n *\n * ### Example\n *\n * The following example creates a directive that sets the `valid` and `invalid` classes\n * on the DOM element that has ngModel directive on it.\n *\n * ```typescript\n * @Directive({selector: '[ngModel]'})\n * class NgModelStatus {\n * constructor(public control:NgModel) {}\n * @HostBinding('class.valid') get valid { return this.control.valid; }\n * @HostBinding('class.invalid') get invalid { return this.control.invalid; }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<input [(ngModel)]=\"prop\">`\n * })\n * class App {\n * prop;\n * }\n * ```\n * @stable\n */\n var HostBindingMetadata = (function () {\n function HostBindingMetadata(hostPropertyName) {\n this.hostPropertyName = hostPropertyName;\n }\n return HostBindingMetadata;\n }());\n /**\n * Declares a host listener.\n *\n * Angular will invoke the decorated method when the host element emits the specified event.\n *\n * If the decorated method returns `false`, then `preventDefault` is applied on the DOM\n * event.\n *\n * ### Example\n *\n * The following example declares a directive that attaches a click listener to the button and\n * counts clicks.\n *\n * ```typescript\n * @Directive({selector: 'button[counting]'})\n * class CountClicks {\n * numberOfClicks = 0;\n *\n * @HostListener('click', ['$event.target'])\n * onClick(btn) {\n * console.log(\"button\", btn, \"number of clicks:\", this.numberOfClicks++);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<button counting>Increment</button>`\n * })\n * class App {}\n * ```\n * @stable\n */\n var HostListenerMetadata = (function () {\n function HostListenerMetadata(eventName, args) {\n this.eventName = eventName;\n this.args = args;\n }\n return HostListenerMetadata;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$5 = (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 };\n /**\n * Defines a schema that will allow:\n * - any non-angular elements with a `-` in their name,\n * - any properties on elements with a `-` in their name which is the common rule for custom\n * elements.\n *\n * @stable\n */\n var CUSTOM_ELEMENTS_SCHEMA = {\n name: 'custom-elements'\n };\n /**\n * Defines a schema that will allow any property on any element.\n *\n * @experimental\n */\n var NO_ERRORS_SCHEMA = {\n name: 'no-errors-schema'\n };\n /**\n * Declares an Angular Module.\n * @stable\n */\n var NgModuleMetadata = (function (_super) {\n __extends$5(NgModuleMetadata, _super);\n function NgModuleMetadata(options) {\n if (options === void 0) { options = {}; }\n // We cannot use destructuring of the constructor argument because `exports` is a\n // protected symbol in CommonJS and closure tries to aggressively optimize it away.\n _super.call(this);\n this._providers = options.providers;\n this.declarations = options.declarations;\n this.imports = options.imports;\n this.exports = options.exports;\n this.entryComponents = options.entryComponents;\n this.bootstrap = options.bootstrap;\n this.schemas = options.schemas;\n }\n Object.defineProperty(NgModuleMetadata.prototype, \"providers\", {\n /**\n * Defines the set of injectable objects that are available in the injector\n * of this module.\n *\n * ## Simple Example\n *\n * Here is an example of a class that can be injected:\n *\n * ```\n * class Greeter {\n * greet(name:string) {\n * return 'Hello ' + name + '!';\n * }\n * }\n *\n * @NgModule({\n * providers: [\n * Greeter\n * ]\n * })\n * class HelloWorld {\n * greeter:Greeter;\n *\n * constructor(greeter:Greeter) {\n * this.greeter = greeter;\n * }\n * }\n * ```\n */\n get: function () { return this._providers; },\n enumerable: true,\n configurable: true\n });\n return NgModuleMetadata;\n }(InjectableMetadata));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * @stable\n */\n var LifecycleHooks;\n (function (LifecycleHooks) {\n LifecycleHooks[LifecycleHooks[\"OnInit\"] = 0] = \"OnInit\";\n LifecycleHooks[LifecycleHooks[\"OnDestroy\"] = 1] = \"OnDestroy\";\n LifecycleHooks[LifecycleHooks[\"DoCheck\"] = 2] = \"DoCheck\";\n LifecycleHooks[LifecycleHooks[\"OnChanges\"] = 3] = \"OnChanges\";\n LifecycleHooks[LifecycleHooks[\"AfterContentInit\"] = 4] = \"AfterContentInit\";\n LifecycleHooks[LifecycleHooks[\"AfterContentChecked\"] = 5] = \"AfterContentChecked\";\n LifecycleHooks[LifecycleHooks[\"AfterViewInit\"] = 6] = \"AfterViewInit\";\n LifecycleHooks[LifecycleHooks[\"AfterViewChecked\"] = 7] = \"AfterViewChecked\";\n })(LifecycleHooks || (LifecycleHooks = {}));\n var LIFECYCLE_HOOKS_VALUES = [\n LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges,\n LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit,\n LifecycleHooks.AfterViewChecked\n ];\n /**\n * Lifecycle hooks are guaranteed to be called in the following order:\n * - `OnChanges` (if any bindings have changed),\n * - `OnInit` (after the first check only),\n * - `DoCheck`,\n * - `AfterContentInit`,\n * - `AfterContentChecked`,\n * - `AfterViewInit`,\n * - `AfterViewChecked`,\n * - `OnDestroy` (at the very end before destruction)\n */\n /**\n * Implement this interface to get notified when any data-bound property of your directive changes.\n *\n * `ngOnChanges` is called right after the data-bound properties have been checked and before view\n * and content children are checked if at least one of them has changed.\n *\n * The `changes` parameter contains an entry for each of the changed data-bound property. The key is\n * the property name and the value is an instance of {@link SimpleChange}.\n *\n * ### Example ([live example](http://plnkr.co/edit/AHrB6opLqHDBPkt4KpdT?p=preview)):\n *\n * ```typescript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>myProp = {{myProp}}</p>`\n * })\n * class MyComponent implements OnChanges {\n * @Input() myProp: any;\n *\n * ngOnChanges(changes: SimpleChanges) {\n * console.log('ngOnChanges - myProp = ' + changes['myProp'].currentValue);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"value = value + 1\">Change MyComponent</button>\n * <my-cmp [my-prop]=\"value\"></my-cmp>`,\n * directives: [MyComponent]\n * })\n * export class App {\n * value = 0;\n * }\n * ```\n * @stable\n */\n var OnChanges = (function () {\n function OnChanges() {\n }\n return OnChanges;\n }());\n /**\n * Implement this interface to execute custom initialization logic after your directive's\n * data-bound properties have been initialized.\n *\n * `ngOnInit` is called right after the directive's data-bound properties have been checked for the\n * first time, and before any of its children have been checked. It is invoked only once when the\n * directive is instantiated.\n *\n * ### Example ([live example](http://plnkr.co/edit/1MBypRryXd64v4pV03Yn?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>my-component</p>`\n * })\n * class MyComponent implements OnInit, OnDestroy {\n * ngOnInit() {\n * console.log('ngOnInit');\n * }\n *\n * ngOnDestroy() {\n * console.log('ngOnDestroy');\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"hasChild = !hasChild\">\n * {{hasChild ? 'Destroy' : 'Create'}} MyComponent\n * </button>\n * <my-cmp *ngIf=\"hasChild\"></my-cmp>`,\n * directives: [MyComponent, NgIf]\n * })\n * export class App {\n * hasChild = true;\n * }\n * ```\n * @stable\n */\n var OnInit = (function () {\n function OnInit() {\n }\n return OnInit;\n }());\n /**\n * Implement this interface to supplement the default change detection algorithm in your directive.\n *\n * `ngDoCheck` gets called to check the changes in the directives in addition to the default\n * algorithm.\n *\n * The default change detection algorithm looks for differences by comparing bound-property values\n * by reference across change detection runs.\n *\n * Note that a directive typically should not use both `DoCheck` and {@link OnChanges} to respond to\n * changes on the same input. `ngOnChanges` will continue to be called when the default change\n * detector\n * detects changes, so it is usually unnecessary to respond to changes on the same input in both\n * hooks.\n * Reaction to the changes have to be handled from within the `ngDoCheck` callback.\n *\n * You can use {@link KeyValueDiffers} and {@link IterableDiffers} to help add your custom check\n * mechanisms.\n *\n * ### Example ([live demo](http://plnkr.co/edit/QpnIlF0CR2i5bcYbHEUJ?p=preview))\n *\n * In the following example `ngDoCheck` uses an {@link IterableDiffers} to detect the updates to the\n * array `list`:\n *\n * ```typescript\n * @Component({\n * selector: 'custom-check',\n * template: `\n * <p>Changes:</p>\n * <ul>\n * <li *ngFor=\"let line of logs\">{{line}}</li>\n * </ul>`,\n * directives: [NgFor]\n * })\n * class CustomCheckComponent implements DoCheck {\n * @Input() list: any[];\n * differ: any;\n * logs = [];\n *\n * constructor(differs: IterableDiffers) {\n * this.differ = differs.find([]).create(null);\n * }\n *\n * ngDoCheck() {\n * var changes = this.differ.diff(this.list);\n *\n * if (changes) {\n * changes.forEachAddedItem(r => this.logs.push('added ' + r.item));\n * changes.forEachRemovedItem(r => this.logs.push('removed ' + r.item))\n * }\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"list.push(list.length)\">Push</button>\n * <button (click)=\"list.pop()\">Pop</button>\n * <custom-check [list]=\"list\"></custom-check>`,\n * directives: [CustomCheckComponent]\n * })\n * export class App {\n * list = [];\n * }\n * ```\n * @stable\n */\n var DoCheck = (function () {\n function DoCheck() {\n }\n return DoCheck;\n }());\n /**\n * Implement this interface to get notified when your directive is destroyed.\n *\n * `ngOnDestroy` callback is typically used for any custom cleanup that needs to occur when the\n * instance is destroyed\n *\n * ### Example ([live example](http://plnkr.co/edit/1MBypRryXd64v4pV03Yn?p=preview))\n *\n * ```typesript\n * @Component({\n * selector: 'my-cmp',\n * template: `<p>my-component</p>`\n * })\n * class MyComponent implements OnInit, OnDestroy {\n * ngOnInit() {\n * console.log('ngOnInit');\n * }\n *\n * ngOnDestroy() {\n * console.log('ngOnDestroy');\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <button (click)=\"hasChild = !hasChild\">\n * {{hasChild ? 'Destroy' : 'Create'}} MyComponent\n * </button>\n * <my-cmp *ngIf=\"hasChild\"></my-cmp>`,\n * directives: [MyComponent, NgIf]\n * })\n * export class App {\n * hasChild = true;\n * }\n * ```\n *\n *\n * To create a stateful Pipe, you should implement this interface and set the `pure`\n * parameter to `false` in the {@link PipeMetadata}.\n *\n * A stateful pipe may produce different output, given the same input. It is\n * likely that a stateful pipe may contain state that should be cleaned up when\n * a binding is destroyed. For example, a subscription to a stream of data may need to\n * be disposed, or an interval may need to be cleared.\n *\n * ### Example ([live demo](http://plnkr.co/edit/i8pm5brO4sPaLxBx56MR?p=preview))\n *\n * In this example, a pipe is created to countdown its input value, updating it every\n * 50ms. Because it maintains an internal interval, it automatically clears\n * the interval when the binding is destroyed or the countdown completes.\n *\n * ```\n * import {OnDestroy, Pipe, PipeTransform} from '@angular/core'\n * @Pipe({name: 'countdown', pure: false})\n * class CountDown implements PipeTransform, OnDestroy {\n * remainingTime:Number;\n * interval:SetInterval;\n * ngOnDestroy() {\n * if (this.interval) {\n * clearInterval(this.interval);\n * }\n * }\n * transform(value: any, args: any[] = []) {\n * if (!parseInt(value, 10)) return null;\n * if (typeof this.remainingTime !== 'number') {\n * this.remainingTime = parseInt(value, 10);\n * }\n * if (!this.interval) {\n * this.interval = setInterval(() => {\n * this.remainingTime-=50;\n * if (this.remainingTime <= 0) {\n * this.remainingTime = 0;\n * clearInterval(this.interval);\n * delete this.interval;\n * }\n * }, 50);\n * }\n * return this.remainingTime;\n * }\n * }\n * ```\n *\n * Invoking `{{ 10000 | countdown }}` would cause the value to be decremented by 50,\n * every 50ms, until it reaches 0.\n *\n * @stable\n */\n var OnDestroy = (function () {\n function OnDestroy() {\n }\n return OnDestroy;\n }());\n /**\n * Implement this interface to get notified when your directive's content has been fully\n * initialized.\n *\n * ### Example ([live demo](http://plnkr.co/edit/plamXUpsLQbIXpViZhUO?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'child-cmp',\n * template: `{{where}} child`\n * })\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `<ng-content></ng-content>`\n * })\n * class ParentComponent implements AfterContentInit {\n * @ContentChild(ChildComponent) contentChild: ChildComponent;\n *\n * constructor() {\n * // contentChild is not initialized yet\n * console.log(this.getMessage(this.contentChild));\n * }\n *\n * ngAfterContentInit() {\n * // contentChild is updated after the content has been checked\n * console.log('AfterContentInit: ' + this.getMessage(this.contentChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <parent-cmp>\n * <child-cmp where=\"content\"></child-cmp>\n * </parent-cmp>`,\n * directives: [ParentComponent, ChildComponent]\n * })\n * export class App {\n * }\n * ```\n * @stable\n */\n var AfterContentInit = (function () {\n function AfterContentInit() {\n }\n return AfterContentInit;\n }());\n /**\n * Implement this interface to get notified after every check of your directive's content.\n *\n * ### Example ([live demo](http://plnkr.co/edit/tGdrytNEKQnecIPkD7NU?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({selector: 'parent-cmp', template: `<ng-content></ng-content>`})\n * class ParentComponent implements AfterContentChecked {\n * @ContentChild(ChildComponent) contentChild: ChildComponent;\n *\n * constructor() {\n * // contentChild is not initialized yet\n * console.log(this.getMessage(this.contentChild));\n * }\n *\n * ngAfterContentChecked() {\n * // contentChild is updated after the content has been checked\n * console.log('AfterContentChecked: ' + this.getMessage(this.contentChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <parent-cmp>\n * <button (click)=\"hasContent = !hasContent\">Toggle content child</button>\n * <child-cmp *ngIf=\"hasContent\" where=\"content\"></child-cmp>\n * </parent-cmp>`,\n * directives: [NgIf, ParentComponent, ChildComponent]\n * })\n * export class App {\n * hasContent = true;\n * }\n * ```\n * @stable\n */\n var AfterContentChecked = (function () {\n function AfterContentChecked() {\n }\n return AfterContentChecked;\n }());\n /**\n * Implement this interface to get notified when your component's view has been fully initialized.\n *\n * ### Example ([live demo](http://plnkr.co/edit/LhTKVMEM0fkJgyp4CI1W?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `<child-cmp where=\"view\"></child-cmp>`,\n * directives: [ChildComponent]\n * })\n * class ParentComponent implements AfterViewInit {\n * @ViewChild(ChildComponent) viewChild: ChildComponent;\n *\n * constructor() {\n * // viewChild is not initialized yet\n * console.log(this.getMessage(this.viewChild));\n * }\n *\n * ngAfterViewInit() {\n * // viewChild is updated after the view has been initialized\n * console.log('ngAfterViewInit: ' + this.getMessage(this.viewChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<parent-cmp></parent-cmp>`,\n * directives: [ParentComponent]\n * })\n * export class App {\n * }\n * ```\n * @stable\n */\n var AfterViewInit = (function () {\n function AfterViewInit() {\n }\n return AfterViewInit;\n }());\n /**\n * Implement this interface to get notified after every check of your component's view.\n *\n * ### Example ([live demo](http://plnkr.co/edit/0qDGHcPQkc25CXhTNzKU?p=preview))\n *\n * ```typescript\n * @Component({selector: 'child-cmp', template: `{{where}} child`})\n * class ChildComponent {\n * @Input() where: string;\n * }\n *\n * @Component({\n * selector: 'parent-cmp',\n * template: `\n * <button (click)=\"showView = !showView\">Toggle view child</button>\n * <child-cmp *ngIf=\"showView\" where=\"view\"></child-cmp>`,\n * directives: [NgIf, ChildComponent]\n * })\n * class ParentComponent implements AfterViewChecked {\n * @ViewChild(ChildComponent) viewChild: ChildComponent;\n * showView = true;\n *\n * constructor() {\n * // viewChild is not initialized yet\n * console.log(this.getMessage(this.viewChild));\n * }\n *\n * ngAfterViewChecked() {\n * // viewChild is updated after the view has been checked\n * console.log('AfterViewChecked: ' + this.getMessage(this.viewChild));\n * }\n *\n * private getMessage(cmp: ChildComponent): string {\n * return cmp ? cmp.where + ' child' : 'no child';\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<parent-cmp></parent-cmp>`,\n * directives: [ParentComponent]\n * })\n * export class App {\n * }\n * ```\n * @stable\n */\n var AfterViewChecked = (function () {\n function AfterViewChecked() {\n }\n return AfterViewChecked;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Defines template and style encapsulation options available for Component's {@link Component}.\n *\n * See {@link ViewMetadata#encapsulation}.\n * @stable\n */\n exports.ViewEncapsulation;\n (function (ViewEncapsulation) {\n /**\n * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host\n * Element and pre-processing the style rules provided via\n * {@link ViewMetadata#styles} or {@link ViewMetadata#stylesUrls}, and adding the new Host Element\n * attribute to all selectors.\n *\n * This is the default option.\n */\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n /**\n * Use the native encapsulation mechanism of the renderer.\n *\n * For the DOM this means using [Shadow DOM](https://w3c.github.io/webcomponents/spec/shadow/) and\n * creating a ShadowRoot for Component's Host Element.\n */\n ViewEncapsulation[ViewEncapsulation[\"Native\"] = 1] = \"Native\";\n /**\n * Don't provide any template or style encapsulation.\n */\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n })(exports.ViewEncapsulation || (exports.ViewEncapsulation = {}));\n var VIEW_ENCAPSULATION_VALUES = [exports.ViewEncapsulation.Emulated, exports.ViewEncapsulation.Native, exports.ViewEncapsulation.None];\n /**\n * Metadata properties available for configuring Views.\n *\n * Each Angular component requires a single `@Component` and at least one `@View` annotation. The\n * `@View` annotation specifies the HTML template to use, and lists the directives that are active\n * within the template.\n *\n * When a component is instantiated, the template is loaded into the component's shadow root, and\n * the expressions and statements in the template are evaluated against the component.\n *\n * For details on the `@Component` annotation, see {@link ComponentMetadata}.\n *\n * ### Example\n *\n * ```\n * @Component({\n * selector: 'greet',\n * template: 'Hello {{name}}!',\n * directives: [GreetUser, Bold]\n * })\n * class Greet {\n * name: string;\n *\n * constructor() {\n * this.name = 'World';\n * }\n * }\n * ```\n *\n * @deprecated Use ComponentMetadata instead.\n */\n var ViewMetadata = (function () {\n function ViewMetadata(_a) {\n var _b = _a === void 0 ? {} : _a, templateUrl = _b.templateUrl, template = _b.template, encapsulation = _b.encapsulation, styles = _b.styles, styleUrls = _b.styleUrls, animations = _b.animations, interpolation = _b.interpolation;\n this.templateUrl = templateUrl;\n this.template = template;\n this.styleUrls = styleUrls;\n this.styles = styles;\n this.encapsulation = encapsulation;\n this.animations = animations;\n this.interpolation = interpolation;\n }\n return ViewMetadata;\n }());\n\n // TODO(alexeagle): remove the duplication of this doc. It is copied from ComponentMetadata.\n /**\n * Declare reusable UI building blocks for an application.\n *\n * Each Angular component requires a single `@Component` annotation. The `@Component`\n * annotation specifies when a component is instantiated, and which properties and hostListeners it\n * binds to.\n *\n * When a component is instantiated, Angular\n * - creates a shadow DOM for the component.\n * - loads the selected template into the shadow DOM.\n * - creates all the injectable objects configured with `providers` and `viewProviders`.\n *\n * All template expressions and statements are then evaluated against the component instance.\n *\n * ## Lifecycle hooks\n *\n * When the component class implements some {@linkDocs guide/lifecycle-hooks} the\n * callbacks are called by the change detection at defined points in time during the life of the\n * component.\n *\n * ### Example\n *\n * {@example core/ts/metadata/metadata.ts region='component'}\n * @stable\n * @Annotation\n */\n var Component = makeDecorator(ComponentMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from DirectiveMetadata.\n /**\n * Directives allow you to attach behavior to elements in the DOM.\n *\n * {@link DirectiveMetadata}s with an embedded view are called {@link ComponentMetadata}s.\n *\n * A directive consists of a single directive annotation and a controller class. When the\n * directive's `selector` matches\n * elements in the DOM, the following steps occur:\n *\n * 1. For each directive, the `ElementInjector` attempts to resolve the directive's constructor\n * arguments.\n * 2. Angular instantiates directives for each matched element using `ElementInjector` in a\n * depth-first order,\n * as declared in the HTML.\n *\n * ## Understanding How Injection Works\n *\n * There are three stages of injection resolution.\n * - *Pre-existing Injectors*:\n * - The terminal {@link Injector} cannot resolve dependencies. It either throws an error or, if\n * the dependency was\n * specified as `@Optional`, returns `null`.\n * - The platform injector resolves browser singleton resources, such as: cookies, title,\n * location, and others.\n * - *Component Injectors*: Each component instance has its own {@link Injector}, and they follow\n * the same parent-child hierarchy\n * as the component instances in the DOM.\n * - *Element Injectors*: Each component instance has a Shadow DOM. Within the Shadow DOM each\n * element has an `ElementInjector`\n * which follow the same parent-child hierarchy as the DOM elements themselves.\n *\n * When a template is instantiated, it also must instantiate the corresponding directives in a\n * depth-first order. The\n * current `ElementInjector` resolves the constructor dependencies for each directive.\n *\n * Angular then resolves dependencies as follows, according to the order in which they appear in the\n * {@link ComponentMetadata}:\n *\n * 1. Dependencies on the current element\n * 2. Dependencies on element injectors and their parents until it encounters a Shadow DOM boundary\n * 3. Dependencies on component injectors and their parents until it encounters the root component\n * 4. Dependencies on pre-existing injectors\n *\n *\n * The `ElementInjector` can inject other directives, element-specific special objects, or it can\n * delegate to the parent\n * injector.\n *\n * To inject other directives, declare the constructor parameter as:\n * - `directive:DirectiveType`: a directive on the current element only\n * - `@Host() directive:DirectiveType`: any directive that matches the type between the current\n * element and the\n * Shadow DOM root.\n * - `@Query(DirectiveType) query:QueryList<DirectiveType>`: A live collection of direct child\n * directives.\n * - `@QueryDescendants(DirectiveType) query:QueryList<DirectiveType>`: A live collection of any\n * child directives.\n *\n * To inject element-specific special objects, declare the constructor parameter as:\n * - `element: ElementRef` to obtain a reference to logical element in the view.\n * - `viewContainer: ViewContainerRef` to control child template instantiation, for\n * {@link DirectiveMetadata} directives only\n * - `bindingPropagation: BindingPropagation` to control change detection in a more granular way.\n *\n * ### Example\n *\n * The following example demonstrates how dependency injection resolves constructor arguments in\n * practice.\n *\n *\n * Assume this HTML template:\n *\n * ```\n * <div dependency=\"1\">\n * <div dependency=\"2\">\n * <div dependency=\"3\" my-directive>\n * <div dependency=\"4\">\n * <div dependency=\"5\"></div>\n * </div>\n * <div dependency=\"6\"></div>\n * </div>\n * </div>\n * </div>\n * ```\n *\n * With the following `dependency` decorator and `SomeService` injectable class.\n *\n * ```\n * @Injectable()\n * class SomeService {\n * }\n *\n * @Directive({\n * selector: '[dependency]',\n * inputs: [\n * 'id: dependency'\n * ]\n * })\n * class Dependency {\n * id:string;\n * }\n * ```\n *\n * Let's step through the different ways in which `MyDirective` could be declared...\n *\n *\n * ### No injection\n *\n * Here the constructor is declared with no arguments, therefore nothing is injected into\n * `MyDirective`.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor() {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with no dependencies.\n *\n *\n * ### Component-level injection\n *\n * Directives can inject any injectable instance from the closest component injector or any of its\n * parents.\n *\n * Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type\n * from the parent\n * component's injector.\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(someService: SomeService) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a dependency on `SomeService`.\n *\n *\n * ### Injecting a directive from the current element\n *\n * Directives can inject other directives declared on the current element.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(dependency: Dependency) {\n * expect(dependency.id).toEqual(3);\n * }\n * }\n * ```\n * This directive would be instantiated with `Dependency` declared at the same element, in this case\n * `dependency=\"3\"`.\n *\n * ### Injecting a directive from any ancestor elements\n *\n * Directives can inject other directives declared on any ancestor element (in the current Shadow\n * DOM), i.e. on the current element, the\n * parent element, or its parents.\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Host() dependency: Dependency) {\n * expect(dependency.id).toEqual(2);\n * }\n * }\n * ```\n *\n * `@Host` checks the current element, the parent, as well as its parents recursively. If\n * `dependency=\"2\"` didn't\n * exist on the direct parent, this injection would\n * have returned\n * `dependency=\"1\"`.\n *\n *\n * ### Injecting a live collection of direct child directives\n *\n *\n * A directive can also query for other child directives. Since parent directives are instantiated\n * before child directives, a directive can't simply inject the list of child directives. Instead,\n * the directive injects a {@link QueryList}, which updates its contents as children are added,\n * removed, or moved by a directive that uses a {@link ViewContainerRef} such as a `ngFor`, an\n * `ngIf`, or an `ngSwitch`.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Query(Dependency) dependencies:QueryList<Dependency>) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a {@link QueryList} which contains `Dependency` 4 and\n * 6. Here, `Dependency` 5 would not be included, because it is not a direct child.\n *\n * ### Injecting a live collection of descendant directives\n *\n * By passing the descendant flag to `@Query` above, we can include the children of the child\n * elements.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Query(Dependency, {descendants: true}) dependencies:QueryList<Dependency>) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a Query which would contain `Dependency` 4, 5 and 6.\n *\n * ### Optional injection\n *\n * The normal behavior of directives is to return an error when a specified dependency cannot be\n * resolved. If you\n * would like to inject `null` on unresolved dependency instead, you can annotate that dependency\n * with `@Optional()`.\n * This explicitly permits the author of a template to treat some of the surrounding directives as\n * optional.\n *\n * ```\n * @Directive({ selector: '[my-directive]' })\n * class MyDirective {\n * constructor(@Optional() dependency:Dependency) {\n * }\n * }\n * ```\n *\n * This directive would be instantiated with a `Dependency` directive found on the current element.\n * If none can be\n * found, the injector supplies `null` instead of throwing an error.\n *\n * ### Example\n *\n * Here we use a decorator directive to simply define basic tool-tip behavior.\n *\n * ```\n * @Directive({\n * selector: '[tooltip]',\n * inputs: [\n * 'text: tooltip'\n * ],\n * host: {\n * '(mouseenter)': 'onMouseEnter()',\n * '(mouseleave)': 'onMouseLeave()'\n * }\n * })\n * class Tooltip{\n * text:string;\n * overlay:Overlay; // NOT YET IMPLEMENTED\n * overlayManager:OverlayManager; // NOT YET IMPLEMENTED\n *\n * constructor(overlayManager:OverlayManager) {\n * this.overlayManager = overlayManager;\n * }\n *\n * onMouseEnter() {\n * // exact signature to be determined\n * this.overlay = this.overlayManager.open(text, ...);\n * }\n *\n * onMouseLeave() {\n * this.overlay.close();\n * this.overlay = null;\n * }\n * }\n * ```\n * In our HTML template, we can then add this behavior to a `<div>` or any other element with the\n * `tooltip` selector,\n * like so:\n *\n * ```\n * <div tooltip=\"some text here\"></div>\n * ```\n *\n * Directives can also control the instantiation, destruction, and positioning of inline template\n * elements:\n *\n * A directive uses a {@link ViewContainerRef} to instantiate, insert, move, and destroy views at\n * runtime.\n * The {@link ViewContainerRef} is created as a result of `<template>` element, and represents a\n * location in the current view\n * where these actions are performed.\n *\n * Views are always created as children of the current {@link ComponentMetadata}, and as siblings of\n * the\n * `<template>` element. Thus a\n * directive in a child view cannot inject the directive that created it.\n *\n * Since directives that create views via ViewContainers are common in Angular, and using the full\n * `<template>` element syntax is wordy, Angular\n * also supports a shorthand notation: `<li *foo=\"bar\">` and `<li template=\"foo: bar\">` are\n * equivalent.\n *\n * Thus,\n *\n * ```\n * <ul>\n * <li *foo=\"bar\" title=\"text\"></li>\n * </ul>\n * ```\n *\n * Expands in use to:\n *\n * ```\n * <ul>\n * <template [foo]=\"bar\">\n * <li title=\"text\"></li>\n * </template>\n * </ul>\n * ```\n *\n * Notice that although the shorthand places `*foo=\"bar\"` within the `<li>` element, the binding for\n * the directive\n * controller is correctly instantiated on the `<template>` element rather than the `<li>` element.\n *\n * ## Lifecycle hooks\n *\n * When the directive class implements some {@linkDocs guide/lifecycle-hooks} the\n * callbacks are called by the change detection at defined points in time during the life of the\n * directive.\n *\n * ### Example\n *\n * Let's suppose we want to implement the `unless` behavior, to conditionally include a template.\n *\n * Here is a simple directive that triggers on an `unless` selector:\n *\n * ```\n * @Directive({\n * selector: '[unless]',\n * inputs: ['unless']\n * })\n * export class Unless {\n * viewContainer: ViewContainerRef;\n * templateRef: TemplateRef;\n * prevCondition: boolean;\n *\n * constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef) {\n * this.viewContainer = viewContainer;\n * this.templateRef = templateRef;\n * this.prevCondition = null;\n * }\n *\n * set unless(newCondition) {\n * if (newCondition && (isBlank(this.prevCondition) || !this.prevCondition)) {\n * this.prevCondition = true;\n * this.viewContainer.clear();\n * } else if (!newCondition && (isBlank(this.prevCondition) || this.prevCondition)) {\n * this.prevCondition = false;\n * this.viewContainer.create(this.templateRef);\n * }\n * }\n * }\n * ```\n *\n * We can then use this `unless` selector in a template:\n * ```\n * <ul>\n * <li *unless=\"expr\"></li>\n * </ul>\n * ```\n *\n * Once the directive instantiates the child view, the shorthand notation for the template expands\n * and the result is:\n *\n * ```\n * <ul>\n * <template [unless]=\"exp\">\n * <li></li>\n * </template>\n * <li></li>\n * </ul>\n * ```\n *\n * Note also that although the `<li></li>` template still exists inside the `<template></template>`,\n * the instantiated\n * view occurs on the second `<li></li>` which is a sibling to the `<template>` element.\n * @stable\n * @Annotation\n */\n var Directive = makeDecorator(DirectiveMetadata);\n /**\n * Specifies that a constant attribute value should be injected.\n *\n * The directive can inject constant string literals of host element attributes.\n *\n * ### Example\n *\n * Suppose we have an `<input>` element and want to know its `type`.\n *\n * ```html\n * <input type=\"text\">\n * ```\n *\n * A decorator can inject string literal `text` like so:\n *\n * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}\n * @stable\n * @Annotation\n */\n var Attribute = makeParamDecorator(AttributeMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from ContentChildrenMetadata.\n /**\n * Configures a content query.\n *\n * Content queries are set before the `ngAfterContentInit` callback is called.\n *\n * ### Example\n *\n * ```\n * @Directive({\n * selector: 'someDir'\n * })\n * class SomeDir {\n * @ContentChildren(ChildDirective) contentChildren: QueryList<ChildDirective>;\n *\n * ngAfterContentInit() {\n * // contentChildren is set\n * }\n * }\n * ```\n * @stable\n * @Annotation\n */\n var ContentChildren = makePropDecorator(ContentChildrenMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from ContentChildMetadata.\n /**\n * Configures a content query.\n *\n * Content queries are set before the `ngAfterContentInit` callback is called.\n *\n * ### Example\n *\n * ```\n * @Directive({\n * selector: 'someDir'\n * })\n * class SomeDir {\n * @ContentChild(ChildDirective) contentChild;\n * @ContentChild('container_ref') containerChild\n *\n * ngAfterContentInit() {\n * // contentChild is set\n * // containerChild is set\n * }\n * }\n * ```\n *\n * ```html\n * <container #container_ref>\n * <item>a</item>\n * <item>b</item>\n * </container>\n * ```\n * @stable\n * @Annotation\n */\n var ContentChild = makePropDecorator(ContentChildMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildrenMetadata.\n /**\n * Declares a list of child element references.\n *\n * Angular automatically updates the list when the DOM is updated.\n *\n * `ViewChildren` takes a argument to select elements.\n *\n * - If the argument is a type, directives or components with the type will be bound.\n *\n * - If the argument is a string, the string is interpreted as a list of comma-separated selectors.\n * For each selector, an element containing the matching template variable (e.g. `#child`) will be\n * bound.\n *\n * View children are set before the `ngAfterViewInit` callback is called.\n *\n * ### Example\n *\n * With type selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: `\n * <child-cmp></child-cmp>\n * <child-cmp></child-cmp>\n * <child-cmp></child-cmp>\n * `,\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChildren(ChildCmp) children:QueryList<ChildCmp>;\n *\n * ngAfterViewInit() {\n * // children are set\n * this.children.toArray().forEach((child)=>child.doSomething());\n * }\n * }\n * ```\n *\n * With string selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: `\n * <child-cmp #child1></child-cmp>\n * <child-cmp #child2></child-cmp>\n * <child-cmp #child3></child-cmp>\n * `,\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChildren('child1,child2,child3') children:QueryList<ChildCmp>;\n *\n * ngAfterViewInit() {\n * // children are set\n * this.children.toArray().forEach((child)=>child.doSomething());\n * }\n * }\n * ```\n *\n * See also: [ViewChildrenMetadata]\n * @stable\n * @Annotation\n */\n var ViewChildren = makePropDecorator(ViewChildrenMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildMetadata.\n /**\n * Declares a reference to a child element.\n *\n * `ViewChildren` takes a argument to select elements.\n *\n * - If the argument is a type, a directive or a component with the type will be bound.\n *\n * - If the argument is a string, the string is interpreted as a selector. An element containing the\n * matching template variable (e.g. `#child`) will be bound.\n *\n * In either case, `@ViewChild()` assigns the first (looking from above) element if there are\n * multiple matches.\n *\n * View child is set before the `ngAfterViewInit` callback is called.\n *\n * ### Example\n *\n * With type selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: '<child-cmp></child-cmp>',\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChild(ChildCmp) child:ChildCmp;\n *\n * ngAfterViewInit() {\n * // child is set\n * this.child.doSomething();\n * }\n * }\n * ```\n *\n * With string selector:\n *\n * ```\n * @Component({\n * selector: 'child-cmp',\n * template: '<p>child</p>'\n * })\n * class ChildCmp {\n * doSomething() {}\n * }\n *\n * @Component({\n * selector: 'some-cmp',\n * template: '<child-cmp #child></child-cmp>',\n * directives: [ChildCmp]\n * })\n * class SomeCmp {\n * @ViewChild('child') child:ChildCmp;\n *\n * ngAfterViewInit() {\n * // child is set\n * this.child.doSomething();\n * }\n * }\n * ```\n * See also: [ViewChildMetadata]\n * @stable\n * @Annotation\n */\n var ViewChild = makePropDecorator(ViewChildMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from PipeMetadata.\n /**\n * Declare reusable pipe function.\n *\n * ### Example\n *\n * {@example core/ts/metadata/metadata.ts region='pipe'}\n * @stable\n * @Annotation\n */\n var Pipe = makeDecorator(PipeMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from InputMetadata.\n /**\n * Declares a data-bound input property.\n *\n * Angular automatically updates data-bound properties during change detection.\n *\n * `InputMetadata` takes an optional parameter that specifies the name\n * used when instantiating a component in the template. When not provided,\n * the name of the decorated property is used.\n *\n * ### Example\n *\n * The following example creates a component with two input properties.\n *\n * ```typescript\n * @Component({\n * selector: 'bank-account',\n * template: `\n * Bank Name: {{bankName}}\n * Account Id: {{id}}\n * `\n * })\n * class BankAccount {\n * @Input() bankName: string;\n * @Input('account-id') id: string;\n *\n * // this property is not bound, and won't be automatically updated by Angular\n * normalizedBankName: string;\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <bank-account bank-name=\"RBC\" account-id=\"4747\"></bank-account>\n * `,\n * directives: [BankAccount]\n * })\n * class App {}\n * ```\n * @stable\n * @Annotation\n */\n var Input = makePropDecorator(InputMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from OutputMetadata.\n /**\n * Declares an event-bound output property.\n *\n * When an output property emits an event, an event handler attached to that event\n * the template is invoked.\n *\n * `OutputMetadata` takes an optional parameter that specifies the name\n * used when instantiating a component in the template. When not provided,\n * the name of the decorated property is used.\n *\n * ### Example\n *\n * ```typescript\n * @Directive({\n * selector: 'interval-dir',\n * })\n * class IntervalDir {\n * @Output() everySecond = new EventEmitter();\n * @Output('everyFiveSeconds') five5Secs = new EventEmitter();\n *\n * constructor() {\n * setInterval(() => this.everySecond.emit(\"event\"), 1000);\n * setInterval(() => this.five5Secs.emit(\"event\"), 5000);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `\n * <interval-dir (everySecond)=\"everySecond()\" (everyFiveSeconds)=\"everyFiveSeconds()\">\n * </interval-dir>\n * `,\n * directives: [IntervalDir]\n * })\n * class App {\n * everySecond() { console.log('second'); }\n * everyFiveSeconds() { console.log('five seconds'); }\n * }\n * ```\n * @stable\n * @Annotation\n */\n var Output = makePropDecorator(OutputMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from HostBindingMetadata.\n /**\n * Declares a host property binding.\n *\n * Angular automatically checks host property bindings during change detection.\n * If a binding changes, it will update the host element of the directive.\n *\n * `HostBindingMetadata` takes an optional parameter that specifies the property\n * name of the host element that will be updated. When not provided,\n * the class property name is used.\n *\n * ### Example\n *\n * The following example creates a directive that sets the `valid` and `invalid` classes\n * on the DOM element that has ngModel directive on it.\n *\n * ```typescript\n * @Directive({selector: '[ngModel]'})\n * class NgModelStatus {\n * constructor(public control:NgModel) {}\n * @HostBinding('class.valid') get valid() { return this.control.valid; }\n * @HostBinding('class.invalid') get invalid() { return this.control.invalid; }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<input [(ngModel)]=\"prop\">`,\n * directives: [FORM_DIRECTIVES, NgModelStatus]\n * })\n * class App {\n * prop;\n * }\n * ```\n * @stable\n * @Annotation\n */\n var HostBinding = makePropDecorator(HostBindingMetadata);\n // TODO(alexeagle): remove the duplication of this doc. It is copied from HostListenerMetadata.\n /**\n * Declares a host listener.\n *\n * Angular will invoke the decorated method when the host element emits the specified event.\n *\n * If the decorated method returns `false`, then `preventDefault` is applied on the DOM\n * event.\n *\n * ### Example\n *\n * The following example declares a directive that attaches a click listener to the button and\n * counts clicks.\n *\n * ```typescript\n * @Directive({selector: 'button[counting]'})\n * class CountClicks {\n * numberOfClicks = 0;\n *\n * @HostListener('click', ['$event.target'])\n * onClick(btn) {\n * console.log(\"button\", btn, \"number of clicks:\", this.numberOfClicks++);\n * }\n * }\n *\n * @Component({\n * selector: 'app',\n * template: `<button counting>Increment</button>`,\n * directives: [CountClicks]\n * })\n * class App {}\n * ```\n * @stable\n * @Annotation\n */\n var HostListener = makePropDecorator(HostListenerMetadata);\n /**\n * Declares an ng module.\n * @stable\n * @Annotation\n */\n var NgModule = makeDecorator(NgModuleMetadata);\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Provides a hook for centralized exception handling.\n *\n * The default implementation of `ErrorHandler` prints error messages to the `Console`. To\n * intercept error handling,\n * write a custom exception handler that replaces this default as appropriate for your app.\n *\n * ### Example\n *\n * ```javascript\n *\n * class MyErrorHandler implements ErrorHandler {\n * call(error, stackTrace = null, reason = null) {\n * // do something with the exception\n * }\n * }\n *\n * @NgModule({\n * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n * @stable\n */\n var ErrorHandler = (function () {\n function ErrorHandler(rethrowError) {\n if (rethrowError === void 0) { rethrowError = true; }\n /**\n * @internal\n */\n this._console = console;\n this.rethrowError = rethrowError;\n }\n ErrorHandler.prototype.handleError = function (error) {\n var originalError = this._findOriginalError(error);\n var originalStack = this._findOriginalStack(error);\n var context = this._findContext(error);\n this._console.error(\"EXCEPTION: \" + this._extractMessage(error));\n if (originalError) {\n this._console.error(\"ORIGINAL EXCEPTION: \" + this._extractMessage(originalError));\n }\n if (originalStack) {\n this._console.error('ORIGINAL STACKTRACE:');\n this._console.error(originalStack);\n }\n if (context) {\n this._console.error('ERROR CONTEXT:');\n this._console.error(context);\n }\n // We rethrow exceptions, so operations like 'bootstrap' will result in an error\n // when an error happens. If we do not rethrow, bootstrap will always succeed.\n if (this.rethrowError)\n throw error;\n };\n /** @internal */\n ErrorHandler.prototype._extractMessage = function (error) {\n return error instanceof Error ? error.message : error.toString();\n };\n /** @internal */\n ErrorHandler.prototype._findContext = function (error) {\n if (error) {\n return error.context ? error.context :\n this._findContext(error.originalError);\n }\n else {\n return null;\n }\n };\n /** @internal */\n ErrorHandler.prototype._findOriginalError = function (error) {\n var e = error.originalError;\n while (e && e.originalError) {\n e = e.originalError;\n }\n return e;\n };\n /** @internal */\n ErrorHandler.prototype._findOriginalStack = function (error) {\n if (!(error instanceof Error))\n return null;\n var e = error;\n var stack = e.stack;\n while (e instanceof Error && e.originalError) {\n e = e.originalError;\n if (e instanceof Error && e.stack) {\n stack = e.stack;\n }\n }\n return stack;\n };\n return ErrorHandler;\n }());\n\n /**\n * A function that will be executed when an application is initialized.\n * @experimental\n */\n var APP_INITIALIZER = new OpaqueToken('Application Initializer');\n /**\n * A class that reflects the state of running {@link APP_INITIALIZER}s.\n *\n * @experimental\n */\n var ApplicationInitStatus = (function () {\n function ApplicationInitStatus(appInits) {\n var _this = this;\n this._done = false;\n var asyncInitPromises = [];\n if (appInits) {\n for (var i = 0; i < appInits.length; i++) {\n var initResult = appInits[i]();\n if (isPromise(initResult)) {\n asyncInitPromises.push(initResult);\n }\n }\n }\n this._donePromise = Promise.all(asyncInitPromises).then(function () { _this._done = true; });\n if (asyncInitPromises.length === 0) {\n this._done = true;\n }\n }\n Object.defineProperty(ApplicationInitStatus.prototype, \"done\", {\n get: function () { return this._done; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ApplicationInitStatus.prototype, \"donePromise\", {\n get: function () { return this._donePromise; },\n enumerable: true,\n configurable: true\n });\n ApplicationInitStatus.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n ApplicationInitStatus.ctorParameters = [\n { type: Array, decorators: [{ type: Inject, args: [APP_INITIALIZER,] }, { type: Optional },] },\n ];\n return ApplicationInitStatus;\n }());\n\n /**\n * A DI Token representing a unique string id assigned to the application by Angular and used\n * primarily for prefixing application attributes and CSS styles when\n * {@link ViewEncapsulation#Emulated} is being used.\n *\n * If you need to avoid randomly generated value to be used as an application id, you can provide\n * a custom value via a DI provider <!-- TODO: provider --> configuring the root {@link Injector}\n * using this token.\n * @experimental\n */\n var APP_ID = new OpaqueToken('AppId');\n function _appIdRandomProviderFactory() {\n return \"\" + _randomChar() + _randomChar() + _randomChar();\n }\n /**\n * Providers that will generate a random APP_ID_TOKEN.\n * @experimental\n */\n var APP_ID_RANDOM_PROVIDER = {\n provide: APP_ID,\n useFactory: _appIdRandomProviderFactory,\n deps: []\n };\n function _randomChar() {\n return StringWrapper.fromCharCode(97 + Math.floor(Math.random() * 25));\n }\n /**\n * A function that will be executed when a platform is initialized.\n * @experimental\n */\n var PLATFORM_INITIALIZER = new OpaqueToken('Platform Initializer');\n /**\n * All callbacks provided via this token will be called for every component that is bootstrapped.\n * Signature of the callback:\n *\n * `(componentRef: ComponentRef) => void`.\n *\n * @experimental\n */\n var APP_BOOTSTRAP_LISTENER = new OpaqueToken('appBootstrapListener');\n /**\n * A token which indicates the root directory of the application\n * @experimental\n */\n var PACKAGE_ROOT_URL = new OpaqueToken('Application Packages Root URL');\n\n var Console = (function () {\n function Console() {\n }\n Console.prototype.log = function (message) { print(message); };\n // Note: for reporting errors use `DOM.logError()` as it is platform specific\n Console.prototype.warn = function (message) { warn(message); };\n Console.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n Console.ctorParameters = [];\n return Console;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$7 = (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 };\n /**\n * Indicates that a component is still being loaded in a synchronous compile.\n *\n * @stable\n */\n var ComponentStillLoadingError = (function (_super) {\n __extends$7(ComponentStillLoadingError, _super);\n function ComponentStillLoadingError(compType) {\n _super.call(this, \"Can't compile synchronously as \" + stringify(compType) + \" is still being loaded!\");\n this.compType = compType;\n }\n return ComponentStillLoadingError;\n }(BaseError));\n /**\n * Combination of NgModuleFactory and ComponentFactorys.\n *\n * @experimental\n */\n var ModuleWithComponentFactories = (function () {\n function ModuleWithComponentFactories(ngModuleFactory, componentFactories) {\n this.ngModuleFactory = ngModuleFactory;\n this.componentFactories = componentFactories;\n }\n return ModuleWithComponentFactories;\n }());\n function _throwError() {\n throw new Error(\"Runtime compiler is not loaded\");\n }\n /**\n * Low-level service for running the angular compiler during runtime\n * to create {@link ComponentFactory}s, which\n * can later be used to create and render a Component instance.\n *\n * Each `@NgModule` provides an own `Compiler` to its injector,\n * that will use the directives/pipes of the ng module for compilation\n * of components.\n * @stable\n */\n var Compiler = (function () {\n function Compiler() {\n }\n /**\n * Compiles the given NgModule and all of its components. All templates of the components listed\n * in `entryComponents`\n * have to be inlined. Otherwise throws a {@link ComponentStillLoadingError}.\n */\n Compiler.prototype.compileModuleSync = function (moduleType) { throw _throwError(); };\n /**\n * Compiles the given NgModule and all of its components\n */\n Compiler.prototype.compileModuleAsync = function (moduleType) { throw _throwError(); };\n /**\n * Same as {@link compileModuleSync} put also creates ComponentFactories for all components.\n */\n Compiler.prototype.compileModuleAndAllComponentsSync = function (moduleType) {\n throw _throwError();\n };\n /**\n * Same as {@link compileModuleAsync} put also creates ComponentFactories for all components.\n */\n Compiler.prototype.compileModuleAndAllComponentsAsync = function (moduleType) {\n throw _throwError();\n };\n /**\n * Clears all caches\n */\n Compiler.prototype.clearCache = function () { };\n /**\n * Clears the cache for the given component/ngModule.\n */\n Compiler.prototype.clearCacheFor = function (type) { };\n return Compiler;\n }());\n /**\n * Token to provide CompilerOptions in the platform injector.\n *\n * @experimental\n */\n var COMPILER_OPTIONS = new OpaqueToken('compilerOptions');\n /**\n * A factory for creating a Compiler\n *\n * @experimental\n */\n var CompilerFactory = (function () {\n function CompilerFactory() {\n }\n return CompilerFactory;\n }());\n\n var DefaultIterableDifferFactory = (function () {\n function DefaultIterableDifferFactory() {\n }\n DefaultIterableDifferFactory.prototype.supports = function (obj) { return isListLikeIterable(obj); };\n DefaultIterableDifferFactory.prototype.create = function (cdRef, trackByFn) {\n return new DefaultIterableDiffer(trackByFn);\n };\n return DefaultIterableDifferFactory;\n }());\n var trackByIdentity = function (index, item) { return item; };\n /**\n * @stable\n */\n var DefaultIterableDiffer = (function () {\n function DefaultIterableDiffer(_trackByFn) {\n this._trackByFn = _trackByFn;\n this._length = null;\n this._collection = null;\n // Keeps track of the used records at any point in time (during & across `_check()` calls)\n this._linkedRecords = null;\n // Keeps track of the removed records at any point in time during `_check()` calls.\n this._unlinkedRecords = null;\n this._previousItHead = null;\n this._itHead = null;\n this._itTail = null;\n this._additionsHead = null;\n this._additionsTail = null;\n this._movesHead = null;\n this._movesTail = null;\n this._removalsHead = null;\n this._removalsTail = null;\n // Keeps track of records where custom track by is the same, but item identity has changed\n this._identityChangesHead = null;\n this._identityChangesTail = null;\n this._trackByFn = isPresent(this._trackByFn) ? this._trackByFn : trackByIdentity;\n }\n Object.defineProperty(DefaultIterableDiffer.prototype, \"collection\", {\n get: function () { return this._collection; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DefaultIterableDiffer.prototype, \"length\", {\n get: function () { return this._length; },\n enumerable: true,\n configurable: true\n });\n DefaultIterableDiffer.prototype.forEachItem = function (fn) {\n var record;\n for (record = this._itHead; record !== null; record = record._next) {\n fn(record);\n }\n };\n DefaultIterableDiffer.prototype.forEachOperation = function (fn) {\n var nextIt = this._itHead;\n var nextRemove = this._removalsHead;\n var addRemoveOffset = 0;\n var moveOffsets = null;\n while (nextIt || nextRemove) {\n // Figure out which is the next record to process\n // Order: remove, add, move\n var record = !nextRemove ||\n nextIt &&\n nextIt.currentIndex < getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ?\n nextIt :\n nextRemove;\n var adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);\n var currentIndex = record.currentIndex;\n // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary\n if (record === nextRemove) {\n addRemoveOffset--;\n nextRemove = nextRemove._nextRemoved;\n }\n else {\n nextIt = nextIt._next;\n if (record.previousIndex == null) {\n addRemoveOffset++;\n }\n else {\n // INVARIANT: currentIndex < previousIndex\n if (!moveOffsets)\n moveOffsets = [];\n var localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;\n var localCurrentIndex = currentIndex - addRemoveOffset;\n if (localMovePreviousIndex != localCurrentIndex) {\n for (var i = 0; i < localMovePreviousIndex; i++) {\n var offset = i < moveOffsets.length ? moveOffsets[i] : (moveOffsets[i] = 0);\n var index = offset + i;\n if (localCurrentIndex <= index && index < localMovePreviousIndex) {\n moveOffsets[i] = offset + 1;\n }\n }\n var previousIndex = record.previousIndex;\n moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;\n }\n }\n }\n if (adjPreviousIndex !== currentIndex) {\n fn(record, adjPreviousIndex, currentIndex);\n }\n }\n };\n DefaultIterableDiffer.prototype.forEachPreviousItem = function (fn) {\n var record;\n for (record = this._previousItHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n };\n DefaultIterableDiffer.prototype.forEachAddedItem = function (fn) {\n var record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n };\n DefaultIterableDiffer.prototype.forEachMovedItem = function (fn) {\n var record;\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\n fn(record);\n }\n };\n DefaultIterableDiffer.prototype.forEachRemovedItem = function (fn) {\n var record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n };\n DefaultIterableDiffer.prototype.forEachIdentityChange = function (fn) {\n var record;\n for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {\n fn(record);\n }\n };\n DefaultIterableDiffer.prototype.diff = function (collection) {\n if (isBlank(collection))\n collection = [];\n if (!isListLikeIterable(collection)) {\n throw new Error(\"Error trying to diff '\" + collection + \"'\");\n }\n if (this.check(collection)) {\n return this;\n }\n else {\n return null;\n }\n };\n DefaultIterableDiffer.prototype.onDestroy = function () { };\n // todo(vicb): optim for UnmodifiableListView (frozen arrays)\n DefaultIterableDiffer.prototype.check = function (collection) {\n var _this = this;\n this._reset();\n var record = this._itHead;\n var mayBeDirty = false;\n var index;\n var item;\n var itemTrackBy;\n if (isArray(collection)) {\n var list = collection;\n this._length = collection.length;\n for (index = 0; index < this._length; index++) {\n item = list[index];\n itemTrackBy = this._trackByFn(index, item);\n if (record === null || !looseIdentical(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!looseIdentical(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n }\n }\n else {\n index = 0;\n iterateListLike(collection, function (item /** TODO #9100 */) {\n itemTrackBy = _this._trackByFn(index, item);\n if (record === null || !looseIdentical(record.trackById, itemTrackBy)) {\n record = _this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n }\n else {\n if (mayBeDirty) {\n // TODO(misko): can we limit this to duplicates only?\n record = _this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!looseIdentical(record.item, item))\n _this._addIdentityChange(record, item);\n }\n record = record._next;\n index++;\n });\n this._length = index;\n }\n this._truncate(record);\n this._collection = collection;\n return this.isDirty;\n };\n Object.defineProperty(DefaultIterableDiffer.prototype, \"isDirty\", {\n /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity\n * changes.\n */\n get: function () {\n return this._additionsHead !== null || this._movesHead !== null ||\n this._removalsHead !== null || this._identityChangesHead !== null;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Reset the state of the change objects to show no changes. This means set previousKey to\n * currentKey, and clear all of the queues (additions, moves, removals).\n * Set the previousIndexes of moved and added items to their currentIndexes\n * Reset the list of additions, moves and removals\n *\n * @internal\n */\n DefaultIterableDiffer.prototype._reset = function () {\n if (this.isDirty) {\n var record;\n var nextRecord;\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n record.previousIndex = record.currentIndex;\n }\n this._additionsHead = this._additionsTail = null;\n for (record = this._movesHead; record !== null; record = nextRecord) {\n record.previousIndex = record.currentIndex;\n nextRecord = record._nextMoved;\n }\n this._movesHead = this._movesTail = null;\n this._removalsHead = this._removalsTail = null;\n this._identityChangesHead = this._identityChangesTail = null;\n }\n };\n /**\n * This is the core function which handles differences between collections.\n *\n * - `record` is the record which we saw at this position last time. If null then it is a new\n * item.\n * - `item` is the current item in the collection\n * - `index` is the position of the item in the collection\n *\n * @internal\n */\n DefaultIterableDiffer.prototype._mismatch = function (record, item, itemTrackBy, index) {\n // The previous record after which we will append the current one.\n var previousRecord;\n if (record === null) {\n previousRecord = this._itTail;\n }\n else {\n previousRecord = record._prev;\n // Remove the record from the collection since we know it does not match the item.\n this._remove(record);\n }\n // Attempt to see if we have seen the item before.\n record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\n if (record !== null) {\n // We have seen this before, we need to move it forward in the collection.\n // But first we need to check if identity changed, so we can update in view if necessary\n if (!looseIdentical(record.item, item))\n this._addIdentityChange(record, item);\n this._moveAfter(record, previousRecord, index);\n }\n else {\n // Never seen it, check evicted list.\n record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy);\n if (record !== null) {\n // It is an item which we have evicted earlier: reinsert it back into the list.\n // But first we need to check if identity changed, so we can update in view if necessary\n if (!looseIdentical(record.item, item))\n this._addIdentityChange(record, item);\n this._reinsertAfter(record, previousRecord, index);\n }\n else {\n // It is a new item: add it.\n record =\n this._addAfter(new CollectionChangeRecord(item, itemTrackBy), previousRecord, index);\n }\n }\n return record;\n };\n /**\n * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)\n *\n * Use case: `[a, a]` => `[b, a, a]`\n *\n * If we did not have this check then the insertion of `b` would:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) leave `a` at index `1` as is. <-- this is wrong!\n * 3) reinsert `a` at index 2. <-- this is wrong!\n *\n * The correct behavior is:\n * 1) evict first `a`\n * 2) insert `b` at `0` index.\n * 3) reinsert `a` at index 1.\n * 3) move `a` at from `1` to `2`.\n *\n *\n * Double check that we have not evicted a duplicate item. We need to check if the item type may\n * have already been removed:\n * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted\n * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a\n * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'\n * at the end.\n *\n * @internal\n */\n DefaultIterableDiffer.prototype._verifyReinsertion = function (record, item, itemTrackBy, index) {\n var reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n };\n /**\n * Get rid of any excess {@link CollectionChangeRecord}s from the previous collection\n *\n * - `record` The first excess {@link CollectionChangeRecord}.\n *\n * @internal\n */\n DefaultIterableDiffer.prototype._truncate = function (record) {\n // Anything after that needs to be removed;\n while (record !== null) {\n var nextRecord = record._next;\n this._addToRemovals(this._unlink(record));\n record = nextRecord;\n }\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.clear();\n }\n if (this._additionsTail !== null) {\n this._additionsTail._nextAdded = null;\n }\n if (this._movesTail !== null) {\n this._movesTail._nextMoved = null;\n }\n if (this._itTail !== null) {\n this._itTail._next = null;\n }\n if (this._removalsTail !== null) {\n this._removalsTail._nextRemoved = null;\n }\n if (this._identityChangesTail !== null) {\n this._identityChangesTail._nextIdentityChange = null;\n }\n };\n /** @internal */\n DefaultIterableDiffer.prototype._reinsertAfter = function (record, prevRecord, index) {\n if (this._unlinkedRecords !== null) {\n this._unlinkedRecords.remove(record);\n }\n var prev = record._prevRemoved;\n var next = record._nextRemoved;\n if (prev === null) {\n this._removalsHead = next;\n }\n else {\n prev._nextRemoved = next;\n }\n if (next === null) {\n this._removalsTail = prev;\n }\n else {\n next._prevRemoved = prev;\n }\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n };\n /** @internal */\n DefaultIterableDiffer.prototype._moveAfter = function (record, prevRecord, index) {\n this._unlink(record);\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n };\n /** @internal */\n DefaultIterableDiffer.prototype._addAfter = function (record, prevRecord, index) {\n this._insertAfter(record, prevRecord, index);\n if (this._additionsTail === null) {\n // todo(vicb)\n // assert(this._additionsHead === null);\n this._additionsTail = this._additionsHead = record;\n }\n else {\n // todo(vicb)\n // assert(_additionsTail._nextAdded === null);\n // assert(record._nextAdded === null);\n this._additionsTail = this._additionsTail._nextAdded = record;\n }\n return record;\n };\n /** @internal */\n DefaultIterableDiffer.prototype._insertAfter = function (record, prevRecord, index) {\n // todo(vicb)\n // assert(record != prevRecord);\n // assert(record._next === null);\n // assert(record._prev === null);\n var next = prevRecord === null ? this._itHead : prevRecord._next;\n // todo(vicb)\n // assert(next != record);\n // assert(prevRecord != record);\n record._next = next;\n record._prev = prevRecord;\n if (next === null) {\n this._itTail = record;\n }\n else {\n next._prev = record;\n }\n if (prevRecord === null) {\n this._itHead = record;\n }\n else {\n prevRecord._next = record;\n }\n if (this._linkedRecords === null) {\n this._linkedRecords = new _DuplicateMap();\n }\n this._linkedRecords.put(record);\n record.currentIndex = index;\n return record;\n };\n /** @internal */\n DefaultIterableDiffer.prototype._remove = function (record) {\n return this._addToRemovals(this._unlink(record));\n };\n /** @internal */\n DefaultIterableDiffer.prototype._unlink = function (record) {\n if (this._linkedRecords !== null) {\n this._linkedRecords.remove(record);\n }\n var prev = record._prev;\n var next = record._next;\n // todo(vicb)\n // assert((record._prev = null) === null);\n // assert((record._next = null) === null);\n if (prev === null) {\n this._itHead = next;\n }\n else {\n prev._next = next;\n }\n if (next === null) {\n this._itTail = prev;\n }\n else {\n next._prev = prev;\n }\n return record;\n };\n /** @internal */\n DefaultIterableDiffer.prototype._addToMoves = function (record, toIndex) {\n // todo(vicb)\n // assert(record._nextMoved === null);\n if (record.previousIndex === toIndex) {\n return record;\n }\n if (this._movesTail === null) {\n // todo(vicb)\n // assert(_movesHead === null);\n this._movesTail = this._movesHead = record;\n }\n else {\n // todo(vicb)\n // assert(_movesTail._nextMoved === null);\n this._movesTail = this._movesTail._nextMoved = record;\n }\n return record;\n };\n /** @internal */\n DefaultIterableDiffer.prototype._addToRemovals = function (record) {\n if (this._unlinkedRecords === null) {\n this._unlinkedRecords = new _DuplicateMap();\n }\n this._unlinkedRecords.put(record);\n record.currentIndex = null;\n record._nextRemoved = null;\n if (this._removalsTail === null) {\n // todo(vicb)\n // assert(_removalsHead === null);\n this._removalsTail = this._removalsHead = record;\n record._prevRemoved = null;\n }\n else {\n // todo(vicb)\n // assert(_removalsTail._nextRemoved === null);\n // assert(record._nextRemoved === null);\n record._prevRemoved = this._removalsTail;\n this._removalsTail = this._removalsTail._nextRemoved = record;\n }\n return record;\n };\n /** @internal */\n DefaultIterableDiffer.prototype._addIdentityChange = function (record, item) {\n record.item = item;\n if (this._identityChangesTail === null) {\n this._identityChangesTail = this._identityChangesHead = record;\n }\n else {\n this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;\n }\n return record;\n };\n DefaultIterableDiffer.prototype.toString = function () {\n var list = [];\n this.forEachItem(function (record /** TODO #9100 */) { return list.push(record); });\n var previous = [];\n this.forEachPreviousItem(function (record /** TODO #9100 */) { return previous.push(record); });\n var additions = [];\n this.forEachAddedItem(function (record /** TODO #9100 */) { return additions.push(record); });\n var moves = [];\n this.forEachMovedItem(function (record /** TODO #9100 */) { return moves.push(record); });\n var removals = [];\n this.forEachRemovedItem(function (record /** TODO #9100 */) { return removals.push(record); });\n var identityChanges = [];\n this.forEachIdentityChange(function (record /** TODO #9100 */) { return identityChanges.push(record); });\n return 'collection: ' + list.join(', ') + '\\n' +\n 'previous: ' + previous.join(', ') + '\\n' +\n 'additions: ' + additions.join(', ') + '\\n' +\n 'moves: ' + moves.join(', ') + '\\n' +\n 'removals: ' + removals.join(', ') + '\\n' +\n 'identityChanges: ' + identityChanges.join(', ') + '\\n';\n };\n return DefaultIterableDiffer;\n }());\n /**\n * @stable\n */\n var CollectionChangeRecord = (function () {\n function CollectionChangeRecord(item, trackById) {\n this.item = item;\n this.trackById = trackById;\n this.currentIndex = null;\n this.previousIndex = null;\n /** @internal */\n this._nextPrevious = null;\n /** @internal */\n this._prev = null;\n /** @internal */\n this._next = null;\n /** @internal */\n this._prevDup = null;\n /** @internal */\n this._nextDup = null;\n /** @internal */\n this._prevRemoved = null;\n /** @internal */\n this._nextRemoved = null;\n /** @internal */\n this._nextAdded = null;\n /** @internal */\n this._nextMoved = null;\n /** @internal */\n this._nextIdentityChange = null;\n }\n CollectionChangeRecord.prototype.toString = function () {\n return this.previousIndex === this.currentIndex ? stringify(this.item) :\n stringify(this.item) + '[' +\n stringify(this.previousIndex) + '->' + stringify(this.currentIndex) + ']';\n };\n return CollectionChangeRecord;\n }());\n // A linked list of CollectionChangeRecords with the same CollectionChangeRecord.item\n var _DuplicateItemRecordList = (function () {\n function _DuplicateItemRecordList() {\n /** @internal */\n this._head = null;\n /** @internal */\n this._tail = null;\n }\n /**\n * Append the record to the list of duplicates.\n *\n * Note: by design all records in the list of duplicates hold the same value in record.item.\n */\n _DuplicateItemRecordList.prototype.add = function (record) {\n if (this._head === null) {\n this._head = this._tail = record;\n record._nextDup = null;\n record._prevDup = null;\n }\n else {\n // todo(vicb)\n // assert(record.item == _head.item ||\n // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);\n this._tail._nextDup = record;\n record._prevDup = this._tail;\n record._nextDup = null;\n this._tail = record;\n }\n };\n // Returns a CollectionChangeRecord having CollectionChangeRecord.trackById == trackById and\n // CollectionChangeRecord.currentIndex >= afterIndex\n _DuplicateItemRecordList.prototype.get = function (trackById, afterIndex) {\n var record;\n for (record = this._head; record !== null; record = record._nextDup) {\n if ((afterIndex === null || afterIndex < record.currentIndex) &&\n looseIdentical(record.trackById, trackById)) {\n return record;\n }\n }\n return null;\n };\n /**\n * Remove one {@link CollectionChangeRecord} from the list of duplicates.\n *\n * Returns whether the list of duplicates is empty.\n */\n _DuplicateItemRecordList.prototype.remove = function (record) {\n // todo(vicb)\n // assert(() {\n // // verify that the record being removed is in the list.\n // for (CollectionChangeRecord cursor = _head; cursor != null; cursor = cursor._nextDup) {\n // if (identical(cursor, record)) return true;\n // }\n // return false;\n //});\n var prev = record._prevDup;\n var next = record._nextDup;\n if (prev === null) {\n this._head = next;\n }\n else {\n prev._nextDup = next;\n }\n if (next === null) {\n this._tail = prev;\n }\n else {\n next._prevDup = prev;\n }\n return this._head === null;\n };\n return _DuplicateItemRecordList;\n }());\n var _DuplicateMap = (function () {\n function _DuplicateMap() {\n this.map = new Map();\n }\n _DuplicateMap.prototype.put = function (record) {\n // todo(vicb) handle corner cases\n var key = getMapKey(record.trackById);\n var duplicates = this.map.get(key);\n if (!isPresent(duplicates)) {\n duplicates = new _DuplicateItemRecordList();\n this.map.set(key, duplicates);\n }\n duplicates.add(record);\n };\n /**\n * Retrieve the `value` using key. Because the CollectionChangeRecord value may be one which we\n * have already iterated over, we use the afterIndex to pretend it is not there.\n *\n * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we\n * have any more `a`s needs to return the last `a` not the first or second.\n */\n _DuplicateMap.prototype.get = function (trackById, afterIndex) {\n if (afterIndex === void 0) { afterIndex = null; }\n var key = getMapKey(trackById);\n var recordList = this.map.get(key);\n return isBlank(recordList) ? null : recordList.get(trackById, afterIndex);\n };\n /**\n * Removes a {@link CollectionChangeRecord} from the list of duplicates.\n *\n * The list of duplicates also is removed from the map if it gets empty.\n */\n _DuplicateMap.prototype.remove = function (record) {\n var key = getMapKey(record.trackById);\n // todo(vicb)\n // assert(this.map.containsKey(key));\n var recordList = this.map.get(key);\n // Remove the list of duplicates when it gets empty\n if (recordList.remove(record)) {\n this.map.delete(key);\n }\n return record;\n };\n Object.defineProperty(_DuplicateMap.prototype, \"isEmpty\", {\n get: function () { return this.map.size === 0; },\n enumerable: true,\n configurable: true\n });\n _DuplicateMap.prototype.clear = function () { this.map.clear(); };\n _DuplicateMap.prototype.toString = function () { return '_DuplicateMap(' + stringify(this.map) + ')'; };\n return _DuplicateMap;\n }());\n function getPreviousIndex(item, addRemoveOffset, moveOffsets) {\n var previousIndex = item.previousIndex;\n if (previousIndex === null)\n return previousIndex;\n var moveOffset = 0;\n if (moveOffsets && previousIndex < moveOffsets.length) {\n moveOffset = moveOffsets[previousIndex];\n }\n return previousIndex + addRemoveOffset + moveOffset;\n }\n\n var DefaultKeyValueDifferFactory = (function () {\n function DefaultKeyValueDifferFactory() {\n }\n DefaultKeyValueDifferFactory.prototype.supports = function (obj) { return obj instanceof Map || isJsObject(obj); };\n DefaultKeyValueDifferFactory.prototype.create = function (cdRef) { return new DefaultKeyValueDiffer(); };\n return DefaultKeyValueDifferFactory;\n }());\n var DefaultKeyValueDiffer = (function () {\n function DefaultKeyValueDiffer() {\n this._records = new Map();\n this._mapHead = null;\n this._previousMapHead = null;\n this._changesHead = null;\n this._changesTail = null;\n this._additionsHead = null;\n this._additionsTail = null;\n this._removalsHead = null;\n this._removalsTail = null;\n }\n Object.defineProperty(DefaultKeyValueDiffer.prototype, \"isDirty\", {\n get: function () {\n return this._additionsHead !== null || this._changesHead !== null ||\n this._removalsHead !== null;\n },\n enumerable: true,\n configurable: true\n });\n DefaultKeyValueDiffer.prototype.forEachItem = function (fn) {\n var record;\n for (record = this._mapHead; record !== null; record = record._next) {\n fn(record);\n }\n };\n DefaultKeyValueDiffer.prototype.forEachPreviousItem = function (fn) {\n var record;\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\n fn(record);\n }\n };\n DefaultKeyValueDiffer.prototype.forEachChangedItem = function (fn) {\n var record;\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n fn(record);\n }\n };\n DefaultKeyValueDiffer.prototype.forEachAddedItem = function (fn) {\n var record;\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n fn(record);\n }\n };\n DefaultKeyValueDiffer.prototype.forEachRemovedItem = function (fn) {\n var record;\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n fn(record);\n }\n };\n DefaultKeyValueDiffer.prototype.diff = function (map) {\n if (!map) {\n map = new Map();\n }\n else if (!(map instanceof Map || isJsObject(map))) {\n throw new Error(\"Error trying to diff '\" + map + \"'\");\n }\n return this.check(map) ? this : null;\n };\n DefaultKeyValueDiffer.prototype.onDestroy = function () { };\n DefaultKeyValueDiffer.prototype.check = function (map) {\n var _this = this;\n this._reset();\n var records = this._records;\n var oldSeqRecord = this._mapHead;\n var lastOldSeqRecord = null;\n var lastNewSeqRecord = null;\n var seqChanged = false;\n this._forEach(map, function (value, key) {\n var newSeqRecord;\n if (oldSeqRecord && key === oldSeqRecord.key) {\n newSeqRecord = oldSeqRecord;\n _this._maybeAddToChanges(newSeqRecord, value);\n }\n else {\n seqChanged = true;\n if (oldSeqRecord !== null) {\n _this._removeFromSeq(lastOldSeqRecord, oldSeqRecord);\n _this._addToRemovals(oldSeqRecord);\n }\n if (records.has(key)) {\n newSeqRecord = records.get(key);\n _this._maybeAddToChanges(newSeqRecord, value);\n }\n else {\n newSeqRecord = new KeyValueChangeRecord(key);\n records.set(key, newSeqRecord);\n newSeqRecord.currentValue = value;\n _this._addToAdditions(newSeqRecord);\n }\n }\n if (seqChanged) {\n if (_this._isInRemovals(newSeqRecord)) {\n _this._removeFromRemovals(newSeqRecord);\n }\n if (lastNewSeqRecord == null) {\n _this._mapHead = newSeqRecord;\n }\n else {\n lastNewSeqRecord._next = newSeqRecord;\n }\n }\n lastOldSeqRecord = oldSeqRecord;\n lastNewSeqRecord = newSeqRecord;\n oldSeqRecord = oldSeqRecord && oldSeqRecord._next;\n });\n this._truncate(lastOldSeqRecord, oldSeqRecord);\n return this.isDirty;\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._reset = function () {\n if (this.isDirty) {\n var record = void 0;\n // Record the state of the mapping\n for (record = this._previousMapHead = this._mapHead; record !== null; record = record._next) {\n record._nextPrevious = record._next;\n }\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n record.previousValue = record.currentValue;\n }\n for (record = this._additionsHead; record != null; record = record._nextAdded) {\n record.previousValue = record.currentValue;\n }\n this._changesHead = this._changesTail = null;\n this._additionsHead = this._additionsTail = null;\n this._removalsHead = this._removalsTail = null;\n }\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._truncate = function (lastRecord, record) {\n while (record !== null) {\n if (lastRecord === null) {\n this._mapHead = null;\n }\n else {\n lastRecord._next = null;\n }\n var nextRecord = record._next;\n this._addToRemovals(record);\n lastRecord = record;\n record = nextRecord;\n }\n for (var rec = this._removalsHead; rec !== null; rec = rec._nextRemoved) {\n rec.previousValue = rec.currentValue;\n rec.currentValue = null;\n this._records.delete(rec.key);\n }\n };\n DefaultKeyValueDiffer.prototype._maybeAddToChanges = function (record, newValue) {\n if (!looseIdentical(newValue, record.currentValue)) {\n record.previousValue = record.currentValue;\n record.currentValue = newValue;\n this._addToChanges(record);\n }\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._isInRemovals = function (record) {\n return record === this._removalsHead || record._nextRemoved !== null ||\n record._prevRemoved !== null;\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._addToRemovals = function (record) {\n if (this._removalsHead === null) {\n this._removalsHead = this._removalsTail = record;\n }\n else {\n this._removalsTail._nextRemoved = record;\n record._prevRemoved = this._removalsTail;\n this._removalsTail = record;\n }\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._removeFromSeq = function (prev, record) {\n var next = record._next;\n if (prev === null) {\n this._mapHead = next;\n }\n else {\n prev._next = next;\n }\n record._next = null;\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._removeFromRemovals = function (record) {\n var prev = record._prevRemoved;\n var next = record._nextRemoved;\n if (prev === null) {\n this._removalsHead = next;\n }\n else {\n prev._nextRemoved = next;\n }\n if (next === null) {\n this._removalsTail = prev;\n }\n else {\n next._prevRemoved = prev;\n }\n record._prevRemoved = record._nextRemoved = null;\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._addToAdditions = function (record) {\n if (this._additionsHead === null) {\n this._additionsHead = this._additionsTail = record;\n }\n else {\n this._additionsTail._nextAdded = record;\n this._additionsTail = record;\n }\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._addToChanges = function (record) {\n if (this._changesHead === null) {\n this._changesHead = this._changesTail = record;\n }\n else {\n this._changesTail._nextChanged = record;\n this._changesTail = record;\n }\n };\n DefaultKeyValueDiffer.prototype.toString = function () {\n var items = [];\n var previous = [];\n var changes = [];\n var additions = [];\n var removals = [];\n var record;\n for (record = this._mapHead; record !== null; record = record._next) {\n items.push(stringify(record));\n }\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\n previous.push(stringify(record));\n }\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n changes.push(stringify(record));\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n additions.push(stringify(record));\n }\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n removals.push(stringify(record));\n }\n return 'map: ' + items.join(', ') + '\\n' +\n 'previous: ' + previous.join(', ') + '\\n' +\n 'additions: ' + additions.join(', ') + '\\n' +\n 'changes: ' + changes.join(', ') + '\\n' +\n 'removals: ' + removals.join(', ') + '\\n';\n };\n /** @internal */\n DefaultKeyValueDiffer.prototype._forEach = function (obj, fn) {\n if (obj instanceof Map) {\n obj.forEach(fn);\n }\n else {\n StringMapWrapper.forEach(obj, fn);\n }\n };\n return DefaultKeyValueDiffer;\n }());\n /**\n * @stable\n */\n var KeyValueChangeRecord = (function () {\n function KeyValueChangeRecord(key) {\n this.key = key;\n this.previousValue = null;\n this.currentValue = null;\n /** @internal */\n this._nextPrevious = null;\n /** @internal */\n this._next = null;\n /** @internal */\n this._nextAdded = null;\n /** @internal */\n this._nextRemoved = null;\n /** @internal */\n this._prevRemoved = null;\n /** @internal */\n this._nextChanged = null;\n }\n KeyValueChangeRecord.prototype.toString = function () {\n return looseIdentical(this.previousValue, this.currentValue) ?\n stringify(this.key) :\n (stringify(this.key) + '[' + stringify(this.previousValue) + '->' +\n stringify(this.currentValue) + ']');\n };\n return KeyValueChangeRecord;\n }());\n\n /**\n * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.\n * @stable\n */\n var IterableDiffers = (function () {\n function IterableDiffers(factories) {\n this.factories = factories;\n }\n IterableDiffers.create = function (factories, parent) {\n if (isPresent(parent)) {\n var copied = ListWrapper.clone(parent.factories);\n factories = factories.concat(copied);\n return new IterableDiffers(factories);\n }\n else {\n return new IterableDiffers(factories);\n }\n };\n /**\n * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the\n * inherited {@link IterableDiffers} instance with the provided factories and return a new\n * {@link IterableDiffers} instance.\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link IterableDiffer} available.\n *\n * ### Example\n *\n * ```\n * @Component({\n * viewProviders: [\n * IterableDiffers.extend([new ImmutableListDiffer()])\n * ]\n * })\n * ```\n */\n IterableDiffers.extend = function (factories) {\n return {\n provide: IterableDiffers,\n useFactory: function (parent) {\n if (isBlank(parent)) {\n // Typically would occur when calling IterableDiffers.extend inside of dependencies passed\n // to\n // bootstrap(), which would override default pipes instead of extending them.\n throw new Error('Cannot extend IterableDiffers without a parent injector');\n }\n return IterableDiffers.create(factories, parent);\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[IterableDiffers, new SkipSelfMetadata(), new OptionalMetadata()]]\n };\n };\n IterableDiffers.prototype.find = function (iterable) {\n var factory = this.factories.find(function (f) { return f.supports(iterable); });\n if (isPresent(factory)) {\n return factory;\n }\n else {\n throw new Error(\"Cannot find a differ supporting object '\" + iterable + \"' of type '\" + getTypeNameForDebugging(iterable) + \"'\");\n }\n };\n return IterableDiffers;\n }());\n\n /**\n * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.\n * @stable\n */\n var KeyValueDiffers = (function () {\n function KeyValueDiffers(factories) {\n this.factories = factories;\n }\n KeyValueDiffers.create = function (factories, parent) {\n if (isPresent(parent)) {\n var copied = ListWrapper.clone(parent.factories);\n factories = factories.concat(copied);\n return new KeyValueDiffers(factories);\n }\n else {\n return new KeyValueDiffers(factories);\n }\n };\n /**\n * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the\n * inherited {@link KeyValueDiffers} instance with the provided factories and return a new\n * {@link KeyValueDiffers} instance.\n *\n * The following example shows how to extend an existing list of factories,\n * which will only be applied to the injector for this component and its children.\n * This step is all that's required to make a new {@link KeyValueDiffer} available.\n *\n * ### Example\n *\n * ```\n * @Component({\n * viewProviders: [\n * KeyValueDiffers.extend([new ImmutableMapDiffer()])\n * ]\n * })\n * ```\n */\n KeyValueDiffers.extend = function (factories) {\n return {\n provide: KeyValueDiffers,\n useFactory: function (parent) {\n if (isBlank(parent)) {\n // Typically would occur when calling KeyValueDiffers.extend inside of dependencies passed\n // to\n // bootstrap(), which would override default pipes instead of extending them.\n throw new Error('Cannot extend KeyValueDiffers without a parent injector');\n }\n return KeyValueDiffers.create(factories, parent);\n },\n // Dependency technically isn't optional, but we can provide a better error message this way.\n deps: [[KeyValueDiffers, new SkipSelfMetadata(), new OptionalMetadata()]]\n };\n };\n KeyValueDiffers.prototype.find = function (kv) {\n var factory = this.factories.find(function (f) { return f.supports(kv); });\n if (isPresent(factory)) {\n return factory;\n }\n else {\n throw new Error(\"Cannot find a differ supporting object '\" + kv + \"'\");\n }\n };\n return KeyValueDiffers;\n }());\n\n var UNINITIALIZED = {\n toString: function () { return 'CD_INIT_VALUE'; }\n };\n function devModeEqual(a, b) {\n if (isListLikeIterable(a) && isListLikeIterable(b)) {\n return areIterablesEqual(a, b, devModeEqual);\n }\n else if (!isListLikeIterable(a) && !isPrimitive(a) && !isListLikeIterable(b) && !isPrimitive(b)) {\n return true;\n }\n else {\n return looseIdentical(a, b);\n }\n }\n /**\n * Indicates that the result of a {@link PipeMetadata} transformation has changed even though the\n * reference\n * has not changed.\n *\n * The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.\n *\n * Example:\n *\n * ```\n * if (this._latestValue === this._latestReturnedValue) {\n * return this._latestReturnedValue;\n * } else {\n * this._latestReturnedValue = this._latestValue;\n * return WrappedValue.wrap(this._latestValue); // this will force update\n * }\n * ```\n * @stable\n */\n var WrappedValue = (function () {\n function WrappedValue(wrapped) {\n this.wrapped = wrapped;\n }\n WrappedValue.wrap = function (value) { return new WrappedValue(value); };\n return WrappedValue;\n }());\n /**\n * Helper class for unwrapping WrappedValue s\n */\n var ValueUnwrapper = (function () {\n function ValueUnwrapper() {\n this.hasWrappedValue = false;\n }\n ValueUnwrapper.prototype.unwrap = function (value) {\n if (value instanceof WrappedValue) {\n this.hasWrappedValue = true;\n return value.wrapped;\n }\n return value;\n };\n ValueUnwrapper.prototype.reset = function () { this.hasWrappedValue = false; };\n return ValueUnwrapper;\n }());\n /**\n * Represents a basic change from a previous to a new value.\n * @stable\n */\n var SimpleChange = (function () {\n function SimpleChange(previousValue, currentValue) {\n this.previousValue = previousValue;\n this.currentValue = currentValue;\n }\n /**\n * Check whether the new value is the first value assigned.\n */\n SimpleChange.prototype.isFirstChange = function () { return this.previousValue === UNINITIALIZED; };\n return SimpleChange;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * @stable\n */\n var ChangeDetectorRef = (function () {\n function ChangeDetectorRef() {\n }\n return ChangeDetectorRef;\n }());\n\n /**\n * Structural diffing for `Object`s and `Map`s.\n */\n var keyValDiff = [new DefaultKeyValueDifferFactory()];\n /**\n * Structural diffing for `Iterable` types such as `Array`s.\n */\n var iterableDiff = [new DefaultIterableDifferFactory()];\n var defaultIterableDiffers = new IterableDiffers(iterableDiff);\n var defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);\n\n /**\n * @experimental\n */\n // TODO (matsko): add typing for the animation function\n var RenderComponentType = (function () {\n function RenderComponentType(id, templateUrl, slotCount, encapsulation, styles, animations) {\n this.id = id;\n this.templateUrl = templateUrl;\n this.slotCount = slotCount;\n this.encapsulation = encapsulation;\n this.styles = styles;\n this.animations = animations;\n }\n return RenderComponentType;\n }());\n var RenderDebugInfo = (function () {\n function RenderDebugInfo() {\n }\n Object.defineProperty(RenderDebugInfo.prototype, \"injector\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderDebugInfo.prototype, \"component\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderDebugInfo.prototype, \"providerTokens\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderDebugInfo.prototype, \"references\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderDebugInfo.prototype, \"context\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RenderDebugInfo.prototype, \"source\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n return RenderDebugInfo;\n }());\n /**\n * @experimental\n */\n var Renderer = (function () {\n function Renderer() {\n }\n return Renderer;\n }());\n /**\n * Injectable service that provides a low-level interface for modifying the UI.\n *\n * Use this service to bypass Angular's templating and make custom UI changes that can't be\n * expressed declaratively. For example if you need to set a property or an attribute whose name is\n * not statically known, use {@link #setElementProperty} or {@link #setElementAttribute}\n * respectively.\n *\n * If you are implementing a custom renderer, you must implement this interface.\n *\n * The default Renderer implementation is `DomRenderer`. Also available is `WebWorkerRenderer`.\n * @experimental\n */\n var RootRenderer = (function () {\n function RootRenderer() {\n }\n return RootRenderer;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property\n * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly\n * handled.\n *\n * See DomSanitizer for more details on security in Angular applications.\n *\n * @stable\n */\n exports.SecurityContext;\n (function (SecurityContext) {\n SecurityContext[SecurityContext[\"NONE\"] = 0] = \"NONE\";\n SecurityContext[SecurityContext[\"HTML\"] = 1] = \"HTML\";\n SecurityContext[SecurityContext[\"STYLE\"] = 2] = \"STYLE\";\n SecurityContext[SecurityContext[\"SCRIPT\"] = 3] = \"SCRIPT\";\n SecurityContext[SecurityContext[\"URL\"] = 4] = \"URL\";\n SecurityContext[SecurityContext[\"RESOURCE_URL\"] = 5] = \"RESOURCE_URL\";\n })(exports.SecurityContext || (exports.SecurityContext = {}));\n /**\n * Sanitizer is used by the views to sanitize potentially dangerous values.\n *\n * @stable\n */\n var Sanitizer = (function () {\n function Sanitizer() {\n }\n return Sanitizer;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](http://g.co/ng/security).\n *\n * @stable\n */\n // Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n // i.e. users have to ask for what they need. With that, we can build better analysis tools\n // and could do better codegen in the future.\n var ElementRef = (function () {\n function ElementRef(nativeElement) {\n this.nativeElement = nativeElement;\n }\n return ElementRef;\n }());\n\n var trace;\n var events;\n function detectWTF() {\n var wtf = global$1['wtf'];\n if (wtf) {\n trace = wtf['trace'];\n if (trace) {\n events = trace['events'];\n return true;\n }\n }\n return false;\n }\n function createScope(signature, flags) {\n if (flags === void 0) { flags = null; }\n return events.createScope(signature, flags);\n }\n function leave(scope, returnValue) {\n trace.leaveScope(scope, returnValue);\n return returnValue;\n }\n function startTimeRange(rangeType, action) {\n return trace.beginTimeRange(rangeType, action);\n }\n function endTimeRange(range) {\n trace.endTimeRange(range);\n }\n\n /**\n * True if WTF is enabled.\n */\n var wtfEnabled = detectWTF();\n function noopScope(arg0, arg1) {\n return null;\n }\n /**\n * Create trace scope.\n *\n * Scopes must be strictly nested and are analogous to stack frames, but\n * do not have to follow the stack frames. Instead it is recommended that they follow logical\n * nesting. You may want to use\n * [Event\n * Signatures](http://google.github.io/tracing-framework/instrumenting-code.html#custom-events)\n * as they are defined in WTF.\n *\n * Used to mark scope entry. The return value is used to leave the scope.\n *\n * var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');\n *\n * someMethod() {\n * var s = myScope('Foo'); // 'Foo' gets stored in tracing UI\n * // DO SOME WORK HERE\n * return wtfLeave(s, 123); // Return value 123\n * }\n *\n * Note, adding try-finally block around the work to ensure that `wtfLeave` gets called can\n * negatively impact the performance of your application. For this reason we recommend that\n * you don't add them to ensure that `wtfLeave` gets called. In production `wtfLeave` is a noop and\n * so try-finally block has no value. When debugging perf issues, skipping `wtfLeave`, do to\n * exception, will produce incorrect trace, but presence of exception signifies logic error which\n * needs to be fixed before the app should be profiled. Add try-finally only when you expect that\n * an exception is expected during normal execution while profiling.\n *\n * @experimental\n */\n var wtfCreateScope = wtfEnabled ? createScope : function (signature, flags) { return noopScope; };\n /**\n * Used to mark end of Scope.\n *\n * - `scope` to end.\n * - `returnValue` (optional) to be passed to the WTF.\n *\n * Returns the `returnValue for easy chaining.\n * @experimental\n */\n var wtfLeave = wtfEnabled ? leave : function (s, r) { return r; };\n /**\n * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.\n * The return value is used in the call to [endAsync]. Async ranges only work if WTF has been\n * enabled.\n *\n * someMethod() {\n * var s = wtfStartTimeRange('HTTP:GET', 'some.url');\n * var future = new Future.delay(5).then((_) {\n * wtfEndTimeRange(s);\n * });\n * }\n * @experimental\n */\n var wtfStartTimeRange = wtfEnabled ? startTimeRange : function (rangeType, action) { return null; };\n /**\n * Ends a async time range operation.\n * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been\n * enabled.\n * @experimental\n */\n var wtfEndTimeRange = wtfEnabled ? endTimeRange : function (r) { return null; };\n\n /**\n * Represents a container where one or more Views can be attached.\n *\n * The container can contain two kinds of Views. Host Views, created by instantiating a\n * {@link Component} via {@link #createComponent}, and Embedded Views, created by instantiating an\n * {@link TemplateRef Embedded Template} via {@link #createEmbeddedView}.\n *\n * The location of the View Container within the containing View is specified by the Anchor\n * `element`. Each View Container can have only one Anchor Element and each Anchor Element can only\n * have a single View Container.\n *\n * Root elements of Views attached to this container become siblings of the Anchor Element in\n * the Rendered View.\n *\n * To access a `ViewContainerRef` of an Element, you can either place a {@link Directive} injected\n * with `ViewContainerRef` on the Element, or you obtain it via a {@link ViewChild} query.\n * @stable\n */\n var ViewContainerRef = (function () {\n function ViewContainerRef() {\n }\n Object.defineProperty(ViewContainerRef.prototype, \"element\", {\n /**\n * Anchor element that specifies the location of this container in the containing View.\n * <!-- TODO: rename to anchorElement -->\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewContainerRef.prototype, \"injector\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewContainerRef.prototype, \"parentInjector\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewContainerRef.prototype, \"length\", {\n /**\n * Returns the number of Views currently attached to this container.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n ;\n return ViewContainerRef;\n }());\n var ViewContainerRef_ = (function () {\n function ViewContainerRef_(_element) {\n this._element = _element;\n /** @internal */\n this._createComponentInContainerScope = wtfCreateScope('ViewContainerRef#createComponent()');\n /** @internal */\n this._insertScope = wtfCreateScope('ViewContainerRef#insert()');\n /** @internal */\n this._removeScope = wtfCreateScope('ViewContainerRef#remove()');\n /** @internal */\n this._detachScope = wtfCreateScope('ViewContainerRef#detach()');\n }\n ViewContainerRef_.prototype.get = function (index) { return this._element.nestedViews[index].ref; };\n Object.defineProperty(ViewContainerRef_.prototype, \"length\", {\n get: function () {\n var views = this._element.nestedViews;\n return isPresent(views) ? views.length : 0;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewContainerRef_.prototype, \"element\", {\n get: function () { return this._element.elementRef; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewContainerRef_.prototype, \"injector\", {\n get: function () { return this._element.injector; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewContainerRef_.prototype, \"parentInjector\", {\n get: function () { return this._element.parentInjector; },\n enumerable: true,\n configurable: true\n });\n // TODO(rado): profile and decide whether bounds checks should be added\n // to the methods below.\n ViewContainerRef_.prototype.createEmbeddedView = function (templateRef, context, index) {\n if (context === void 0) { context = null; }\n if (index === void 0) { index = -1; }\n var viewRef = templateRef.createEmbeddedView(context);\n this.insert(viewRef, index);\n return viewRef;\n };\n ViewContainerRef_.prototype.createComponent = function (componentFactory, index, injector, projectableNodes) {\n if (index === void 0) { index = -1; }\n if (injector === void 0) { injector = null; }\n if (projectableNodes === void 0) { projectableNodes = null; }\n var s = this._createComponentInContainerScope();\n var contextInjector = isPresent(injector) ? injector : this._element.parentInjector;\n var componentRef = componentFactory.create(contextInjector, projectableNodes);\n this.insert(componentRef.hostView, index);\n return wtfLeave(s, componentRef);\n };\n // TODO(i): refactor insert+remove into move\n ViewContainerRef_.prototype.insert = function (viewRef, index) {\n if (index === void 0) { index = -1; }\n var s = this._insertScope();\n if (index == -1)\n index = this.length;\n var viewRef_ = viewRef;\n this._element.attachView(viewRef_.internalView, index);\n return wtfLeave(s, viewRef_);\n };\n ViewContainerRef_.prototype.move = function (viewRef, currentIndex) {\n var s = this._insertScope();\n if (currentIndex == -1)\n return;\n var viewRef_ = viewRef;\n this._element.moveView(viewRef_.internalView, currentIndex);\n return wtfLeave(s, viewRef_);\n };\n ViewContainerRef_.prototype.indexOf = function (viewRef) {\n return ListWrapper.indexOf(this._element.nestedViews, viewRef.internalView);\n };\n // TODO(i): rename to destroy\n ViewContainerRef_.prototype.remove = function (index) {\n if (index === void 0) { index = -1; }\n var s = this._removeScope();\n if (index == -1)\n index = this.length - 1;\n var view = this._element.detachView(index);\n view.destroy();\n // view is intentionally not returned to the client.\n wtfLeave(s);\n };\n // TODO(i): refactor insert+remove into move\n ViewContainerRef_.prototype.detach = function (index) {\n if (index === void 0) { index = -1; }\n var s = this._detachScope();\n if (index == -1)\n index = this.length - 1;\n var view = this._element.detachView(index);\n return wtfLeave(s, view.ref);\n };\n ViewContainerRef_.prototype.clear = function () {\n for (var i = this.length - 1; i >= 0; i--) {\n this.remove(i);\n }\n };\n return ViewContainerRef_;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var ViewType;\n (function (ViewType) {\n // A view that contains the host element with bound component directive.\n // Contains a COMPONENT view\n ViewType[ViewType[\"HOST\"] = 0] = \"HOST\";\n // The view of the component\n // Can contain 0 to n EMBEDDED views\n ViewType[ViewType[\"COMPONENT\"] = 1] = \"COMPONENT\";\n // A view that is embedded into another View via a <template> element\n // inside of a COMPONENT view\n ViewType[ViewType[\"EMBEDDED\"] = 2] = \"EMBEDDED\";\n })(ViewType || (ViewType = {}));\n\n /**\n * An AppElement is created for elements that have a ViewContainerRef,\n * a nested component or a <template> element to keep data around\n * that is needed for later instantiations.\n */\n var AppElement = (function () {\n function AppElement(index, parentIndex, parentView, nativeElement) {\n this.index = index;\n this.parentIndex = parentIndex;\n this.parentView = parentView;\n this.nativeElement = nativeElement;\n this.nestedViews = null;\n this.componentView = null;\n }\n Object.defineProperty(AppElement.prototype, \"elementRef\", {\n get: function () { return new ElementRef(this.nativeElement); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppElement.prototype, \"vcRef\", {\n get: function () { return new ViewContainerRef_(this); },\n enumerable: true,\n configurable: true\n });\n AppElement.prototype.initComponent = function (component, componentConstructorViewQueries, view) {\n this.component = component;\n this.componentConstructorViewQueries = componentConstructorViewQueries;\n this.componentView = view;\n };\n Object.defineProperty(AppElement.prototype, \"parentInjector\", {\n get: function () { return this.parentView.injector(this.parentIndex); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppElement.prototype, \"injector\", {\n get: function () { return this.parentView.injector(this.index); },\n enumerable: true,\n configurable: true\n });\n AppElement.prototype.mapNestedViews = function (nestedViewClass, callback) {\n var result = [];\n if (isPresent(this.nestedViews)) {\n this.nestedViews.forEach(function (nestedView) {\n if (nestedView.clazz === nestedViewClass) {\n result.push(callback(nestedView));\n }\n });\n }\n return result;\n };\n AppElement.prototype.moveView = function (view, currentIndex) {\n var previousIndex = this.nestedViews.indexOf(view);\n if (view.type === ViewType.COMPONENT) {\n throw new Error(\"Component views can't be moved!\");\n }\n var nestedViews = this.nestedViews;\n if (nestedViews == null) {\n nestedViews = [];\n this.nestedViews = nestedViews;\n }\n ListWrapper.removeAt(nestedViews, previousIndex);\n ListWrapper.insert(nestedViews, currentIndex, view);\n var refRenderNode;\n if (currentIndex > 0) {\n var prevView = nestedViews[currentIndex - 1];\n refRenderNode = prevView.lastRootNode;\n }\n else {\n refRenderNode = this.nativeElement;\n }\n if (isPresent(refRenderNode)) {\n view.renderer.attachViewAfter(refRenderNode, view.flatRootNodes);\n }\n view.markContentChildAsMoved(this);\n };\n AppElement.prototype.attachView = function (view, viewIndex) {\n if (view.type === ViewType.COMPONENT) {\n throw new Error(\"Component views can't be moved!\");\n }\n var nestedViews = this.nestedViews;\n if (nestedViews == null) {\n nestedViews = [];\n this.nestedViews = nestedViews;\n }\n ListWrapper.insert(nestedViews, viewIndex, view);\n var refRenderNode;\n if (viewIndex > 0) {\n var prevView = nestedViews[viewIndex - 1];\n refRenderNode = prevView.lastRootNode;\n }\n else {\n refRenderNode = this.nativeElement;\n }\n if (isPresent(refRenderNode)) {\n view.renderer.attachViewAfter(refRenderNode, view.flatRootNodes);\n }\n view.addToContentChildren(this);\n };\n AppElement.prototype.detachView = function (viewIndex) {\n var view = ListWrapper.removeAt(this.nestedViews, viewIndex);\n if (view.type === ViewType.COMPONENT) {\n throw new Error(\"Component views can't be moved!\");\n }\n view.detach();\n view.removeFromContentChildren(this);\n return view;\n };\n return AppElement;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$9 = (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 };\n /**\n * An error thrown if application changes model breaking the top-down data flow.\n *\n * This exception is only thrown in dev mode.\n *\n * <!-- TODO: Add a link once the dev mode option is configurable -->\n *\n * ### Example\n *\n * ```typescript\n * @Component({\n * selector: 'parent',\n * template: `\n * <child [prop]=\"parentProp\"></child>\n * `,\n * directives: [forwardRef(() => Child)]\n * })\n * class Parent {\n * parentProp = \"init\";\n * }\n *\n * @Directive({selector: 'child', inputs: ['prop']})\n * class Child {\n * constructor(public parent: Parent) {}\n *\n * set prop(v) {\n * // this updates the parent property, which is disallowed during change detection\n * // this will result in ExpressionChangedAfterItHasBeenCheckedError\n * this.parent.parentProp = \"updated\";\n * }\n * }\n * ```\n * @stable\n */\n var ExpressionChangedAfterItHasBeenCheckedError = (function (_super) {\n __extends$9(ExpressionChangedAfterItHasBeenCheckedError, _super);\n function ExpressionChangedAfterItHasBeenCheckedError(oldValue, currValue) {\n var msg = \"Expression has changed after it was checked. Previous value: '\" + oldValue + \"'. Current value: '\" + currValue + \"'.\";\n if (oldValue === UNINITIALIZED) {\n msg +=\n \" It seems like the view has been created after its parent and its children have been dirty checked.\" +\n \" Has it been created in a change detection hook ?\";\n }\n _super.call(this, msg);\n }\n return ExpressionChangedAfterItHasBeenCheckedError;\n }(BaseError));\n /**\n * Thrown when an exception was raised during view creation, change detection or destruction.\n *\n * This error wraps the original exception to attach additional contextual information that can\n * be useful for debugging.\n * @stable\n */\n var ViewWrappedError = (function (_super) {\n __extends$9(ViewWrappedError, _super);\n function ViewWrappedError(originalError, context) {\n _super.call(this, \"Error in \" + context.source, originalError);\n this.context = context;\n }\n return ViewWrappedError;\n }(WrappedError));\n /**\n * Thrown when a destroyed view is used.\n *\n * This error indicates a bug in the framework.\n *\n * This is an internal Angular error.\n * @stable\n */\n var ViewDestroyedError = (function (_super) {\n __extends$9(ViewDestroyedError, _super);\n function ViewDestroyedError(details) {\n _super.call(this, \"Attempt to use a destroyed view: \" + details);\n }\n return ViewDestroyedError;\n }(BaseError));\n\n var ViewUtils = (function () {\n function ViewUtils(_renderer, _appId, sanitizer) {\n this._renderer = _renderer;\n this._appId = _appId;\n this._nextCompTypeId = 0;\n this.sanitizer = sanitizer;\n }\n /**\n * Used by the generated code\n */\n // TODO (matsko): add typing for the animation function\n ViewUtils.prototype.createRenderComponentType = function (templateUrl, slotCount, encapsulation, styles, animations) {\n return new RenderComponentType(this._appId + \"-\" + this._nextCompTypeId++, templateUrl, slotCount, encapsulation, styles, animations);\n };\n /** @internal */\n ViewUtils.prototype.renderComponent = function (renderComponentType) {\n return this._renderer.renderComponent(renderComponentType);\n };\n ViewUtils.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n ViewUtils.ctorParameters = [\n { type: RootRenderer, },\n { type: undefined, decorators: [{ type: Inject, args: [APP_ID,] },] },\n { type: Sanitizer, },\n ];\n return ViewUtils;\n }());\n function flattenNestedViewRenderNodes(nodes) {\n return _flattenNestedViewRenderNodes(nodes, []);\n }\n function _flattenNestedViewRenderNodes(nodes, renderNodes) {\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n if (node instanceof AppElement) {\n var appEl = node;\n renderNodes.push(appEl.nativeElement);\n if (isPresent(appEl.nestedViews)) {\n for (var k = 0; k < appEl.nestedViews.length; k++) {\n _flattenNestedViewRenderNodes(appEl.nestedViews[k].rootNodesOrAppElements, renderNodes);\n }\n }\n }\n else {\n renderNodes.push(node);\n }\n }\n return renderNodes;\n }\n var EMPTY_ARR = [];\n function ensureSlotCount(projectableNodes, expectedSlotCount) {\n var res;\n if (isBlank(projectableNodes)) {\n res = EMPTY_ARR;\n }\n else if (projectableNodes.length < expectedSlotCount) {\n var givenSlotCount = projectableNodes.length;\n res = ListWrapper.createFixedSize(expectedSlotCount);\n for (var i = 0; i < expectedSlotCount; i++) {\n res[i] = (i < givenSlotCount) ? projectableNodes[i] : EMPTY_ARR;\n }\n }\n else {\n res = projectableNodes;\n }\n return res;\n }\n var MAX_INTERPOLATION_VALUES = 9;\n function interpolate(valueCount, c0, a1, c1, a2, c2, a3, c3, a4, c4, a5, c5, a6, c6, a7, c7, a8, c8, a9, c9) {\n switch (valueCount) {\n case 1:\n return c0 + _toStringWithNull(a1) + c1;\n case 2:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2;\n case 3:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\n c3;\n case 4:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\n c3 + _toStringWithNull(a4) + c4;\n case 5:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5;\n case 6:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) + c6;\n case 7:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\n c6 + _toStringWithNull(a7) + c7;\n case 8:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\n c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8;\n case 9:\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\n c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8 + _toStringWithNull(a9) + c9;\n default:\n throw new Error(\"Does not support more than 9 expressions\");\n }\n }\n function _toStringWithNull(v) {\n return v != null ? v.toString() : '';\n }\n function checkBinding(throwOnChange, oldValue, newValue) {\n if (throwOnChange) {\n if (!devModeEqual(oldValue, newValue)) {\n throw new ExpressionChangedAfterItHasBeenCheckedError(oldValue, newValue);\n }\n return false;\n }\n else {\n return !looseIdentical(oldValue, newValue);\n }\n }\n function castByValue(input, value) {\n return input;\n }\n var EMPTY_ARRAY = [];\n var EMPTY_MAP = {};\n function pureProxy1(fn) {\n var result;\n var v0 = UNINITIALIZED;\n return function (p0) {\n if (!looseIdentical(v0, p0)) {\n v0 = p0;\n result = fn(p0);\n }\n return result;\n };\n }\n function pureProxy2(fn) {\n var result;\n var v0 = UNINITIALIZED;\n var v1 = UNINITIALIZED;\n return function (p0, p1) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1)) {\n v0 = p0;\n v1 = p1;\n result = fn(p0, p1);\n }\n return result;\n };\n }\n function pureProxy3(fn) {\n var result;\n var v0 = UNINITIALIZED;\n var v1 = UNINITIALIZED;\n var v2 = UNINITIALIZED;\n return function (p0, p1, p2) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n result = fn(p0, p1, p2);\n }\n return result;\n };\n }\n function pureProxy4(fn) {\n var result;\n var v0, v1, v2, v3;\n v0 = v1 = v2 = v3 = UNINITIALIZED;\n return function (p0, p1, p2, p3) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2) ||\n !looseIdentical(v3, p3)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n v3 = p3;\n result = fn(p0, p1, p2, p3);\n }\n return result;\n };\n }\n function pureProxy5(fn) {\n var result;\n var v0, v1, v2, v3, v4;\n v0 = v1 = v2 = v3 = v4 = UNINITIALIZED;\n return function (p0, p1, p2, p3, p4) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2) ||\n !looseIdentical(v3, p3) || !looseIdentical(v4, p4)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n v3 = p3;\n v4 = p4;\n result = fn(p0, p1, p2, p3, p4);\n }\n return result;\n };\n }\n function pureProxy6(fn) {\n var result;\n var v0, v1, v2, v3, v4, v5;\n v0 = v1 = v2 = v3 = v4 = v5 = UNINITIALIZED;\n return function (p0, p1, p2, p3, p4, p5) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2) ||\n !looseIdentical(v3, p3) || !looseIdentical(v4, p4) || !looseIdentical(v5, p5)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n v3 = p3;\n v4 = p4;\n v5 = p5;\n result = fn(p0, p1, p2, p3, p4, p5);\n }\n return result;\n };\n }\n function pureProxy7(fn) {\n var result;\n var v0, v1, v2, v3, v4, v5, v6;\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = UNINITIALIZED;\n return function (p0, p1, p2, p3, p4, p5, p6) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2) ||\n !looseIdentical(v3, p3) || !looseIdentical(v4, p4) || !looseIdentical(v5, p5) ||\n !looseIdentical(v6, p6)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n v3 = p3;\n v4 = p4;\n v5 = p5;\n v6 = p6;\n result = fn(p0, p1, p2, p3, p4, p5, p6);\n }\n return result;\n };\n }\n function pureProxy8(fn) {\n var result;\n var v0, v1, v2, v3, v4, v5, v6, v7;\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = v7 = UNINITIALIZED;\n return function (p0, p1, p2, p3, p4, p5, p6, p7) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2) ||\n !looseIdentical(v3, p3) || !looseIdentical(v4, p4) || !looseIdentical(v5, p5) ||\n !looseIdentical(v6, p6) || !looseIdentical(v7, p7)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n v3 = p3;\n v4 = p4;\n v5 = p5;\n v6 = p6;\n v7 = p7;\n result = fn(p0, p1, p2, p3, p4, p5, p6, p7);\n }\n return result;\n };\n }\n function pureProxy9(fn) {\n var result;\n var v0, v1, v2, v3, v4, v5, v6, v7, v8;\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = v7 = v8 = UNINITIALIZED;\n return function (p0, p1, p2, p3, p4, p5, p6, p7, p8) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2) ||\n !looseIdentical(v3, p3) || !looseIdentical(v4, p4) || !looseIdentical(v5, p5) ||\n !looseIdentical(v6, p6) || !looseIdentical(v7, p7) || !looseIdentical(v8, p8)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n v3 = p3;\n v4 = p4;\n v5 = p5;\n v6 = p6;\n v7 = p7;\n v8 = p8;\n result = fn(p0, p1, p2, p3, p4, p5, p6, p7, p8);\n }\n return result;\n };\n }\n function pureProxy10(fn) {\n var result;\n var v0, v1, v2, v3, v4, v5, v6, v7, v8, v9;\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = v7 = v8 = v9 = UNINITIALIZED;\n return function (p0, p1, p2, p3, p4, p5, p6, p7, p8, p9) {\n if (!looseIdentical(v0, p0) || !looseIdentical(v1, p1) || !looseIdentical(v2, p2) ||\n !looseIdentical(v3, p3) || !looseIdentical(v4, p4) || !looseIdentical(v5, p5) ||\n !looseIdentical(v6, p6) || !looseIdentical(v7, p7) || !looseIdentical(v8, p8) ||\n !looseIdentical(v9, p9)) {\n v0 = p0;\n v1 = p1;\n v2 = p2;\n v3 = p3;\n v4 = p4;\n v5 = p5;\n v6 = p6;\n v7 = p7;\n v8 = p8;\n v9 = p9;\n result = fn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);\n }\n return result;\n };\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$8 = (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 };\n /**\n * Represents an instance of a Component created via a {@link ComponentFactory}.\n *\n * `ComponentRef` provides access to the Component Instance as well other objects related to this\n * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}\n * method.\n * @stable\n */\n var ComponentRef = (function () {\n function ComponentRef() {\n }\n Object.defineProperty(ComponentRef.prototype, \"location\", {\n /**\n * Location of the Host Element of this Component Instance.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ComponentRef.prototype, \"injector\", {\n /**\n * The injector on which the component instance exists.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ComponentRef.prototype, \"instance\", {\n /**\n * The instance of the Component.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ComponentRef.prototype, \"hostView\", {\n /**\n * The {@link ViewRef} of the Host View of this Component instance.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ComponentRef.prototype, \"changeDetectorRef\", {\n /**\n * The {@link ChangeDetectorRef} of the Component instance.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ComponentRef.prototype, \"componentType\", {\n /**\n * The component type.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n return ComponentRef;\n }());\n var ComponentRef_ = (function (_super) {\n __extends$8(ComponentRef_, _super);\n function ComponentRef_(_hostElement, _componentType) {\n _super.call(this);\n this._hostElement = _hostElement;\n this._componentType = _componentType;\n }\n Object.defineProperty(ComponentRef_.prototype, \"location\", {\n get: function () { return this._hostElement.elementRef; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ComponentRef_.prototype, \"injector\", {\n get: function () { return this._hostElement.injector; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ComponentRef_.prototype, \"instance\", {\n get: function () { return this._hostElement.component; },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ComponentRef_.prototype, \"hostView\", {\n get: function () { return this._hostElement.parentView.ref; },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ComponentRef_.prototype, \"changeDetectorRef\", {\n get: function () { return this._hostElement.parentView.ref; },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ComponentRef_.prototype, \"componentType\", {\n get: function () { return this._componentType; },\n enumerable: true,\n configurable: true\n });\n ComponentRef_.prototype.destroy = function () { this._hostElement.parentView.destroy(); };\n ComponentRef_.prototype.onDestroy = function (callback) { this.hostView.onDestroy(callback); };\n return ComponentRef_;\n }(ComponentRef));\n /**\n * @experimental\n */\n var EMPTY_CONTEXT = new Object();\n /**\n * @stable\n */\n var ComponentFactory = (function () {\n function ComponentFactory(selector, _viewFactory, _componentType) {\n this.selector = selector;\n this._viewFactory = _viewFactory;\n this._componentType = _componentType;\n }\n Object.defineProperty(ComponentFactory.prototype, \"componentType\", {\n get: function () { return this._componentType; },\n enumerable: true,\n configurable: true\n });\n /**\n * Creates a new component.\n */\n ComponentFactory.prototype.create = function (injector, projectableNodes, rootSelectorOrNode) {\n if (projectableNodes === void 0) { projectableNodes = null; }\n if (rootSelectorOrNode === void 0) { rootSelectorOrNode = null; }\n var vu = injector.get(ViewUtils);\n if (isBlank(projectableNodes)) {\n projectableNodes = [];\n }\n // Note: Host views don't need a declarationAppElement!\n var hostView = this._viewFactory(vu, injector, null);\n var hostElement = hostView.create(EMPTY_CONTEXT, projectableNodes, rootSelectorOrNode);\n return new ComponentRef_(hostElement, this._componentType);\n };\n return ComponentFactory;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$10 = (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 };\n /**\n * @stable\n */\n var NoComponentFactoryError = (function (_super) {\n __extends$10(NoComponentFactoryError, _super);\n function NoComponentFactoryError(component) {\n _super.call(this, \"No component factory found for \" + stringify(component));\n this.component = component;\n }\n return NoComponentFactoryError;\n }(BaseError));\n var _NullComponentFactoryResolver = (function () {\n function _NullComponentFactoryResolver() {\n }\n _NullComponentFactoryResolver.prototype.resolveComponentFactory = function (component) {\n throw new NoComponentFactoryError(component);\n };\n return _NullComponentFactoryResolver;\n }());\n /**\n * @stable\n */\n var ComponentFactoryResolver = (function () {\n function ComponentFactoryResolver() {\n }\n ComponentFactoryResolver.NULL = new _NullComponentFactoryResolver();\n return ComponentFactoryResolver;\n }());\n var CodegenComponentFactoryResolver = (function () {\n function CodegenComponentFactoryResolver(factories, _parent) {\n this._parent = _parent;\n this._factories = new Map();\n for (var i = 0; i < factories.length; i++) {\n var factory = factories[i];\n this._factories.set(factory.componentType, factory);\n }\n }\n CodegenComponentFactoryResolver.prototype.resolveComponentFactory = function (component) {\n var result = this._factories.get(component);\n if (!result) {\n result = this._parent.resolveComponentFactory(component);\n }\n return result;\n };\n return CodegenComponentFactoryResolver;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$11 = (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 };\n /**\n * Use by directives and components to emit custom Events.\n *\n * ### Examples\n *\n * In the following example, `Zippy` alternatively emits `open` and `close` events when its\n * title gets clicked:\n *\n * ```\n * @Component({\n * selector: 'zippy',\n * template: `\n * <div class=\"zippy\">\n * <div (click)=\"toggle()\">Toggle</div>\n * <div [hidden]=\"!visible\">\n * <ng-content></ng-content>\n * </div>\n * </div>`})\n * export class Zippy {\n * visible: boolean = true;\n * @Output() open: EventEmitter<any> = new EventEmitter();\n * @Output() close: EventEmitter<any> = new EventEmitter();\n *\n * toggle() {\n * this.visible = !this.visible;\n * if (this.visible) {\n * this.open.emit(null);\n * } else {\n * this.close.emit(null);\n * }\n * }\n * }\n * ```\n *\n * The events payload can be accessed by the parameter `$event` on the components output event\n * handler:\n *\n * ```\n * <zippy (open)=\"onOpen($event)\" (close)=\"onClose($event)\"></zippy>\n * ```\n *\n * Uses Rx.Observable but provides an adapter to make it work as specified here:\n * https://github.com/jhusain/observable-spec\n *\n * Once a reference implementation of the spec is available, switch to it.\n * @stable\n */\n var EventEmitter = (function (_super) {\n __extends$11(EventEmitter, _super);\n /**\n * Creates an instance of [EventEmitter], which depending on [isAsync],\n * delivers events synchronously or asynchronously.\n */\n function EventEmitter(isAsync) {\n if (isAsync === void 0) { isAsync = false; }\n _super.call(this);\n this.__isAsync = isAsync;\n }\n EventEmitter.prototype.emit = function (value) { _super.prototype.next.call(this, value); };\n EventEmitter.prototype.subscribe = function (generatorOrNext, error, complete) {\n var schedulerFn;\n var errorFn = function (err) { return null; };\n var completeFn = function () { return null; };\n if (generatorOrNext && typeof generatorOrNext === 'object') {\n schedulerFn = this.__isAsync ? function (value /** TODO #9100 */) {\n setTimeout(function () { return generatorOrNext.next(value); });\n } : function (value /** TODO #9100 */) { generatorOrNext.next(value); };\n if (generatorOrNext.error) {\n errorFn = this.__isAsync ? function (err) { setTimeout(function () { return generatorOrNext.error(err); }); } :\n function (err) { generatorOrNext.error(err); };\n }\n if (generatorOrNext.complete) {\n completeFn = this.__isAsync ? function () { setTimeout(function () { return generatorOrNext.complete(); }); } :\n function () { generatorOrNext.complete(); };\n }\n }\n else {\n schedulerFn = this.__isAsync ? function (value /** TODO #9100 */) {\n setTimeout(function () { return generatorOrNext(value); });\n } : function (value /** TODO #9100 */) { generatorOrNext(value); };\n if (error) {\n errorFn =\n this.__isAsync ? function (err) { setTimeout(function () { return error(err); }); } : function (err) { error(err); };\n }\n if (complete) {\n completeFn =\n this.__isAsync ? function () { setTimeout(function () { return complete(); }); } : function () { complete(); };\n }\n }\n return _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);\n };\n return EventEmitter;\n }(rxjs_Subject.Subject));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var NgZoneImpl = (function () {\n function NgZoneImpl(_a) {\n var _this = this;\n var trace = _a.trace, onEnter = _a.onEnter, onLeave = _a.onLeave, setMicrotask = _a.setMicrotask, setMacrotask = _a.setMacrotask, onError = _a.onError;\n this.onEnter = onEnter;\n this.onLeave = onLeave;\n this.setMicrotask = setMicrotask;\n this.setMacrotask = setMacrotask;\n this.onError = onError;\n if (Zone) {\n this.outer = this.inner = Zone.current;\n if (Zone['wtfZoneSpec']) {\n this.inner = this.inner.fork(Zone['wtfZoneSpec']);\n }\n if (trace && Zone['longStackTraceZoneSpec']) {\n this.inner = this.inner.fork(Zone['longStackTraceZoneSpec']);\n }\n this.inner = this.inner.fork({\n name: 'angular',\n properties: { 'isAngularZone': true },\n onInvokeTask: function (delegate, current, target, task, applyThis, applyArgs) {\n try {\n _this.onEnter();\n return delegate.invokeTask(target, task, applyThis, applyArgs);\n }\n finally {\n _this.onLeave();\n }\n },\n onInvoke: function (delegate, current, target, callback, applyThis, applyArgs, source) {\n try {\n _this.onEnter();\n return delegate.invoke(target, callback, applyThis, applyArgs, source);\n }\n finally {\n _this.onLeave();\n }\n },\n onHasTask: function (delegate, current, target, hasTaskState) {\n delegate.hasTask(target, hasTaskState);\n if (current == target) {\n // We are only interested in hasTask events which originate from our zone\n // (A child hasTask event is not interesting to us)\n if (hasTaskState.change == 'microTask') {\n _this.setMicrotask(hasTaskState.microTask);\n }\n else if (hasTaskState.change == 'macroTask') {\n _this.setMacrotask(hasTaskState.macroTask);\n }\n }\n },\n onHandleError: function (delegate, current, target, error) {\n delegate.handleError(target, error);\n _this.onError(error);\n return false;\n }\n });\n }\n else {\n throw new Error('Angular requires Zone.js polyfill.');\n }\n }\n NgZoneImpl.isInAngularZone = function () { return Zone.current.get('isAngularZone') === true; };\n NgZoneImpl.prototype.runInner = function (fn) { return this.inner.run(fn); };\n ;\n NgZoneImpl.prototype.runInnerGuarded = function (fn) { return this.inner.runGuarded(fn); };\n ;\n NgZoneImpl.prototype.runOuter = function (fn) { return this.outer.run(fn); };\n ;\n return NgZoneImpl;\n }());\n\n /**\n * An injectable service for executing work inside or outside of the Angular zone.\n *\n * The most common use of this service is to optimize performance when starting a work consisting of\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\n * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks\n * can reenter the Angular zone via {@link #run}.\n *\n * <!-- TODO: add/fix links to:\n * - docs explaining zones and the use of zones in Angular and change-detection\n * - link to runOutsideAngular/run (throughout this file!)\n * -->\n *\n * ### Example ([live demo](http://plnkr.co/edit/lY9m8HLy7z06vDoUaSN2?p=preview))\n * ```\n * import {Component, View, NgZone} from '@angular/core';\n * import {NgIf} from '@angular/common';\n *\n * @Component({\n * selector: 'ng-zone-demo'.\n * template: `\n * <h2>Demo: NgZone</h2>\n *\n * <p>Progress: {{progress}}%</p>\n * <p *ngIf=\"progress >= 100\">Done processing {{label}} of Angular zone!</p>\n *\n * <button (click)=\"processWithinAngularZone()\">Process within Angular zone</button>\n * <button (click)=\"processOutsideOfAngularZone()\">Process outside of Angular zone</button>\n * `,\n * directives: [NgIf]\n * })\n * export class NgZoneDemo {\n * progress: number = 0;\n * label: string;\n *\n * constructor(private _ngZone: NgZone) {}\n *\n * // Loop inside the Angular zone\n * // so the UI DOES refresh after each setTimeout cycle\n * processWithinAngularZone() {\n * this.label = 'inside';\n * this.progress = 0;\n * this._increaseProgress(() => console.log('Inside Done!'));\n * }\n *\n * // Loop outside of the Angular zone\n * // so the UI DOES NOT refresh after each setTimeout cycle\n * processOutsideOfAngularZone() {\n * this.label = 'outside';\n * this.progress = 0;\n * this._ngZone.runOutsideAngular(() => {\n * this._increaseProgress(() => {\n * // reenter the Angular zone and display done\n * this._ngZone.run(() => {console.log('Outside Done!') });\n * }}));\n * }\n *\n *\n * _increaseProgress(doneCallback: () => void) {\n * this.progress += 1;\n * console.log(`Current progress: ${this.progress}%`);\n *\n * if (this.progress < 100) {\n * window.setTimeout(() => this._increaseProgress(doneCallback)), 10)\n * } else {\n * doneCallback();\n * }\n * }\n * }\n * ```\n * @experimental\n */\n var NgZone = (function () {\n function NgZone(_a) {\n var _this = this;\n var _b = _a.enableLongStackTrace, enableLongStackTrace = _b === void 0 ? false : _b;\n this._hasPendingMicrotasks = false;\n this._hasPendingMacrotasks = false;\n /** @internal */\n this._isStable = true;\n /** @internal */\n this._nesting = 0;\n /** @internal */\n this._onUnstable = new EventEmitter(false);\n /** @internal */\n this._onMicrotaskEmpty = new EventEmitter(false);\n /** @internal */\n this._onStable = new EventEmitter(false);\n /** @internal */\n this._onErrorEvents = new EventEmitter(false);\n this._zoneImpl = new NgZoneImpl({\n trace: enableLongStackTrace,\n onEnter: function () {\n // console.log('ZONE.enter', this._nesting, this._isStable);\n _this._nesting++;\n if (_this._isStable) {\n _this._isStable = false;\n _this._onUnstable.emit(null);\n }\n },\n onLeave: function () {\n _this._nesting--;\n // console.log('ZONE.leave', this._nesting, this._isStable);\n _this._checkStable();\n },\n setMicrotask: function (hasMicrotasks) {\n _this._hasPendingMicrotasks = hasMicrotasks;\n _this._checkStable();\n },\n setMacrotask: function (hasMacrotasks) { _this._hasPendingMacrotasks = hasMacrotasks; },\n onError: function (error) { return _this._onErrorEvents.emit(error); }\n });\n }\n NgZone.isInAngularZone = function () { return NgZoneImpl.isInAngularZone(); };\n NgZone.assertInAngularZone = function () {\n if (!NgZoneImpl.isInAngularZone()) {\n throw new Error('Expected to be in Angular Zone, but it is not!');\n }\n };\n NgZone.assertNotInAngularZone = function () {\n if (NgZoneImpl.isInAngularZone()) {\n throw new Error('Expected to not be in Angular Zone, but it is!');\n }\n };\n NgZone.prototype._checkStable = function () {\n var _this = this;\n if (this._nesting == 0) {\n if (!this._hasPendingMicrotasks && !this._isStable) {\n try {\n // console.log('ZONE.microtaskEmpty');\n this._nesting++;\n this._onMicrotaskEmpty.emit(null);\n }\n finally {\n this._nesting--;\n if (!this._hasPendingMicrotasks) {\n try {\n // console.log('ZONE.stable', this._nesting, this._isStable);\n this.runOutsideAngular(function () { return _this._onStable.emit(null); });\n }\n finally {\n this._isStable = true;\n }\n }\n }\n }\n }\n };\n ;\n Object.defineProperty(NgZone.prototype, \"onUnstable\", {\n /**\n * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\n */\n get: function () { return this._onUnstable; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"onMicrotaskEmpty\", {\n /**\n * Notifies when there is no more microtasks enqueue in the current VM Turn.\n * This is a hint for Angular to do change detection, which may enqueue more microtasks.\n * For this reason this event can fire multiple times per VM Turn.\n */\n get: function () { return this._onMicrotaskEmpty; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"onStable\", {\n /**\n * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\n * implies we are about to relinquish VM turn.\n * This event gets called just once.\n */\n get: function () { return this._onStable; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"onError\", {\n /**\n * Notify that an error has been delivered.\n */\n get: function () { return this._onErrorEvents; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"isStable\", {\n /**\n * Whether there are no outstanding microtasks or microtasks.\n */\n get: function () { return this._isStable; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"hasPendingMicrotasks\", {\n /**\n * Whether there are any outstanding microtasks.\n */\n get: function () { return this._hasPendingMicrotasks; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"hasPendingMacrotasks\", {\n /**\n * Whether there are any outstanding microtasks.\n */\n get: function () { return this._hasPendingMacrotasks; },\n enumerable: true,\n configurable: true\n });\n /**\n * Executes the `fn` function synchronously within the Angular zone and returns value returned by\n * the function.\n *\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * within the Angular zone.\n *\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\n */\n NgZone.prototype.run = function (fn) { return this._zoneImpl.runInner(fn); };\n /**\n * Same as #run, except that synchronous errors are caught and forwarded\n * via `onError` and not rethrown.\n */\n NgZone.prototype.runGuarded = function (fn) { return this._zoneImpl.runInnerGuarded(fn); };\n /**\n * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\n * the function.\n *\n * Running functions via `runOutsideAngular` allows you to escape Angular's zone and do work that\n * doesn't trigger Angular change-detection or is subject to Angular's error handling.\n *\n * Any future tasks or microtasks scheduled from within this function will continue executing from\n * outside of the Angular zone.\n *\n * Use {@link #run} to reenter the Angular zone and do work that updates the application model.\n */\n NgZone.prototype.runOutsideAngular = function (fn) { return this._zoneImpl.runOuter(fn); };\n return NgZone;\n }());\n\n /**\n * The Testability service provides testing hooks that can be accessed from\n * the browser and by services such as Protractor. Each bootstrapped Angular\n * application on the page will have an instance of Testability.\n * @experimental\n */\n var Testability = (function () {\n function Testability(_ngZone) {\n this._ngZone = _ngZone;\n /** @internal */\n this._pendingCount = 0;\n /** @internal */\n this._isZoneStable = true;\n /**\n * Whether any work was done since the last 'whenStable' callback. This is\n * useful to detect if this could have potentially destabilized another\n * component while it is stabilizing.\n * @internal\n */\n this._didWork = false;\n /** @internal */\n this._callbacks = [];\n this._watchAngularEvents();\n }\n /** @internal */\n Testability.prototype._watchAngularEvents = function () {\n var _this = this;\n this._ngZone.onUnstable.subscribe({\n next: function () {\n _this._didWork = true;\n _this._isZoneStable = false;\n }\n });\n this._ngZone.runOutsideAngular(function () {\n _this._ngZone.onStable.subscribe({\n next: function () {\n NgZone.assertNotInAngularZone();\n scheduleMicroTask(function () {\n _this._isZoneStable = true;\n _this._runCallbacksIfReady();\n });\n }\n });\n });\n };\n Testability.prototype.increasePendingRequestCount = function () {\n this._pendingCount += 1;\n this._didWork = true;\n return this._pendingCount;\n };\n Testability.prototype.decreasePendingRequestCount = function () {\n this._pendingCount -= 1;\n if (this._pendingCount < 0) {\n throw new Error('pending async requests below zero');\n }\n this._runCallbacksIfReady();\n return this._pendingCount;\n };\n Testability.prototype.isStable = function () {\n return this._isZoneStable && this._pendingCount == 0 && !this._ngZone.hasPendingMacrotasks;\n };\n /** @internal */\n Testability.prototype._runCallbacksIfReady = function () {\n var _this = this;\n if (this.isStable()) {\n // Schedules the call backs in a new frame so that it is always async.\n scheduleMicroTask(function () {\n while (_this._callbacks.length !== 0) {\n (_this._callbacks.pop())(_this._didWork);\n }\n _this._didWork = false;\n });\n }\n else {\n // Not Ready\n this._didWork = true;\n }\n };\n Testability.prototype.whenStable = function (callback) {\n this._callbacks.push(callback);\n this._runCallbacksIfReady();\n };\n Testability.prototype.getPendingRequestCount = function () { return this._pendingCount; };\n Testability.prototype.findBindings = function (using, provider, exactMatch) {\n // TODO(juliemr): implement.\n return [];\n };\n Testability.prototype.findProviders = function (using, provider, exactMatch) {\n // TODO(juliemr): implement.\n return [];\n };\n Testability.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n Testability.ctorParameters = [\n { type: NgZone, },\n ];\n return Testability;\n }());\n /**\n * A global registry of {@link Testability} instances for specific elements.\n * @experimental\n */\n var TestabilityRegistry = (function () {\n function TestabilityRegistry() {\n /** @internal */\n this._applications = new Map$1();\n _testabilityGetter.addToWindow(this);\n }\n TestabilityRegistry.prototype.registerApplication = function (token, testability) {\n this._applications.set(token, testability);\n };\n TestabilityRegistry.prototype.getTestability = function (elem) { return this._applications.get(elem); };\n TestabilityRegistry.prototype.getAllTestabilities = function () { return MapWrapper.values(this._applications); };\n TestabilityRegistry.prototype.getAllRootElements = function () { return MapWrapper.keys(this._applications); };\n TestabilityRegistry.prototype.findTestabilityInTree = function (elem, findInAncestors) {\n if (findInAncestors === void 0) { findInAncestors = true; }\n return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);\n };\n TestabilityRegistry.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n TestabilityRegistry.ctorParameters = [];\n return TestabilityRegistry;\n }());\n var _NoopGetTestability = (function () {\n function _NoopGetTestability() {\n }\n _NoopGetTestability.prototype.addToWindow = function (registry) { };\n _NoopGetTestability.prototype.findTestabilityInTree = function (registry, elem, findInAncestors) {\n return null;\n };\n return _NoopGetTestability;\n }());\n /**\n * Set the {@link GetTestability} implementation used by the Angular testing framework.\n * @experimental\n */\n function setTestabilityGetter(getter) {\n _testabilityGetter = getter;\n }\n var _testabilityGetter = new _NoopGetTestability();\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$6 = (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 };\n var _devMode = true;\n var _runModeLocked = false;\n var _platform;\n /**\n * Disable Angular's development mode, which turns off assertions and other\n * checks within the framework.\n *\n * One important assertion this disables verifies that a change detection pass\n * does not result in additional changes to any bindings (also known as\n * unidirectional data flow).\n *\n * @stable\n */\n function enableProdMode() {\n if (_runModeLocked) {\n throw new Error('Cannot enable prod mode after platform setup.');\n }\n _devMode = false;\n }\n /**\n * Returns whether Angular is in development mode. After called once,\n * the value is locked and won't change any more.\n *\n * By default, this is true, unless a user calls `enableProdMode` before calling this.\n *\n * @experimental APIs related to application bootstrap are currently under review.\n */\n function isDevMode() {\n _runModeLocked = true;\n return _devMode;\n }\n /**\n * Creates a platform.\n * Platforms have to be eagerly created via this function.\n *\n * @experimental APIs related to application bootstrap are currently under review.\n */\n function createPlatform(injector) {\n if (isPresent(_platform) && !_platform.destroyed) {\n throw new Error('There can be only one platform. Destroy the previous one to create a new one.');\n }\n _platform = injector.get(PlatformRef);\n var inits = injector.get(PLATFORM_INITIALIZER, null);\n if (isPresent(inits))\n inits.forEach(function (init) { return init(); });\n return _platform;\n }\n /**\n * Creates a factory for a platform\n *\n * @experimental APIs related to application bootstrap are currently under review.\n */\n function createPlatformFactory(parentPlaformFactory, name, providers) {\n if (providers === void 0) { providers = []; }\n var marker = new OpaqueToken(\"Platform: \" + name);\n return function (extraProviders) {\n if (extraProviders === void 0) { extraProviders = []; }\n if (!getPlatform()) {\n if (parentPlaformFactory) {\n parentPlaformFactory(providers.concat(extraProviders).concat({ provide: marker, useValue: true }));\n }\n else {\n createPlatform(ReflectiveInjector.resolveAndCreate(providers.concat(extraProviders).concat({ provide: marker, useValue: true })));\n }\n }\n return assertPlatform(marker);\n };\n }\n /**\n * Checks that there currently is a platform\n * which contains the given token as a provider.\n *\n * @experimental APIs related to application bootstrap are currently under review.\n */\n function assertPlatform(requiredToken) {\n var platform = getPlatform();\n if (isBlank(platform)) {\n throw new Error('No platform exists!');\n }\n if (isPresent(platform) && isBlank(platform.injector.get(requiredToken, null))) {\n throw new Error('A platform with a different configuration has been created. Please destroy it first.');\n }\n return platform;\n }\n /**\n * Destroy the existing platform.\n *\n * @experimental APIs related to application bootstrap are currently under review.\n */\n function destroyPlatform() {\n if (isPresent(_platform) && !_platform.destroyed) {\n _platform.destroy();\n }\n }\n /**\n * Returns the current platform.\n *\n * @experimental APIs related to application bootstrap are currently under review.\n */\n function getPlatform() {\n return isPresent(_platform) && !_platform.destroyed ? _platform : null;\n }\n /**\n * The Angular platform is the entry point for Angular on a web page. Each page\n * has exactly one platform, and services (such as reflection) which are common\n * to every Angular application running on the page are bound in its scope.\n *\n * A page's platform is initialized implicitly when {@link bootstrap}() is called, or\n * explicitly by calling {@link createPlatform}().\n *\n * @stable\n */\n var PlatformRef = (function () {\n function PlatformRef() {\n }\n /**\n * Creates an instance of an `@NgModule` for the given platform\n * for offline compilation.\n *\n * ## Simple Example\n *\n * ```typescript\n * my_module.ts:\n *\n * @NgModule({\n * imports: [BrowserModule]\n * })\n * class MyModule {}\n *\n * main.ts:\n * import {MyModuleNgFactory} from './my_module.ngfactory';\n * import {platformBrowser} from '@angular/platform-browser';\n *\n * let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);\n * ```\n *\n * @experimental APIs related to application bootstrap are currently under review.\n */\n PlatformRef.prototype.bootstrapModuleFactory = function (moduleFactory) {\n throw unimplemented();\n };\n /**\n * Creates an instance of an `@NgModule` for a given platform using the given runtime compiler.\n *\n * ## Simple Example\n *\n * ```typescript\n * @NgModule({\n * imports: [BrowserModule]\n * })\n * class MyModule {}\n *\n * let moduleRef = platformBrowser().bootstrapModule(MyModule);\n * ```\n * @stable\n */\n PlatformRef.prototype.bootstrapModule = function (moduleType, compilerOptions) {\n if (compilerOptions === void 0) { compilerOptions = []; }\n throw unimplemented();\n };\n Object.defineProperty(PlatformRef.prototype, \"injector\", {\n /**\n * Retrieve the platform {@link Injector}, which is the parent injector for\n * every Angular application on the page and provides singleton providers.\n */\n get: function () { throw unimplemented(); },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(PlatformRef.prototype, \"destroyed\", {\n get: function () { throw unimplemented(); },\n enumerable: true,\n configurable: true\n });\n return PlatformRef;\n }());\n function _callAndReportToErrorHandler(errorHandler, callback) {\n try {\n var result = callback();\n if (isPromise(result)) {\n return result.catch(function (e) {\n errorHandler.handleError(e);\n // rethrow as the exception handler might not do it\n throw e;\n });\n }\n else {\n return result;\n }\n }\n catch (e) {\n errorHandler.handleError(e);\n // rethrow as the exception handler might not do it\n throw e;\n }\n }\n var PlatformRef_ = (function (_super) {\n __extends$6(PlatformRef_, _super);\n function PlatformRef_(_injector) {\n _super.call(this);\n this._injector = _injector;\n this._modules = [];\n this._destroyListeners = [];\n this._destroyed = false;\n }\n PlatformRef_.prototype.onDestroy = function (callback) { this._destroyListeners.push(callback); };\n Object.defineProperty(PlatformRef_.prototype, \"injector\", {\n get: function () { return this._injector; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(PlatformRef_.prototype, \"destroyed\", {\n get: function () { return this._destroyed; },\n enumerable: true,\n configurable: true\n });\n PlatformRef_.prototype.destroy = function () {\n if (this._destroyed) {\n throw new Error('The platform has already been destroyed!');\n }\n ListWrapper.clone(this._modules).forEach(function (app) { return app.destroy(); });\n this._destroyListeners.forEach(function (dispose) { return dispose(); });\n this._destroyed = true;\n };\n PlatformRef_.prototype.bootstrapModuleFactory = function (moduleFactory) {\n return this._bootstrapModuleFactoryWithZone(moduleFactory, null);\n };\n PlatformRef_.prototype._bootstrapModuleFactoryWithZone = function (moduleFactory, ngZone) {\n var _this = this;\n // Note: We need to create the NgZone _before_ we instantiate the module,\n // as instantiating the module creates some providers eagerly.\n // So we create a mini parent injector that just contains the new NgZone and\n // pass that as parent to the NgModuleFactory.\n if (!ngZone)\n ngZone = new NgZone({ enableLongStackTrace: isDevMode() });\n // Attention: Don't use ApplicationRef.run here,\n // as we want to be sure that all possible constructor calls are inside `ngZone.run`!\n return ngZone.run(function () {\n var ngZoneInjector = ReflectiveInjector.resolveAndCreate([{ provide: NgZone, useValue: ngZone }], _this.injector);\n var moduleRef = moduleFactory.create(ngZoneInjector);\n var exceptionHandler = moduleRef.injector.get(ErrorHandler, null);\n if (!exceptionHandler) {\n throw new Error('No ErrorHandler. Is platform module (BrowserModule) included?');\n }\n moduleRef.onDestroy(function () { return ListWrapper.remove(_this._modules, moduleRef); });\n ngZone.onError.subscribe({ next: function (error) { exceptionHandler.handleError(error); } });\n return _callAndReportToErrorHandler(exceptionHandler, function () {\n var initStatus = moduleRef.injector.get(ApplicationInitStatus);\n return initStatus.donePromise.then(function () {\n _this._moduleDoBootstrap(moduleRef);\n return moduleRef;\n });\n });\n });\n };\n PlatformRef_.prototype.bootstrapModule = function (moduleType, compilerOptions) {\n if (compilerOptions === void 0) { compilerOptions = []; }\n return this._bootstrapModuleWithZone(moduleType, compilerOptions, null);\n };\n PlatformRef_.prototype._bootstrapModuleWithZone = function (moduleType, compilerOptions, ngZone, componentFactoryCallback) {\n var _this = this;\n if (compilerOptions === void 0) { compilerOptions = []; }\n var compilerFactory = this.injector.get(CompilerFactory);\n var compiler = compilerFactory.createCompiler(compilerOptions instanceof Array ? compilerOptions : [compilerOptions]);\n // ugly internal api hack: generate host component factories for all declared components and\n // pass the factories into the callback - this is used by UpdateAdapter to get hold of all\n // factories.\n if (componentFactoryCallback) {\n return compiler.compileModuleAndAllComponentsAsync(moduleType)\n .then(function (_a) {\n var ngModuleFactory = _a.ngModuleFactory, componentFactories = _a.componentFactories;\n componentFactoryCallback(componentFactories);\n return _this._bootstrapModuleFactoryWithZone(ngModuleFactory, ngZone);\n });\n }\n return compiler.compileModuleAsync(moduleType)\n .then(function (moduleFactory) { return _this._bootstrapModuleFactoryWithZone(moduleFactory, ngZone); });\n };\n PlatformRef_.prototype._moduleDoBootstrap = function (moduleRef) {\n var appRef = moduleRef.injector.get(ApplicationRef);\n if (moduleRef.bootstrapFactories.length > 0) {\n moduleRef.bootstrapFactories.forEach(function (compFactory) { return appRef.bootstrap(compFactory); });\n }\n else if (moduleRef.instance.ngDoBootstrap) {\n moduleRef.instance.ngDoBootstrap(appRef);\n }\n else {\n throw new Error((\"The module \" + stringify(moduleRef.instance.constructor) + \" was bootstrapped, but it does not declare \\\"@NgModule.bootstrap\\\" components nor a \\\"ngDoBootstrap\\\" method. \") +\n \"Please define one of these.\");\n }\n };\n PlatformRef_.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n PlatformRef_.ctorParameters = [\n { type: Injector, },\n ];\n return PlatformRef_;\n }(PlatformRef));\n /**\n * A reference to an Angular application running on a page.\n *\n * For more about Angular applications, see the documentation for {@link bootstrap}.\n *\n * @stable\n */\n var ApplicationRef = (function () {\n function ApplicationRef() {\n }\n Object.defineProperty(ApplicationRef.prototype, \"componentTypes\", {\n /**\n * Get a list of component types registered to this application.\n * This list is populated even before the component is created.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ApplicationRef.prototype, \"components\", {\n /**\n * Get a list of components registered to this application.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n ;\n return ApplicationRef;\n }());\n var ApplicationRef_ = (function (_super) {\n __extends$6(ApplicationRef_, _super);\n function ApplicationRef_(_zone, _console, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus, _testabilityRegistry, _testability) {\n var _this = this;\n _super.call(this);\n this._zone = _zone;\n this._console = _console;\n this._injector = _injector;\n this._exceptionHandler = _exceptionHandler;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._initStatus = _initStatus;\n this._testabilityRegistry = _testabilityRegistry;\n this._testability = _testability;\n this._bootstrapListeners = [];\n this._rootComponents = [];\n this._rootComponentTypes = [];\n this._changeDetectorRefs = [];\n this._runningTick = false;\n this._enforceNoNewChanges = false;\n this._enforceNoNewChanges = isDevMode();\n this._zone.onMicrotaskEmpty.subscribe({ next: function () { _this._zone.run(function () { _this.tick(); }); } });\n }\n ApplicationRef_.prototype.registerChangeDetector = function (changeDetector) {\n this._changeDetectorRefs.push(changeDetector);\n };\n ApplicationRef_.prototype.unregisterChangeDetector = function (changeDetector) {\n ListWrapper.remove(this._changeDetectorRefs, changeDetector);\n };\n ApplicationRef_.prototype.bootstrap = function (componentOrFactory) {\n var _this = this;\n if (!this._initStatus.done) {\n throw new Error('Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.');\n }\n var componentFactory;\n if (componentOrFactory instanceof ComponentFactory) {\n componentFactory = componentOrFactory;\n }\n else {\n componentFactory = this._componentFactoryResolver.resolveComponentFactory(componentOrFactory);\n }\n this._rootComponentTypes.push(componentFactory.componentType);\n var compRef = componentFactory.create(this._injector, [], componentFactory.selector);\n compRef.onDestroy(function () { _this._unloadComponent(compRef); });\n var testability = compRef.injector.get(Testability, null);\n if (isPresent(testability)) {\n compRef.injector.get(TestabilityRegistry)\n .registerApplication(compRef.location.nativeElement, testability);\n }\n this._loadComponent(compRef);\n if (isDevMode()) {\n this._console.log(\"Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.\");\n }\n return compRef;\n };\n /** @internal */\n ApplicationRef_.prototype._loadComponent = function (componentRef) {\n this._changeDetectorRefs.push(componentRef.changeDetectorRef);\n this.tick();\n this._rootComponents.push(componentRef);\n // Get the listeners lazily to prevent DI cycles.\n var listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, [])\n .concat(this._bootstrapListeners);\n listeners.forEach(function (listener) { return listener(componentRef); });\n };\n /** @internal */\n ApplicationRef_.prototype._unloadComponent = function (componentRef) {\n if (!ListWrapper.contains(this._rootComponents, componentRef)) {\n return;\n }\n this.unregisterChangeDetector(componentRef.changeDetectorRef);\n ListWrapper.remove(this._rootComponents, componentRef);\n };\n ApplicationRef_.prototype.tick = function () {\n if (this._runningTick) {\n throw new Error('ApplicationRef.tick is called recursively');\n }\n var s = ApplicationRef_._tickScope();\n try {\n this._runningTick = true;\n this._changeDetectorRefs.forEach(function (detector) { return detector.detectChanges(); });\n if (this._enforceNoNewChanges) {\n this._changeDetectorRefs.forEach(function (detector) { return detector.checkNoChanges(); });\n }\n }\n finally {\n this._runningTick = false;\n wtfLeave(s);\n }\n };\n ApplicationRef_.prototype.ngOnDestroy = function () {\n // TODO(alxhub): Dispose of the NgZone.\n ListWrapper.clone(this._rootComponents).forEach(function (ref) { return ref.destroy(); });\n };\n Object.defineProperty(ApplicationRef_.prototype, \"componentTypes\", {\n get: function () { return this._rootComponentTypes; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ApplicationRef_.prototype, \"components\", {\n get: function () { return this._rootComponents; },\n enumerable: true,\n configurable: true\n });\n /** @internal */\n ApplicationRef_._tickScope = wtfCreateScope('ApplicationRef#tick()');\n ApplicationRef_.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n ApplicationRef_.ctorParameters = [\n { type: NgZone, },\n { type: Console, },\n { type: Injector, },\n { type: ErrorHandler, },\n { type: ComponentFactoryResolver, },\n { type: ApplicationInitStatus, },\n { type: TestabilityRegistry, decorators: [{ type: Optional },] },\n { type: Testability, decorators: [{ type: Optional },] },\n ];\n return ApplicationRef_;\n }(ApplicationRef));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$12 = (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 };\n /**\n * Represents an instance of an NgModule created via a {@link NgModuleFactory}.\n *\n * `NgModuleRef` provides access to the NgModule Instance as well other objects related to this\n * NgModule Instance.\n *\n * @stable\n */\n var NgModuleRef = (function () {\n function NgModuleRef() {\n }\n Object.defineProperty(NgModuleRef.prototype, \"injector\", {\n /**\n * The injector that contains all of the providers of the NgModule.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModuleRef.prototype, \"componentFactoryResolver\", {\n /**\n * The ComponentFactoryResolver to get hold of the ComponentFactories\n * declared in the `entryComponents` property of the module.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModuleRef.prototype, \"instance\", {\n /**\n * The NgModule instance.\n */\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n return NgModuleRef;\n }());\n /**\n * @experimental\n */\n var NgModuleFactory = (function () {\n function NgModuleFactory(_injectorClass, _moduleType) {\n this._injectorClass = _injectorClass;\n this._moduleType = _moduleType;\n }\n Object.defineProperty(NgModuleFactory.prototype, \"moduleType\", {\n get: function () { return this._moduleType; },\n enumerable: true,\n configurable: true\n });\n NgModuleFactory.prototype.create = function (parentInjector) {\n if (!parentInjector) {\n parentInjector = Injector.NULL;\n }\n var instance = new this._injectorClass(parentInjector);\n instance.create();\n return instance;\n };\n return NgModuleFactory;\n }());\n var _UNDEFINED = new Object();\n var NgModuleInjector = (function (_super) {\n __extends$12(NgModuleInjector, _super);\n function NgModuleInjector(parent, factories, bootstrapFactories) {\n _super.call(this, factories, parent.get(ComponentFactoryResolver, ComponentFactoryResolver.NULL));\n this.parent = parent;\n this.bootstrapFactories = bootstrapFactories;\n this._destroyListeners = [];\n this._destroyed = false;\n }\n NgModuleInjector.prototype.create = function () { this.instance = this.createInternal(); };\n NgModuleInjector.prototype.get = function (token, notFoundValue) {\n if (notFoundValue === void 0) { notFoundValue = THROW_IF_NOT_FOUND; }\n if (token === Injector || token === ComponentFactoryResolver) {\n return this;\n }\n var result = this.getInternal(token, _UNDEFINED);\n return result === _UNDEFINED ? this.parent.get(token, notFoundValue) : result;\n };\n Object.defineProperty(NgModuleInjector.prototype, \"injector\", {\n get: function () { return this; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModuleInjector.prototype, \"componentFactoryResolver\", {\n get: function () { return this; },\n enumerable: true,\n configurable: true\n });\n NgModuleInjector.prototype.destroy = function () {\n if (this._destroyed) {\n throw new Error(\"The ng module \" + stringify(this.instance.constructor) + \" has already been destroyed.\");\n }\n this._destroyed = true;\n this.destroyInternal();\n this._destroyListeners.forEach(function (listener) { return listener(); });\n };\n NgModuleInjector.prototype.onDestroy = function (callback) { this._destroyListeners.push(callback); };\n return NgModuleInjector;\n }(CodegenComponentFactoryResolver));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Used to load ng module factories.\n * @stable\n */\n var NgModuleFactoryLoader = (function () {\n function NgModuleFactoryLoader() {\n }\n return NgModuleFactoryLoader;\n }());\n\n /**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link QueryMetadata} and {@link ViewQueryMetadata} provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList<Item>;\n * }\n * ```\n * @stable\n */\n var QueryList = (function () {\n function QueryList() {\n this._dirty = true;\n this._results = [];\n this._emitter = new EventEmitter();\n }\n Object.defineProperty(QueryList.prototype, \"changes\", {\n get: function () { return this._emitter; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryList.prototype, \"length\", {\n get: function () { return this._results.length; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryList.prototype, \"first\", {\n get: function () { return this._results[0]; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryList.prototype, \"last\", {\n get: function () { return this._results[this.length - 1]; },\n enumerable: true,\n configurable: true\n });\n /**\n * See\n * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n */\n QueryList.prototype.map = function (fn) { return this._results.map(fn); };\n /**\n * See\n * [Array.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)\n */\n QueryList.prototype.filter = function (fn) {\n return this._results.filter(fn);\n };\n /**\n * See\n * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n */\n QueryList.prototype.reduce = function (fn, init) {\n return this._results.reduce(fn, init);\n };\n /**\n * See\n * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n */\n QueryList.prototype.forEach = function (fn) { this._results.forEach(fn); };\n /**\n * See\n * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n */\n QueryList.prototype.some = function (fn) {\n return this._results.some(fn);\n };\n QueryList.prototype.toArray = function () { return this._results.slice(); };\n QueryList.prototype[getSymbolIterator()] = function () { return this._results[getSymbolIterator()](); };\n QueryList.prototype.toString = function () { return this._results.toString(); };\n QueryList.prototype.reset = function (res) {\n this._results = ListWrapper.flatten(res);\n this._dirty = false;\n };\n QueryList.prototype.notifyOnChanges = function () { this._emitter.emit(this); };\n /** internal */\n QueryList.prototype.setDirty = function () { this._dirty = true; };\n Object.defineProperty(QueryList.prototype, \"dirty\", {\n /** internal */\n get: function () { return this._dirty; },\n enumerable: true,\n configurable: true\n });\n return QueryList;\n }());\n\n var _SEPARATOR = '#';\n var FACTORY_CLASS_SUFFIX = 'NgFactory';\n /**\n * Configuration for SystemJsNgModuleLoader.\n * token.\n *\n * @experimental\n */\n var SystemJsNgModuleLoaderConfig = (function () {\n function SystemJsNgModuleLoaderConfig() {\n }\n return SystemJsNgModuleLoaderConfig;\n }());\n var DEFAULT_CONFIG = {\n factoryPathPrefix: '',\n factoryPathSuffix: '.ngfactory',\n };\n /**\n * NgModuleFactoryLoader that uses SystemJS to load NgModuleFactory\n * @experimental\n */\n var SystemJsNgModuleLoader = (function () {\n function SystemJsNgModuleLoader(_compiler, config) {\n this._compiler = _compiler;\n this._system = function () { return System; };\n this._config = config || DEFAULT_CONFIG;\n }\n SystemJsNgModuleLoader.prototype.load = function (path) {\n var offlineMode = this._compiler instanceof Compiler;\n return offlineMode ? this.loadFactory(path) : this.loadAndCompile(path);\n };\n SystemJsNgModuleLoader.prototype.loadAndCompile = function (path) {\n var _this = this;\n var _a = path.split(_SEPARATOR), module = _a[0], exportName = _a[1];\n if (exportName === undefined)\n exportName = 'default';\n return this._system()\n .import(module)\n .then(function (module) { return module[exportName]; })\n .then(function (type) { return checkNotEmpty(type, module, exportName); })\n .then(function (type) { return _this._compiler.compileModuleAsync(type); });\n };\n SystemJsNgModuleLoader.prototype.loadFactory = function (path) {\n var _a = path.split(_SEPARATOR), module = _a[0], exportName = _a[1];\n var factoryClassSuffix = FACTORY_CLASS_SUFFIX;\n if (exportName === undefined) {\n exportName = 'default';\n factoryClassSuffix = '';\n }\n return this._system()\n .import(this._config.factoryPathPrefix + module + this._config.factoryPathSuffix)\n .then(function (module) { return module[exportName + factoryClassSuffix]; })\n .then(function (factory) { return checkNotEmpty(factory, module, exportName); });\n };\n SystemJsNgModuleLoader.decorators = [\n { type: Injectable },\n ];\n /** @nocollapse */\n SystemJsNgModuleLoader.ctorParameters = [\n { type: Compiler, },\n { type: SystemJsNgModuleLoaderConfig, decorators: [{ type: Optional },] },\n ];\n return SystemJsNgModuleLoader;\n }());\n function checkNotEmpty(value, modulePath, exportName) {\n if (!value) {\n throw new Error(\"Cannot find '\" + exportName + \"' in '\" + modulePath + \"'\");\n }\n return value;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$13 = (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 };\n /**\n * Represents an Embedded Template that can be used to instantiate Embedded Views.\n *\n * You can access a `TemplateRef`, in two ways. Via a directive placed on a `<template>` element (or\n * directive prefixed with `*`) and have the `TemplateRef` for this Embedded View injected into the\n * constructor of the directive using the `TemplateRef` Token. Alternatively you can query for the\n * `TemplateRef` from a Component or a Directive via {@link Query}.\n *\n * To instantiate Embedded Views based on a Template, use\n * {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the\n * View Container.\n * @stable\n */\n var TemplateRef = (function () {\n function TemplateRef() {\n }\n Object.defineProperty(TemplateRef.prototype, \"elementRef\", {\n /**\n * The location in the View where the Embedded View logically belongs to.\n *\n * The data-binding and injection contexts of Embedded Views created from this `TemplateRef`\n * inherit from the contexts of this location.\n *\n * Typically new Embedded Views are attached to the View Container of this location, but in\n * advanced use-cases, the View can be attached to a different container while keeping the\n * data-binding and injection context from the original location.\n *\n */\n // TODO(i): rename to anchor or location\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n return TemplateRef;\n }());\n var TemplateRef_ = (function (_super) {\n __extends$13(TemplateRef_, _super);\n function TemplateRef_(_appElement, _viewFactory) {\n _super.call(this);\n this._appElement = _appElement;\n this._viewFactory = _viewFactory;\n }\n TemplateRef_.prototype.createEmbeddedView = function (context) {\n var view = this._viewFactory(this._appElement.parentView.viewUtils, this._appElement.parentInjector, this._appElement);\n view.create(context || {}, null, null);\n return view.ref;\n };\n Object.defineProperty(TemplateRef_.prototype, \"elementRef\", {\n get: function () { return this._appElement.elementRef; },\n enumerable: true,\n configurable: true\n });\n return TemplateRef_;\n }(TemplateRef));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$14 = (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 };\n /**\n * @stable\n */\n var ViewRef = (function () {\n function ViewRef() {\n }\n Object.defineProperty(ViewRef.prototype, \"destroyed\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n return ViewRef;\n }());\n /**\n * Represents an Angular View.\n *\n * <!-- TODO: move the next two paragraphs to the dev guide -->\n * A View is a fundamental building block of the application UI. It is the smallest grouping of\n * Elements which are created and destroyed together.\n *\n * Properties of elements in a View can change, but the structure (number and order) of elements in\n * a View cannot. Changing the structure of Elements can only be done by inserting, moving or\n * removing nested Views via a {@link ViewContainerRef}. Each View can contain many View Containers.\n * <!-- /TODO -->\n *\n * ### Example\n *\n * Given this template...\n *\n * ```\n * Count: {{items.length}}\n * <ul>\n * <li *ngFor=\"let item of items\">{{item}}</li>\n * </ul>\n * ```\n *\n * We have two {@link TemplateRef}s:\n *\n * Outer {@link TemplateRef}:\n * ```\n * Count: {{items.length}}\n * <ul>\n * <template ngFor let-item [ngForOf]=\"items\"></template>\n * </ul>\n * ```\n *\n * Inner {@link TemplateRef}:\n * ```\n * <li>{{item}}</li>\n * ```\n *\n * Notice that the original template is broken down into two separate {@link TemplateRef}s.\n *\n * The outer/inner {@link TemplateRef}s are then assembled into views like so:\n *\n * ```\n * <!-- ViewRef: outer-0 -->\n * Count: 2\n * <ul>\n * <template view-container-ref></template>\n * <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->\n * <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->\n * </ul>\n * <!-- /ViewRef: outer-0 -->\n * ```\n * @experimental\n */\n var EmbeddedViewRef = (function (_super) {\n __extends$14(EmbeddedViewRef, _super);\n function EmbeddedViewRef() {\n _super.apply(this, arguments);\n }\n Object.defineProperty(EmbeddedViewRef.prototype, \"context\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(EmbeddedViewRef.prototype, \"rootNodes\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n ;\n return EmbeddedViewRef;\n }(ViewRef));\n var ViewRef_ = (function () {\n function ViewRef_(_view) {\n this._view = _view;\n this._view = _view;\n this._originalMode = this._view.cdMode;\n }\n Object.defineProperty(ViewRef_.prototype, \"internalView\", {\n get: function () { return this._view; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewRef_.prototype, \"rootNodes\", {\n get: function () { return this._view.flatRootNodes; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewRef_.prototype, \"context\", {\n get: function () { return this._view.context; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewRef_.prototype, \"destroyed\", {\n get: function () { return this._view.destroyed; },\n enumerable: true,\n configurable: true\n });\n ViewRef_.prototype.markForCheck = function () { this._view.markPathToRootAsCheckOnce(); };\n ViewRef_.prototype.detach = function () { this._view.cdMode = ChangeDetectorStatus.Detached; };\n ViewRef_.prototype.detectChanges = function () { this._view.detectChanges(false); };\n ViewRef_.prototype.checkNoChanges = function () { this._view.detectChanges(true); };\n ViewRef_.prototype.reattach = function () {\n this._view.cdMode = this._originalMode;\n this.markForCheck();\n };\n ViewRef_.prototype.onDestroy = function (callback) { this._view.disposables.push(callback); };\n ViewRef_.prototype.destroy = function () { this._view.destroy(); };\n return ViewRef_;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$15 = (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 };\n var EventListener = (function () {\n function EventListener(name, callback) {\n this.name = name;\n this.callback = callback;\n }\n ;\n return EventListener;\n }());\n /**\n * @experimental All debugging apis are currently experimental.\n */\n var DebugNode = (function () {\n function DebugNode(nativeNode, parent, _debugInfo) {\n this._debugInfo = _debugInfo;\n this.nativeNode = nativeNode;\n if (isPresent(parent) && parent instanceof DebugElement) {\n parent.addChild(this);\n }\n else {\n this.parent = null;\n }\n this.listeners = [];\n }\n Object.defineProperty(DebugNode.prototype, \"injector\", {\n get: function () { return isPresent(this._debugInfo) ? this._debugInfo.injector : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugNode.prototype, \"componentInstance\", {\n get: function () {\n return isPresent(this._debugInfo) ? this._debugInfo.component : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugNode.prototype, \"context\", {\n get: function () { return isPresent(this._debugInfo) ? this._debugInfo.context : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugNode.prototype, \"references\", {\n get: function () {\n return isPresent(this._debugInfo) ? this._debugInfo.references : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugNode.prototype, \"providerTokens\", {\n get: function () {\n return isPresent(this._debugInfo) ? this._debugInfo.providerTokens : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugNode.prototype, \"source\", {\n get: function () { return isPresent(this._debugInfo) ? this._debugInfo.source : null; },\n enumerable: true,\n configurable: true\n });\n return DebugNode;\n }());\n /**\n * @experimental All debugging apis are currently experimental.\n */\n var DebugElement = (function (_super) {\n __extends$15(DebugElement, _super);\n function DebugElement(nativeNode, parent, _debugInfo) {\n _super.call(this, nativeNode, parent, _debugInfo);\n this.properties = {};\n this.attributes = {};\n this.classes = {};\n this.styles = {};\n this.childNodes = [];\n this.nativeElement = nativeNode;\n }\n DebugElement.prototype.addChild = function (child) {\n if (isPresent(child)) {\n this.childNodes.push(child);\n child.parent = this;\n }\n };\n DebugElement.prototype.removeChild = function (child) {\n var childIndex = this.childNodes.indexOf(child);\n if (childIndex !== -1) {\n child.parent = null;\n this.childNodes.splice(childIndex, 1);\n }\n };\n DebugElement.prototype.insertChildrenAfter = function (child, newChildren) {\n var siblingIndex = this.childNodes.indexOf(child);\n if (siblingIndex !== -1) {\n var previousChildren = this.childNodes.slice(0, siblingIndex + 1);\n var nextChildren = this.childNodes.slice(siblingIndex + 1);\n this.childNodes =\n ListWrapper.concat(ListWrapper.concat(previousChildren, newChildren), nextChildren);\n for (var i = 0; i < newChildren.length; ++i) {\n var newChild = newChildren[i];\n if (isPresent(newChild.parent)) {\n newChild.parent.removeChild(newChild);\n }\n newChild.parent = this;\n }\n }\n };\n DebugElement.prototype.query = function (predicate) {\n var results = this.queryAll(predicate);\n return results.length > 0 ? results[0] : null;\n };\n DebugElement.prototype.queryAll = function (predicate) {\n var matches = [];\n _queryElementChildren(this, predicate, matches);\n return matches;\n };\n DebugElement.prototype.queryAllNodes = function (predicate) {\n var matches = [];\n _queryNodeChildren(this, predicate, matches);\n return matches;\n };\n Object.defineProperty(DebugElement.prototype, \"children\", {\n get: function () {\n var children = [];\n this.childNodes.forEach(function (node) {\n if (node instanceof DebugElement) {\n children.push(node);\n }\n });\n return children;\n },\n enumerable: true,\n configurable: true\n });\n DebugElement.prototype.triggerEventHandler = function (eventName, eventObj) {\n this.listeners.forEach(function (listener) {\n if (listener.name == eventName) {\n listener.callback(eventObj);\n }\n });\n };\n return DebugElement;\n }(DebugNode));\n /**\n * @experimental\n */\n function asNativeElements(debugEls) {\n return debugEls.map(function (el) { return el.nativeElement; });\n }\n function _queryElementChildren(element, predicate, matches) {\n element.childNodes.forEach(function (node) {\n if (node instanceof DebugElement) {\n if (predicate(node)) {\n matches.push(node);\n }\n _queryElementChildren(node, predicate, matches);\n }\n });\n }\n function _queryNodeChildren(parentNode, predicate, matches) {\n if (parentNode instanceof DebugElement) {\n parentNode.childNodes.forEach(function (node) {\n if (predicate(node)) {\n matches.push(node);\n }\n if (node instanceof DebugElement) {\n _queryNodeChildren(node, predicate, matches);\n }\n });\n }\n }\n // Need to keep the nodes in a global Map so that multiple angular apps are supported.\n var _nativeNodeToDebugNode = new Map();\n /**\n * @experimental\n */\n function getDebugNode(nativeNode) {\n return _nativeNodeToDebugNode.get(nativeNode);\n }\n function indexDebugNode(node) {\n _nativeNodeToDebugNode.set(node.nativeNode, node);\n }\n function removeDebugNodeFromIndex(node) {\n _nativeNodeToDebugNode.delete(node.nativeNode);\n }\n\n function _reflector() {\n return reflector;\n }\n var _CORE_PLATFORM_PROVIDERS = [\n PlatformRef_, { provide: PlatformRef, useExisting: PlatformRef_ },\n { provide: Reflector, useFactory: _reflector, deps: [] },\n { provide: ReflectorReader, useExisting: Reflector }, TestabilityRegistry, Console\n ];\n /**\n * This platform has to be included in any other platform\n *\n * @experimental\n */\n var platformCore = createPlatformFactory(null, 'core', _CORE_PLATFORM_PROVIDERS);\n\n /**\n * @experimental i18n support is experimental.\n */\n var LOCALE_ID = new OpaqueToken('LocaleId');\n /**\n * @experimental i18n support is experimental.\n */\n var TRANSLATIONS = new OpaqueToken('Translations');\n /**\n * @experimental i18n support is experimental.\n */\n var TRANSLATIONS_FORMAT = new OpaqueToken('TranslationsFormat');\n\n function _iterableDiffersFactory() {\n return defaultIterableDiffers;\n }\n function _keyValueDiffersFactory() {\n return defaultKeyValueDiffers;\n }\n /**\n * This module includes the providers of @angular/core that are needed\n * to bootstrap components via `ApplicationRef`.\n *\n * @experimental\n */\n var ApplicationModule = (function () {\n function ApplicationModule() {\n }\n ApplicationModule.decorators = [\n { type: NgModule, args: [{\n providers: [\n ApplicationRef_,\n { provide: ApplicationRef, useExisting: ApplicationRef_ },\n ApplicationInitStatus,\n Compiler,\n APP_ID_RANDOM_PROVIDER,\n ViewUtils,\n { provide: IterableDiffers, useFactory: _iterableDiffersFactory },\n { provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory },\n { provide: LOCALE_ID, useValue: 'en-US' },\n ]\n },] },\n ];\n /** @nocollapse */\n ApplicationModule.ctorParameters = [];\n return ApplicationModule;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var FILL_STYLE_FLAG = 'true'; // TODO (matsko): change to boolean\n var ANY_STATE = '*';\n var DEFAULT_STATE = '*';\n var EMPTY_STATE = 'void';\n\n var Math$1 = global$1.Math;\n\n var AnimationGroupPlayer = (function () {\n function AnimationGroupPlayer(_players) {\n var _this = this;\n this._players = _players;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._finished = false;\n this._started = false;\n this.parentPlayer = null;\n var count = 0;\n var total = this._players.length;\n if (total == 0) {\n scheduleMicroTask(function () { return _this._onFinish(); });\n }\n else {\n this._players.forEach(function (player) {\n player.parentPlayer = _this;\n player.onDone(function () {\n if (++count >= total) {\n _this._onFinish();\n }\n });\n });\n }\n }\n AnimationGroupPlayer.prototype._onFinish = function () {\n if (!this._finished) {\n this._finished = true;\n if (!isPresent(this.parentPlayer)) {\n this.destroy();\n }\n this._onDoneFns.forEach(function (fn) { return fn(); });\n this._onDoneFns = [];\n }\n };\n AnimationGroupPlayer.prototype.init = function () { this._players.forEach(function (player) { return player.init(); }); };\n AnimationGroupPlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); };\n AnimationGroupPlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); };\n AnimationGroupPlayer.prototype.hasStarted = function () { return this._started; };\n AnimationGroupPlayer.prototype.play = function () {\n if (!isPresent(this.parentPlayer)) {\n this.init();\n }\n if (!this.hasStarted()) {\n this._onStartFns.forEach(function (fn) { return fn(); });\n this._onStartFns = [];\n this._started = true;\n }\n this._players.forEach(function (player) { return player.play(); });\n };\n AnimationGroupPlayer.prototype.pause = function () { this._players.forEach(function (player) { return player.pause(); }); };\n AnimationGroupPlayer.prototype.restart = function () { this._players.forEach(function (player) { return player.restart(); }); };\n AnimationGroupPlayer.prototype.finish = function () {\n this._onFinish();\n this._players.forEach(function (player) { return player.finish(); });\n };\n AnimationGroupPlayer.prototype.destroy = function () {\n this._onFinish();\n this._players.forEach(function (player) { return player.destroy(); });\n };\n AnimationGroupPlayer.prototype.reset = function () { this._players.forEach(function (player) { return player.reset(); }); };\n AnimationGroupPlayer.prototype.setPosition = function (p /** TODO #9100 */) {\n this._players.forEach(function (player) { player.setPosition(p); });\n };\n AnimationGroupPlayer.prototype.getPosition = function () {\n var min = 0;\n this._players.forEach(function (player) {\n var p = player.getPosition();\n min = Math$1.min(p, min);\n });\n return min;\n };\n return AnimationGroupPlayer;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var AnimationKeyframe = (function () {\n function AnimationKeyframe(offset, styles) {\n this.offset = offset;\n this.styles = styles;\n }\n return AnimationKeyframe;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var AnimationOutput = (function () {\n function AnimationOutput(name, phase, fullPropertyName) {\n this.name = name;\n this.phase = phase;\n this.fullPropertyName = fullPropertyName;\n }\n return AnimationOutput;\n }());\n\n /**\n * @experimental Animation support is experimental.\n */\n var AnimationPlayer = (function () {\n function AnimationPlayer() {\n }\n Object.defineProperty(AnimationPlayer.prototype, \"parentPlayer\", {\n get: function () { throw new Error('NOT IMPLEMENTED: Base Class'); },\n set: function (player) { throw new Error('NOT IMPLEMENTED: Base Class'); },\n enumerable: true,\n configurable: true\n });\n return AnimationPlayer;\n }());\n var NoOpAnimationPlayer = (function () {\n function NoOpAnimationPlayer() {\n var _this = this;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._started = false;\n this.parentPlayer = null;\n scheduleMicroTask(function () { return _this._onFinish(); });\n }\n /** @internal */\n NoOpAnimationPlayer.prototype._onFinish = function () {\n this._onDoneFns.forEach(function (fn) { return fn(); });\n this._onDoneFns = [];\n };\n NoOpAnimationPlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); };\n NoOpAnimationPlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); };\n NoOpAnimationPlayer.prototype.hasStarted = function () { return this._started; };\n NoOpAnimationPlayer.prototype.init = function () { };\n NoOpAnimationPlayer.prototype.play = function () {\n if (!this.hasStarted()) {\n this._onStartFns.forEach(function (fn) { return fn(); });\n this._onStartFns = [];\n }\n this._started = true;\n };\n NoOpAnimationPlayer.prototype.pause = function () { };\n NoOpAnimationPlayer.prototype.restart = function () { };\n NoOpAnimationPlayer.prototype.finish = function () { this._onFinish(); };\n NoOpAnimationPlayer.prototype.destroy = function () { };\n NoOpAnimationPlayer.prototype.reset = function () { };\n NoOpAnimationPlayer.prototype.setPosition = function (p /** TODO #9100 */) { };\n NoOpAnimationPlayer.prototype.getPosition = function () { return 0; };\n return NoOpAnimationPlayer;\n }());\n\n var AnimationSequencePlayer = (function () {\n function AnimationSequencePlayer(_players) {\n var _this = this;\n this._players = _players;\n this._currentIndex = 0;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._finished = false;\n this._started = false;\n this.parentPlayer = null;\n this._players.forEach(function (player) { player.parentPlayer = _this; });\n this._onNext(false);\n }\n AnimationSequencePlayer.prototype._onNext = function (start) {\n var _this = this;\n if (this._finished)\n return;\n if (this._players.length == 0) {\n this._activePlayer = new NoOpAnimationPlayer();\n scheduleMicroTask(function () { return _this._onFinish(); });\n }\n else if (this._currentIndex >= this._players.length) {\n this._activePlayer = new NoOpAnimationPlayer();\n this._onFinish();\n }\n else {\n var player = this._players[this._currentIndex++];\n player.onDone(function () { return _this._onNext(true); });\n this._activePlayer = player;\n if (start) {\n player.play();\n }\n }\n };\n AnimationSequencePlayer.prototype._onFinish = function () {\n if (!this._finished) {\n this._finished = true;\n if (!isPresent(this.parentPlayer)) {\n this.destroy();\n }\n this._onDoneFns.forEach(function (fn) { return fn(); });\n this._onDoneFns = [];\n }\n };\n AnimationSequencePlayer.prototype.init = function () { this._players.forEach(function (player) { return player.init(); }); };\n AnimationSequencePlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); };\n AnimationSequencePlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); };\n AnimationSequencePlayer.prototype.hasStarted = function () { return this._started; };\n AnimationSequencePlayer.prototype.play = function () {\n if (!isPresent(this.parentPlayer)) {\n this.init();\n }\n if (!this.hasStarted()) {\n this._onStartFns.forEach(function (fn) { return fn(); });\n this._onStartFns = [];\n this._started = true;\n }\n this._activePlayer.play();\n };\n AnimationSequencePlayer.prototype.pause = function () { this._activePlayer.pause(); };\n AnimationSequencePlayer.prototype.restart = function () {\n if (this._players.length > 0) {\n this.reset();\n this._players[0].restart();\n }\n };\n AnimationSequencePlayer.prototype.reset = function () { this._players.forEach(function (player) { return player.reset(); }); };\n AnimationSequencePlayer.prototype.finish = function () {\n this._onFinish();\n this._players.forEach(function (player) { return player.finish(); });\n };\n AnimationSequencePlayer.prototype.destroy = function () {\n this._onFinish();\n this._players.forEach(function (player) { return player.destroy(); });\n };\n AnimationSequencePlayer.prototype.setPosition = function (p /** TODO #9100 */) { this._players[0].setPosition(p); };\n AnimationSequencePlayer.prototype.getPosition = function () { return this._players[0].getPosition(); };\n return AnimationSequencePlayer;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$16 = (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 };\n /**\n * @experimental Animation support is experimental.\n */\n var AUTO_STYLE = '*';\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the {@link trigger trigger\n * animation function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationEntryMetadata = (function () {\n function AnimationEntryMetadata(name, definitions) {\n this.name = name;\n this.definitions = definitions;\n }\n return AnimationEntryMetadata;\n }());\n /**\n * @experimental Animation support is experimental.\n */\n var AnimationStateMetadata = (function () {\n function AnimationStateMetadata() {\n }\n return AnimationStateMetadata;\n }());\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the {@link state state animation\n * function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationStateDeclarationMetadata = (function (_super) {\n __extends$16(AnimationStateDeclarationMetadata, _super);\n function AnimationStateDeclarationMetadata(stateNameExpr, styles) {\n _super.call(this);\n this.stateNameExpr = stateNameExpr;\n this.styles = styles;\n }\n return AnimationStateDeclarationMetadata;\n }(AnimationStateMetadata));\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the\n * {@link transition transition animation function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationStateTransitionMetadata = (function (_super) {\n __extends$16(AnimationStateTransitionMetadata, _super);\n function AnimationStateTransitionMetadata(stateChangeExpr, steps) {\n _super.call(this);\n this.stateChangeExpr = stateChangeExpr;\n this.steps = steps;\n }\n return AnimationStateTransitionMetadata;\n }(AnimationStateMetadata));\n /**\n * @experimental Animation support is experimental.\n */\n var AnimationMetadata = (function () {\n function AnimationMetadata() {\n }\n return AnimationMetadata;\n }());\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the {@link keyframes keyframes\n * animation function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationKeyframesSequenceMetadata = (function (_super) {\n __extends$16(AnimationKeyframesSequenceMetadata, _super);\n function AnimationKeyframesSequenceMetadata(steps) {\n _super.call(this);\n this.steps = steps;\n }\n return AnimationKeyframesSequenceMetadata;\n }(AnimationMetadata));\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the {@link style style animation\n * function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationStyleMetadata = (function (_super) {\n __extends$16(AnimationStyleMetadata, _super);\n function AnimationStyleMetadata(styles, offset) {\n if (offset === void 0) { offset = null; }\n _super.call(this);\n this.styles = styles;\n this.offset = offset;\n }\n return AnimationStyleMetadata;\n }(AnimationMetadata));\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the {@link animate animate\n * animation function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationAnimateMetadata = (function (_super) {\n __extends$16(AnimationAnimateMetadata, _super);\n function AnimationAnimateMetadata(timings, styles) {\n _super.call(this);\n this.timings = timings;\n this.styles = styles;\n }\n return AnimationAnimateMetadata;\n }(AnimationMetadata));\n /**\n * @experimental Animation support is experimental.\n */\n var AnimationWithStepsMetadata = (function (_super) {\n __extends$16(AnimationWithStepsMetadata, _super);\n function AnimationWithStepsMetadata() {\n _super.call(this);\n }\n Object.defineProperty(AnimationWithStepsMetadata.prototype, \"steps\", {\n get: function () { throw new Error('NOT IMPLEMENTED: Base Class'); },\n enumerable: true,\n configurable: true\n });\n return AnimationWithStepsMetadata;\n }(AnimationMetadata));\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the {@link sequence sequence\n * animation function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationSequenceMetadata = (function (_super) {\n __extends$16(AnimationSequenceMetadata, _super);\n function AnimationSequenceMetadata(_steps) {\n _super.call(this);\n this._steps = _steps;\n }\n Object.defineProperty(AnimationSequenceMetadata.prototype, \"steps\", {\n get: function () { return this._steps; },\n enumerable: true,\n configurable: true\n });\n return AnimationSequenceMetadata;\n }(AnimationWithStepsMetadata));\n /**\n * Metadata representing the entry of animations.\n * Instances of this class are provided via the animation DSL when the {@link group group animation\n * function} is called.\n *\n * @experimental Animation support is experimental.\n */\n var AnimationGroupMetadata = (function (_super) {\n __extends$16(AnimationGroupMetadata, _super);\n function AnimationGroupMetadata(_steps) {\n _super.call(this);\n this._steps = _steps;\n }\n Object.defineProperty(AnimationGroupMetadata.prototype, \"steps\", {\n get: function () { return this._steps; },\n enumerable: true,\n configurable: true\n });\n return AnimationGroupMetadata;\n }(AnimationWithStepsMetadata));\n /**\n * `animate` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `animate` specifies an animation step that will apply the provided `styles` data for a given\n * amount of\n * time based on the provided `timing` expression value. Calls to `animate` are expected to be\n * used within {@link sequence an animation sequence}, {@link group group}, or {@link transition\n * transition}.\n *\n * ### Usage\n *\n * The `animate` function accepts two input parameters: `timing` and `styles`:\n *\n * - `timing` is a string based value that can be a combination of a duration with optional\n * delay and easing values. The format for the expression breaks down to `duration delay easing`\n * (therefore a value such as `1s 100ms ease-out` will be parse itself into `duration=1000,\n * delay=100, easing=ease-out`.\n * If a numeric value is provided then that will be used as the `duration` value in millisecond\n * form.\n * - `styles` is the style input data which can either be a call to {@link style style} or {@link\n * keyframes keyframes}.\n * If left empty then the styles from the destination state will be collected and used (this is\n * useful when\n * describing an animation step that will complete an animation by {@link\n * transition#the-final-animate-call animating to the final state}).\n *\n * ```typescript\n * // various functions for specifying timing data\n * animate(500, style(...))\n * animate(\"1s\", style(...))\n * animate(\"100ms 0.5s\", style(...))\n * animate(\"5s ease\", style(...))\n * animate(\"5s 10ms cubic-bezier(.17,.67,.88,.1)\", style(...))\n *\n * // either style() of keyframes() can be used\n * animate(500, style({ background: \"red\" }))\n * animate(500, keyframes([\n * style({ background: \"blue\" })),\n * style({ background: \"red\" }))\n * ])\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function animate(timing, styles) {\n if (styles === void 0) { styles = null; }\n var stylesEntry = styles;\n if (!isPresent(stylesEntry)) {\n var EMPTY_STYLE = {};\n stylesEntry = new AnimationStyleMetadata([EMPTY_STYLE], 1);\n }\n return new AnimationAnimateMetadata(timing, stylesEntry);\n }\n /**\n * `group` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `group` specifies a list of animation steps that are all run in parallel. Grouped animations\n * are useful when a series of styles must be animated/closed off\n * at different statrting/ending times.\n *\n * The `group` function can either be used within a {@link sequence sequence} or a {@link transition\n * transition}\n * and it will only continue to the next instruction once all of the inner animation steps\n * have completed.\n *\n * ### Usage\n *\n * The `steps` data that is passed into the `group` animation function can either consist\n * of {@link style style} or {@link animate animate} function calls. Each call to `style()` or\n * `animate()`\n * within a group will be executed instantly (use {@link keyframes keyframes} or a\n * {@link animate#usage animate() with a delay value} to offset styles to be applied at a later\n * time).\n *\n * ```typescript\n * group([\n * animate(\"1s\", { background: \"black\" }))\n * animate(\"2s\", { color: \"white\" }))\n * ])\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function group(steps) {\n return new AnimationGroupMetadata(steps);\n }\n /**\n * `sequence` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `sequence` Specifies a list of animation steps that are run one by one. (`sequence` is used\n * by default when an array is passed as animation data into {@link transition transition}.)\n *\n * The `sequence` function can either be used within a {@link group group} or a {@link transition\n * transition}\n * and it will only continue to the next instruction once each of the inner animation steps\n * have completed.\n *\n * To perform animation styling in parallel with other animation steps then\n * have a look at the {@link group group} animation function.\n *\n * ### Usage\n *\n * The `steps` data that is passed into the `sequence` animation function can either consist\n * of {@link style style} or {@link animate animate} function calls. A call to `style()` will apply\n * the\n * provided styling data immediately while a call to `animate()` will apply its styling\n * data over a given time depending on its timing data.\n *\n * ```typescript\n * sequence([\n * style({ opacity: 0 })),\n * animate(\"1s\", { opacity: 1 }))\n * ])\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function sequence(steps) {\n return new AnimationSequenceMetadata(steps);\n }\n /**\n * `style` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `style` declares a key/value object containing CSS properties/styles that can then\n * be used for {@link state animation states}, within an {@link sequence animation sequence}, or as\n * styling data for both {@link animate animate} and {@link keyframes keyframes}.\n *\n * ### Usage\n *\n * `style` takes in a key/value string map as data and expects one or more CSS property/value\n * pairs to be defined.\n *\n * ```typescript\n * // string values are used for css properties\n * style({ background: \"red\", color: \"blue\" })\n *\n * // numerical (pixel) values are also supported\n * style({ width: 100, height: 0 })\n * ```\n *\n * #### Auto-styles (using `*`)\n *\n * When an asterix (`*`) character is used as a value then it will be detected from the element\n * being animated\n * and applied as animation data when the animation starts.\n *\n * This feature proves useful for a state depending on layout and/or environment factors; in such\n * cases\n * the styles are calculated just before the animation starts.\n *\n * ```typescript\n * // the steps below will animate from 0 to the\n * // actual height of the element\n * style({ height: 0 }),\n * animate(\"1s\", style({ height: \"*\" }))\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function style(tokens) {\n var input;\n var offset = null;\n if (isString(tokens)) {\n input = [tokens];\n }\n else {\n if (isArray(tokens)) {\n input = tokens;\n }\n else {\n input = [tokens];\n }\n input.forEach(function (entry) {\n var entryOffset = entry['offset'];\n if (isPresent(entryOffset)) {\n offset = offset == null ? NumberWrapper.parseFloat(entryOffset) : offset;\n }\n });\n }\n return new AnimationStyleMetadata(input, offset);\n }\n /**\n * `state` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `state` declares an animation state within the given trigger. When a state is\n * active within a component then its associated styles will persist on\n * the element that the trigger is attached to (even when the animation ends).\n *\n * To animate between states, have a look at the animation {@link transition transition}\n * DSL function. To register states to an animation trigger please have a look\n * at the {@link trigger trigger} function.\n *\n * #### The `void` state\n *\n * The `void` state value is a reserved word that angular uses to determine when the element is not\n * apart\n * of the application anymore (e.g. when an `ngIf` evaluates to false then the state of the\n * associated element\n * is void).\n *\n * #### The `*` (default) state\n *\n * The `*` state (when styled) is a fallback state that will be used if\n * the state that is being animated is not declared within the trigger.\n *\n * ### Usage\n *\n * `state` will declare an animation state with its associated styles\n * within the given trigger.\n *\n * - `stateNameExpr` can be one or more state names separated by commas.\n * - `styles` refers to the {@link style styling data} that will be persisted on the element once\n * the state\n * has been reached.\n *\n * ```typescript\n * // \"void\" is a reserved name for a state and is used to represent\n * // the state in which an element is detached from from the application.\n * state(\"void\", style({ height: 0 }))\n *\n * // user-defined states\n * state(\"closed\", style({ height: 0 }))\n * state(\"open, visible\", style({ height: \"*\" }))\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function state(stateNameExpr, styles) {\n return new AnimationStateDeclarationMetadata(stateNameExpr, styles);\n }\n /**\n * `keyframes` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `keyframes` specifies a collection of {@link style style} entries each optionally characterized\n * by an `offset` value.\n *\n * ### Usage\n *\n * The `keyframes` animation function is designed to be used alongside the {@link animate animate}\n * animation function. Instead of applying animations from where they are\n * currently to their destination, keyframes can describe how each style entry is applied\n * and at what point within the animation arc (much like CSS Keyframe Animations do).\n *\n * For each `style()` entry an `offset` value can be set. Doing so allows to specifiy at\n * what percentage of the animate time the styles will be applied.\n *\n * ```typescript\n * // the provided offset values describe when each backgroundColor value is applied.\n * animate(\"5s\", keyframes([\n * style({ backgroundColor: \"red\", offset: 0 }),\n * style({ backgroundColor: \"blue\", offset: 0.2 }),\n * style({ backgroundColor: \"orange\", offset: 0.3 }),\n * style({ backgroundColor: \"black\", offset: 1 })\n * ]))\n * ```\n *\n * Alternatively, if there are no `offset` values used within the style entries then the offsets\n * will\n * be calculated automatically.\n *\n * ```typescript\n * animate(\"5s\", keyframes([\n * style({ backgroundColor: \"red\" }) // offset = 0\n * style({ backgroundColor: \"blue\" }) // offset = 0.33\n * style({ backgroundColor: \"orange\" }) // offset = 0.66\n * style({ backgroundColor: \"black\" }) // offset = 1\n * ]))\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function keyframes(steps) {\n return new AnimationKeyframesSequenceMetadata(steps);\n }\n /**\n * `transition` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `transition` declares the {@link sequence sequence of animation steps} that will be run when the\n * provided\n * `stateChangeExpr` value is satisfied. The `stateChangeExpr` consists of a `state1 => state2`\n * which consists\n * of two known states (use an asterix (`*`) to refer to a dynamic starting and/or ending state).\n *\n * Animation transitions are placed within an {@link trigger animation trigger}. For an transition\n * to animate to\n * a state value and persist its styles then one or more {@link state animation states} is expected\n * to be defined.\n *\n * ### Usage\n *\n * An animation transition is kicked off the `stateChangeExpr` predicate evaluates to true based on\n * what the\n * previous state is and what the current state has become. In other words, if a transition is\n * defined that\n * matches the old/current state criteria then the associated animation will be triggered.\n *\n * ```typescript\n * // all transition/state changes are defined within an animation trigger\n * trigger(\"myAnimationTrigger\", [\n * // if a state is defined then its styles will be persisted when the\n * // animation has fully completed itself\n * state(\"on\", style({ background: \"green\" })),\n * state(\"off\", style({ background: \"grey\" })),\n *\n * // a transition animation that will be kicked off when the state value\n * // bound to \"myAnimationTrigger\" changes from \"on\" to \"off\"\n * transition(\"on => off\", animate(500)),\n *\n * // it is also possible to do run the same animation for both directions\n * transition(\"on <=> off\", animate(500)),\n *\n * // or to define multiple states pairs separated by commas\n * transition(\"on => off, off => void\", animate(500)),\n *\n * // this is a catch-all state change for when an element is inserted into\n * // the page and the destination state is unknown\n * transition(\"void => *\", [\n * style({ opacity: 0 }),\n * animate(500)\n * ]),\n *\n * // this will capture a state change between any states\n * transition(\"* => *\", animate(\"1s 0s\")),\n * ])\n * ```\n *\n * The template associated with this component will make use of the `myAnimationTrigger`\n * animation trigger by binding to an element within its template code.\n *\n * ```html\n * <!-- somewhere inside of my-component-tpl.html -->\n * <div [@myAnimationTrigger]=\"myStatusExp\">...</div>\n * ```\n *\n * #### The final `animate` call\n *\n * If the final step within the transition steps is a call to `animate()` that **only**\n * uses a timing value with **no style data** then it will be automatically used as the final\n * animation\n * arc for the element to animate itself to the final state. This involves an automatic mix of\n * adding/removing CSS styles so that the element will be in the exact state it should be for the\n * applied state to be presented correctly.\n *\n * ```\n * // start off by hiding the element, but make sure that it animates properly to whatever state\n * // is currently active for \"myAnimationTrigger\"\n * transition(\"void => *\", [\n * style({ opacity: 0 }),\n * animate(500)\n * ])\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function transition(stateChangeExpr, steps) {\n var animationData = isArray(steps) ? new AnimationSequenceMetadata(steps) :\n steps;\n return new AnimationStateTransitionMetadata(stateChangeExpr, animationData);\n }\n /**\n * `trigger` is an animation-specific function that is designed to be used inside of Angular2's\n * animation\n * DSL language. If this information is new, please navigate to the\n * {@link ComponentMetadata#animations-anchor component animations metadata\n * page} to gain a better understanding of how animations in Angular2 are used.\n *\n * `trigger` Creates an animation trigger which will a list of {@link state state} and {@link\n * transition transition}\n * entries that will be evaluated when the expression bound to the trigger changes.\n *\n * Triggers are registered within the component annotation data under the\n * {@link ComponentMetadata#animations-anchor animations section}. An animation trigger can\n * be placed on an element within a template by referencing the name of the\n * trigger followed by the expression value that the trigger is bound to\n * (in the form of `[@triggerName]=\"expression\"`.\n *\n * ### Usage\n *\n * `trigger` will create an animation trigger reference based on the provided `name` value.\n * The provided `animation` value is expected to be an array consisting of {@link state state} and\n * {@link transition transition}\n * declarations.\n *\n * ```typescript\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'my-component-tpl.html',\n * animations: [\n * trigger(\"myAnimationTrigger\", [\n * state(...),\n * state(...),\n * transition(...),\n * transition(...)\n * ])\n * ]\n * })\n * class MyComponent {\n * myStatusExp = \"something\";\n * }\n * ```\n *\n * The template associated with this component will make use of the `myAnimationTrigger`\n * animation trigger by binding to an element within its template code.\n *\n * ```html\n * <!-- somewhere inside of my-component-tpl.html -->\n * <div [@myAnimationTrigger]=\"myStatusExp\">...</div>\n * ```\n *\n * ### Example ([live demo](http://plnkr.co/edit/Kez8XGWBxWue7qP7nNvF?p=preview))\n *\n * {@example core/animation/ts/dsl/animation_example.ts region='Component'}\n *\n * @experimental Animation support is experimental.\n */\n function trigger(name, animation) {\n return new AnimationEntryMetadata(name, animation);\n }\n\n function prepareFinalAnimationStyles(previousStyles, newStyles, nullValue) {\n if (nullValue === void 0) { nullValue = null; }\n var finalStyles = {};\n StringMapWrapper.forEach(newStyles, function (value, prop) {\n finalStyles[prop] = value == AUTO_STYLE ? nullValue : value.toString();\n });\n StringMapWrapper.forEach(previousStyles, function (value, prop) {\n if (!isPresent(finalStyles[prop])) {\n finalStyles[prop] = nullValue;\n }\n });\n return finalStyles;\n }\n function balanceAnimationKeyframes(collectedStyles, finalStateStyles, keyframes) {\n var limit = keyframes.length - 1;\n var firstKeyframe = keyframes[0];\n // phase 1: copy all the styles from the first keyframe into the lookup map\n var flatenedFirstKeyframeStyles = flattenStyles(firstKeyframe.styles.styles);\n var extraFirstKeyframeStyles = {};\n var hasExtraFirstStyles = false;\n StringMapWrapper.forEach(collectedStyles, function (value, prop) {\n // if the style is already defined in the first keyframe then\n // we do not replace it.\n if (!flatenedFirstKeyframeStyles[prop]) {\n flatenedFirstKeyframeStyles[prop] = value;\n extraFirstKeyframeStyles[prop] = value;\n hasExtraFirstStyles = true;\n }\n });\n var keyframeCollectedStyles = StringMapWrapper.merge({}, flatenedFirstKeyframeStyles);\n // phase 2: normalize the final keyframe\n var finalKeyframe = keyframes[limit];\n ListWrapper.insert(finalKeyframe.styles.styles, 0, finalStateStyles);\n var flatenedFinalKeyframeStyles = flattenStyles(finalKeyframe.styles.styles);\n var extraFinalKeyframeStyles = {};\n var hasExtraFinalStyles = false;\n StringMapWrapper.forEach(keyframeCollectedStyles, function (value, prop) {\n if (!isPresent(flatenedFinalKeyframeStyles[prop])) {\n extraFinalKeyframeStyles[prop] = AUTO_STYLE;\n hasExtraFinalStyles = true;\n }\n });\n if (hasExtraFinalStyles) {\n finalKeyframe.styles.styles.push(extraFinalKeyframeStyles);\n }\n StringMapWrapper.forEach(flatenedFinalKeyframeStyles, function (value, prop) {\n if (!isPresent(flatenedFirstKeyframeStyles[prop])) {\n extraFirstKeyframeStyles[prop] = AUTO_STYLE;\n hasExtraFirstStyles = true;\n }\n });\n if (hasExtraFirstStyles) {\n firstKeyframe.styles.styles.push(extraFirstKeyframeStyles);\n }\n return keyframes;\n }\n function clearStyles(styles) {\n var finalStyles = {};\n StringMapWrapper.keys(styles).forEach(function (key) { finalStyles[key] = null; });\n return finalStyles;\n }\n function collectAndResolveStyles(collection, styles) {\n return styles.map(function (entry) {\n var stylesObj = {};\n StringMapWrapper.forEach(entry, function (value, prop) {\n if (value == FILL_STYLE_FLAG) {\n value = collection[prop];\n if (!isPresent(value)) {\n value = AUTO_STYLE;\n }\n }\n collection[prop] = value;\n stylesObj[prop] = value;\n });\n return stylesObj;\n });\n }\n function renderStyles(element, renderer, styles) {\n StringMapWrapper.forEach(styles, function (value, prop) { renderer.setElementStyle(element, prop, value); });\n }\n function flattenStyles(styles) {\n var finalStyles = {};\n styles.forEach(function (entry) {\n StringMapWrapper.forEach(entry, function (value, prop) { finalStyles[prop] = value; });\n });\n return finalStyles;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var AnimationStyles = (function () {\n function AnimationStyles(styles) {\n this.styles = styles;\n }\n return AnimationStyles;\n }());\n\n var DebugDomRootRenderer = (function () {\n function DebugDomRootRenderer(_delegate) {\n this._delegate = _delegate;\n }\n DebugDomRootRenderer.prototype.renderComponent = function (componentProto) {\n return new DebugDomRenderer(this._delegate.renderComponent(componentProto));\n };\n return DebugDomRootRenderer;\n }());\n var DebugDomRenderer = (function () {\n function DebugDomRenderer(_delegate) {\n this._delegate = _delegate;\n }\n DebugDomRenderer.prototype.selectRootElement = function (selectorOrNode, debugInfo) {\n var nativeEl = this._delegate.selectRootElement(selectorOrNode, debugInfo);\n var debugEl = new DebugElement(nativeEl, null, debugInfo);\n indexDebugNode(debugEl);\n return nativeEl;\n };\n DebugDomRenderer.prototype.createElement = function (parentElement, name, debugInfo) {\n var nativeEl = this._delegate.createElement(parentElement, name, debugInfo);\n var debugEl = new DebugElement(nativeEl, getDebugNode(parentElement), debugInfo);\n debugEl.name = name;\n indexDebugNode(debugEl);\n return nativeEl;\n };\n DebugDomRenderer.prototype.createViewRoot = function (hostElement) { return this._delegate.createViewRoot(hostElement); };\n DebugDomRenderer.prototype.createTemplateAnchor = function (parentElement, debugInfo) {\n var comment = this._delegate.createTemplateAnchor(parentElement, debugInfo);\n var debugEl = new DebugNode(comment, getDebugNode(parentElement), debugInfo);\n indexDebugNode(debugEl);\n return comment;\n };\n DebugDomRenderer.prototype.createText = function (parentElement, value, debugInfo) {\n var text = this._delegate.createText(parentElement, value, debugInfo);\n var debugEl = new DebugNode(text, getDebugNode(parentElement), debugInfo);\n indexDebugNode(debugEl);\n return text;\n };\n DebugDomRenderer.prototype.projectNodes = function (parentElement, nodes) {\n var debugParent = getDebugNode(parentElement);\n if (isPresent(debugParent) && debugParent instanceof DebugElement) {\n var debugElement_1 = debugParent;\n nodes.forEach(function (node) { debugElement_1.addChild(getDebugNode(node)); });\n }\n this._delegate.projectNodes(parentElement, nodes);\n };\n DebugDomRenderer.prototype.attachViewAfter = function (node, viewRootNodes) {\n var debugNode = getDebugNode(node);\n if (isPresent(debugNode)) {\n var debugParent = debugNode.parent;\n if (viewRootNodes.length > 0 && isPresent(debugParent)) {\n var debugViewRootNodes = [];\n viewRootNodes.forEach(function (rootNode) { return debugViewRootNodes.push(getDebugNode(rootNode)); });\n debugParent.insertChildrenAfter(debugNode, debugViewRootNodes);\n }\n }\n this._delegate.attachViewAfter(node, viewRootNodes);\n };\n DebugDomRenderer.prototype.detachView = function (viewRootNodes) {\n viewRootNodes.forEach(function (node) {\n var debugNode = getDebugNode(node);\n if (isPresent(debugNode) && isPresent(debugNode.parent)) {\n debugNode.parent.removeChild(debugNode);\n }\n });\n this._delegate.detachView(viewRootNodes);\n };\n DebugDomRenderer.prototype.destroyView = function (hostElement, viewAllNodes) {\n viewAllNodes.forEach(function (node) { removeDebugNodeFromIndex(getDebugNode(node)); });\n this._delegate.destroyView(hostElement, viewAllNodes);\n };\n DebugDomRenderer.prototype.listen = function (renderElement, name, callback) {\n var debugEl = getDebugNode(renderElement);\n if (isPresent(debugEl)) {\n debugEl.listeners.push(new EventListener(name, callback));\n }\n return this._delegate.listen(renderElement, name, callback);\n };\n DebugDomRenderer.prototype.listenGlobal = function (target, name, callback) {\n return this._delegate.listenGlobal(target, name, callback);\n };\n DebugDomRenderer.prototype.setElementProperty = function (renderElement, propertyName, propertyValue) {\n var debugEl = getDebugNode(renderElement);\n if (isPresent(debugEl) && debugEl instanceof DebugElement) {\n debugEl.properties[propertyName] = propertyValue;\n }\n this._delegate.setElementProperty(renderElement, propertyName, propertyValue);\n };\n DebugDomRenderer.prototype.setElementAttribute = function (renderElement, attributeName, attributeValue) {\n var debugEl = getDebugNode(renderElement);\n if (isPresent(debugEl) && debugEl instanceof DebugElement) {\n debugEl.attributes[attributeName] = attributeValue;\n }\n this._delegate.setElementAttribute(renderElement, attributeName, attributeValue);\n };\n DebugDomRenderer.prototype.setBindingDebugInfo = function (renderElement, propertyName, propertyValue) {\n this._delegate.setBindingDebugInfo(renderElement, propertyName, propertyValue);\n };\n DebugDomRenderer.prototype.setElementClass = function (renderElement, className, isAdd) {\n var debugEl = getDebugNode(renderElement);\n if (isPresent(debugEl) && debugEl instanceof DebugElement) {\n debugEl.classes[className] = isAdd;\n }\n this._delegate.setElementClass(renderElement, className, isAdd);\n };\n DebugDomRenderer.prototype.setElementStyle = function (renderElement, styleName, styleValue) {\n var debugEl = getDebugNode(renderElement);\n if (isPresent(debugEl) && debugEl instanceof DebugElement) {\n debugEl.styles[styleName] = styleValue;\n }\n this._delegate.setElementStyle(renderElement, styleName, styleValue);\n };\n DebugDomRenderer.prototype.invokeElementMethod = function (renderElement, methodName, args) {\n this._delegate.invokeElementMethod(renderElement, methodName, args);\n };\n DebugDomRenderer.prototype.setText = function (renderNode, text) { this._delegate.setText(renderNode, text); };\n DebugDomRenderer.prototype.animate = function (element, startingStyles, keyframes, duration, delay, easing) {\n return this._delegate.animate(element, startingStyles, keyframes, duration, delay, easing);\n };\n return DebugDomRenderer;\n }());\n\n var StaticNodeDebugInfo = (function () {\n function StaticNodeDebugInfo(providerTokens, componentToken, refTokens) {\n this.providerTokens = providerTokens;\n this.componentToken = componentToken;\n this.refTokens = refTokens;\n }\n return StaticNodeDebugInfo;\n }());\n var DebugContext = (function () {\n function DebugContext(_view, _nodeIndex, _tplRow, _tplCol) {\n this._view = _view;\n this._nodeIndex = _nodeIndex;\n this._tplRow = _tplRow;\n this._tplCol = _tplCol;\n }\n Object.defineProperty(DebugContext.prototype, \"_staticNodeInfo\", {\n get: function () {\n return isPresent(this._nodeIndex) ? this._view.staticNodeDebugInfos[this._nodeIndex] : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"context\", {\n get: function () { return this._view.context; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"component\", {\n get: function () {\n var staticNodeInfo = this._staticNodeInfo;\n if (isPresent(staticNodeInfo) && isPresent(staticNodeInfo.componentToken)) {\n return this.injector.get(staticNodeInfo.componentToken);\n }\n return null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"componentRenderElement\", {\n get: function () {\n var componentView = this._view;\n while (isPresent(componentView.declarationAppElement) &&\n componentView.type !== ViewType.COMPONENT) {\n componentView = componentView.declarationAppElement.parentView;\n }\n return isPresent(componentView.declarationAppElement) ?\n componentView.declarationAppElement.nativeElement :\n null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"injector\", {\n get: function () { return this._view.injector(this._nodeIndex); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"renderNode\", {\n get: function () {\n if (isPresent(this._nodeIndex) && this._view.allNodes) {\n return this._view.allNodes[this._nodeIndex];\n }\n else {\n return null;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"providerTokens\", {\n get: function () {\n var staticNodeInfo = this._staticNodeInfo;\n return isPresent(staticNodeInfo) ? staticNodeInfo.providerTokens : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"source\", {\n get: function () {\n return this._view.componentType.templateUrl + \":\" + this._tplRow + \":\" + this._tplCol;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DebugContext.prototype, \"references\", {\n get: function () {\n var _this = this;\n var varValues = {};\n var staticNodeInfo = this._staticNodeInfo;\n if (isPresent(staticNodeInfo)) {\n var refs = staticNodeInfo.refTokens;\n StringMapWrapper.forEach(refs, function (refToken, refName) {\n var varValue;\n if (isBlank(refToken)) {\n varValue = _this._view.allNodes ? _this._view.allNodes[_this._nodeIndex] : null;\n }\n else {\n varValue = _this._view.injectorGet(refToken, _this._nodeIndex, null);\n }\n varValues[refName] = varValue;\n });\n }\n return varValues;\n },\n enumerable: true,\n configurable: true\n });\n return DebugContext;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * An instance of this class is returned as an event parameter when an animation\n * callback is captured for an animation either during the start or done phase.\n *\n * ```typescript\n * @Component({\n * host: {\n * '[@myAnimationTrigger]': 'someExpression',\n * '(@myAnimationTrigger.start)': 'captureStartEvent($event)',\n * '(@myAnimationTrigger.done)': 'captureDoneEvent($event)',\n * },\n * animations: [\n * trigger(\"myAnimationTrigger\", [\n * // ...\n * ])\n * ]\n * })\n * class MyComponent {\n * someExpression: any = false;\n * captureStartEvent(event: AnimationTransitionEvent) {\n * // the toState, fromState and totalTime data is accessible from the event variable\n * }\n *\n * captureDoneEvent(event: AnimationTransitionEvent) {\n * // the toState, fromState and totalTime data is accessible from the event variable\n * }\n * }\n * ```\n *\n * @experimental Animation support is experimental.\n */\n var AnimationTransitionEvent = (function () {\n function AnimationTransitionEvent(_a) {\n var fromState = _a.fromState, toState = _a.toState, totalTime = _a.totalTime;\n this.fromState = fromState;\n this.toState = toState;\n this.totalTime = totalTime;\n }\n return AnimationTransitionEvent;\n }());\n\n var ViewAnimationMap = (function () {\n function ViewAnimationMap() {\n this._map = new Map$1();\n this._allPlayers = [];\n }\n Object.defineProperty(ViewAnimationMap.prototype, \"length\", {\n get: function () { return this.getAllPlayers().length; },\n enumerable: true,\n configurable: true\n });\n ViewAnimationMap.prototype.find = function (element, animationName) {\n var playersByAnimation = this._map.get(element);\n if (isPresent(playersByAnimation)) {\n return playersByAnimation[animationName];\n }\n };\n ViewAnimationMap.prototype.findAllPlayersByElement = function (element) {\n var el = this._map.get(element);\n return el ? StringMapWrapper.values(el) : [];\n };\n ViewAnimationMap.prototype.set = function (element, animationName, player) {\n var playersByAnimation = this._map.get(element);\n if (!isPresent(playersByAnimation)) {\n playersByAnimation = {};\n }\n var existingEntry = playersByAnimation[animationName];\n if (isPresent(existingEntry)) {\n this.remove(element, animationName);\n }\n playersByAnimation[animationName] = player;\n this._allPlayers.push(player);\n this._map.set(element, playersByAnimation);\n };\n ViewAnimationMap.prototype.getAllPlayers = function () { return this._allPlayers; };\n ViewAnimationMap.prototype.remove = function (element, animationName) {\n var playersByAnimation = this._map.get(element);\n if (isPresent(playersByAnimation)) {\n var player = playersByAnimation[animationName];\n delete playersByAnimation[animationName];\n var index = this._allPlayers.indexOf(player);\n ListWrapper.removeAt(this._allPlayers, index);\n if (StringMapWrapper.isEmpty(playersByAnimation)) {\n this._map.delete(element);\n }\n }\n };\n return ViewAnimationMap;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$18 = (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 };\n var _UNDEFINED$1 = new Object();\n var ElementInjector = (function (_super) {\n __extends$18(ElementInjector, _super);\n function ElementInjector(_view, _nodeIndex) {\n _super.call(this);\n this._view = _view;\n this._nodeIndex = _nodeIndex;\n }\n ElementInjector.prototype.get = function (token, notFoundValue) {\n if (notFoundValue === void 0) { notFoundValue = THROW_IF_NOT_FOUND; }\n var result = _UNDEFINED$1;\n if (result === _UNDEFINED$1) {\n result = this._view.injectorGet(token, this._nodeIndex, _UNDEFINED$1);\n }\n if (result === _UNDEFINED$1) {\n result = this._view.parentInjector.get(token, notFoundValue);\n }\n return result;\n };\n return ElementInjector;\n }(Injector));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$17 = (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 };\n var _scope_check = wtfCreateScope(\"AppView#check(ascii id)\");\n /**\n * Cost of making objects: http://jsperf.com/instantiate-size-of-object\n *\n */\n var AppView = (function () {\n function AppView(clazz, componentType, type, viewUtils, parentInjector, declarationAppElement, cdMode) {\n this.clazz = clazz;\n this.componentType = componentType;\n this.type = type;\n this.viewUtils = viewUtils;\n this.parentInjector = parentInjector;\n this.declarationAppElement = declarationAppElement;\n this.cdMode = cdMode;\n this.contentChildren = [];\n this.viewChildren = [];\n this.viewContainerElement = null;\n this.numberOfChecks = 0;\n this.animationPlayers = new ViewAnimationMap();\n this._animationListeners = new Map();\n this.ref = new ViewRef_(this);\n if (type === ViewType.COMPONENT || type === ViewType.HOST) {\n this.renderer = viewUtils.renderComponent(componentType);\n }\n else {\n this.renderer = declarationAppElement.parentView.renderer;\n }\n }\n Object.defineProperty(AppView.prototype, \"destroyed\", {\n get: function () { return this.cdMode === ChangeDetectorStatus.Destroyed; },\n enumerable: true,\n configurable: true\n });\n AppView.prototype.cancelActiveAnimation = function (element, animationName, removeAllAnimations) {\n if (removeAllAnimations === void 0) { removeAllAnimations = false; }\n if (removeAllAnimations) {\n this.animationPlayers.findAllPlayersByElement(element).forEach(function (player) { return player.destroy(); });\n }\n else {\n var player = this.animationPlayers.find(element, animationName);\n if (isPresent(player)) {\n player.destroy();\n }\n }\n };\n AppView.prototype.queueAnimation = function (element, animationName, player, totalTime, fromState, toState) {\n var _this = this;\n var event = new AnimationTransitionEvent({ 'fromState': fromState, 'toState': toState, 'totalTime': totalTime });\n this.animationPlayers.set(element, animationName, player);\n player.onDone(function () {\n // TODO: make this into a datastructure for done|start\n _this.triggerAnimationOutput(element, animationName, 'done', event);\n _this.animationPlayers.remove(element, animationName);\n });\n player.onStart(function () { _this.triggerAnimationOutput(element, animationName, 'start', event); });\n };\n AppView.prototype.triggerQueuedAnimations = function () {\n this.animationPlayers.getAllPlayers().forEach(function (player) {\n if (!player.hasStarted()) {\n player.play();\n }\n });\n };\n AppView.prototype.triggerAnimationOutput = function (element, animationName, phase, event) {\n var listeners = this._animationListeners.get(element);\n if (isPresent(listeners) && listeners.length) {\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n // we check for both the name in addition to the phase in the event\n // that there may be more than one @trigger on the same element\n if (listener.output.name == animationName && listener.output.phase == phase) {\n listener.handler(event);\n break;\n }\n }\n }\n };\n AppView.prototype.registerAnimationOutput = function (element, outputEvent, eventHandler) {\n var entry = new _AnimationOutputWithHandler(outputEvent, eventHandler);\n var animations = this._animationListeners.get(element);\n if (!isPresent(animations)) {\n this._animationListeners.set(element, animations = []);\n }\n animations.push(entry);\n };\n AppView.prototype.create = function (context, givenProjectableNodes, rootSelectorOrNode) {\n this.context = context;\n var projectableNodes;\n switch (this.type) {\n case ViewType.COMPONENT:\n projectableNodes = ensureSlotCount(givenProjectableNodes, this.componentType.slotCount);\n break;\n case ViewType.EMBEDDED:\n projectableNodes = this.declarationAppElement.parentView.projectableNodes;\n break;\n case ViewType.HOST:\n // Note: Don't ensure the slot count for the projectableNodes as we store\n // them only for the contained component view (which will later check the slot count...)\n projectableNodes = givenProjectableNodes;\n break;\n }\n this._hasExternalHostElement = isPresent(rootSelectorOrNode);\n this.projectableNodes = projectableNodes;\n return this.createInternal(rootSelectorOrNode);\n };\n /**\n * Overwritten by implementations.\n * Returns the AppElement for the host element for ViewType.HOST.\n */\n AppView.prototype.createInternal = function (rootSelectorOrNode) { return null; };\n AppView.prototype.init = function (rootNodesOrAppElements, allNodes, disposables, subscriptions) {\n this.rootNodesOrAppElements = rootNodesOrAppElements;\n this.allNodes = allNodes;\n this.disposables = disposables;\n this.subscriptions = subscriptions;\n if (this.type === ViewType.COMPONENT) {\n // Note: the render nodes have been attached to their host element\n // in the ViewFactory already.\n this.declarationAppElement.parentView.viewChildren.push(this);\n this.dirtyParentQueriesInternal();\n }\n };\n AppView.prototype.selectOrCreateHostElement = function (elementName, rootSelectorOrNode, debugInfo) {\n var hostElement;\n if (isPresent(rootSelectorOrNode)) {\n hostElement = this.renderer.selectRootElement(rootSelectorOrNode, debugInfo);\n }\n else {\n hostElement = this.renderer.createElement(null, elementName, debugInfo);\n }\n return hostElement;\n };\n AppView.prototype.injectorGet = function (token, nodeIndex, notFoundResult) {\n return this.injectorGetInternal(token, nodeIndex, notFoundResult);\n };\n /**\n * Overwritten by implementations\n */\n AppView.prototype.injectorGetInternal = function (token, nodeIndex, notFoundResult) {\n return notFoundResult;\n };\n AppView.prototype.injector = function (nodeIndex) {\n if (isPresent(nodeIndex)) {\n return new ElementInjector(this, nodeIndex);\n }\n else {\n return this.parentInjector;\n }\n };\n AppView.prototype.destroy = function () {\n if (this._hasExternalHostElement) {\n this.renderer.detachView(this.flatRootNodes);\n }\n else if (isPresent(this.viewContainerElement)) {\n this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this));\n }\n this._destroyRecurse();\n };\n AppView.prototype._destroyRecurse = function () {\n if (this.cdMode === ChangeDetectorStatus.Destroyed) {\n return;\n }\n var children = this.contentChildren;\n for (var i = 0; i < children.length; i++) {\n children[i]._destroyRecurse();\n }\n children = this.viewChildren;\n for (var i = 0; i < children.length; i++) {\n children[i]._destroyRecurse();\n }\n this.destroyLocal();\n this.cdMode = ChangeDetectorStatus.Destroyed;\n };\n AppView.prototype.destroyLocal = function () {\n var _this = this;\n var hostElement = this.type === ViewType.COMPONENT ? this.declarationAppElement.nativeElement : null;\n for (var i = 0; i < this.disposables.length; i++) {\n this.disposables[i]();\n }\n for (var i = 0; i < this.subscriptions.length; i++) {\n this.subscriptions[i].unsubscribe();\n }\n this.destroyInternal();\n this.dirtyParentQueriesInternal();\n if (this.animationPlayers.length == 0) {\n this.renderer.destroyView(hostElement, this.allNodes);\n }\n else {\n var player = new AnimationGroupPlayer(this.animationPlayers.getAllPlayers());\n player.onDone(function () { _this.renderer.destroyView(hostElement, _this.allNodes); });\n }\n };\n /**\n * Overwritten by implementations\n */\n AppView.prototype.destroyInternal = function () { };\n /**\n * Overwritten by implementations\n */\n AppView.prototype.detachInternal = function () { };\n AppView.prototype.detach = function () {\n var _this = this;\n this.detachInternal();\n if (this.animationPlayers.length == 0) {\n this.renderer.detachView(this.flatRootNodes);\n }\n else {\n var player = new AnimationGroupPlayer(this.animationPlayers.getAllPlayers());\n player.onDone(function () { _this.renderer.detachView(_this.flatRootNodes); });\n }\n };\n Object.defineProperty(AppView.prototype, \"changeDetectorRef\", {\n get: function () { return this.ref; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppView.prototype, \"parent\", {\n get: function () {\n return isPresent(this.declarationAppElement) ? this.declarationAppElement.parentView : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppView.prototype, \"flatRootNodes\", {\n get: function () { return flattenNestedViewRenderNodes(this.rootNodesOrAppElements); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppView.prototype, \"lastRootNode\", {\n get: function () {\n var lastNode = this.rootNodesOrAppElements.length > 0 ?\n this.rootNodesOrAppElements[this.rootNodesOrAppElements.length - 1] :\n null;\n return _findLastRenderNode(lastNode);\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Overwritten by implementations\n */\n AppView.prototype.dirtyParentQueriesInternal = function () { };\n AppView.prototype.detectChanges = function (throwOnChange) {\n var s = _scope_check(this.clazz);\n if (this.cdMode === ChangeDetectorStatus.Checked ||\n this.cdMode === ChangeDetectorStatus.Errored)\n return;\n if (this.cdMode === ChangeDetectorStatus.Destroyed) {\n this.throwDestroyedError('detectChanges');\n }\n this.detectChangesInternal(throwOnChange);\n if (this.cdMode === ChangeDetectorStatus.CheckOnce)\n this.cdMode = ChangeDetectorStatus.Checked;\n this.numberOfChecks++;\n wtfLeave(s);\n };\n /**\n * Overwritten by implementations\n */\n AppView.prototype.detectChangesInternal = function (throwOnChange) {\n this.detectContentChildrenChanges(throwOnChange);\n this.detectViewChildrenChanges(throwOnChange);\n };\n AppView.prototype.detectContentChildrenChanges = function (throwOnChange) {\n for (var i = 0; i < this.contentChildren.length; ++i) {\n var child = this.contentChildren[i];\n if (child.cdMode === ChangeDetectorStatus.Detached)\n continue;\n child.detectChanges(throwOnChange);\n }\n };\n AppView.prototype.detectViewChildrenChanges = function (throwOnChange) {\n for (var i = 0; i < this.viewChildren.length; ++i) {\n var child = this.viewChildren[i];\n if (child.cdMode === ChangeDetectorStatus.Detached)\n continue;\n child.detectChanges(throwOnChange);\n }\n };\n AppView.prototype.markContentChildAsMoved = function (renderAppElement) { this.dirtyParentQueriesInternal(); };\n AppView.prototype.addToContentChildren = function (renderAppElement) {\n renderAppElement.parentView.contentChildren.push(this);\n this.viewContainerElement = renderAppElement;\n this.dirtyParentQueriesInternal();\n };\n AppView.prototype.removeFromContentChildren = function (renderAppElement) {\n ListWrapper.remove(renderAppElement.parentView.contentChildren, this);\n this.dirtyParentQueriesInternal();\n this.viewContainerElement = null;\n };\n AppView.prototype.markAsCheckOnce = function () { this.cdMode = ChangeDetectorStatus.CheckOnce; };\n AppView.prototype.markPathToRootAsCheckOnce = function () {\n var c = this;\n while (isPresent(c) && c.cdMode !== ChangeDetectorStatus.Detached) {\n if (c.cdMode === ChangeDetectorStatus.Checked) {\n c.cdMode = ChangeDetectorStatus.CheckOnce;\n }\n var parentEl = c.type === ViewType.COMPONENT ? c.declarationAppElement : c.viewContainerElement;\n c = isPresent(parentEl) ? parentEl.parentView : null;\n }\n };\n AppView.prototype.eventHandler = function (cb) { return cb; };\n AppView.prototype.throwDestroyedError = function (details) { throw new ViewDestroyedError(details); };\n return AppView;\n }());\n var DebugAppView = (function (_super) {\n __extends$17(DebugAppView, _super);\n function DebugAppView(clazz, componentType, type, viewUtils, parentInjector, declarationAppElement, cdMode, staticNodeDebugInfos) {\n _super.call(this, clazz, componentType, type, viewUtils, parentInjector, declarationAppElement, cdMode);\n this.staticNodeDebugInfos = staticNodeDebugInfos;\n this._currentDebugContext = null;\n }\n DebugAppView.prototype.create = function (context, givenProjectableNodes, rootSelectorOrNode) {\n this._resetDebug();\n try {\n return _super.prototype.create.call(this, context, givenProjectableNodes, rootSelectorOrNode);\n }\n catch (e) {\n this._rethrowWithContext(e);\n throw e;\n }\n };\n DebugAppView.prototype.injectorGet = function (token, nodeIndex, notFoundResult) {\n this._resetDebug();\n try {\n return _super.prototype.injectorGet.call(this, token, nodeIndex, notFoundResult);\n }\n catch (e) {\n this._rethrowWithContext(e);\n throw e;\n }\n };\n DebugAppView.prototype.detach = function () {\n this._resetDebug();\n try {\n _super.prototype.detach.call(this);\n }\n catch (e) {\n this._rethrowWithContext(e);\n throw e;\n }\n };\n DebugAppView.prototype.destroyLocal = function () {\n this._resetDebug();\n try {\n _super.prototype.destroyLocal.call(this);\n }\n catch (e) {\n this._rethrowWithContext(e);\n throw e;\n }\n };\n DebugAppView.prototype.detectChanges = function (throwOnChange) {\n this._resetDebug();\n try {\n _super.prototype.detectChanges.call(this, throwOnChange);\n }\n catch (e) {\n this._rethrowWithContext(e);\n throw e;\n }\n };\n DebugAppView.prototype._resetDebug = function () { this._currentDebugContext = null; };\n DebugAppView.prototype.debug = function (nodeIndex, rowNum, colNum) {\n return this._currentDebugContext = new DebugContext(this, nodeIndex, rowNum, colNum);\n };\n DebugAppView.prototype._rethrowWithContext = function (e) {\n if (!(e instanceof ViewWrappedError)) {\n if (!(e instanceof ExpressionChangedAfterItHasBeenCheckedError)) {\n this.cdMode = ChangeDetectorStatus.Errored;\n }\n if (isPresent(this._currentDebugContext)) {\n throw new ViewWrappedError(e, this._currentDebugContext);\n }\n }\n };\n DebugAppView.prototype.eventHandler = function (cb) {\n var _this = this;\n var superHandler = _super.prototype.eventHandler.call(this, cb);\n return function (event) {\n _this._resetDebug();\n try {\n return superHandler(event);\n }\n catch (e) {\n _this._rethrowWithContext(e);\n throw e;\n }\n };\n };\n return DebugAppView;\n }(AppView));\n function _findLastRenderNode(node) {\n var lastNode;\n if (node instanceof AppElement) {\n var appEl = node;\n lastNode = appEl.nativeElement;\n if (isPresent(appEl.nestedViews)) {\n // Note: Views might have no root nodes at all!\n for (var i = appEl.nestedViews.length - 1; i >= 0; i--) {\n var nestedView = appEl.nestedViews[i];\n if (nestedView.rootNodesOrAppElements.length > 0) {\n lastNode = _findLastRenderNode(nestedView.rootNodesOrAppElements[nestedView.rootNodesOrAppElements.length - 1]);\n }\n }\n }\n }\n else {\n lastNode = node;\n }\n return lastNode;\n }\n var _AnimationOutputWithHandler = (function () {\n function _AnimationOutputWithHandler(output, handler) {\n this.output = output;\n this.handler = handler;\n }\n return _AnimationOutputWithHandler;\n }());\n\n var __core_private__ = {\n isDefaultChangeDetectionStrategy: isDefaultChangeDetectionStrategy,\n ChangeDetectorStatus: ChangeDetectorStatus,\n CHANGE_DETECTION_STRATEGY_VALUES: CHANGE_DETECTION_STRATEGY_VALUES,\n constructDependencies: constructDependencies,\n LifecycleHooks: LifecycleHooks,\n LIFECYCLE_HOOKS_VALUES: LIFECYCLE_HOOKS_VALUES,\n ReflectorReader: ReflectorReader,\n CodegenComponentFactoryResolver: CodegenComponentFactoryResolver,\n AppElement: AppElement,\n AppView: AppView,\n DebugAppView: DebugAppView,\n NgModuleInjector: NgModuleInjector,\n ViewType: ViewType,\n MAX_INTERPOLATION_VALUES: MAX_INTERPOLATION_VALUES,\n checkBinding: checkBinding,\n flattenNestedViewRenderNodes: flattenNestedViewRenderNodes,\n interpolate: interpolate,\n ViewUtils: ViewUtils,\n VIEW_ENCAPSULATION_VALUES: VIEW_ENCAPSULATION_VALUES,\n ViewMetadata: ViewMetadata,\n DebugContext: DebugContext,\n StaticNodeDebugInfo: StaticNodeDebugInfo,\n devModeEqual: devModeEqual,\n UNINITIALIZED: UNINITIALIZED,\n ValueUnwrapper: ValueUnwrapper,\n RenderDebugInfo: RenderDebugInfo,\n TemplateRef_: TemplateRef_,\n ReflectionCapabilities: ReflectionCapabilities,\n makeDecorator: makeDecorator,\n DebugDomRootRenderer: DebugDomRootRenderer,\n EMPTY_ARRAY: EMPTY_ARRAY,\n EMPTY_MAP: EMPTY_MAP,\n pureProxy1: pureProxy1,\n pureProxy2: pureProxy2,\n pureProxy3: pureProxy3,\n pureProxy4: pureProxy4,\n pureProxy5: pureProxy5,\n pureProxy6: pureProxy6,\n pureProxy7: pureProxy7,\n pureProxy8: pureProxy8,\n pureProxy9: pureProxy9,\n pureProxy10: pureProxy10,\n castByValue: castByValue,\n Console: Console,\n reflector: reflector,\n Reflector: Reflector,\n NoOpAnimationPlayer: NoOpAnimationPlayer,\n AnimationPlayer: AnimationPlayer,\n AnimationSequencePlayer: AnimationSequencePlayer,\n AnimationGroupPlayer: AnimationGroupPlayer,\n AnimationKeyframe: AnimationKeyframe,\n prepareFinalAnimationStyles: prepareFinalAnimationStyles,\n balanceAnimationKeyframes: balanceAnimationKeyframes,\n flattenStyles: flattenStyles,\n clearStyles: clearStyles,\n renderStyles: renderStyles,\n collectAndResolveStyles: collectAndResolveStyles,\n AnimationStyles: AnimationStyles,\n AnimationOutput: AnimationOutput,\n ANY_STATE: ANY_STATE,\n DEFAULT_STATE: DEFAULT_STATE,\n EMPTY_STATE: EMPTY_STATE,\n FILL_STYLE_FLAG: FILL_STYLE_FLAG,\n ComponentStillLoadingError: ComponentStillLoadingError\n };\n\n exports.createPlatform = createPlatform;\n exports.assertPlatform = assertPlatform;\n exports.destroyPlatform = destroyPlatform;\n exports.getPlatform = getPlatform;\n exports.PlatformRef = PlatformRef;\n exports.ApplicationRef = ApplicationRef;\n exports.enableProdMode = enableProdMode;\n exports.isDevMode = isDevMode;\n exports.createPlatformFactory = createPlatformFactory;\n exports.APP_ID = APP_ID;\n exports.PACKAGE_ROOT_URL = PACKAGE_ROOT_URL;\n exports.PLATFORM_INITIALIZER = PLATFORM_INITIALIZER;\n exports.APP_BOOTSTRAP_LISTENER = APP_BOOTSTRAP_LISTENER;\n exports.APP_INITIALIZER = APP_INITIALIZER;\n exports.ApplicationInitStatus = ApplicationInitStatus;\n exports.DebugElement = DebugElement;\n exports.DebugNode = DebugNode;\n exports.asNativeElements = asNativeElements;\n exports.getDebugNode = getDebugNode;\n exports.Testability = Testability;\n exports.TestabilityRegistry = TestabilityRegistry;\n exports.setTestabilityGetter = setTestabilityGetter;\n exports.TRANSLATIONS = TRANSLATIONS;\n exports.TRANSLATIONS_FORMAT = TRANSLATIONS_FORMAT;\n exports.LOCALE_ID = LOCALE_ID;\n exports.ApplicationModule = ApplicationModule;\n exports.wtfCreateScope = wtfCreateScope;\n exports.wtfLeave = wtfLeave;\n exports.wtfStartTimeRange = wtfStartTimeRange;\n exports.wtfEndTimeRange = wtfEndTimeRange;\n exports.Type = Type;\n exports.EventEmitter = EventEmitter;\n exports.ErrorHandler = ErrorHandler;\n exports.AnimationTransitionEvent = AnimationTransitionEvent;\n exports.AnimationPlayer = AnimationPlayer;\n exports.Sanitizer = Sanitizer;\n exports.Component = Component;\n exports.Directive = Directive;\n exports.Attribute = Attribute;\n exports.ContentChildren = ContentChildren;\n exports.ContentChild = ContentChild;\n exports.ViewChildren = ViewChildren;\n exports.ViewChild = ViewChild;\n exports.Pipe = Pipe;\n exports.Input = Input;\n exports.Output = Output;\n exports.HostBinding = HostBinding;\n exports.HostListener = HostListener;\n exports.NgModule = NgModule;\n exports.ANALYZE_FOR_ENTRY_COMPONENTS = ANALYZE_FOR_ENTRY_COMPONENTS;\n exports.AttributeMetadata = AttributeMetadata;\n exports.ContentChildMetadata = ContentChildMetadata;\n exports.ContentChildrenMetadata = ContentChildrenMetadata;\n exports.QueryMetadata = QueryMetadata;\n exports.ViewChildMetadata = ViewChildMetadata;\n exports.ViewChildrenMetadata = ViewChildrenMetadata;\n exports.ViewQueryMetadata = ViewQueryMetadata;\n exports.ComponentMetadata = ComponentMetadata;\n exports.DirectiveMetadata = DirectiveMetadata;\n exports.HostBindingMetadata = HostBindingMetadata;\n exports.HostListenerMetadata = HostListenerMetadata;\n exports.InputMetadata = InputMetadata;\n exports.OutputMetadata = OutputMetadata;\n exports.PipeMetadata = PipeMetadata;\n exports.AfterContentChecked = AfterContentChecked;\n exports.AfterContentInit = AfterContentInit;\n exports.AfterViewChecked = AfterViewChecked;\n exports.AfterViewInit = AfterViewInit;\n exports.DoCheck = DoCheck;\n exports.OnChanges = OnChanges;\n exports.OnDestroy = OnDestroy;\n exports.OnInit = OnInit;\n exports.CUSTOM_ELEMENTS_SCHEMA = CUSTOM_ELEMENTS_SCHEMA;\n exports.NO_ERRORS_SCHEMA = NO_ERRORS_SCHEMA;\n exports.NgModuleMetadata = NgModuleMetadata;\n exports.Class = Class;\n exports.HostMetadata = HostMetadata;\n exports.InjectMetadata = InjectMetadata;\n exports.InjectableMetadata = InjectableMetadata;\n exports.OptionalMetadata = OptionalMetadata;\n exports.SelfMetadata = SelfMetadata;\n exports.SkipSelfMetadata = SkipSelfMetadata;\n exports.forwardRef = forwardRef;\n exports.resolveForwardRef = resolveForwardRef;\n exports.Injector = Injector;\n exports.ReflectiveInjector = ReflectiveInjector;\n exports.ResolvedReflectiveFactory = ResolvedReflectiveFactory;\n exports.ReflectiveKey = ReflectiveKey;\n exports.OpaqueToken = OpaqueToken;\n exports.Inject = Inject;\n exports.Optional = Optional;\n exports.Injectable = Injectable;\n exports.Self = Self;\n exports.Host = Host;\n exports.SkipSelf = SkipSelf;\n exports.NgZone = NgZone;\n exports.RenderComponentType = RenderComponentType;\n exports.Renderer = Renderer;\n exports.RootRenderer = RootRenderer;\n exports.COMPILER_OPTIONS = COMPILER_OPTIONS;\n exports.Compiler = Compiler;\n exports.CompilerFactory = CompilerFactory;\n exports.ModuleWithComponentFactories = ModuleWithComponentFactories;\n exports.ComponentFactory = ComponentFactory;\n exports.ComponentRef = ComponentRef;\n exports.ComponentFactoryResolver = ComponentFactoryResolver;\n exports.ElementRef = ElementRef;\n exports.NgModuleFactory = NgModuleFactory;\n exports.NgModuleRef = NgModuleRef;\n exports.NgModuleFactoryLoader = NgModuleFactoryLoader;\n exports.QueryList = QueryList;\n exports.SystemJsNgModuleLoader = SystemJsNgModuleLoader;\n exports.SystemJsNgModuleLoaderConfig = SystemJsNgModuleLoaderConfig;\n exports.TemplateRef = TemplateRef;\n exports.ViewContainerRef = ViewContainerRef;\n exports.EmbeddedViewRef = EmbeddedViewRef;\n exports.ViewRef = ViewRef;\n exports.ChangeDetectorRef = ChangeDetectorRef;\n exports.CollectionChangeRecord = CollectionChangeRecord;\n exports.DefaultIterableDiffer = DefaultIterableDiffer;\n exports.IterableDiffers = IterableDiffers;\n exports.KeyValueChangeRecord = KeyValueChangeRecord;\n exports.KeyValueDiffers = KeyValueDiffers;\n exports.SimpleChange = SimpleChange;\n exports.WrappedValue = WrappedValue;\n exports.platformCore = platformCore;\n exports.__core_private__ = __core_private__;\n exports.AUTO_STYLE = AUTO_STYLE;\n exports.AnimationEntryMetadata = AnimationEntryMetadata;\n exports.AnimationStateMetadata = AnimationStateMetadata;\n exports.AnimationStateDeclarationMetadata = AnimationStateDeclarationMetadata;\n exports.AnimationStateTransitionMetadata = AnimationStateTransitionMetadata;\n exports.AnimationMetadata = AnimationMetadata;\n exports.AnimationKeyframesSequenceMetadata = AnimationKeyframesSequenceMetadata;\n exports.AnimationStyleMetadata = AnimationStyleMetadata;\n exports.AnimationAnimateMetadata = AnimationAnimateMetadata;\n exports.AnimationWithStepsMetadata = AnimationWithStepsMetadata;\n exports.AnimationSequenceMetadata = AnimationSequenceMetadata;\n exports.AnimationGroupMetadata = AnimationGroupMetadata;\n exports.animate = animate;\n exports.group = group;\n exports.sequence = sequence;\n exports.style = style;\n exports.state = state;\n exports.keyframes = keyframes;\n exports.transition = transition;\n exports.trigger = trigger;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/core/bundles/core.umd.js\n ** module id = 313\n ** module chunks = 0\n **/","\"use strict\";\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 Observable_1 = require('./Observable');\nvar Subscriber_1 = require('./Subscriber');\nvar Subscription_1 = require('./Subscription');\nvar ObjectUnsubscribedError_1 = require('./util/ObjectUnsubscribedError');\nvar SubjectSubscription_1 = require('./SubjectSubscription');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\n/**\n * @class SubjectSubscriber<T>\n */\nvar SubjectSubscriber = (function (_super) {\n __extends(SubjectSubscriber, _super);\n function SubjectSubscriber(destination) {\n _super.call(this, destination);\n this.destination = destination;\n }\n return SubjectSubscriber;\n}(Subscriber_1.Subscriber));\nexports.SubjectSubscriber = SubjectSubscriber;\n/**\n * @class Subject<T>\n */\nvar Subject = (function (_super) {\n __extends(Subject, _super);\n function Subject() {\n _super.call(this);\n this.observers = [];\n this.closed = false;\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n Subject.prototype[rxSubscriber_1.$$rxSubscriber] = function () {\n return new SubjectSubscriber(this);\n };\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype.next = function (value) {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n if (!this.isStopped) {\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].next(value);\n }\n }\n };\n Subject.prototype.error = function (err) {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n this.hasError = true;\n this.thrownError = err;\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].error(err);\n }\n this.observers.length = 0;\n };\n Subject.prototype.complete = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n this.isStopped = true;\n var observers = this.observers;\n var len = observers.length;\n var copy = observers.slice();\n for (var i = 0; i < len; i++) {\n copy[i].complete();\n }\n this.observers.length = 0;\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = true;\n this.closed = true;\n this.observers = null;\n };\n Subject.prototype._subscribe = function (subscriber) {\n if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n else if (this.hasError) {\n subscriber.error(this.thrownError);\n return Subscription_1.Subscription.EMPTY;\n }\n else if (this.isStopped) {\n subscriber.complete();\n return Subscription_1.Subscription.EMPTY;\n }\n else {\n this.observers.push(subscriber);\n return new SubjectSubscription_1.SubjectSubscription(this, subscriber);\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable_1.Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable_1.Observable));\nexports.Subject = Subject;\n/**\n * @class AnonymousSubject<T>\n */\nvar AnonymousSubject = (function (_super) {\n __extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n _super.call(this);\n this.destination = destination;\n this.source = source;\n }\n AnonymousSubject.prototype.next = function (value) {\n var destination = this.destination;\n if (destination && destination.next) {\n destination.next(value);\n }\n };\n AnonymousSubject.prototype.error = function (err) {\n var destination = this.destination;\n if (destination && destination.error) {\n this.destination.error(err);\n }\n };\n AnonymousSubject.prototype.complete = function () {\n var destination = this.destination;\n if (destination && destination.complete) {\n this.destination.complete();\n }\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var source = this.source;\n if (source) {\n return this.source.subscribe(subscriber);\n }\n else {\n return Subscription_1.Subscription.EMPTY;\n }\n };\n return AnonymousSubject;\n}(Subject));\nexports.AnonymousSubject = AnonymousSubject;\n//# sourceMappingURL=Subject.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/Subject.js\n ** module id = 314\n ** module chunks = 0\n **/","\"use strict\";\nvar root_1 = require('./util/root');\nvar toSubscriber_1 = require('./util/toSubscriber');\nvar observable_1 = require('./symbol/observable');\n/**\n * A representation of any set of values over any amount of time. This the most basic building block\n * of RxJS.\n *\n * @class Observable<T>\n */\nvar Observable = (function () {\n /**\n * @constructor\n * @param {Function} subscribe the function that is called when the Observable is\n * initially subscribed to. This function is given a Subscriber, to which new values\n * can be `next`ed, or an `error` method can be called to raise an error, or\n * `complete` can be called to notify of a successful completion.\n */\n function Observable(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n /**\n * Creates a new Observable, with this Observable as the source, and the passed\n * operator defined as the new observable's operator.\n * @method lift\n * @param {Operator} operator the operator defining the operation to take on the observable\n * @return {Observable} a new observable with the Operator applied\n */\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n /**\n * Registers handlers for handling emitted values, error and completions from the observable, and\n * executes the observable's subscriber function, which will take action to set up the underlying data stream\n * @method subscribe\n * @param {PartialObserver|Function} observerOrNext (optional) either an observer defining all functions to be called,\n * or the first of three possible handlers, which is the handler for each value emitted from the observable.\n * @param {Function} error (optional) a handler for a terminal event resulting from an error. If no error handler is provided,\n * the error will be thrown as unhandled\n * @param {Function} complete (optional) a handler for a terminal event resulting from successful completion.\n * @return {ISubscription} a subscription reference to the registered handlers\n */\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var operator = this.operator;\n var sink = toSubscriber_1.toSubscriber(observerOrNext, error, complete);\n if (operator) {\n operator.call(sink, this);\n }\n else {\n sink.add(this._subscribe(sink));\n }\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n return sink;\n };\n /**\n * @method forEach\n * @param {Function} next a handler for each value emitted by the observable\n * @param {PromiseConstructor} [PromiseCtor] a constructor function used to instantiate the Promise\n * @return {Promise} a promise that either resolves on observable completion or\n * rejects with the handled error\n */\n Observable.prototype.forEach = function (next, PromiseCtor) {\n var _this = this;\n if (!PromiseCtor) {\n if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) {\n PromiseCtor = root_1.root.Rx.config.Promise;\n }\n else if (root_1.root.Promise) {\n PromiseCtor = root_1.root.Promise;\n }\n }\n if (!PromiseCtor) {\n throw new Error('no Promise impl found');\n }\n return new PromiseCtor(function (resolve, reject) {\n var subscription = _this.subscribe(function (value) {\n if (subscription) {\n // if there is a subscription, then we can surmise\n // the next handling is asynchronous. Any errors thrown\n // need to be rejected explicitly and unsubscribe must be\n // called manually\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscription.unsubscribe();\n }\n }\n else {\n // if there is NO subscription, then we're getting a nexted\n // value synchronously during subscription. We can just call it.\n // If it errors, Observable's `subscribe` will ensure the\n // unsubscription logic is called, then synchronously rethrow the error.\n // After that, Promise will trap the error and send it\n // down the rejection path.\n next(value);\n }\n }, reject, resolve);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n return this.source.subscribe(subscriber);\n };\n /**\n * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\n * @method Symbol.observable\n * @return {Observable} this instance of the observable\n */\n Observable.prototype[observable_1.$$observable] = function () {\n return this;\n };\n // HACK: Since TypeScript inherits static properties too, we have to\n // fight against TypeScript here so Subject can have a different static create signature\n /**\n * Creates a new cold Observable by calling the Observable constructor\n * @static true\n * @owner Observable\n * @method create\n * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\n * @return {Observable} a new cold observable\n */\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexports.Observable = Observable;\n//# sourceMappingURL=Observable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/Observable.js\n ** module id = 315\n ** module chunks = 0\n **/","\"use strict\";\nvar objectTypes = {\n 'boolean': false,\n 'function': true,\n 'object': true,\n 'number': false,\n 'string': false,\n 'undefined': false\n};\nexports.root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window);\n/* tslint:disable:no-unused-variable */\nvar freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;\nvar freeModule = objectTypes[typeof module] && module && !module.nodeType && module;\nvar freeGlobal = objectTypes[typeof global] && global;\nif (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {\n exports.root = freeGlobal;\n}\n//# sourceMappingURL=root.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/root.js\n ** module id = 316\n ** module chunks = 0\n **/","module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tmodule.children = [];\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n}\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/module.js\n ** module id = 317\n ** module chunks = 0\n **/","\"use strict\";\nvar Subscriber_1 = require('../Subscriber');\nvar rxSubscriber_1 = require('../symbol/rxSubscriber');\nfunction toSubscriber(nextOrObserver, error, complete) {\n if (nextOrObserver) {\n if (nextOrObserver instanceof Subscriber_1.Subscriber) {\n return nextOrObserver;\n }\n if (nextOrObserver[rxSubscriber_1.$$rxSubscriber]) {\n return nextOrObserver[rxSubscriber_1.$$rxSubscriber]();\n }\n }\n if (!nextOrObserver && !error && !complete) {\n return new Subscriber_1.Subscriber();\n }\n return new Subscriber_1.Subscriber(nextOrObserver, error, complete);\n}\nexports.toSubscriber = toSubscriber;\n//# sourceMappingURL=toSubscriber.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/toSubscriber.js\n ** module id = 318\n ** module chunks = 0\n **/","\"use strict\";\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 isFunction_1 = require('./util/isFunction');\nvar Subscription_1 = require('./Subscription');\nvar Observer_1 = require('./Observer');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\n/**\n * Implements the {@link Observer} interface and extends the\n * {@link Subscription} class. While the {@link Observer} is the public API for\n * consuming the values of an {@link Observable}, all Observers get converted to\n * a Subscriber, in order to provide Subscription-like capabilities such as\n * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for\n * implementing operators, but it is rarely used as a public API.\n *\n * @class Subscriber<T>\n */\nvar Subscriber = (function (_super) {\n __extends(Subscriber, _super);\n /**\n * @param {Observer|function(value: T): void} [destinationOrNext] A partially\n * defined Observer or a `next` callback function.\n * @param {function(e: ?any): void} [error] The `error` callback of an\n * Observer.\n * @param {function(): void} [complete] The `complete` callback of an\n * Observer.\n */\n function Subscriber(destinationOrNext, error, complete) {\n _super.call(this);\n this.syncErrorValue = null;\n this.syncErrorThrown = false;\n this.syncErrorThrowable = false;\n this.isStopped = false;\n switch (arguments.length) {\n case 0:\n this.destination = Observer_1.empty;\n break;\n case 1:\n if (!destinationOrNext) {\n this.destination = Observer_1.empty;\n break;\n }\n if (typeof destinationOrNext === 'object') {\n if (destinationOrNext instanceof Subscriber) {\n this.destination = destinationOrNext;\n this.destination.add(this);\n }\n else {\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext);\n }\n break;\n }\n default:\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext, error, complete);\n break;\n }\n }\n Subscriber.prototype[rxSubscriber_1.$$rxSubscriber] = function () { return this; };\n /**\n * A static factory for a Subscriber, given a (potentially partial) definition\n * of an Observer.\n * @param {function(x: ?T): void} [next] The `next` callback of an Observer.\n * @param {function(e: ?any): void} [error] The `error` callback of an\n * Observer.\n * @param {function(): void} [complete] The `complete` callback of an\n * Observer.\n * @return {Subscriber<T>} A Subscriber wrapping the (partially defined)\n * Observer represented by the given arguments.\n */\n Subscriber.create = function (next, error, complete) {\n var subscriber = new Subscriber(next, error, complete);\n subscriber.syncErrorThrowable = false;\n return subscriber;\n };\n /**\n * The {@link Observer} callback to receive notifications of type `next` from\n * the Observable, with a value. The Observable may call this method 0 or more\n * times.\n * @param {T} [value] The `next` value.\n * @return {void}\n */\n Subscriber.prototype.next = function (value) {\n if (!this.isStopped) {\n this._next(value);\n }\n };\n /**\n * The {@link Observer} callback to receive notifications of type `error` from\n * the Observable, with an attached {@link Error}. Notifies the Observer that\n * the Observable has experienced an error condition.\n * @param {any} [err] The `error` exception.\n * @return {void}\n */\n Subscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n this.isStopped = true;\n this._error(err);\n }\n };\n /**\n * The {@link Observer} callback to receive a valueless notification of type\n * `complete` from the Observable. Notifies the Observer that the Observable\n * has finished sending push-based notifications.\n * @return {void}\n */\n Subscriber.prototype.complete = function () {\n if (!this.isStopped) {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n this.destination.error(err);\n this.unsubscribe();\n };\n Subscriber.prototype._complete = function () {\n this.destination.complete();\n this.unsubscribe();\n };\n return Subscriber;\n}(Subscription_1.Subscription));\nexports.Subscriber = Subscriber;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SafeSubscriber = (function (_super) {\n __extends(SafeSubscriber, _super);\n function SafeSubscriber(_parent, observerOrNext, error, complete) {\n _super.call(this);\n this._parent = _parent;\n var next;\n var context = this;\n if (isFunction_1.isFunction(observerOrNext)) {\n next = observerOrNext;\n }\n else if (observerOrNext) {\n context = observerOrNext;\n next = observerOrNext.next;\n error = observerOrNext.error;\n complete = observerOrNext.complete;\n if (isFunction_1.isFunction(context.unsubscribe)) {\n this.add(context.unsubscribe.bind(context));\n }\n context.unsubscribe = this.unsubscribe.bind(this);\n }\n this._context = context;\n this._next = next;\n this._error = error;\n this._complete = complete;\n }\n SafeSubscriber.prototype.next = function (value) {\n if (!this.isStopped && this._next) {\n var _parent = this._parent;\n if (!_parent.syncErrorThrowable) {\n this.__tryOrUnsub(this._next, value);\n }\n else if (this.__tryOrSetError(_parent, this._next, value)) {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.error = function (err) {\n if (!this.isStopped) {\n var _parent = this._parent;\n if (this._error) {\n if (!_parent.syncErrorThrowable) {\n this.__tryOrUnsub(this._error, err);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parent, this._error, err);\n this.unsubscribe();\n }\n }\n else if (!_parent.syncErrorThrowable) {\n this.unsubscribe();\n throw err;\n }\n else {\n _parent.syncErrorValue = err;\n _parent.syncErrorThrown = true;\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.complete = function () {\n if (!this.isStopped) {\n var _parent = this._parent;\n if (this._complete) {\n if (!_parent.syncErrorThrowable) {\n this.__tryOrUnsub(this._complete);\n this.unsubscribe();\n }\n else {\n this.__tryOrSetError(_parent, this._complete);\n this.unsubscribe();\n }\n }\n else {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n this.unsubscribe();\n throw err;\n }\n };\n SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {\n try {\n fn.call(this._context, value);\n }\n catch (err) {\n parent.syncErrorValue = err;\n parent.syncErrorThrown = true;\n return true;\n }\n return false;\n };\n SafeSubscriber.prototype._unsubscribe = function () {\n var _parent = this._parent;\n this._context = null;\n this._parent = null;\n _parent.unsubscribe();\n };\n return SafeSubscriber;\n}(Subscriber));\n//# sourceMappingURL=Subscriber.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/Subscriber.js\n ** module id = 319\n ** module chunks = 0\n **/","\"use strict\";\nfunction isFunction(x) {\n return typeof x === 'function';\n}\nexports.isFunction = isFunction;\n//# sourceMappingURL=isFunction.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/isFunction.js\n ** module id = 320\n ** module chunks = 0\n **/","\"use strict\";\nvar isArray_1 = require('./util/isArray');\nvar isObject_1 = require('./util/isObject');\nvar isFunction_1 = require('./util/isFunction');\nvar tryCatch_1 = require('./util/tryCatch');\nvar errorObject_1 = require('./util/errorObject');\nvar UnsubscriptionError_1 = require('./util/UnsubscriptionError');\n/**\n * Represents a disposable resource, such as the execution of an Observable. A\n * Subscription has one important method, `unsubscribe`, that takes no argument\n * and just disposes the resource held by the subscription.\n *\n * Additionally, subscriptions may be grouped together through the `add()`\n * method, which will attach a child Subscription to the current Subscription.\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\n * will be unsubscribed as well.\n *\n * @class Subscription\n */\nvar Subscription = (function () {\n /**\n * @param {function(): void} [unsubscribe] A function describing how to\n * perform the disposal of resources when the `unsubscribe` method is called.\n */\n function Subscription(unsubscribe) {\n /**\n * A flag to indicate whether this Subscription has already been unsubscribed.\n * @type {boolean}\n */\n this.closed = false;\n if (unsubscribe) {\n this._unsubscribe = unsubscribe;\n }\n }\n /**\n * Disposes the resources held by the subscription. May, for instance, cancel\n * an ongoing Observable execution or cancel any other type of work that\n * started when the Subscription was created.\n * @return {void}\n */\n Subscription.prototype.unsubscribe = function () {\n var hasErrors = false;\n var errors;\n if (this.closed) {\n return;\n }\n this.closed = true;\n var _a = this, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;\n this._subscriptions = null;\n if (isFunction_1.isFunction(_unsubscribe)) {\n var trial = tryCatch_1.tryCatch(_unsubscribe).call(this);\n if (trial === errorObject_1.errorObject) {\n hasErrors = true;\n (errors = errors || []).push(errorObject_1.errorObject.e);\n }\n }\n if (isArray_1.isArray(_subscriptions)) {\n var index = -1;\n var len = _subscriptions.length;\n while (++index < len) {\n var sub = _subscriptions[index];\n if (isObject_1.isObject(sub)) {\n var trial = tryCatch_1.tryCatch(sub.unsubscribe).call(sub);\n if (trial === errorObject_1.errorObject) {\n hasErrors = true;\n errors = errors || [];\n var err = errorObject_1.errorObject.e;\n if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {\n errors = errors.concat(err.errors);\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n }\n if (hasErrors) {\n throw new UnsubscriptionError_1.UnsubscriptionError(errors);\n }\n };\n /**\n * Adds a tear down to be called during the unsubscribe() of this\n * Subscription.\n *\n * If the tear down being added is a subscription that is already\n * unsubscribed, is the same reference `add` is being called on, or is\n * `Subscription.EMPTY`, it will not be added.\n *\n * If this subscription is already in an `closed` state, the passed\n * tear down logic will be executed immediately.\n *\n * @param {TeardownLogic} teardown The additional logic to execute on\n * teardown.\n * @return {Subscription} Returns the Subscription used or created to be\n * added to the inner subscriptions list. This Subscription can be used with\n * `remove()` to remove the passed teardown logic from the inner subscriptions\n * list.\n */\n Subscription.prototype.add = function (teardown) {\n if (!teardown || (teardown === Subscription.EMPTY)) {\n return Subscription.EMPTY;\n }\n if (teardown === this) {\n return this;\n }\n var sub = teardown;\n switch (typeof teardown) {\n case 'function':\n sub = new Subscription(teardown);\n case 'object':\n if (sub.closed || typeof sub.unsubscribe !== 'function') {\n break;\n }\n else if (this.closed) {\n sub.unsubscribe();\n }\n else {\n (this._subscriptions || (this._subscriptions = [])).push(sub);\n }\n break;\n default:\n throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n return sub;\n };\n /**\n * Removes a Subscription from the internal list of subscriptions that will\n * unsubscribe during the unsubscribe process of this Subscription.\n * @param {Subscription} subscription The subscription to remove.\n * @return {void}\n */\n Subscription.prototype.remove = function (subscription) {\n // HACK: This might be redundant because of the logic in `add()`\n if (subscription == null || (subscription === this) || (subscription === Subscription.EMPTY)) {\n return;\n }\n var subscriptions = this._subscriptions;\n if (subscriptions) {\n var subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n };\n Subscription.EMPTY = (function (empty) {\n empty.closed = true;\n return empty;\n }(new Subscription()));\n return Subscription;\n}());\nexports.Subscription = Subscription;\n//# sourceMappingURL=Subscription.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/Subscription.js\n ** module id = 321\n ** module chunks = 0\n **/","\"use strict\";\nexports.isArray = Array.isArray || (function (x) { return x && typeof x.length === 'number'; });\n//# sourceMappingURL=isArray.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/isArray.js\n ** module id = 322\n ** module chunks = 0\n **/","\"use strict\";\nfunction isObject(x) {\n return x != null && typeof x === 'object';\n}\nexports.isObject = isObject;\n//# sourceMappingURL=isObject.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/isObject.js\n ** module id = 323\n ** module chunks = 0\n **/","\"use strict\";\nvar errorObject_1 = require('./errorObject');\nvar tryCatchTarget;\nfunction tryCatcher() {\n try {\n return tryCatchTarget.apply(this, arguments);\n }\n catch (e) {\n errorObject_1.errorObject.e = e;\n return errorObject_1.errorObject;\n }\n}\nfunction tryCatch(fn) {\n tryCatchTarget = fn;\n return tryCatcher;\n}\nexports.tryCatch = tryCatch;\n;\n//# sourceMappingURL=tryCatch.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/tryCatch.js\n ** module id = 324\n ** module chunks = 0\n **/","\"use strict\";\n// typeof any so that it we don't have to cast when comparing a result to the error object\nexports.errorObject = { e: {} };\n//# sourceMappingURL=errorObject.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/errorObject.js\n ** module id = 325\n ** module chunks = 0\n **/","\"use strict\";\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};\n/**\n * An error thrown when one or more errors have occurred during the\n * `unsubscribe` of a {@link Subscription}.\n */\nvar UnsubscriptionError = (function (_super) {\n __extends(UnsubscriptionError, _super);\n function UnsubscriptionError(errors) {\n _super.call(this);\n this.errors = errors;\n var err = Error.call(this, errors ?\n errors.length + \" errors occurred during unsubscription:\\n \" + errors.map(function (err, i) { return ((i + 1) + \") \" + err.toString()); }).join('\\n ') : '');\n this.name = err.name = 'UnsubscriptionError';\n this.stack = err.stack;\n this.message = err.message;\n }\n return UnsubscriptionError;\n}(Error));\nexports.UnsubscriptionError = UnsubscriptionError;\n//# sourceMappingURL=UnsubscriptionError.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/UnsubscriptionError.js\n ** module id = 326\n ** module chunks = 0\n **/","\"use strict\";\nexports.empty = {\n closed: true,\n next: function (value) { },\n error: function (err) { throw err; },\n complete: function () { }\n};\n//# sourceMappingURL=Observer.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/Observer.js\n ** module id = 327\n ** module chunks = 0\n **/","\"use strict\";\nvar root_1 = require('../util/root');\nvar Symbol = root_1.root.Symbol;\nexports.$$rxSubscriber = (typeof Symbol === 'function' && typeof Symbol.for === 'function') ?\n Symbol.for('rxSubscriber') : '@@rxSubscriber';\n//# sourceMappingURL=rxSubscriber.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/symbol/rxSubscriber.js\n ** module id = 328\n ** module chunks = 0\n **/","\"use strict\";\nvar root_1 = require('../util/root');\nfunction getSymbolObservable(context) {\n var $$observable;\n var Symbol = context.Symbol;\n if (typeof Symbol === 'function') {\n if (Symbol.observable) {\n $$observable = Symbol.observable;\n }\n else {\n $$observable = Symbol('observable');\n Symbol.observable = $$observable;\n }\n }\n else {\n $$observable = '@@observable';\n }\n return $$observable;\n}\nexports.getSymbolObservable = getSymbolObservable;\nexports.$$observable = getSymbolObservable(root_1.root);\n//# sourceMappingURL=observable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/symbol/observable.js\n ** module id = 329\n ** module chunks = 0\n **/","\"use strict\";\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};\n/**\n * An error thrown when an action is invalid because the object has been\n * unsubscribed.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n *\n * @class ObjectUnsubscribedError\n */\nvar ObjectUnsubscribedError = (function (_super) {\n __extends(ObjectUnsubscribedError, _super);\n function ObjectUnsubscribedError() {\n var err = _super.call(this, 'object unsubscribed');\n this.name = err.name = 'ObjectUnsubscribedError';\n this.stack = err.stack;\n this.message = err.message;\n }\n return ObjectUnsubscribedError;\n}(Error));\nexports.ObjectUnsubscribedError = ObjectUnsubscribedError;\n//# sourceMappingURL=ObjectUnsubscribedError.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/ObjectUnsubscribedError.js\n ** module id = 330\n ** module chunks = 0\n **/","\"use strict\";\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 = require('./Subscription');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SubjectSubscription = (function (_super) {\n __extends(SubjectSubscription, _super);\n function SubjectSubscription(subject, subscriber) {\n _super.call(this);\n this.subject = subject;\n this.subscriber = subscriber;\n this.closed = false;\n }\n SubjectSubscription.prototype.unsubscribe = function () {\n if (this.closed) {\n return;\n }\n this.closed = true;\n var subject = this.subject;\n var observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {\n return;\n }\n var subscriberIndex = observers.indexOf(this.subscriber);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n };\n return SubjectSubscription;\n}(Subscription_1.Subscription));\nexports.SubjectSubscription = SubjectSubscription;\n//# sourceMappingURL=SubjectSubscription.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/SubjectSubscription.js\n ** module id = 331\n ** module chunks = 0\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core')) :\n typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@angular/core'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.platformBrowser = global.ng.platformBrowser || {}),global.ng.common,global.ng.core));\n}(this, function (exports,_angular_common,_angular_core) { 'use strict';\n\n var DebugDomRootRenderer = _angular_core.__core_private__.DebugDomRootRenderer;\n var NoOpAnimationPlayer = _angular_core.__core_private__.NoOpAnimationPlayer;\n\n var _NoOpAnimationDriver = (function () {\n function _NoOpAnimationDriver() {\n }\n _NoOpAnimationDriver.prototype.animate = function (element, startingStyles, keyframes, duration, delay, easing) {\n return new NoOpAnimationPlayer();\n };\n return _NoOpAnimationDriver;\n }());\n /**\n * @experimental\n */\n var AnimationDriver = (function () {\n function AnimationDriver() {\n }\n AnimationDriver.NOOP = new _NoOpAnimationDriver();\n return AnimationDriver;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var globalScope;\n if (typeof window === 'undefined') {\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\n globalScope = self;\n }\n else {\n globalScope = global;\n }\n }\n else {\n globalScope = window;\n }\n // Need to declare a new variable for global here since TypeScript\n // exports the original value of the symbol.\n var global$1 = globalScope;\n var Date = global$1.Date;\n // TODO: remove calls to assert in production environment\n // Note: Can't just export this and import in in other files\n // as `assert` is a reserved keyword in Dart\n global$1.assert = function assert(condition) {\n // TODO: to be fixed properly via #2830, noop for now\n };\n function isPresent(obj) {\n return obj !== undefined && obj !== null;\n }\n function isBlank(obj) {\n return obj === undefined || obj === null;\n }\n function isNumber(obj) {\n return typeof obj === 'number';\n }\n function isString(obj) {\n return typeof obj === 'string';\n }\n function isFunction(obj) {\n return typeof obj === 'function';\n }\n function isArray(obj) {\n return Array.isArray(obj);\n }\n function stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (token === undefined || token === null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return token.overriddenName;\n }\n if (token.name) {\n return token.name;\n }\n var res = token.toString();\n var newLineIndex = res.indexOf('\\n');\n return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);\n }\n var StringWrapper = (function () {\n function StringWrapper() {\n }\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\n StringWrapper.equals = function (s, s2) { return s === s2; };\n StringWrapper.stripLeft = function (s, charVal) {\n if (s && s.length) {\n var pos = 0;\n for (var i = 0; i < s.length; i++) {\n if (s[i] != charVal)\n break;\n pos++;\n }\n s = s.substring(pos);\n }\n return s;\n };\n StringWrapper.stripRight = function (s, charVal) {\n if (s && s.length) {\n var pos = s.length;\n for (var i = s.length - 1; i >= 0; i--) {\n if (s[i] != charVal)\n break;\n pos--;\n }\n s = s.substring(0, pos);\n }\n return s;\n };\n StringWrapper.replace = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.replaceAll = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.slice = function (s, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return s.slice(from, to === null ? undefined : to);\n };\n StringWrapper.replaceAllMapped = function (s, from, cb) {\n return s.replace(from, function () {\n var matches = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n matches[_i - 0] = arguments[_i];\n }\n // Remove offset & string from the result array\n matches.splice(-2, 2);\n // The callback receives match, p1, ..., pn\n return cb(matches);\n });\n };\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\n StringWrapper.compare = function (a, b) {\n if (a < b) {\n return -1;\n }\n else if (a > b) {\n return 1;\n }\n else {\n return 0;\n }\n };\n return StringWrapper;\n }());\n var NumberWrapper = (function () {\n function NumberWrapper() {\n }\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\n NumberWrapper.equal = function (a, b) { return a === b; };\n NumberWrapper.parseIntAutoRadix = function (text) {\n var result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n };\n NumberWrapper.parseInt = function (text, radix) {\n if (radix == 10) {\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else if (radix == 16) {\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else {\n var result = parseInt(text, radix);\n if (!isNaN(result)) {\n return result;\n }\n }\n throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);\n };\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\n Object.defineProperty(NumberWrapper, \"NaN\", {\n get: function () { return NaN; },\n enumerable: true,\n configurable: true\n });\n NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\n return NumberWrapper;\n }());\n // Can't be all uppercase as our transpiler would think it is a special directive...\n var Json = (function () {\n function Json() {\n }\n Json.parse = function (s) { return global$1.JSON.parse(s); };\n Json.stringify = function (data) {\n // Dart doesn't take 3 arguments\n return global$1.JSON.stringify(data, null, 2);\n };\n return Json;\n }());\n var DateWrapper = (function () {\n function DateWrapper() {\n }\n DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) {\n if (month === void 0) { month = 1; }\n if (day === void 0) { day = 1; }\n if (hour === void 0) { hour = 0; }\n if (minutes === void 0) { minutes = 0; }\n if (seconds === void 0) { seconds = 0; }\n if (milliseconds === void 0) { milliseconds = 0; }\n return new Date(year, month - 1, day, hour, minutes, seconds, milliseconds);\n };\n DateWrapper.fromISOString = function (str) { return new Date(str); };\n DateWrapper.fromMillis = function (ms) { return new Date(ms); };\n DateWrapper.toMillis = function (date) { return date.getTime(); };\n DateWrapper.now = function () { return new Date(); };\n DateWrapper.toJson = function (date) { return date.toJSON(); };\n return DateWrapper;\n }());\n function setValueOnPath(global, path, value) {\n var parts = path.split('.');\n var obj = global;\n while (parts.length > 1) {\n var name = parts.shift();\n if (obj.hasOwnProperty(name) && isPresent(obj[name])) {\n obj = obj[name];\n }\n else {\n obj = obj[name] = {};\n }\n }\n if (obj === undefined || obj === null) {\n obj = {};\n }\n obj[parts.shift()] = value;\n }\n\n var Map$1 = global$1.Map;\n var Set$1 = global$1.Set;\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Map constructor. We work around that by manually adding the items.\n var createMapFromPairs = (function () {\n try {\n if (new Map$1([[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs) { return new Map$1(pairs); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromPairs(pairs) {\n var map = new Map$1();\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n map.set(pair[0], pair[1]);\n }\n return map;\n };\n })();\n var createMapFromMap = (function () {\n try {\n if (new Map$1(new Map$1())) {\n return function createMapFromMap(m) { return new Map$1(m); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromMap(m) {\n var map = new Map$1();\n m.forEach(function (v, k) { map.set(k, v); });\n return map;\n };\n })();\n var _clearValues = (function () {\n if ((new Map$1()).keys().next) {\n return function _clearValues(m) {\n var keyIterator = m.keys();\n var k;\n while (!((k = keyIterator.next()).done)) {\n m.set(k.value, null);\n }\n };\n }\n else {\n return function _clearValuesWithForeEach(m) {\n m.forEach(function (v, k) { m.set(k, null); });\n };\n }\n })();\n // Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\n // TODO(mlaval): remove the work around once we have a working polyfill of Array.from\n var _arrayFromMap = (function () {\n try {\n if ((new Map$1()).values().next) {\n return function createArrayFromMap(m, getValues) {\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\n };\n }\n }\n catch (e) {\n }\n return function createArrayFromMapWithForeach(m, getValues) {\n var res = ListWrapper.createFixedSize(m.size), i = 0;\n m.forEach(function (v, k) {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n })();\n /**\n * Wraps Javascript Objects\n */\n var StringMapWrapper = (function () {\n function StringMapWrapper() {\n }\n StringMapWrapper.create = function () {\n // Note: We are not using Object.create(null) here due to\n // performance!\n // http://jsperf.com/ng2-object-create-null\n return {};\n };\n StringMapWrapper.contains = function (map, key) {\n return map.hasOwnProperty(key);\n };\n StringMapWrapper.get = function (map, key) {\n return map.hasOwnProperty(key) ? map[key] : undefined;\n };\n StringMapWrapper.set = function (map, key, value) { map[key] = value; };\n StringMapWrapper.keys = function (map) { return Object.keys(map); };\n StringMapWrapper.values = function (map) {\n return Object.keys(map).map(function (k) { return map[k]; });\n };\n StringMapWrapper.isEmpty = function (map) {\n for (var prop in map) {\n return false;\n }\n return true;\n };\n StringMapWrapper.delete = function (map, key) { delete map[key]; };\n StringMapWrapper.forEach = function (map, callback) {\n for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) {\n var k = _a[_i];\n callback(map[k], k);\n }\n };\n StringMapWrapper.merge = function (m1, m2) {\n var m = {};\n for (var _i = 0, _a = Object.keys(m1); _i < _a.length; _i++) {\n var k = _a[_i];\n m[k] = m1[k];\n }\n for (var _b = 0, _c = Object.keys(m2); _b < _c.length; _b++) {\n var k = _c[_b];\n m[k] = m2[k];\n }\n return m;\n };\n StringMapWrapper.equals = function (m1, m2) {\n var k1 = Object.keys(m1);\n var k2 = Object.keys(m2);\n if (k1.length != k2.length) {\n return false;\n }\n var key;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (m1[key] !== m2[key]) {\n return false;\n }\n }\n return true;\n };\n return StringMapWrapper;\n }());\n var ListWrapper = (function () {\n function ListWrapper() {\n }\n // JS has no way to express a statically fixed size list, but dart does so we\n // keep both methods.\n ListWrapper.createFixedSize = function (size) { return new Array(size); };\n ListWrapper.createGrowableSize = function (size) { return new Array(size); };\n ListWrapper.clone = function (array) { return array.slice(0); };\n ListWrapper.forEachWithIndex = function (array, fn) {\n for (var i = 0; i < array.length; i++) {\n fn(array[i], i);\n }\n };\n ListWrapper.first = function (array) {\n if (!array)\n return null;\n return array[0];\n };\n ListWrapper.last = function (array) {\n if (!array || array.length == 0)\n return null;\n return array[array.length - 1];\n };\n ListWrapper.indexOf = function (array, value, startIndex) {\n if (startIndex === void 0) { startIndex = 0; }\n return array.indexOf(value, startIndex);\n };\n ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; };\n ListWrapper.reversed = function (array) {\n var a = ListWrapper.clone(array);\n return a.reverse();\n };\n ListWrapper.concat = function (a, b) { return a.concat(b); };\n ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); };\n ListWrapper.removeAt = function (list, index) {\n var res = list[index];\n list.splice(index, 1);\n return res;\n };\n ListWrapper.removeAll = function (list, items) {\n for (var i = 0; i < items.length; ++i) {\n var index = list.indexOf(items[i]);\n list.splice(index, 1);\n }\n };\n ListWrapper.remove = function (list, el) {\n var index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n return true;\n }\n return false;\n };\n ListWrapper.clear = function (list) { list.length = 0; };\n ListWrapper.isEmpty = function (list) { return list.length == 0; };\n ListWrapper.fill = function (list, value, start, end) {\n if (start === void 0) { start = 0; }\n if (end === void 0) { end = null; }\n list.fill(value, start, end === null ? list.length : end);\n };\n ListWrapper.equals = function (a, b) {\n if (a.length != b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n };\n ListWrapper.slice = function (l, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return l.slice(from, to === null ? undefined : to);\n };\n ListWrapper.splice = function (l, from, length) { return l.splice(from, length); };\n ListWrapper.sort = function (l, compareFn) {\n if (isPresent(compareFn)) {\n l.sort(compareFn);\n }\n else {\n l.sort();\n }\n };\n ListWrapper.toString = function (l) { return l.toString(); };\n ListWrapper.toJSON = function (l) { return JSON.stringify(l); };\n ListWrapper.maximum = function (list, predicate) {\n if (list.length == 0) {\n return null;\n }\n var solution = null;\n var maxValue = -Infinity;\n for (var index = 0; index < list.length; index++) {\n var candidate = list[index];\n if (isBlank(candidate)) {\n continue;\n }\n var candidateValue = predicate(candidate);\n if (candidateValue > maxValue) {\n solution = candidate;\n maxValue = candidateValue;\n }\n }\n return solution;\n };\n ListWrapper.flatten = function (list) {\n var target = [];\n _flattenArray(list, target);\n return target;\n };\n ListWrapper.addAll = function (list, source) {\n for (var i = 0; i < source.length; i++) {\n list.push(source[i]);\n }\n };\n return ListWrapper;\n }());\n function _flattenArray(source, target) {\n if (isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (isArray(item)) {\n _flattenArray(item, target);\n }\n else {\n target.push(item);\n }\n }\n }\n return target;\n }\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Set constructor. We work around that by manually adding the items.\n var createSetFromList = (function () {\n var test = new Set$1([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst) { return new Set$1(lst); };\n }\n else {\n return function createSetAndPopulateFromList(lst) {\n var res = new Set$1(lst);\n if (res.size !== lst.length) {\n for (var i = 0; i < lst.length; i++) {\n res.add(lst[i]);\n }\n }\n return res;\n };\n }\n })();\n\n var CAMEL_CASE_REGEXP = /([A-Z])/g;\n var DASH_CASE_REGEXP = /-([a-z])/g;\n function camelCaseToDashCase(input) {\n return StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function (m /** TODO #9100 */) { return '-' + m[1].toLowerCase(); });\n }\n function dashCaseToCamelCase(input) {\n return StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function (m /** TODO #9100 */) { return m[1].toUpperCase(); });\n }\n\n var _DOM = null;\n function getDOM() {\n return _DOM;\n }\n function setRootDomAdapter(adapter) {\n if (isBlank(_DOM)) {\n _DOM = adapter;\n }\n }\n /* tslint:disable:requireParameterType */\n /**\n * Provides DOM operations in an environment-agnostic way.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\n var DomAdapter = (function () {\n function DomAdapter() {\n this.resourceLoaderType = null;\n }\n Object.defineProperty(DomAdapter.prototype, \"attrToPropMap\", {\n /**\n * Maps attribute names to their corresponding property names for cases\n * where attribute name doesn't match property name.\n */\n get: function () { return this._attrToPropMap; },\n set: function (value) { this._attrToPropMap = value; },\n enumerable: true,\n configurable: true\n });\n ;\n ;\n return DomAdapter;\n }());\n\n var WebAnimationsPlayer = (function () {\n function WebAnimationsPlayer(element, keyframes, options) {\n this.element = element;\n this.keyframes = keyframes;\n this.options = options;\n this._onDoneFns = [];\n this._onStartFns = [];\n this._finished = false;\n this._initialized = false;\n this._started = false;\n this.parentPlayer = null;\n this._duration = options['duration'];\n }\n WebAnimationsPlayer.prototype._onFinish = function () {\n if (!this._finished) {\n this._finished = true;\n if (!isPresent(this.parentPlayer)) {\n this.destroy();\n }\n this._onDoneFns.forEach(function (fn) { return fn(); });\n this._onDoneFns = [];\n }\n };\n WebAnimationsPlayer.prototype.init = function () {\n var _this = this;\n if (this._initialized)\n return;\n this._initialized = true;\n var keyframes = this.keyframes.map(function (styles) {\n var formattedKeyframe = {};\n StringMapWrapper.forEach(styles, function (value, prop) {\n formattedKeyframe[prop] = value == _angular_core.AUTO_STYLE ? _computeStyle(_this.element, prop) : value;\n });\n return formattedKeyframe;\n });\n this._player = this._triggerWebAnimation(this.element, keyframes, this.options);\n // this is required so that the player doesn't start to animate right away\n this.reset();\n this._player.onfinish = function () { return _this._onFinish(); };\n };\n /** @internal */\n WebAnimationsPlayer.prototype._triggerWebAnimation = function (element, keyframes, options) {\n return element.animate(keyframes, options);\n };\n WebAnimationsPlayer.prototype.onStart = function (fn) { this._onStartFns.push(fn); };\n WebAnimationsPlayer.prototype.onDone = function (fn) { this._onDoneFns.push(fn); };\n WebAnimationsPlayer.prototype.play = function () {\n this.init();\n if (!this.hasStarted()) {\n this._onStartFns.forEach(function (fn) { return fn(); });\n this._onStartFns = [];\n this._started = true;\n }\n this._player.play();\n };\n WebAnimationsPlayer.prototype.pause = function () {\n this.init();\n this._player.pause();\n };\n WebAnimationsPlayer.prototype.finish = function () {\n this.init();\n this._onFinish();\n this._player.finish();\n };\n WebAnimationsPlayer.prototype.reset = function () { this._player.cancel(); };\n WebAnimationsPlayer.prototype.restart = function () {\n this.reset();\n this.play();\n };\n WebAnimationsPlayer.prototype.hasStarted = function () { return this._started; };\n WebAnimationsPlayer.prototype.destroy = function () {\n this.reset();\n this._onFinish();\n };\n Object.defineProperty(WebAnimationsPlayer.prototype, \"totalTime\", {\n get: function () { return this._duration; },\n enumerable: true,\n configurable: true\n });\n WebAnimationsPlayer.prototype.setPosition = function (p) { this._player.currentTime = p * this.totalTime; };\n WebAnimationsPlayer.prototype.getPosition = function () { return this._player.currentTime / this.totalTime; };\n return WebAnimationsPlayer;\n }());\n function _computeStyle(element, prop) {\n return getDOM().getComputedStyle(element)[prop];\n }\n\n var WebAnimationsDriver = (function () {\n function WebAnimationsDriver() {\n }\n WebAnimationsDriver.prototype.animate = function (element, startingStyles, keyframes, duration, delay, easing) {\n var formattedSteps = [];\n var startingStyleLookup = {};\n if (isPresent(startingStyles) && startingStyles.styles.length > 0) {\n startingStyleLookup = _populateStyles(element, startingStyles, {});\n startingStyleLookup['offset'] = 0;\n formattedSteps.push(startingStyleLookup);\n }\n keyframes.forEach(function (keyframe) {\n var data = _populateStyles(element, keyframe.styles, startingStyleLookup);\n data['offset'] = keyframe.offset;\n formattedSteps.push(data);\n });\n // this is a special case when only styles are applied as an\n // animation. When this occurs we want to animate from start to\n // end with the same values. Removing the offset and having only\n // start/end values is suitable enough for the web-animations API\n if (formattedSteps.length == 1) {\n var start = formattedSteps[0];\n start['offset'] = null;\n formattedSteps = [start, start];\n }\n var playerOptions = {\n 'duration': duration,\n 'delay': delay,\n 'fill': 'both' // we use `both` because it allows for styling at 0% to work with `delay`\n };\n // we check for this to avoid having a null|undefined value be present\n // for the easing (which results in an error for certain browsers #9752)\n if (easing) {\n playerOptions['easing'] = easing;\n }\n return new WebAnimationsPlayer(element, formattedSteps, playerOptions);\n };\n return WebAnimationsDriver;\n }());\n function _populateStyles(element, styles, defaultStyles) {\n var data = {};\n styles.styles.forEach(function (entry) {\n StringMapWrapper.forEach(entry, function (val, prop) {\n var formattedProp = dashCaseToCamelCase(prop);\n data[formattedProp] =\n val == _angular_core.AUTO_STYLE ? val : val.toString() + _resolveStyleUnit(val, prop, formattedProp);\n });\n });\n StringMapWrapper.forEach(defaultStyles, function (value, prop) {\n if (!isPresent(data[prop])) {\n data[prop] = value;\n }\n });\n return data;\n }\n function _resolveStyleUnit(val, userProvidedProp, formattedProp) {\n var unit = '';\n if (_isPixelDimensionStyle(formattedProp) && val != 0 && val != '0') {\n if (isNumber(val)) {\n unit = 'px';\n }\n else if (_findDimensionalSuffix(val.toString()).length == 0) {\n throw new Error('Please provide a CSS unit value for ' + userProvidedProp + ':' + val);\n }\n }\n return unit;\n }\n var _$0 = 48;\n var _$9 = 57;\n var _$PERIOD = 46;\n function _findDimensionalSuffix(value) {\n for (var i = 0; i < value.length; i++) {\n var c = StringWrapper.charCodeAt(value, i);\n if ((c >= _$0 && c <= _$9) || c == _$PERIOD)\n continue;\n return value.substring(i, value.length);\n }\n return '';\n }\n function _isPixelDimensionStyle(prop) {\n switch (prop) {\n case 'width':\n case 'height':\n case 'minWidth':\n case 'minHeight':\n case 'maxWidth':\n case 'maxHeight':\n case 'left':\n case 'top':\n case 'bottom':\n case 'right':\n case 'fontSize':\n case 'outlineWidth':\n case 'outlineOffset':\n case 'paddingTop':\n case 'paddingLeft':\n case 'paddingBottom':\n case 'paddingRight':\n case 'marginTop':\n case 'marginLeft':\n case 'marginBottom':\n case 'marginRight':\n case 'borderRadius':\n case 'borderWidth':\n case 'borderTopWidth':\n case 'borderLeftWidth':\n case 'borderRightWidth':\n case 'borderBottomWidth':\n case 'textIndent':\n return true;\n default:\n return false;\n }\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n /**\n * Provides DOM operations in any browser environment.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\n var GenericBrowserDomAdapter = (function (_super) {\n __extends$1(GenericBrowserDomAdapter, _super);\n function GenericBrowserDomAdapter() {\n var _this = this;\n _super.call(this);\n this._animationPrefix = null;\n this._transitionEnd = null;\n try {\n var element = this.createElement('div', this.defaultDoc());\n if (isPresent(this.getStyle(element, 'animationName'))) {\n this._animationPrefix = '';\n }\n else {\n var domPrefixes = ['Webkit', 'Moz', 'O', 'ms'];\n for (var i = 0; i < domPrefixes.length; i++) {\n if (isPresent(this.getStyle(element, domPrefixes[i] + 'AnimationName'))) {\n this._animationPrefix = '-' + domPrefixes[i].toLowerCase() + '-';\n break;\n }\n }\n }\n var transEndEventNames = {\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'transitionend',\n OTransition: 'oTransitionEnd otransitionend',\n transition: 'transitionend'\n };\n StringMapWrapper.forEach(transEndEventNames, function (value, key) {\n if (isPresent(_this.getStyle(element, key))) {\n _this._transitionEnd = value;\n }\n });\n }\n catch (e) {\n this._animationPrefix = null;\n this._transitionEnd = null;\n }\n }\n GenericBrowserDomAdapter.prototype.getDistributedNodes = function (el) { return el.getDistributedNodes(); };\n GenericBrowserDomAdapter.prototype.resolveAndSetHref = function (el, baseUrl, href) {\n el.href = href == null ? baseUrl : baseUrl + '/../' + href;\n };\n GenericBrowserDomAdapter.prototype.supportsDOMEvents = function () { return true; };\n GenericBrowserDomAdapter.prototype.supportsNativeShadowDOM = function () {\n return isFunction(this.defaultDoc().body.createShadowRoot);\n };\n GenericBrowserDomAdapter.prototype.getAnimationPrefix = function () {\n return isPresent(this._animationPrefix) ? this._animationPrefix : '';\n };\n GenericBrowserDomAdapter.prototype.getTransitionEnd = function () { return isPresent(this._transitionEnd) ? this._transitionEnd : ''; };\n GenericBrowserDomAdapter.prototype.supportsAnimation = function () {\n return isPresent(this._animationPrefix) && isPresent(this._transitionEnd);\n };\n return GenericBrowserDomAdapter;\n }(DomAdapter));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __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 };\n var _attrToPropMap = {\n 'class': 'className',\n 'innerHtml': 'innerHTML',\n 'readonly': 'readOnly',\n 'tabindex': 'tabIndex'\n };\n var DOM_KEY_LOCATION_NUMPAD = 3;\n // Map to convert some key or keyIdentifier values to what will be returned by getEventKey\n var _keyMap = {\n // The following values are here for cross-browser compatibility and to match the W3C standard\n // cf http://www.w3.org/TR/DOM-Level-3-Events-key/\n '\\b': 'Backspace',\n '\\t': 'Tab',\n '\\x7F': 'Delete',\n '\\x1B': 'Escape',\n 'Del': 'Delete',\n 'Esc': 'Escape',\n 'Left': 'ArrowLeft',\n 'Right': 'ArrowRight',\n 'Up': 'ArrowUp',\n 'Down': 'ArrowDown',\n 'Menu': 'ContextMenu',\n 'Scroll': 'ScrollLock',\n 'Win': 'OS'\n };\n // There is a bug in Chrome for numeric keypad keys:\n // https://code.google.com/p/chromium/issues/detail?id=155654\n // 1, 2, 3 ... are reported as A, B, C ...\n var _chromeNumKeyPadMap = {\n 'A': '1',\n 'B': '2',\n 'C': '3',\n 'D': '4',\n 'E': '5',\n 'F': '6',\n 'G': '7',\n 'H': '8',\n 'I': '9',\n 'J': '*',\n 'K': '+',\n 'M': '-',\n 'N': '.',\n 'O': '/',\n '\\x60': '0',\n '\\x90': 'NumLock'\n };\n /**\n * A `DomAdapter` powered by full browser DOM APIs.\n *\n * @security Tread carefully! Interacting with the DOM directly is dangerous and\n * can introduce XSS risks.\n */\n /* tslint:disable:requireParameterType */\n var BrowserDomAdapter = (function (_super) {\n __extends(BrowserDomAdapter, _super);\n function BrowserDomAdapter() {\n _super.apply(this, arguments);\n }\n BrowserDomAdapter.prototype.parse = function (templateHtml) { throw new Error('parse not implemented'); };\n BrowserDomAdapter.makeCurrent = function () { setRootDomAdapter(new BrowserDomAdapter()); };\n BrowserDomAdapter.prototype.hasProperty = function (element /** TODO #9100 */, name) { return name in element; };\n BrowserDomAdapter.prototype.setProperty = function (el, name, value) { el[name] = value; };\n BrowserDomAdapter.prototype.getProperty = function (el, name) { return el[name]; };\n BrowserDomAdapter.prototype.invoke = function (el, methodName, args) {\n el[methodName].apply(el, args);\n };\n // TODO(tbosch): move this into a separate environment class once we have it\n BrowserDomAdapter.prototype.logError = function (error /** TODO #9100 */) {\n if (window.console.error) {\n window.console.error(error);\n }\n else {\n window.console.log(error);\n }\n };\n BrowserDomAdapter.prototype.log = function (error /** TODO #9100 */) { window.console.log(error); };\n BrowserDomAdapter.prototype.logGroup = function (error /** TODO #9100 */) {\n if (window.console.group) {\n window.console.group(error);\n this.logError(error);\n }\n else {\n window.console.log(error);\n }\n };\n BrowserDomAdapter.prototype.logGroupEnd = function () {\n if (window.console.groupEnd) {\n window.console.groupEnd();\n }\n };\n Object.defineProperty(BrowserDomAdapter.prototype, \"attrToPropMap\", {\n get: function () { return _attrToPropMap; },\n enumerable: true,\n configurable: true\n });\n BrowserDomAdapter.prototype.query = function (selector) { return document.querySelector(selector); };\n BrowserDomAdapter.prototype.querySelector = function (el /** TODO #9100 */, selector) {\n return el.querySelector(selector);\n };\n BrowserDomAdapter.prototype.querySelectorAll = function (el /** TODO #9100 */, selector) {\n return el.querySelectorAll(selector);\n };\n BrowserDomAdapter.prototype.on = function (el /** TODO #9100 */, evt /** TODO #9100 */, listener /** TODO #9100 */) {\n el.addEventListener(evt, listener, false);\n };\n BrowserDomAdapter.prototype.onAndCancel = function (el /** TODO #9100 */, evt /** TODO #9100 */, listener /** TODO #9100 */) {\n el.addEventListener(evt, listener, false);\n // Needed to follow Dart's subscription semantic, until fix of\n // https://code.google.com/p/dart/issues/detail?id=17406\n return function () { el.removeEventListener(evt, listener, false); };\n };\n BrowserDomAdapter.prototype.dispatchEvent = function (el /** TODO #9100 */, evt /** TODO #9100 */) { el.dispatchEvent(evt); };\n BrowserDomAdapter.prototype.createMouseEvent = function (eventType) {\n var evt = document.createEvent('MouseEvent');\n evt.initEvent(eventType, true, true);\n return evt;\n };\n BrowserDomAdapter.prototype.createEvent = function (eventType /** TODO #9100 */) {\n var evt = document.createEvent('Event');\n evt.initEvent(eventType, true, true);\n return evt;\n };\n BrowserDomAdapter.prototype.preventDefault = function (evt) {\n evt.preventDefault();\n evt.returnValue = false;\n };\n BrowserDomAdapter.prototype.isPrevented = function (evt) {\n return evt.defaultPrevented || isPresent(evt.returnValue) && !evt.returnValue;\n };\n BrowserDomAdapter.prototype.getInnerHTML = function (el /** TODO #9100 */) { return el.innerHTML; };\n BrowserDomAdapter.prototype.getTemplateContent = function (el /** TODO #9100 */) {\n return 'content' in el && el instanceof HTMLTemplateElement ? el.content : null;\n };\n BrowserDomAdapter.prototype.getOuterHTML = function (el /** TODO #9100 */) { return el.outerHTML; };\n BrowserDomAdapter.prototype.nodeName = function (node) { return node.nodeName; };\n BrowserDomAdapter.prototype.nodeValue = function (node) { return node.nodeValue; };\n BrowserDomAdapter.prototype.type = function (node) { return node.type; };\n BrowserDomAdapter.prototype.content = function (node) {\n if (this.hasProperty(node, 'content')) {\n return node.content;\n }\n else {\n return node;\n }\n };\n BrowserDomAdapter.prototype.firstChild = function (el /** TODO #9100 */) { return el.firstChild; };\n BrowserDomAdapter.prototype.nextSibling = function (el /** TODO #9100 */) { return el.nextSibling; };\n BrowserDomAdapter.prototype.parentElement = function (el /** TODO #9100 */) { return el.parentNode; };\n BrowserDomAdapter.prototype.childNodes = function (el /** TODO #9100 */) { return el.childNodes; };\n BrowserDomAdapter.prototype.childNodesAsList = function (el /** TODO #9100 */) {\n var childNodes = el.childNodes;\n var res = ListWrapper.createFixedSize(childNodes.length);\n for (var i = 0; i < childNodes.length; i++) {\n res[i] = childNodes[i];\n }\n return res;\n };\n BrowserDomAdapter.prototype.clearNodes = function (el /** TODO #9100 */) {\n while (el.firstChild) {\n el.removeChild(el.firstChild);\n }\n };\n BrowserDomAdapter.prototype.appendChild = function (el /** TODO #9100 */, node /** TODO #9100 */) { el.appendChild(node); };\n BrowserDomAdapter.prototype.removeChild = function (el /** TODO #9100 */, node /** TODO #9100 */) { el.removeChild(node); };\n BrowserDomAdapter.prototype.replaceChild = function (el, newChild /** TODO #9100 */, oldChild /** TODO #9100 */) {\n el.replaceChild(newChild, oldChild);\n };\n BrowserDomAdapter.prototype.remove = function (node /** TODO #9100 */) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n return node;\n };\n BrowserDomAdapter.prototype.insertBefore = function (el /** TODO #9100 */, node /** TODO #9100 */) {\n el.parentNode.insertBefore(node, el);\n };\n BrowserDomAdapter.prototype.insertAllBefore = function (el /** TODO #9100 */, nodes /** TODO #9100 */) {\n nodes.forEach(function (n /** TODO #9100 */) { return el.parentNode.insertBefore(n, el); });\n };\n BrowserDomAdapter.prototype.insertAfter = function (el /** TODO #9100 */, node /** TODO #9100 */) {\n el.parentNode.insertBefore(node, el.nextSibling);\n };\n BrowserDomAdapter.prototype.setInnerHTML = function (el /** TODO #9100 */, value /** TODO #9100 */) { el.innerHTML = value; };\n BrowserDomAdapter.prototype.getText = function (el /** TODO #9100 */) { return el.textContent; };\n // TODO(vicb): removed Element type because it does not support StyleElement\n BrowserDomAdapter.prototype.setText = function (el /** TODO #9100 */, value) { el.textContent = value; };\n BrowserDomAdapter.prototype.getValue = function (el /** TODO #9100 */) { return el.value; };\n BrowserDomAdapter.prototype.setValue = function (el /** TODO #9100 */, value) { el.value = value; };\n BrowserDomAdapter.prototype.getChecked = function (el /** TODO #9100 */) { return el.checked; };\n BrowserDomAdapter.prototype.setChecked = function (el /** TODO #9100 */, value) { el.checked = value; };\n BrowserDomAdapter.prototype.createComment = function (text) { return document.createComment(text); };\n BrowserDomAdapter.prototype.createTemplate = function (html /** TODO #9100 */) {\n var t = document.createElement('template');\n t.innerHTML = html;\n return t;\n };\n BrowserDomAdapter.prototype.createElement = function (tagName /* TODO #9100 */, doc) {\n if (doc === void 0) { doc = document; }\n return doc.createElement(tagName);\n };\n BrowserDomAdapter.prototype.createElementNS = function (ns /* TODO #9100 */, tagName /* TODO #9100 */, doc) {\n if (doc === void 0) { doc = document; }\n return doc.createElementNS(ns, tagName);\n };\n BrowserDomAdapter.prototype.createTextNode = function (text, doc) {\n if (doc === void 0) { doc = document; }\n return doc.createTextNode(text);\n };\n BrowserDomAdapter.prototype.createScriptTag = function (attrName, attrValue, doc) {\n if (doc === void 0) { doc = document; }\n var el = doc.createElement('SCRIPT');\n el.setAttribute(attrName, attrValue);\n return el;\n };\n BrowserDomAdapter.prototype.createStyleElement = function (css, doc) {\n if (doc === void 0) { doc = document; }\n var style = doc.createElement('style');\n this.appendChild(style, this.createTextNode(css));\n return style;\n };\n BrowserDomAdapter.prototype.createShadowRoot = function (el) { return el.createShadowRoot(); };\n BrowserDomAdapter.prototype.getShadowRoot = function (el) { return el.shadowRoot; };\n BrowserDomAdapter.prototype.getHost = function (el) { return el.host; };\n BrowserDomAdapter.prototype.clone = function (node) { return node.cloneNode(true); };\n BrowserDomAdapter.prototype.getElementsByClassName = function (element /** TODO #9100 */, name) {\n return element.getElementsByClassName(name);\n };\n BrowserDomAdapter.prototype.getElementsByTagName = function (element /** TODO #9100 */, name) {\n return element.getElementsByTagName(name);\n };\n BrowserDomAdapter.prototype.classList = function (element /** TODO #9100 */) {\n return Array.prototype.slice.call(element.classList, 0);\n };\n BrowserDomAdapter.prototype.addClass = function (element /** TODO #9100 */, className) { element.classList.add(className); };\n BrowserDomAdapter.prototype.removeClass = function (element /** TODO #9100 */, className) {\n element.classList.remove(className);\n };\n BrowserDomAdapter.prototype.hasClass = function (element /** TODO #9100 */, className) {\n return element.classList.contains(className);\n };\n BrowserDomAdapter.prototype.setStyle = function (element /** TODO #9100 */, styleName, styleValue) {\n element.style[styleName] = styleValue;\n };\n BrowserDomAdapter.prototype.removeStyle = function (element /** TODO #9100 */, stylename) {\n element.style[stylename] = null;\n };\n BrowserDomAdapter.prototype.getStyle = function (element /** TODO #9100 */, stylename) {\n return element.style[stylename];\n };\n BrowserDomAdapter.prototype.hasStyle = function (element /** TODO #9100 */, styleName, styleValue) {\n if (styleValue === void 0) { styleValue = null; }\n var value = this.getStyle(element, styleName) || '';\n return styleValue ? value == styleValue : value.length > 0;\n };\n BrowserDomAdapter.prototype.tagName = function (element /** TODO #9100 */) { return element.tagName; };\n BrowserDomAdapter.prototype.attributeMap = function (element /** TODO #9100 */) {\n var res = new Map();\n var elAttrs = element.attributes;\n for (var i = 0; i < elAttrs.length; i++) {\n var attrib = elAttrs[i];\n res.set(attrib.name, attrib.value);\n }\n return res;\n };\n BrowserDomAdapter.prototype.hasAttribute = function (element /** TODO #9100 */, attribute) {\n return element.hasAttribute(attribute);\n };\n BrowserDomAdapter.prototype.hasAttributeNS = function (element /** TODO #9100 */, ns, attribute) {\n return element.hasAttributeNS(ns, attribute);\n };\n BrowserDomAdapter.prototype.getAttribute = function (element /** TODO #9100 */, attribute) {\n return element.getAttribute(attribute);\n };\n BrowserDomAdapter.prototype.getAttributeNS = function (element /** TODO #9100 */, ns, name) {\n return element.getAttributeNS(ns, name);\n };\n BrowserDomAdapter.prototype.setAttribute = function (element /** TODO #9100 */, name, value) {\n element.setAttribute(name, value);\n };\n BrowserDomAdapter.prototype.setAttributeNS = function (element /** TODO #9100 */, ns, name, value) {\n element.setAttributeNS(ns, name, value);\n };\n BrowserDomAdapter.prototype.removeAttribute = function (element /** TODO #9100 */, attribute) {\n element.removeAttribute(attribute);\n };\n BrowserDomAdapter.prototype.removeAttributeNS = function (element /** TODO #9100 */, ns, name) {\n element.removeAttributeNS(ns, name);\n };\n BrowserDomAdapter.prototype.templateAwareRoot = function (el /** TODO #9100 */) {\n return this.isTemplateElement(el) ? this.content(el) : el;\n };\n BrowserDomAdapter.prototype.createHtmlDocument = function () {\n return document.implementation.createHTMLDocument('fakeTitle');\n };\n BrowserDomAdapter.prototype.defaultDoc = function () { return document; };\n BrowserDomAdapter.prototype.getBoundingClientRect = function (el /** TODO #9100 */) {\n try {\n return el.getBoundingClientRect();\n }\n catch (e) {\n return { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 };\n }\n };\n BrowserDomAdapter.prototype.getTitle = function () { return document.title; };\n BrowserDomAdapter.prototype.setTitle = function (newTitle) { document.title = newTitle || ''; };\n BrowserDomAdapter.prototype.elementMatches = function (n /** TODO #9100 */, selector) {\n var matches = false;\n if (n instanceof HTMLElement) {\n if (n.matches) {\n matches = n.matches(selector);\n }\n else if (n.msMatchesSelector) {\n matches = n.msMatchesSelector(selector);\n }\n else if (n.webkitMatchesSelector) {\n matches = n.webkitMatchesSelector(selector);\n }\n }\n return matches;\n };\n BrowserDomAdapter.prototype.isTemplateElement = function (el) {\n return el instanceof HTMLElement && el.nodeName == 'TEMPLATE';\n };\n BrowserDomAdapter.prototype.isTextNode = function (node) { return node.nodeType === Node.TEXT_NODE; };\n BrowserDomAdapter.prototype.isCommentNode = function (node) { return node.nodeType === Node.COMMENT_NODE; };\n BrowserDomAdapter.prototype.isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; };\n BrowserDomAdapter.prototype.hasShadowRoot = function (node /** TODO #9100 */) {\n return isPresent(node.shadowRoot) && node instanceof HTMLElement;\n };\n BrowserDomAdapter.prototype.isShadowRoot = function (node /** TODO #9100 */) { return node instanceof DocumentFragment; };\n BrowserDomAdapter.prototype.importIntoDoc = function (node) {\n var toImport = node;\n if (this.isTemplateElement(node)) {\n toImport = this.content(node);\n }\n return document.importNode(toImport, true);\n };\n BrowserDomAdapter.prototype.adoptNode = function (node) { return document.adoptNode(node); };\n BrowserDomAdapter.prototype.getHref = function (el) { return el.href; };\n BrowserDomAdapter.prototype.getEventKey = function (event /** TODO #9100 */) {\n var key = event.key;\n if (isBlank(key)) {\n key = event.keyIdentifier;\n // keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and\n // Safari\n // cf\n // http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces\n if (isBlank(key)) {\n return 'Unidentified';\n }\n if (key.startsWith('U+')) {\n key = String.fromCharCode(parseInt(key.substring(2), 16));\n if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {\n // There is a bug in Chrome for numeric keypad keys:\n // https://code.google.com/p/chromium/issues/detail?id=155654\n // 1, 2, 3 ... are reported as A, B, C ...\n key = _chromeNumKeyPadMap[key];\n }\n }\n }\n if (_keyMap.hasOwnProperty(key)) {\n key = _keyMap[key];\n }\n return key;\n };\n BrowserDomAdapter.prototype.getGlobalEventTarget = function (target) {\n if (target == 'window') {\n return window;\n }\n else if (target == 'document') {\n return document;\n }\n else if (target == 'body') {\n return document.body;\n }\n };\n BrowserDomAdapter.prototype.getHistory = function () { return window.history; };\n BrowserDomAdapter.prototype.getLocation = function () { return window.location; };\n BrowserDomAdapter.prototype.getBaseHref = function () {\n var href = getBaseElementHref();\n if (isBlank(href)) {\n return null;\n }\n return relativePath(href);\n };\n BrowserDomAdapter.prototype.resetBaseElement = function () { baseElement = null; };\n BrowserDomAdapter.prototype.getUserAgent = function () { return window.navigator.userAgent; };\n BrowserDomAdapter.prototype.setData = function (element /** TODO #9100 */, name, value) {\n this.setAttribute(element, 'data-' + name, value);\n };\n BrowserDomAdapter.prototype.getData = function (element /** TODO #9100 */, name) {\n return this.getAttribute(element, 'data-' + name);\n };\n BrowserDomAdapter.prototype.getComputedStyle = function (element /** TODO #9100 */) { return getComputedStyle(element); };\n // TODO(tbosch): move this into a separate environment class once we have it\n BrowserDomAdapter.prototype.setGlobalVar = function (path, value) { setValueOnPath(global$1, path, value); };\n BrowserDomAdapter.prototype.supportsWebAnimation = function () { return isFunction(Element.prototype['animate']); };\n BrowserDomAdapter.prototype.performanceNow = function () {\n // performance.now() is not available in all browsers, see\n // http://caniuse.com/#search=performance.now\n if (isPresent(window.performance) && isPresent(window.performance.now)) {\n return window.performance.now();\n }\n else {\n return DateWrapper.toMillis(DateWrapper.now());\n }\n };\n BrowserDomAdapter.prototype.supportsCookies = function () { return true; };\n BrowserDomAdapter.prototype.getCookie = function (name) { return parseCookieValue(document.cookie, name); };\n BrowserDomAdapter.prototype.setCookie = function (name, value) {\n // document.cookie is magical, assigning into it assigns/overrides one cookie value, but does\n // not clear other cookies.\n document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value);\n };\n return BrowserDomAdapter;\n }(GenericBrowserDomAdapter));\n var baseElement = null;\n function getBaseElementHref() {\n if (isBlank(baseElement)) {\n baseElement = document.querySelector('base');\n if (isBlank(baseElement)) {\n return null;\n }\n }\n return baseElement.getAttribute('href');\n }\n // based on urlUtils.js in AngularJS 1\n var urlParsingNode = null;\n function relativePath(url /** TODO #9100 */) {\n if (isBlank(urlParsingNode)) {\n urlParsingNode = document.createElement('a');\n }\n urlParsingNode.setAttribute('href', url);\n return (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname :\n '/' + urlParsingNode.pathname;\n }\n function parseCookieValue(cookieStr, name) {\n name = encodeURIComponent(name);\n for (var _i = 0, _a = cookieStr.split(';'); _i < _a.length; _i++) {\n var cookie = _a[_i];\n var eqIndex = cookie.indexOf('=');\n var _b = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)], cookieName = _b[0], cookieValue = _b[1];\n if (cookieName.trim() === name) {\n return decodeURIComponent(cookieValue);\n }\n }\n return null;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function supportsState() {\n return !!window.history.pushState;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$2 = (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 };\n /**\n * `PlatformLocation` encapsulates all of the direct calls to platform APIs.\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n */\n var BrowserPlatformLocation = (function (_super) {\n __extends$2(BrowserPlatformLocation, _super);\n function BrowserPlatformLocation() {\n _super.call(this);\n this._init();\n }\n // This is moved to its own method so that `MockPlatformLocationStrategy` can overwrite it\n /** @internal */\n BrowserPlatformLocation.prototype._init = function () {\n this._location = getDOM().getLocation();\n this._history = getDOM().getHistory();\n };\n Object.defineProperty(BrowserPlatformLocation.prototype, \"location\", {\n get: function () { return this._location; },\n enumerable: true,\n configurable: true\n });\n BrowserPlatformLocation.prototype.getBaseHrefFromDOM = function () { return getDOM().getBaseHref(); };\n BrowserPlatformLocation.prototype.onPopState = function (fn) {\n getDOM().getGlobalEventTarget('window').addEventListener('popstate', fn, false);\n };\n BrowserPlatformLocation.prototype.onHashChange = function (fn) {\n getDOM().getGlobalEventTarget('window').addEventListener('hashchange', fn, false);\n };\n Object.defineProperty(BrowserPlatformLocation.prototype, \"pathname\", {\n get: function () { return this._location.pathname; },\n set: function (newPath) { this._location.pathname = newPath; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserPlatformLocation.prototype, \"search\", {\n get: function () { return this._location.search; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BrowserPlatformLocation.prototype, \"hash\", {\n get: function () { return this._location.hash; },\n enumerable: true,\n configurable: true\n });\n BrowserPlatformLocation.prototype.pushState = function (state, title, url) {\n if (supportsState()) {\n this._history.pushState(state, title, url);\n }\n else {\n this._location.hash = url;\n }\n };\n BrowserPlatformLocation.prototype.replaceState = function (state, title, url) {\n if (supportsState()) {\n this._history.replaceState(state, title, url);\n }\n else {\n this._location.hash = url;\n }\n };\n BrowserPlatformLocation.prototype.forward = function () { this._history.forward(); };\n BrowserPlatformLocation.prototype.back = function () { this._history.back(); };\n BrowserPlatformLocation.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n BrowserPlatformLocation.ctorParameters = [];\n return BrowserPlatformLocation;\n }(_angular_common.PlatformLocation));\n\n var BrowserGetTestability = (function () {\n function BrowserGetTestability() {\n }\n BrowserGetTestability.init = function () { _angular_core.setTestabilityGetter(new BrowserGetTestability()); };\n BrowserGetTestability.prototype.addToWindow = function (registry) {\n global$1.getAngularTestability = function (elem, findInAncestors) {\n if (findInAncestors === void 0) { findInAncestors = true; }\n var testability = registry.findTestabilityInTree(elem, findInAncestors);\n if (testability == null) {\n throw new Error('Could not find testability for element.');\n }\n return testability;\n };\n global$1.getAllAngularTestabilities = function () { return registry.getAllTestabilities(); };\n global$1.getAllAngularRootElements = function () { return registry.getAllRootElements(); };\n var whenAllStable = function (callback /** TODO #9100 */) {\n var testabilities = global$1.getAllAngularTestabilities();\n var count = testabilities.length;\n var didWork = false;\n var decrement = function (didWork_ /** TODO #9100 */) {\n didWork = didWork || didWork_;\n count--;\n if (count == 0) {\n callback(didWork);\n }\n };\n testabilities.forEach(function (testability /** TODO #9100 */) {\n testability.whenStable(decrement);\n });\n };\n if (!global$1['frameworkStabilizers']) {\n global$1['frameworkStabilizers'] = ListWrapper.createGrowableSize(0);\n }\n global$1['frameworkStabilizers'].push(whenAllStable);\n };\n BrowserGetTestability.prototype.findTestabilityInTree = function (registry, elem, findInAncestors) {\n if (elem == null) {\n return null;\n }\n var t = registry.getTestability(elem);\n if (isPresent(t)) {\n return t;\n }\n else if (!findInAncestors) {\n return null;\n }\n if (getDOM().isShadowRoot(elem)) {\n return this.findTestabilityInTree(registry, getDOM().getHost(elem), true);\n }\n return this.findTestabilityInTree(registry, getDOM().parentElement(elem), true);\n };\n return BrowserGetTestability;\n }());\n\n /**\n * A DI Token representing the main rendering context. In a browser this is the DOM Document.\n *\n * Note: Document might not be available in the Application Context when Application and Rendering\n * Contexts are not the same (e.g. when running the application into a Web Worker).\n *\n * @stable\n */\n var DOCUMENT = new _angular_core.OpaqueToken('DocumentToken');\n\n /**\n * @stable\n */\n var EVENT_MANAGER_PLUGINS = new _angular_core.OpaqueToken('EventManagerPlugins');\n /**\n * @stable\n */\n var EventManager = (function () {\n function EventManager(plugins, _zone) {\n var _this = this;\n this._zone = _zone;\n plugins.forEach(function (p) { return p.manager = _this; });\n this._plugins = ListWrapper.reversed(plugins);\n }\n EventManager.prototype.addEventListener = function (element, eventName, handler) {\n var plugin = this._findPluginFor(eventName);\n return plugin.addEventListener(element, eventName, handler);\n };\n EventManager.prototype.addGlobalEventListener = function (target, eventName, handler) {\n var plugin = this._findPluginFor(eventName);\n return plugin.addGlobalEventListener(target, eventName, handler);\n };\n EventManager.prototype.getZone = function () { return this._zone; };\n /** @internal */\n EventManager.prototype._findPluginFor = function (eventName) {\n var plugins = this._plugins;\n for (var i = 0; i < plugins.length; i++) {\n var plugin = plugins[i];\n if (plugin.supports(eventName)) {\n return plugin;\n }\n }\n throw new Error(\"No event manager plugin found for event \" + eventName);\n };\n EventManager.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n EventManager.ctorParameters = [\n { type: Array, decorators: [{ type: _angular_core.Inject, args: [EVENT_MANAGER_PLUGINS,] },] },\n { type: _angular_core.NgZone, },\n ];\n return EventManager;\n }());\n var EventManagerPlugin = (function () {\n function EventManagerPlugin() {\n }\n // That is equivalent to having supporting $event.target\n EventManagerPlugin.prototype.supports = function (eventName) { return false; };\n EventManagerPlugin.prototype.addEventListener = function (element, eventName, handler) {\n throw 'not implemented';\n };\n EventManagerPlugin.prototype.addGlobalEventListener = function (element, eventName, handler) {\n throw 'not implemented';\n };\n return EventManagerPlugin;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$4 = (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 };\n var SharedStylesHost = (function () {\n function SharedStylesHost() {\n /** @internal */\n this._styles = [];\n /** @internal */\n this._stylesSet = new Set();\n }\n SharedStylesHost.prototype.addStyles = function (styles) {\n var _this = this;\n var additions = [];\n styles.forEach(function (style) {\n if (!_this._stylesSet.has(style)) {\n _this._stylesSet.add(style);\n _this._styles.push(style);\n additions.push(style);\n }\n });\n this.onStylesAdded(additions);\n };\n SharedStylesHost.prototype.onStylesAdded = function (additions) { };\n SharedStylesHost.prototype.getAllStyles = function () { return this._styles; };\n SharedStylesHost.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n SharedStylesHost.ctorParameters = [];\n return SharedStylesHost;\n }());\n var DomSharedStylesHost = (function (_super) {\n __extends$4(DomSharedStylesHost, _super);\n function DomSharedStylesHost(doc) {\n _super.call(this);\n this._hostNodes = new Set();\n this._hostNodes.add(doc.head);\n }\n /** @internal */\n DomSharedStylesHost.prototype._addStylesToHost = function (styles, host) {\n for (var i = 0; i < styles.length; i++) {\n var style = styles[i];\n getDOM().appendChild(host, getDOM().createStyleElement(style));\n }\n };\n DomSharedStylesHost.prototype.addHost = function (hostNode) {\n this._addStylesToHost(this._styles, hostNode);\n this._hostNodes.add(hostNode);\n };\n DomSharedStylesHost.prototype.removeHost = function (hostNode) { this._hostNodes.delete(hostNode); };\n DomSharedStylesHost.prototype.onStylesAdded = function (additions) {\n var _this = this;\n this._hostNodes.forEach(function (hostNode) { _this._addStylesToHost(additions, hostNode); });\n };\n DomSharedStylesHost.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n DomSharedStylesHost.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [DOCUMENT,] },] },\n ];\n return DomSharedStylesHost;\n }(SharedStylesHost));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$3 = (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 };\n var NAMESPACE_URIS = {\n 'xlink': 'http://www.w3.org/1999/xlink',\n 'svg': 'http://www.w3.org/2000/svg',\n 'xhtml': 'http://www.w3.org/1999/xhtml'\n };\n var TEMPLATE_COMMENT_TEXT = 'template bindings={}';\n var TEMPLATE_BINDINGS_EXP = /^template bindings=(.*)$/;\n var DomRootRenderer = (function () {\n function DomRootRenderer(document, eventManager, sharedStylesHost, animationDriver) {\n this.document = document;\n this.eventManager = eventManager;\n this.sharedStylesHost = sharedStylesHost;\n this.animationDriver = animationDriver;\n this.registeredComponents = new Map();\n }\n DomRootRenderer.prototype.renderComponent = function (componentProto) {\n var renderer = this.registeredComponents.get(componentProto.id);\n if (isBlank(renderer)) {\n renderer = new DomRenderer(this, componentProto, this.animationDriver);\n this.registeredComponents.set(componentProto.id, renderer);\n }\n return renderer;\n };\n return DomRootRenderer;\n }());\n var DomRootRenderer_ = (function (_super) {\n __extends$3(DomRootRenderer_, _super);\n function DomRootRenderer_(_document, _eventManager, sharedStylesHost, animationDriver) {\n _super.call(this, _document, _eventManager, sharedStylesHost, animationDriver);\n }\n DomRootRenderer_.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n DomRootRenderer_.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [DOCUMENT,] },] },\n { type: EventManager, },\n { type: DomSharedStylesHost, },\n { type: AnimationDriver, },\n ];\n return DomRootRenderer_;\n }(DomRootRenderer));\n var DomRenderer = (function () {\n function DomRenderer(_rootRenderer, componentProto, _animationDriver) {\n this._rootRenderer = _rootRenderer;\n this.componentProto = componentProto;\n this._animationDriver = _animationDriver;\n this._styles = _flattenStyles(componentProto.id, componentProto.styles, []);\n if (componentProto.encapsulation !== _angular_core.ViewEncapsulation.Native) {\n this._rootRenderer.sharedStylesHost.addStyles(this._styles);\n }\n if (this.componentProto.encapsulation === _angular_core.ViewEncapsulation.Emulated) {\n this._contentAttr = _shimContentAttribute(componentProto.id);\n this._hostAttr = _shimHostAttribute(componentProto.id);\n }\n else {\n this._contentAttr = null;\n this._hostAttr = null;\n }\n }\n DomRenderer.prototype.selectRootElement = function (selectorOrNode, debugInfo) {\n var el;\n if (isString(selectorOrNode)) {\n el = getDOM().querySelector(this._rootRenderer.document, selectorOrNode);\n if (isBlank(el)) {\n throw new Error(\"The selector \\\"\" + selectorOrNode + \"\\\" did not match any elements\");\n }\n }\n else {\n el = selectorOrNode;\n }\n getDOM().clearNodes(el);\n return el;\n };\n DomRenderer.prototype.createElement = function (parent, name, debugInfo) {\n var nsAndName = splitNamespace(name);\n var el = isPresent(nsAndName[0]) ?\n getDOM().createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) :\n getDOM().createElement(nsAndName[1]);\n if (isPresent(this._contentAttr)) {\n getDOM().setAttribute(el, this._contentAttr, '');\n }\n if (isPresent(parent)) {\n getDOM().appendChild(parent, el);\n }\n return el;\n };\n DomRenderer.prototype.createViewRoot = function (hostElement) {\n var nodesParent;\n if (this.componentProto.encapsulation === _angular_core.ViewEncapsulation.Native) {\n nodesParent = getDOM().createShadowRoot(hostElement);\n this._rootRenderer.sharedStylesHost.addHost(nodesParent);\n for (var i = 0; i < this._styles.length; i++) {\n getDOM().appendChild(nodesParent, getDOM().createStyleElement(this._styles[i]));\n }\n }\n else {\n if (isPresent(this._hostAttr)) {\n getDOM().setAttribute(hostElement, this._hostAttr, '');\n }\n nodesParent = hostElement;\n }\n return nodesParent;\n };\n DomRenderer.prototype.createTemplateAnchor = function (parentElement, debugInfo) {\n var comment = getDOM().createComment(TEMPLATE_COMMENT_TEXT);\n if (isPresent(parentElement)) {\n getDOM().appendChild(parentElement, comment);\n }\n return comment;\n };\n DomRenderer.prototype.createText = function (parentElement, value, debugInfo) {\n var node = getDOM().createTextNode(value);\n if (isPresent(parentElement)) {\n getDOM().appendChild(parentElement, node);\n }\n return node;\n };\n DomRenderer.prototype.projectNodes = function (parentElement, nodes) {\n if (isBlank(parentElement))\n return;\n appendNodes(parentElement, nodes);\n };\n DomRenderer.prototype.attachViewAfter = function (node, viewRootNodes) { moveNodesAfterSibling(node, viewRootNodes); };\n DomRenderer.prototype.detachView = function (viewRootNodes) {\n for (var i = 0; i < viewRootNodes.length; i++) {\n getDOM().remove(viewRootNodes[i]);\n }\n };\n DomRenderer.prototype.destroyView = function (hostElement, viewAllNodes) {\n if (this.componentProto.encapsulation === _angular_core.ViewEncapsulation.Native && isPresent(hostElement)) {\n this._rootRenderer.sharedStylesHost.removeHost(getDOM().getShadowRoot(hostElement));\n }\n };\n DomRenderer.prototype.listen = function (renderElement, name, callback) {\n return this._rootRenderer.eventManager.addEventListener(renderElement, name, decoratePreventDefault(callback));\n };\n DomRenderer.prototype.listenGlobal = function (target, name, callback) {\n return this._rootRenderer.eventManager.addGlobalEventListener(target, name, decoratePreventDefault(callback));\n };\n DomRenderer.prototype.setElementProperty = function (renderElement, propertyName, propertyValue) {\n getDOM().setProperty(renderElement, propertyName, propertyValue);\n };\n DomRenderer.prototype.setElementAttribute = function (renderElement, attributeName, attributeValue) {\n var attrNs;\n var nsAndName = splitNamespace(attributeName);\n if (isPresent(nsAndName[0])) {\n attributeName = nsAndName[0] + ':' + nsAndName[1];\n attrNs = NAMESPACE_URIS[nsAndName[0]];\n }\n if (isPresent(attributeValue)) {\n if (isPresent(attrNs)) {\n getDOM().setAttributeNS(renderElement, attrNs, attributeName, attributeValue);\n }\n else {\n getDOM().setAttribute(renderElement, attributeName, attributeValue);\n }\n }\n else {\n if (isPresent(attrNs)) {\n getDOM().removeAttributeNS(renderElement, attrNs, nsAndName[1]);\n }\n else {\n getDOM().removeAttribute(renderElement, attributeName);\n }\n }\n };\n DomRenderer.prototype.setBindingDebugInfo = function (renderElement, propertyName, propertyValue) {\n var dashCasedPropertyName = camelCaseToDashCase(propertyName);\n if (getDOM().isCommentNode(renderElement)) {\n var existingBindings = StringWrapper.replaceAll(getDOM().getText(renderElement), /\\n/g, '')\n .match(TEMPLATE_BINDINGS_EXP);\n var parsedBindings = Json.parse(existingBindings[1]);\n parsedBindings[dashCasedPropertyName] = propertyValue;\n getDOM().setText(renderElement, StringWrapper.replace(TEMPLATE_COMMENT_TEXT, '{}', Json.stringify(parsedBindings)));\n }\n else {\n this.setElementAttribute(renderElement, propertyName, propertyValue);\n }\n };\n DomRenderer.prototype.setElementClass = function (renderElement, className, isAdd) {\n if (isAdd) {\n getDOM().addClass(renderElement, className);\n }\n else {\n getDOM().removeClass(renderElement, className);\n }\n };\n DomRenderer.prototype.setElementStyle = function (renderElement, styleName, styleValue) {\n if (isPresent(styleValue)) {\n getDOM().setStyle(renderElement, styleName, stringify(styleValue));\n }\n else {\n getDOM().removeStyle(renderElement, styleName);\n }\n };\n DomRenderer.prototype.invokeElementMethod = function (renderElement, methodName, args) {\n getDOM().invoke(renderElement, methodName, args);\n };\n DomRenderer.prototype.setText = function (renderNode, text) { getDOM().setText(renderNode, text); };\n DomRenderer.prototype.animate = function (element, startingStyles, keyframes, duration, delay, easing) {\n return this._animationDriver.animate(element, startingStyles, keyframes, duration, delay, easing);\n };\n return DomRenderer;\n }());\n function moveNodesAfterSibling(sibling /** TODO #9100 */, nodes /** TODO #9100 */) {\n var parent = getDOM().parentElement(sibling);\n if (nodes.length > 0 && isPresent(parent)) {\n var nextSibling = getDOM().nextSibling(sibling);\n if (isPresent(nextSibling)) {\n for (var i = 0; i < nodes.length; i++) {\n getDOM().insertBefore(nextSibling, nodes[i]);\n }\n }\n else {\n for (var i = 0; i < nodes.length; i++) {\n getDOM().appendChild(parent, nodes[i]);\n }\n }\n }\n }\n function appendNodes(parent /** TODO #9100 */, nodes /** TODO #9100 */) {\n for (var i = 0; i < nodes.length; i++) {\n getDOM().appendChild(parent, nodes[i]);\n }\n }\n function decoratePreventDefault(eventHandler) {\n return function (event /** TODO #9100 */) {\n var allowDefaultBehavior = eventHandler(event);\n if (allowDefaultBehavior === false) {\n // TODO(tbosch): move preventDefault into event plugins...\n getDOM().preventDefault(event);\n }\n };\n }\n var COMPONENT_REGEX = /%COMP%/g;\n var COMPONENT_VARIABLE = '%COMP%';\n var HOST_ATTR = \"_nghost-\" + COMPONENT_VARIABLE;\n var CONTENT_ATTR = \"_ngcontent-\" + COMPONENT_VARIABLE;\n function _shimContentAttribute(componentShortId) {\n return StringWrapper.replaceAll(CONTENT_ATTR, COMPONENT_REGEX, componentShortId);\n }\n function _shimHostAttribute(componentShortId) {\n return StringWrapper.replaceAll(HOST_ATTR, COMPONENT_REGEX, componentShortId);\n }\n function _flattenStyles(compId, styles, target) {\n for (var i = 0; i < styles.length; i++) {\n var style = styles[i];\n if (isArray(style)) {\n _flattenStyles(compId, style, target);\n }\n else {\n style = StringWrapper.replaceAll(style, COMPONENT_REGEX, compId);\n target.push(style);\n }\n }\n return target;\n }\n var NS_PREFIX_RE = /^:([^:]+):(.+)$/;\n function splitNamespace(name) {\n if (name[0] != ':') {\n return [null, name];\n }\n var match = name.match(NS_PREFIX_RE);\n return [match[1], match[2]];\n }\n\n var CORE_TOKENS = {\n 'ApplicationRef': _angular_core.ApplicationRef,\n 'NgZone': _angular_core.NgZone\n };\n var INSPECT_GLOBAL_NAME = 'ng.probe';\n var CORE_TOKENS_GLOBAL_NAME = 'ng.coreTokens';\n /**\n * Returns a {@link DebugElement} for the given native DOM element, or\n * null if the given native element does not have an Angular view associated\n * with it.\n */\n function inspectNativeElement(element /** TODO #9100 */) {\n return _angular_core.getDebugNode(element);\n }\n /**\n * @experimental\n */\n var NgProbeToken = (function () {\n function NgProbeToken(name, token) {\n this.name = name;\n this.token = token;\n }\n return NgProbeToken;\n }());\n function _createConditionalRootRenderer(rootRenderer /** TODO #9100 */, extraTokens) {\n if (_angular_core.isDevMode()) {\n return _createRootRenderer(rootRenderer, extraTokens);\n }\n return rootRenderer;\n }\n function _createRootRenderer(rootRenderer /** TODO #9100 */, extraTokens) {\n getDOM().setGlobalVar(INSPECT_GLOBAL_NAME, inspectNativeElement);\n getDOM().setGlobalVar(CORE_TOKENS_GLOBAL_NAME, StringMapWrapper.merge(CORE_TOKENS, _ngProbeTokensToMap(extraTokens || [])));\n return new DebugDomRootRenderer(rootRenderer);\n }\n function _ngProbeTokensToMap(tokens) {\n return tokens.reduce(function (prev, t) { return (prev[t.name] = t.token, prev); }, {});\n }\n /**\n * Providers which support debugging Angular applications (e.g. via `ng.probe`).\n */\n var ELEMENT_PROBE_PROVIDERS = [{\n provide: _angular_core.RootRenderer,\n useFactory: _createConditionalRootRenderer,\n deps: [DomRootRenderer, [NgProbeToken, new _angular_core.Optional()]]\n }];\n var ELEMENT_PROBE_PROVIDERS_PROD_MODE = [{\n provide: _angular_core.RootRenderer,\n useFactory: _createRootRenderer,\n deps: [DomRootRenderer, [NgProbeToken, new _angular_core.Optional()]]\n }];\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$5 = (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 };\n var DomEventsPlugin = (function (_super) {\n __extends$5(DomEventsPlugin, _super);\n function DomEventsPlugin() {\n _super.apply(this, arguments);\n }\n // This plugin should come last in the list of plugins, because it accepts all\n // events.\n DomEventsPlugin.prototype.supports = function (eventName) { return true; };\n DomEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {\n var zone = this.manager.getZone();\n var outsideHandler = function (event /** TODO #9100 */) { return zone.runGuarded(function () { return handler(event); }); };\n return this.manager.getZone().runOutsideAngular(function () { return getDOM().onAndCancel(element, eventName, outsideHandler); });\n };\n DomEventsPlugin.prototype.addGlobalEventListener = function (target, eventName, handler) {\n var element = getDOM().getGlobalEventTarget(target);\n var zone = this.manager.getZone();\n var outsideHandler = function (event /** TODO #9100 */) { return zone.runGuarded(function () { return handler(event); }); };\n return this.manager.getZone().runOutsideAngular(function () { return getDOM().onAndCancel(element, eventName, outsideHandler); });\n };\n DomEventsPlugin.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n DomEventsPlugin.ctorParameters = [];\n return DomEventsPlugin;\n }(EventManagerPlugin));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$7 = (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 };\n var _eventNames = {\n // pan\n 'pan': true,\n 'panstart': true,\n 'panmove': true,\n 'panend': true,\n 'pancancel': true,\n 'panleft': true,\n 'panright': true,\n 'panup': true,\n 'pandown': true,\n // pinch\n 'pinch': true,\n 'pinchstart': true,\n 'pinchmove': true,\n 'pinchend': true,\n 'pinchcancel': true,\n 'pinchin': true,\n 'pinchout': true,\n // press\n 'press': true,\n 'pressup': true,\n // rotate\n 'rotate': true,\n 'rotatestart': true,\n 'rotatemove': true,\n 'rotateend': true,\n 'rotatecancel': true,\n // swipe\n 'swipe': true,\n 'swipeleft': true,\n 'swiperight': true,\n 'swipeup': true,\n 'swipedown': true,\n // tap\n 'tap': true,\n };\n var HammerGesturesPluginCommon = (function (_super) {\n __extends$7(HammerGesturesPluginCommon, _super);\n function HammerGesturesPluginCommon() {\n _super.call(this);\n }\n HammerGesturesPluginCommon.prototype.supports = function (eventName) {\n eventName = eventName.toLowerCase();\n return StringMapWrapper.contains(_eventNames, eventName);\n };\n return HammerGesturesPluginCommon;\n }(EventManagerPlugin));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$6 = (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 };\n /**\n * A DI token that you can use to provide{@link HammerGestureConfig} to Angular. Use it to configure\n * Hammer gestures.\n *\n * @experimental\n */\n var HAMMER_GESTURE_CONFIG = new _angular_core.OpaqueToken('HammerGestureConfig');\n /**\n * @experimental\n */\n var HammerGestureConfig = (function () {\n function HammerGestureConfig() {\n this.events = [];\n this.overrides = {};\n }\n HammerGestureConfig.prototype.buildHammer = function (element) {\n var mc = new Hammer(element);\n mc.get('pinch').set({ enable: true });\n mc.get('rotate').set({ enable: true });\n for (var eventName in this.overrides) {\n mc.get(eventName).set(this.overrides[eventName]);\n }\n return mc;\n };\n HammerGestureConfig.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n HammerGestureConfig.ctorParameters = [];\n return HammerGestureConfig;\n }());\n var HammerGesturesPlugin = (function (_super) {\n __extends$6(HammerGesturesPlugin, _super);\n function HammerGesturesPlugin(_config) {\n _super.call(this);\n this._config = _config;\n }\n HammerGesturesPlugin.prototype.supports = function (eventName) {\n if (!_super.prototype.supports.call(this, eventName) && !this.isCustomEvent(eventName))\n return false;\n if (!isPresent(window['Hammer'])) {\n throw new Error(\"Hammer.js is not loaded, can not bind \" + eventName + \" event\");\n }\n return true;\n };\n HammerGesturesPlugin.prototype.addEventListener = function (element, eventName, handler) {\n var _this = this;\n var zone = this.manager.getZone();\n eventName = eventName.toLowerCase();\n return zone.runOutsideAngular(function () {\n // Creating the manager bind events, must be done outside of angular\n var mc = _this._config.buildHammer(element);\n var callback = function (eventObj /** TODO #???? */) {\n zone.runGuarded(function () { handler(eventObj); });\n };\n mc.on(eventName, callback);\n return function () { mc.off(eventName, callback); };\n });\n };\n HammerGesturesPlugin.prototype.isCustomEvent = function (eventName) { return this._config.events.indexOf(eventName) > -1; };\n HammerGesturesPlugin.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n HammerGesturesPlugin.ctorParameters = [\n { type: HammerGestureConfig, decorators: [{ type: _angular_core.Inject, args: [HAMMER_GESTURE_CONFIG,] },] },\n ];\n return HammerGesturesPlugin;\n }(HammerGesturesPluginCommon));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$8 = (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 };\n var modifierKeys = ['alt', 'control', 'meta', 'shift'];\n var modifierKeyGetters = {\n 'alt': function (event) { return event.altKey; },\n 'control': function (event) { return event.ctrlKey; },\n 'meta': function (event) { return event.metaKey; },\n 'shift': function (event) { return event.shiftKey; }\n };\n /**\n * @experimental\n */\n var KeyEventsPlugin = (function (_super) {\n __extends$8(KeyEventsPlugin, _super);\n function KeyEventsPlugin() {\n _super.call(this);\n }\n KeyEventsPlugin.prototype.supports = function (eventName) {\n return isPresent(KeyEventsPlugin.parseEventName(eventName));\n };\n KeyEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {\n var parsedEvent = KeyEventsPlugin.parseEventName(eventName);\n var outsideHandler = KeyEventsPlugin.eventCallback(element, StringMapWrapper.get(parsedEvent, 'fullKey'), handler, this.manager.getZone());\n return this.manager.getZone().runOutsideAngular(function () {\n return getDOM().onAndCancel(element, StringMapWrapper.get(parsedEvent, 'domEventName'), outsideHandler);\n });\n };\n KeyEventsPlugin.parseEventName = function (eventName) {\n var parts = eventName.toLowerCase().split('.');\n var domEventName = parts.shift();\n if ((parts.length === 0) ||\n !(StringWrapper.equals(domEventName, 'keydown') ||\n StringWrapper.equals(domEventName, 'keyup'))) {\n return null;\n }\n var key = KeyEventsPlugin._normalizeKey(parts.pop());\n var fullKey = '';\n modifierKeys.forEach(function (modifierName) {\n if (ListWrapper.contains(parts, modifierName)) {\n ListWrapper.remove(parts, modifierName);\n fullKey += modifierName + '.';\n }\n });\n fullKey += key;\n if (parts.length != 0 || key.length === 0) {\n // returning null instead of throwing to let another plugin process the event\n return null;\n }\n var result = StringMapWrapper.create();\n StringMapWrapper.set(result, 'domEventName', domEventName);\n StringMapWrapper.set(result, 'fullKey', fullKey);\n return result;\n };\n KeyEventsPlugin.getEventFullKey = function (event) {\n var fullKey = '';\n var key = getDOM().getEventKey(event);\n key = key.toLowerCase();\n if (StringWrapper.equals(key, ' ')) {\n key = 'space'; // for readability\n }\n else if (StringWrapper.equals(key, '.')) {\n key = 'dot'; // because '.' is used as a separator in event names\n }\n modifierKeys.forEach(function (modifierName) {\n if (modifierName != key) {\n var modifierGetter = StringMapWrapper.get(modifierKeyGetters, modifierName);\n if (modifierGetter(event)) {\n fullKey += modifierName + '.';\n }\n }\n });\n fullKey += key;\n return fullKey;\n };\n KeyEventsPlugin.eventCallback = function (element, fullKey, handler, zone) {\n return function (event /** TODO #9100 */) {\n if (StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event), fullKey)) {\n zone.runGuarded(function () { return handler(event); });\n }\n };\n };\n /** @internal */\n KeyEventsPlugin._normalizeKey = function (keyName) {\n // TODO: switch to a StringMap if the mapping grows too much\n switch (keyName) {\n case 'esc':\n return 'escape';\n default:\n return keyName;\n }\n };\n KeyEventsPlugin.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n KeyEventsPlugin.ctorParameters = [];\n return KeyEventsPlugin;\n }(EventManagerPlugin));\n\n /**\n * A pattern that recognizes a commonly useful subset of URLs that are safe.\n *\n * This regular expression matches a subset of URLs that will not cause script\n * execution if used in URL context within a HTML document. Specifically, this\n * regular expression matches if (comment from here on and regex copied from\n * Soy's EscapingConventions):\n * (1) Either a protocol in a whitelist (http, https, mailto or ftp).\n * (2) or no protocol. A protocol must be followed by a colon. The below\n * allows that by allowing colons only after one of the characters [/?#].\n * A colon after a hash (#) must be in the fragment.\n * Otherwise, a colon after a (?) must be in a query.\n * Otherwise, a colon after a single solidus (/) must be in a path.\n * Otherwise, a colon after a double solidus (//) must be in the authority\n * (before port).\n *\n * The pattern disallows &, used in HTML entity declarations before\n * one of the characters in [/?#]. This disallows HTML entities used in the\n * protocol name, which should never happen, e.g. \"http\" for \"http\".\n * It also disallows HTML entities in the first path part of a relative path,\n * e.g. \"foo<bar/baz\". Our existing escaping functions should not produce\n * that. More importantly, it disallows masking of a colon,\n * e.g. \"javascript:...\".\n *\n * This regular expression was taken from the Closure sanitization library.\n */\n var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi;\n /** A pattern that matches safe data URLs. Only matches image, video and audio types. */\n var DATA_URL_PATTERN = /^data:(?:image\\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\\/(?:mpeg|mp4|ogg|webm)|audio\\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\\/]+=*$/i;\n function sanitizeUrl(url) {\n url = String(url);\n if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN))\n return url;\n if (_angular_core.isDevMode()) {\n getDOM().log(\"WARNING: sanitizing unsafe URL value \" + url + \" (see http://g.co/ng/security#xss)\");\n }\n return 'unsafe:' + url;\n }\n function sanitizeSrcset(srcset) {\n srcset = String(srcset);\n return srcset.split(',').map(function (srcset) { return sanitizeUrl(srcset.trim()); }).join(', ');\n }\n\n /** A <body> element that can be safely used to parse untrusted HTML. Lazily initialized below. */\n var inertElement = null;\n /** Lazily initialized to make sure the DOM adapter gets set before use. */\n var DOM = null;\n /** Returns an HTML element that is guaranteed to not execute code when creating elements in it. */\n function getInertElement() {\n if (inertElement)\n return inertElement;\n DOM = getDOM();\n // Prefer using <template> element if supported.\n var templateEl = DOM.createElement('template');\n if ('content' in templateEl)\n return templateEl;\n var doc = DOM.createHtmlDocument();\n inertElement = DOM.querySelector(doc, 'body');\n if (inertElement == null) {\n // usually there should be only one body element in the document, but IE doesn't have any, so we\n // need to create one.\n var html = DOM.createElement('html', doc);\n inertElement = DOM.createElement('body', doc);\n DOM.appendChild(html, inertElement);\n DOM.appendChild(doc, html);\n }\n return inertElement;\n }\n function tagSet(tags) {\n var res = {};\n for (var _i = 0, _a = tags.split(','); _i < _a.length; _i++) {\n var t = _a[_i];\n res[t] = true;\n }\n return res;\n }\n function merge() {\n var sets = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sets[_i - 0] = arguments[_i];\n }\n var res = {};\n for (var _a = 0, sets_1 = sets; _a < sets_1.length; _a++) {\n var s = sets_1[_a];\n for (var v in s) {\n if (s.hasOwnProperty(v))\n res[v] = true;\n }\n }\n return res;\n }\n // Good source of info about elements and attributes\n // http://dev.w3.org/html5/spec/Overview.html#semantics\n // http://simon.html5.org/html-elements\n // Safe Void Elements - HTML5\n // http://dev.w3.org/html5/spec/Overview.html#void-elements\n var VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr');\n // Elements that you can, intentionally, leave open (and which close themselves)\n // http://dev.w3.org/html5/spec/Overview.html#optional-tags\n var OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');\n var OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');\n var OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);\n // Safe Block Elements - HTML5\n var BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' +\n 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' +\n 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul'));\n // Inline Elements - HTML5\n var INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' +\n 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' +\n 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));\n var VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);\n // Attributes that have href and hence need to be sanitized\n var URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');\n // Attributes that have special href set hence need to be sanitized\n var SRCSET_ATTRS = tagSet('srcset');\n var HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' +\n 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' +\n 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' +\n 'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' +\n 'valign,value,vspace,width');\n // NB: This currently conciously doesn't support SVG. SVG sanitization has had several security\n // issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via\n // innerHTML is required, SVG attributes should be added here.\n // NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those\n // can be sanitized, but they increase security surface area without a legitimate use case, so they\n // are left out here.\n var VALID_ATTRS = merge(URI_ATTRS, SRCSET_ATTRS, HTML_ATTRS);\n /**\n * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe\n * attributes.\n */\n var SanitizingHtmlSerializer = (function () {\n function SanitizingHtmlSerializer() {\n // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just\n // because characters were re-encoded.\n this.sanitizedSomething = false;\n this.buf = [];\n }\n SanitizingHtmlSerializer.prototype.sanitizeChildren = function (el) {\n // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.\n // However this code never accesses properties off of `document` before deleting its contents\n // again, so it shouldn't be vulnerable to DOM clobbering.\n var current = el.firstChild;\n while (current) {\n if (DOM.isElementNode(current)) {\n this.startElement(current);\n }\n else if (DOM.isTextNode(current)) {\n this.chars(DOM.nodeValue(current));\n }\n else {\n // Strip non-element, non-text nodes.\n this.sanitizedSomething = true;\n }\n if (DOM.firstChild(current)) {\n current = DOM.firstChild(current);\n continue;\n }\n while (current) {\n // Leaving the element. Walk up and to the right, closing tags as we go.\n if (DOM.isElementNode(current)) {\n this.endElement(current);\n }\n if (DOM.nextSibling(current)) {\n current = DOM.nextSibling(current);\n break;\n }\n current = DOM.parentElement(current);\n }\n }\n return this.buf.join('');\n };\n SanitizingHtmlSerializer.prototype.startElement = function (element) {\n var _this = this;\n var tagName = DOM.nodeName(element).toLowerCase();\n if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {\n this.sanitizedSomething = true;\n return;\n }\n this.buf.push('<');\n this.buf.push(tagName);\n DOM.attributeMap(element).forEach(function (value, attrName) {\n var lower = attrName.toLowerCase();\n if (!VALID_ATTRS.hasOwnProperty(lower)) {\n _this.sanitizedSomething = true;\n return;\n }\n // TODO(martinprobst): Special case image URIs for data:image/...\n if (URI_ATTRS[lower])\n value = sanitizeUrl(value);\n if (SRCSET_ATTRS[lower])\n value = sanitizeSrcset(value);\n _this.buf.push(' ');\n _this.buf.push(attrName);\n _this.buf.push('=\"');\n _this.buf.push(encodeEntities(value));\n _this.buf.push('\"');\n });\n this.buf.push('>');\n };\n SanitizingHtmlSerializer.prototype.endElement = function (current) {\n var tagName = DOM.nodeName(current).toLowerCase();\n if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {\n this.buf.push('</');\n this.buf.push(tagName);\n this.buf.push('>');\n }\n };\n SanitizingHtmlSerializer.prototype.chars = function (chars /** TODO #9100 */) { this.buf.push(encodeEntities(chars)); };\n return SanitizingHtmlSerializer;\n }());\n // Regular Expressions for parsing tags and attributes\n var SURROGATE_PAIR_REGEXP = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n // ! to ~ is the ASCII range.\n var NON_ALPHANUMERIC_REGEXP = /([^\\#-~ |!])/g;\n /**\n * Escapes all potentially dangerous characters, so that the\n * resulting string can be safely inserted into attribute or\n * element text.\n * @param value\n * @returns {string} escaped text\n */\n function encodeEntities(value) {\n return value.replace(/&/g, '&')\n .replace(SURROGATE_PAIR_REGEXP, function (match) {\n var hi = match.charCodeAt(0);\n var low = match.charCodeAt(1);\n return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';\n })\n .replace(NON_ALPHANUMERIC_REGEXP, function (match) { return '&#' + match.charCodeAt(0) + ';'; })\n .replace(/</g, '<')\n .replace(/>/g, '>');\n }\n /**\n * When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'\n * attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo').\n *\n * This is undesirable since we don't want to allow any of these custom attributes. This method\n * strips them all.\n */\n function stripCustomNsAttrs(el) {\n DOM.attributeMap(el).forEach(function (_, attrName) {\n if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {\n DOM.removeAttribute(el, attrName);\n }\n });\n for (var _i = 0, _a = DOM.childNodesAsList(el); _i < _a.length; _i++) {\n var n = _a[_i];\n if (DOM.isElementNode(n))\n stripCustomNsAttrs(n);\n }\n }\n /**\n * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to\n * the DOM in a browser environment.\n */\n function sanitizeHtml(unsafeHtmlInput) {\n try {\n var containerEl = getInertElement();\n // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).\n var unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';\n // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser\n // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.\n var mXSSAttempts = 5;\n var parsedHtml = unsafeHtml;\n do {\n if (mXSSAttempts === 0) {\n throw new Error('Failed to sanitize html because the input is unstable');\n }\n mXSSAttempts--;\n unsafeHtml = parsedHtml;\n DOM.setInnerHTML(containerEl, unsafeHtml);\n if (DOM.defaultDoc().documentMode) {\n // strip custom-namespaced attributes on IE<=11\n stripCustomNsAttrs(containerEl);\n }\n parsedHtml = DOM.getInnerHTML(containerEl);\n } while (unsafeHtml !== parsedHtml);\n var sanitizer = new SanitizingHtmlSerializer();\n var safeHtml = sanitizer.sanitizeChildren(DOM.getTemplateContent(containerEl) || containerEl);\n // Clear out the body element.\n var parent_1 = DOM.getTemplateContent(containerEl) || containerEl;\n for (var _i = 0, _a = DOM.childNodesAsList(parent_1); _i < _a.length; _i++) {\n var child = _a[_i];\n DOM.removeChild(parent_1, child);\n }\n if (_angular_core.isDevMode() && sanitizer.sanitizedSomething) {\n DOM.log('WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss).');\n }\n return safeHtml;\n }\n catch (e) {\n // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.\n inertElement = null;\n throw e;\n }\n }\n\n /**\n * Regular expression for safe style values.\n *\n * Quotes (\" and ') are allowed, but a check must be done elsewhere to ensure they're balanced.\n *\n * ',' allows multiple values to be assigned to the same property (e.g. background-attachment or\n * font-family) and hence could allow multiple values to get injected, but that should pose no risk\n * of XSS.\n *\n * The function expression checks only for XSS safety, not for CSS validity.\n *\n * This regular expression was taken from the Closure sanitization library, and augmented for\n * transformation values.\n */\n var VALUES = '[-,.\"\\'%_!# a-zA-Z0-9]+';\n var TRANSFORMATION_FNS = '(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?';\n var COLOR_FNS = '(?:rgb|hsl)a?';\n var FN_ARGS = '\\\\([-0-9.%, a-zA-Z]+\\\\)';\n var SAFE_STYLE_VALUE = new RegExp(\"^(\" + VALUES + \"|(?:\" + TRANSFORMATION_FNS + \"|\" + COLOR_FNS + \")\" + FN_ARGS + \")$\", 'g');\n /**\n * Matches a `url(...)` value with an arbitrary argument as long as it does\n * not contain parentheses.\n *\n * The URL value still needs to be sanitized separately.\n *\n * `url(...)` values are a very common use case, e.g. for `background-image`. With carefully crafted\n * CSS style rules, it is possible to construct an information leak with `url` values in CSS, e.g.\n * by observing whether scroll bars are displayed, or character ranges used by a font face\n * definition.\n *\n * Angular only allows binding CSS values (as opposed to entire CSS rules), so it is unlikely that\n * binding a URL value without further cooperation from the page will cause an information leak, and\n * if so, it is just a leak, not a full blown XSS vulnerability.\n *\n * Given the common use case, low likelihood of attack vector, and low impact of an attack, this\n * code is permissive and allows URLs that sanitize otherwise.\n */\n var URL_RE = /^url\\(([^)]+)\\)$/;\n /**\n * Checks that quotes (\" and ') are properly balanced inside a string. Assumes\n * that neither escape (\\) nor any other character that could result in\n * breaking out of a string parsing context are allowed;\n * see http://www.w3.org/TR/css3-syntax/#string-token-diagram.\n *\n * This code was taken from the Closure sanitization library.\n */\n function hasBalancedQuotes(value) {\n var outsideSingle = true;\n var outsideDouble = true;\n for (var i = 0; i < value.length; i++) {\n var c = value.charAt(i);\n if (c === '\\'' && outsideDouble) {\n outsideSingle = !outsideSingle;\n }\n else if (c === '\"' && outsideSingle) {\n outsideDouble = !outsideDouble;\n }\n }\n return outsideSingle && outsideDouble;\n }\n /**\n * Sanitizes the given untrusted CSS style property value (i.e. not an entire object, just a single\n * value) and returns a value that is safe to use in a browser environment.\n */\n function sanitizeStyle(value) {\n value = String(value).trim(); // Make sure it's actually a string.\n if (!value)\n return '';\n // Single url(...) values are supported, but only for URLs that sanitize cleanly. See above for\n // reasoning behind this.\n var urlMatch = value.match(URL_RE);\n if ((urlMatch && sanitizeUrl(urlMatch[1]) === urlMatch[1]) ||\n value.match(SAFE_STYLE_VALUE) && hasBalancedQuotes(value)) {\n return value; // Safe style values.\n }\n if (_angular_core.isDevMode()) {\n getDOM().log(\"WARNING: sanitizing unsafe style value \" + value + \" (see http://g.co/ng/security#xss).\");\n }\n return 'unsafe';\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$9 = (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 };\n /**\n * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing\n * values to be safe to use in the different DOM contexts.\n *\n * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be\n * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on\n * the website.\n *\n * In specific situations, it might be necessary to disable sanitization, for example if the\n * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.\n * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`\n * methods, and then binding to that value from the template.\n *\n * These situations should be very rare, and extraordinary care must be taken to avoid creating a\n * Cross Site Scripting (XSS) security bug!\n *\n * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as\n * close as possible to the source of the value, to make it easy to verify no security bug is\n * created by its use.\n *\n * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that\n * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous\n * code. The sanitizer leaves safe values intact.\n *\n * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in\n * sanitization for the value passed in. Carefully check and audit all values and code paths going\n * into this call. Make sure any user data is appropriately escaped for this security context.\n * For more detail, see the [Security Guide](http://g.co/ng/security).\n *\n * @stable\n */\n var DomSanitizer = (function () {\n function DomSanitizer() {\n }\n return DomSanitizer;\n }());\n var DomSanitizerImpl = (function (_super) {\n __extends$9(DomSanitizerImpl, _super);\n function DomSanitizerImpl() {\n _super.apply(this, arguments);\n }\n DomSanitizerImpl.prototype.sanitize = function (ctx, value) {\n if (value == null)\n return null;\n switch (ctx) {\n case _angular_core.SecurityContext.NONE:\n return value;\n case _angular_core.SecurityContext.HTML:\n if (value instanceof SafeHtmlImpl)\n return value.changingThisBreaksApplicationSecurity;\n this.checkNotSafeValue(value, 'HTML');\n return sanitizeHtml(String(value));\n case _angular_core.SecurityContext.STYLE:\n if (value instanceof SafeStyleImpl)\n return value.changingThisBreaksApplicationSecurity;\n this.checkNotSafeValue(value, 'Style');\n return sanitizeStyle(value);\n case _angular_core.SecurityContext.SCRIPT:\n if (value instanceof SafeScriptImpl)\n return value.changingThisBreaksApplicationSecurity;\n this.checkNotSafeValue(value, 'Script');\n throw new Error('unsafe value used in a script context');\n case _angular_core.SecurityContext.URL:\n if (value instanceof SafeResourceUrlImpl || value instanceof SafeUrlImpl) {\n // Allow resource URLs in URL contexts, they are strictly more trusted.\n return value.changingThisBreaksApplicationSecurity;\n }\n this.checkNotSafeValue(value, 'URL');\n return sanitizeUrl(String(value));\n case _angular_core.SecurityContext.RESOURCE_URL:\n if (value instanceof SafeResourceUrlImpl) {\n return value.changingThisBreaksApplicationSecurity;\n }\n this.checkNotSafeValue(value, 'ResourceURL');\n throw new Error('unsafe value used in a resource URL context (see http://g.co/ng/security#xss)');\n default:\n throw new Error(\"Unexpected SecurityContext \" + ctx + \" (see http://g.co/ng/security#xss)\");\n }\n };\n DomSanitizerImpl.prototype.checkNotSafeValue = function (value, expectedType) {\n if (value instanceof SafeValueImpl) {\n throw new Error((\"Required a safe \" + expectedType + \", got a \" + value.getTypeName() + \" \") +\n \"(see http://g.co/ng/security#xss)\");\n }\n };\n DomSanitizerImpl.prototype.bypassSecurityTrustHtml = function (value) { return new SafeHtmlImpl(value); };\n DomSanitizerImpl.prototype.bypassSecurityTrustStyle = function (value) { return new SafeStyleImpl(value); };\n DomSanitizerImpl.prototype.bypassSecurityTrustScript = function (value) { return new SafeScriptImpl(value); };\n DomSanitizerImpl.prototype.bypassSecurityTrustUrl = function (value) { return new SafeUrlImpl(value); };\n DomSanitizerImpl.prototype.bypassSecurityTrustResourceUrl = function (value) {\n return new SafeResourceUrlImpl(value);\n };\n DomSanitizerImpl.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n DomSanitizerImpl.ctorParameters = [];\n return DomSanitizerImpl;\n }(DomSanitizer));\n var SafeValueImpl = (function () {\n function SafeValueImpl(changingThisBreaksApplicationSecurity) {\n this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;\n // empty\n }\n SafeValueImpl.prototype.toString = function () {\n return (\"SafeValue must use [property]=binding: \" + this.changingThisBreaksApplicationSecurity) +\n \" (see http://g.co/ng/security#xss)\";\n };\n return SafeValueImpl;\n }());\n var SafeHtmlImpl = (function (_super) {\n __extends$9(SafeHtmlImpl, _super);\n function SafeHtmlImpl() {\n _super.apply(this, arguments);\n }\n SafeHtmlImpl.prototype.getTypeName = function () { return 'HTML'; };\n return SafeHtmlImpl;\n }(SafeValueImpl));\n var SafeStyleImpl = (function (_super) {\n __extends$9(SafeStyleImpl, _super);\n function SafeStyleImpl() {\n _super.apply(this, arguments);\n }\n SafeStyleImpl.prototype.getTypeName = function () { return 'Style'; };\n return SafeStyleImpl;\n }(SafeValueImpl));\n var SafeScriptImpl = (function (_super) {\n __extends$9(SafeScriptImpl, _super);\n function SafeScriptImpl() {\n _super.apply(this, arguments);\n }\n SafeScriptImpl.prototype.getTypeName = function () { return 'Script'; };\n return SafeScriptImpl;\n }(SafeValueImpl));\n var SafeUrlImpl = (function (_super) {\n __extends$9(SafeUrlImpl, _super);\n function SafeUrlImpl() {\n _super.apply(this, arguments);\n }\n SafeUrlImpl.prototype.getTypeName = function () { return 'URL'; };\n return SafeUrlImpl;\n }(SafeValueImpl));\n var SafeResourceUrlImpl = (function (_super) {\n __extends$9(SafeResourceUrlImpl, _super);\n function SafeResourceUrlImpl() {\n _super.apply(this, arguments);\n }\n SafeResourceUrlImpl.prototype.getTypeName = function () { return 'ResourceURL'; };\n return SafeResourceUrlImpl;\n }(SafeValueImpl));\n\n var INTERNAL_BROWSER_PLATFORM_PROVIDERS = [\n { provide: _angular_core.PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true },\n { provide: _angular_common.PlatformLocation, useClass: BrowserPlatformLocation }\n ];\n /**\n * @security Replacing built-in sanitization providers exposes the application to XSS risks.\n * Attacker-controlled data introduced by an unsanitized provider could expose your\n * application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).\n * @experimental\n */\n var BROWSER_SANITIZATION_PROVIDERS = [\n { provide: _angular_core.Sanitizer, useExisting: DomSanitizer },\n { provide: DomSanitizer, useClass: DomSanitizerImpl },\n ];\n /**\n * @stable\n */\n var platformBrowser = _angular_core.createPlatformFactory(_angular_core.platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);\n function initDomAdapter() {\n BrowserDomAdapter.makeCurrent();\n BrowserGetTestability.init();\n }\n function errorHandler() {\n return new _angular_core.ErrorHandler();\n }\n function _document() {\n return getDOM().defaultDoc();\n }\n function _resolveDefaultAnimationDriver() {\n if (getDOM().supportsWebAnimation()) {\n return new WebAnimationsDriver();\n }\n return AnimationDriver.NOOP;\n }\n /**\n * The ng module for the browser.\n *\n * @stable\n */\n var BrowserModule = (function () {\n function BrowserModule(parentModule) {\n if (parentModule) {\n throw new Error(\"BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.\");\n }\n }\n BrowserModule.decorators = [\n { type: _angular_core.NgModule, args: [{\n providers: [\n BROWSER_SANITIZATION_PROVIDERS, { provide: _angular_core.ErrorHandler, useFactory: errorHandler, deps: [] },\n { provide: DOCUMENT, useFactory: _document, deps: [] },\n { provide: EVENT_MANAGER_PLUGINS, useClass: DomEventsPlugin, multi: true },\n { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true },\n { provide: EVENT_MANAGER_PLUGINS, useClass: HammerGesturesPlugin, multi: true },\n { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig },\n { provide: DomRootRenderer, useClass: DomRootRenderer_ },\n { provide: _angular_core.RootRenderer, useExisting: DomRootRenderer },\n { provide: SharedStylesHost, useExisting: DomSharedStylesHost },\n { provide: AnimationDriver, useFactory: _resolveDefaultAnimationDriver }, DomSharedStylesHost,\n _angular_core.Testability, EventManager, ELEMENT_PROBE_PROVIDERS\n ],\n exports: [_angular_common.CommonModule, _angular_core.ApplicationModule]\n },] },\n ];\n /** @nocollapse */\n BrowserModule.ctorParameters = [\n { type: BrowserModule, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.SkipSelf },] },\n ];\n return BrowserModule;\n }());\n\n /**\n * A service that can be used to get and set the title of a current HTML document.\n *\n * Since an Angular 2 application can't be bootstrapped on the entire HTML document (`<html>` tag)\n * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements\n * (representing the `<title>` tag). Instead, this service can be used to set and get the current\n * title value.\n *\n * @experimental\n */\n var Title = (function () {\n function Title() {\n }\n /**\n * Get the title of the current HTML document.\n * @returns {string}\n */\n Title.prototype.getTitle = function () { return getDOM().getTitle(); };\n /**\n * Set the title of the current HTML document.\n * @param newTitle\n */\n Title.prototype.setTitle = function (newTitle) { getDOM().setTitle(newTitle); };\n return Title;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * JS version of browser APIs. This library can only run in the browser.\n */\n var win = typeof window !== 'undefined' && window || {};\n\n var ChangeDetectionPerfRecord = (function () {\n function ChangeDetectionPerfRecord(msPerTick, numTicks) {\n this.msPerTick = msPerTick;\n this.numTicks = numTicks;\n }\n return ChangeDetectionPerfRecord;\n }());\n /**\n * Entry point for all Angular debug tools. This object corresponds to the `ng`\n * global variable accessible in the dev console.\n */\n var AngularTools = (function () {\n function AngularTools(ref) {\n this.profiler = new AngularProfiler(ref);\n }\n return AngularTools;\n }());\n /**\n * Entry point for all Angular profiling-related debug tools. This object\n * corresponds to the `ng.profiler` in the dev console.\n */\n var AngularProfiler = (function () {\n function AngularProfiler(ref) {\n this.appRef = ref.injector.get(_angular_core.ApplicationRef);\n }\n /**\n * Exercises change detection in a loop and then prints the average amount of\n * time in milliseconds how long a single round of change detection takes for\n * the current state of the UI. It runs a minimum of 5 rounds for a minimum\n * of 500 milliseconds.\n *\n * Optionally, a user may pass a `config` parameter containing a map of\n * options. Supported options are:\n *\n * `record` (boolean) - causes the profiler to record a CPU profile while\n * it exercises the change detector. Example:\n *\n * ```\n * ng.profiler.timeChangeDetection({record: true})\n * ```\n */\n AngularProfiler.prototype.timeChangeDetection = function (config) {\n var record = isPresent(config) && config['record'];\n var profileName = 'Change Detection';\n // Profiler is not available in Android browsers, nor in IE 9 without dev tools opened\n var isProfilerAvailable = isPresent(win.console.profile);\n if (record && isProfilerAvailable) {\n win.console.profile(profileName);\n }\n var start = getDOM().performanceNow();\n var numTicks = 0;\n while (numTicks < 5 || (getDOM().performanceNow() - start) < 500) {\n this.appRef.tick();\n numTicks++;\n }\n var end = getDOM().performanceNow();\n if (record && isProfilerAvailable) {\n // need to cast to <any> because type checker thinks there's no argument\n // while in fact there is:\n //\n // https://developer.mozilla.org/en-US/docs/Web/API/Console/profileEnd\n win.console.profileEnd(profileName);\n }\n var msPerTick = (end - start) / numTicks;\n win.console.log(\"ran \" + numTicks + \" change detection cycles\");\n win.console.log(NumberWrapper.toFixed(msPerTick, 2) + \" ms per check\");\n return new ChangeDetectionPerfRecord(msPerTick, numTicks);\n };\n return AngularProfiler;\n }());\n\n var context = global$1;\n /**\n * Enabled Angular 2 debug tools that are accessible via your browser's\n * developer console.\n *\n * Usage:\n *\n * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)\n * 1. Type `ng.` (usually the console will show auto-complete suggestion)\n * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`\n * then hit Enter.\n *\n * @experimental All debugging apis are currently experimental.\n */\n function enableDebugTools(ref) {\n context.ng = new AngularTools(ref);\n return ref;\n }\n /**\n * Disables Angular 2 tools.\n *\n * @experimental All debugging apis are currently experimental.\n */\n function disableDebugTools() {\n delete context.ng;\n }\n\n /**\n * Predicates for use with {@link DebugElement}'s query functions.\n *\n * @experimental All debugging apis are currently experimental.\n */\n var By = (function () {\n function By() {\n }\n /**\n * Match all elements.\n *\n * ## Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}\n */\n By.all = function () { return function (debugElement) { return true; }; };\n /**\n * Match elements by the given CSS selector.\n *\n * ## Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}\n */\n By.css = function (selector) {\n return function (debugElement) {\n return isPresent(debugElement.nativeElement) ?\n getDOM().elementMatches(debugElement.nativeElement, selector) :\n false;\n };\n };\n /**\n * Match elements that have the given directive present.\n *\n * ## Example\n *\n * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}\n */\n By.directive = function (type) {\n return function (debugElement) { return debugElement.providerTokens.indexOf(type) !== -1; };\n };\n return By;\n }());\n\n var __platform_browser_private__ = {\n BrowserPlatformLocation: BrowserPlatformLocation,\n DomAdapter: DomAdapter,\n BrowserDomAdapter: BrowserDomAdapter,\n BrowserGetTestability: BrowserGetTestability,\n getDOM: getDOM,\n setRootDomAdapter: setRootDomAdapter,\n DomRootRenderer_: DomRootRenderer_,\n DomRootRenderer: DomRootRenderer,\n DomSharedStylesHost: DomSharedStylesHost,\n SharedStylesHost: SharedStylesHost,\n ELEMENT_PROBE_PROVIDERS: ELEMENT_PROBE_PROVIDERS,\n DomEventsPlugin: DomEventsPlugin,\n KeyEventsPlugin: KeyEventsPlugin,\n HammerGesturesPlugin: HammerGesturesPlugin,\n initDomAdapter: initDomAdapter,\n INTERNAL_BROWSER_PLATFORM_PROVIDERS: INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n BROWSER_SANITIZATION_PROVIDERS: BROWSER_SANITIZATION_PROVIDERS\n };\n\n exports.BrowserModule = BrowserModule;\n exports.platformBrowser = platformBrowser;\n exports.Title = Title;\n exports.disableDebugTools = disableDebugTools;\n exports.enableDebugTools = enableDebugTools;\n exports.AnimationDriver = AnimationDriver;\n exports.By = By;\n exports.NgProbeToken = NgProbeToken;\n exports.DOCUMENT = DOCUMENT;\n exports.EVENT_MANAGER_PLUGINS = EVENT_MANAGER_PLUGINS;\n exports.EventManager = EventManager;\n exports.HAMMER_GESTURE_CONFIG = HAMMER_GESTURE_CONFIG;\n exports.HammerGestureConfig = HammerGestureConfig;\n exports.DomSanitizer = DomSanitizer;\n exports.__platform_browser_private__ = __platform_browser_private__;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/platform-browser/bundles/platform-browser.umd.js\n ** module id = 332\n ** module chunks = 0\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :\n typeof define === 'function' && define.amd ? define(['exports', '@angular/core'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.common = global.ng.common || {}),global.ng.core));\n}(this, function (exports,_angular_core) { 'use strict';\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var globalScope;\n if (typeof window === 'undefined') {\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\n globalScope = self;\n }\n else {\n globalScope = global;\n }\n }\n else {\n globalScope = window;\n }\n // Need to declare a new variable for global here since TypeScript\n // exports the original value of the symbol.\n var global$1 = globalScope;\n function getTypeNameForDebugging(type) {\n if (type['name']) {\n return type['name'];\n }\n return typeof type;\n }\n var Date = global$1.Date;\n // TODO: remove calls to assert in production environment\n // Note: Can't just export this and import in in other files\n // as `assert` is a reserved keyword in Dart\n global$1.assert = function assert(condition) {\n // TODO: to be fixed properly via #2830, noop for now\n };\n function isPresent(obj) {\n return obj !== undefined && obj !== null;\n }\n function isBlank(obj) {\n return obj === undefined || obj === null;\n }\n function isNumber(obj) {\n return typeof obj === 'number';\n }\n function isString(obj) {\n return typeof obj === 'string';\n }\n function isFunction(obj) {\n return typeof obj === 'function';\n }\n function isStringMap(obj) {\n return typeof obj === 'object' && obj !== null;\n }\n function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return isPresent(obj) && isFunction(obj.then);\n }\n function isArray(obj) {\n return Array.isArray(obj);\n }\n function isDate(obj) {\n return obj instanceof Date && !isNaN(obj.valueOf());\n }\n function stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (token === undefined || token === null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return token.overriddenName;\n }\n if (token.name) {\n return token.name;\n }\n var res = token.toString();\n var newLineIndex = res.indexOf('\\n');\n return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);\n }\n var StringWrapper = (function () {\n function StringWrapper() {\n }\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\n StringWrapper.equals = function (s, s2) { return s === s2; };\n StringWrapper.stripLeft = function (s, charVal) {\n if (s && s.length) {\n var pos = 0;\n for (var i = 0; i < s.length; i++) {\n if (s[i] != charVal)\n break;\n pos++;\n }\n s = s.substring(pos);\n }\n return s;\n };\n StringWrapper.stripRight = function (s, charVal) {\n if (s && s.length) {\n var pos = s.length;\n for (var i = s.length - 1; i >= 0; i--) {\n if (s[i] != charVal)\n break;\n pos--;\n }\n s = s.substring(0, pos);\n }\n return s;\n };\n StringWrapper.replace = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.replaceAll = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.slice = function (s, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return s.slice(from, to === null ? undefined : to);\n };\n StringWrapper.replaceAllMapped = function (s, from, cb) {\n return s.replace(from, function () {\n var matches = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n matches[_i - 0] = arguments[_i];\n }\n // Remove offset & string from the result array\n matches.splice(-2, 2);\n // The callback receives match, p1, ..., pn\n return cb(matches);\n });\n };\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\n StringWrapper.compare = function (a, b) {\n if (a < b) {\n return -1;\n }\n else if (a > b) {\n return 1;\n }\n else {\n return 0;\n }\n };\n return StringWrapper;\n }());\n var NumberWrapper = (function () {\n function NumberWrapper() {\n }\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\n NumberWrapper.equal = function (a, b) { return a === b; };\n NumberWrapper.parseIntAutoRadix = function (text) {\n var result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n };\n NumberWrapper.parseInt = function (text, radix) {\n if (radix == 10) {\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else if (radix == 16) {\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else {\n var result = parseInt(text, radix);\n if (!isNaN(result)) {\n return result;\n }\n }\n throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);\n };\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\n Object.defineProperty(NumberWrapper, \"NaN\", {\n get: function () { return NaN; },\n enumerable: true,\n configurable: true\n });\n NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\n return NumberWrapper;\n }());\n function normalizeBlank(obj) {\n return isBlank(obj) ? null : obj;\n }\n function isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n }\n // Can't be all uppercase as our transpiler would think it is a special directive...\n var Json = (function () {\n function Json() {\n }\n Json.parse = function (s) { return global$1.JSON.parse(s); };\n Json.stringify = function (data) {\n // Dart doesn't take 3 arguments\n return global$1.JSON.stringify(data, null, 2);\n };\n return Json;\n }());\n var DateWrapper = (function () {\n function DateWrapper() {\n }\n DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) {\n if (month === void 0) { month = 1; }\n if (day === void 0) { day = 1; }\n if (hour === void 0) { hour = 0; }\n if (minutes === void 0) { minutes = 0; }\n if (seconds === void 0) { seconds = 0; }\n if (milliseconds === void 0) { milliseconds = 0; }\n return new Date(year, month - 1, day, hour, minutes, seconds, milliseconds);\n };\n DateWrapper.fromISOString = function (str) { return new Date(str); };\n DateWrapper.fromMillis = function (ms) { return new Date(ms); };\n DateWrapper.toMillis = function (date) { return date.getTime(); };\n DateWrapper.now = function () { return new Date(); };\n DateWrapper.toJson = function (date) { return date.toJSON(); };\n return DateWrapper;\n }());\n var _symbolIterator = null;\n function getSymbolIterator() {\n if (isBlank(_symbolIterator)) {\n if (isPresent(globalScope.Symbol) && isPresent(Symbol.iterator)) {\n _symbolIterator = Symbol.iterator;\n }\n else {\n // es6-shim specific logic\n var keys = Object.getOwnPropertyNames(Map.prototype);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (key !== 'entries' && key !== 'size' &&\n Map.prototype[key] === Map.prototype['entries']) {\n _symbolIterator = key;\n }\n }\n }\n }\n return _symbolIterator;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n /**\n * @stable\n */\n var BaseError = (function (_super) {\n __extends$1(BaseError, _super);\n function BaseError(message) {\n // Errors don't use current this, instead they create a new instance.\n // We have to do forward all of our api to the nativeInstance.\n var nativeError = _super.call(this, message);\n this._nativeError = nativeError;\n }\n Object.defineProperty(BaseError.prototype, \"message\", {\n get: function () { return this._nativeError.message; },\n set: function (message) { this._nativeError.message = message; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BaseError.prototype, \"name\", {\n get: function () { return this._nativeError.name; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BaseError.prototype, \"stack\", {\n get: function () { return this._nativeError.stack; },\n set: function (value) { this._nativeError.stack = value; },\n enumerable: true,\n configurable: true\n });\n BaseError.prototype.toString = function () { return this._nativeError.toString(); };\n return BaseError;\n }(Error));\n /**\n * @stable\n */\n var WrappedError = (function (_super) {\n __extends$1(WrappedError, _super);\n function WrappedError(message, error) {\n _super.call(this, message + \" caused by: \" + (error instanceof Error ? error.message : error));\n this.originalError = error;\n }\n Object.defineProperty(WrappedError.prototype, \"stack\", {\n get: function () {\n return (this.originalError instanceof Error ? this.originalError : this._nativeError)\n .stack;\n },\n enumerable: true,\n configurable: true\n });\n return WrappedError;\n }(BaseError));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __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 };\n var InvalidPipeArgumentError = (function (_super) {\n __extends(InvalidPipeArgumentError, _super);\n function InvalidPipeArgumentError(type, value) {\n _super.call(this, \"Invalid argument '\" + value + \"' for pipe '\" + stringify(type) + \"'\");\n }\n return InvalidPipeArgumentError;\n }(BaseError));\n\n var ObservableStrategy = (function () {\n function ObservableStrategy() {\n }\n ObservableStrategy.prototype.createSubscription = function (async, updateLatestValue) {\n return async.subscribe({ next: updateLatestValue, error: function (e) { throw e; } });\n };\n ObservableStrategy.prototype.dispose = function (subscription) { subscription.unsubscribe(); };\n ObservableStrategy.prototype.onDestroy = function (subscription) { subscription.unsubscribe(); };\n return ObservableStrategy;\n }());\n var PromiseStrategy = (function () {\n function PromiseStrategy() {\n }\n PromiseStrategy.prototype.createSubscription = function (async, updateLatestValue) {\n return async.then(updateLatestValue, function (e) { throw e; });\n };\n PromiseStrategy.prototype.dispose = function (subscription) { };\n PromiseStrategy.prototype.onDestroy = function (subscription) { };\n return PromiseStrategy;\n }());\n var _promiseStrategy = new PromiseStrategy();\n var _observableStrategy = new ObservableStrategy();\n // avoid unused import when Promise union types are erased\n /**\n * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has\n * emitted.\n * When a new value is emitted, the `async` pipe marks the component to be checked for changes.\n * When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid\n * potential memory leaks.\n *\n * ## Usage\n *\n * object | async\n *\n * where `object` is of type `Observable` or of type `Promise`.\n *\n * ## Examples\n *\n * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the\n * promise.\n *\n * {@example core/pipes/ts/async_pipe/async_pipe_example.ts region='AsyncPipePromise'}\n *\n * It's also possible to use `async` with Observables. The example below binds the `time` Observable\n * to the view. Every 500ms, the `time` Observable updates the view with the current time.\n *\n * {@example core/pipes/ts/async_pipe/async_pipe_example.ts region='AsyncPipeObservable'}\n *\n * @stable\n */\n var AsyncPipe = (function () {\n function AsyncPipe(_ref) {\n /** @internal */\n this._latestValue = null;\n /** @internal */\n this._latestReturnedValue = null;\n /** @internal */\n this._subscription = null;\n /** @internal */\n this._obj = null;\n this._strategy = null;\n this._ref = _ref;\n }\n AsyncPipe.prototype.ngOnDestroy = function () {\n if (isPresent(this._subscription)) {\n this._dispose();\n }\n };\n AsyncPipe.prototype.transform = function (obj) {\n if (isBlank(this._obj)) {\n if (isPresent(obj)) {\n this._subscribe(obj);\n }\n this._latestReturnedValue = this._latestValue;\n return this._latestValue;\n }\n if (obj !== this._obj) {\n this._dispose();\n return this.transform(obj);\n }\n if (this._latestValue === this._latestReturnedValue) {\n return this._latestReturnedValue;\n }\n else {\n this._latestReturnedValue = this._latestValue;\n return _angular_core.WrappedValue.wrap(this._latestValue);\n }\n };\n /** @internal */\n AsyncPipe.prototype._subscribe = function (obj) {\n var _this = this;\n this._obj = obj;\n this._strategy = this._selectStrategy(obj);\n this._subscription = this._strategy.createSubscription(obj, function (value) { return _this._updateLatestValue(obj, value); });\n };\n /** @internal */\n AsyncPipe.prototype._selectStrategy = function (obj) {\n if (isPromise(obj)) {\n return _promiseStrategy;\n }\n else if (obj.subscribe) {\n return _observableStrategy;\n }\n else {\n throw new InvalidPipeArgumentError(AsyncPipe, obj);\n }\n };\n /** @internal */\n AsyncPipe.prototype._dispose = function () {\n this._strategy.dispose(this._subscription);\n this._latestValue = null;\n this._latestReturnedValue = null;\n this._subscription = null;\n this._obj = null;\n };\n /** @internal */\n AsyncPipe.prototype._updateLatestValue = function (async, value) {\n if (async === this._obj) {\n this._latestValue = value;\n this._ref.markForCheck();\n }\n };\n AsyncPipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'async', pure: false },] },\n ];\n /** @nocollapse */\n AsyncPipe.ctorParameters = [\n { type: _angular_core.ChangeDetectorRef, },\n ];\n return AsyncPipe;\n }());\n\n var Map$1 = global$1.Map;\n var Set$1 = global$1.Set;\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Map constructor. We work around that by manually adding the items.\n var createMapFromPairs = (function () {\n try {\n if (new Map$1([[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs) { return new Map$1(pairs); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromPairs(pairs) {\n var map = new Map$1();\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n map.set(pair[0], pair[1]);\n }\n return map;\n };\n })();\n var createMapFromMap = (function () {\n try {\n if (new Map$1(new Map$1())) {\n return function createMapFromMap(m) { return new Map$1(m); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromMap(m) {\n var map = new Map$1();\n m.forEach(function (v, k) { map.set(k, v); });\n return map;\n };\n })();\n var _clearValues = (function () {\n if ((new Map$1()).keys().next) {\n return function _clearValues(m) {\n var keyIterator = m.keys();\n var k;\n while (!((k = keyIterator.next()).done)) {\n m.set(k.value, null);\n }\n };\n }\n else {\n return function _clearValuesWithForeEach(m) {\n m.forEach(function (v, k) { m.set(k, null); });\n };\n }\n })();\n // Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\n // TODO(mlaval): remove the work around once we have a working polyfill of Array.from\n var _arrayFromMap = (function () {\n try {\n if ((new Map$1()).values().next) {\n return function createArrayFromMap(m, getValues) {\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\n };\n }\n }\n catch (e) {\n }\n return function createArrayFromMapWithForeach(m, getValues) {\n var res = ListWrapper.createFixedSize(m.size), i = 0;\n m.forEach(function (v, k) {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n })();\n /**\n * Wraps Javascript Objects\n */\n var StringMapWrapper = (function () {\n function StringMapWrapper() {\n }\n StringMapWrapper.create = function () {\n // Note: We are not using Object.create(null) here due to\n // performance!\n // http://jsperf.com/ng2-object-create-null\n return {};\n };\n StringMapWrapper.contains = function (map, key) {\n return map.hasOwnProperty(key);\n };\n StringMapWrapper.get = function (map, key) {\n return map.hasOwnProperty(key) ? map[key] : undefined;\n };\n StringMapWrapper.set = function (map, key, value) { map[key] = value; };\n StringMapWrapper.keys = function (map) { return Object.keys(map); };\n StringMapWrapper.values = function (map) {\n return Object.keys(map).map(function (k) { return map[k]; });\n };\n StringMapWrapper.isEmpty = function (map) {\n for (var prop in map) {\n return false;\n }\n return true;\n };\n StringMapWrapper.delete = function (map, key) { delete map[key]; };\n StringMapWrapper.forEach = function (map, callback) {\n for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) {\n var k = _a[_i];\n callback(map[k], k);\n }\n };\n StringMapWrapper.merge = function (m1, m2) {\n var m = {};\n for (var _i = 0, _a = Object.keys(m1); _i < _a.length; _i++) {\n var k = _a[_i];\n m[k] = m1[k];\n }\n for (var _b = 0, _c = Object.keys(m2); _b < _c.length; _b++) {\n var k = _c[_b];\n m[k] = m2[k];\n }\n return m;\n };\n StringMapWrapper.equals = function (m1, m2) {\n var k1 = Object.keys(m1);\n var k2 = Object.keys(m2);\n if (k1.length != k2.length) {\n return false;\n }\n var key;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (m1[key] !== m2[key]) {\n return false;\n }\n }\n return true;\n };\n return StringMapWrapper;\n }());\n var ListWrapper = (function () {\n function ListWrapper() {\n }\n // JS has no way to express a statically fixed size list, but dart does so we\n // keep both methods.\n ListWrapper.createFixedSize = function (size) { return new Array(size); };\n ListWrapper.createGrowableSize = function (size) { return new Array(size); };\n ListWrapper.clone = function (array) { return array.slice(0); };\n ListWrapper.forEachWithIndex = function (array, fn) {\n for (var i = 0; i < array.length; i++) {\n fn(array[i], i);\n }\n };\n ListWrapper.first = function (array) {\n if (!array)\n return null;\n return array[0];\n };\n ListWrapper.last = function (array) {\n if (!array || array.length == 0)\n return null;\n return array[array.length - 1];\n };\n ListWrapper.indexOf = function (array, value, startIndex) {\n if (startIndex === void 0) { startIndex = 0; }\n return array.indexOf(value, startIndex);\n };\n ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; };\n ListWrapper.reversed = function (array) {\n var a = ListWrapper.clone(array);\n return a.reverse();\n };\n ListWrapper.concat = function (a, b) { return a.concat(b); };\n ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); };\n ListWrapper.removeAt = function (list, index) {\n var res = list[index];\n list.splice(index, 1);\n return res;\n };\n ListWrapper.removeAll = function (list, items) {\n for (var i = 0; i < items.length; ++i) {\n var index = list.indexOf(items[i]);\n list.splice(index, 1);\n }\n };\n ListWrapper.remove = function (list, el) {\n var index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n return true;\n }\n return false;\n };\n ListWrapper.clear = function (list) { list.length = 0; };\n ListWrapper.isEmpty = function (list) { return list.length == 0; };\n ListWrapper.fill = function (list, value, start, end) {\n if (start === void 0) { start = 0; }\n if (end === void 0) { end = null; }\n list.fill(value, start, end === null ? list.length : end);\n };\n ListWrapper.equals = function (a, b) {\n if (a.length != b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n };\n ListWrapper.slice = function (l, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return l.slice(from, to === null ? undefined : to);\n };\n ListWrapper.splice = function (l, from, length) { return l.splice(from, length); };\n ListWrapper.sort = function (l, compareFn) {\n if (isPresent(compareFn)) {\n l.sort(compareFn);\n }\n else {\n l.sort();\n }\n };\n ListWrapper.toString = function (l) { return l.toString(); };\n ListWrapper.toJSON = function (l) { return JSON.stringify(l); };\n ListWrapper.maximum = function (list, predicate) {\n if (list.length == 0) {\n return null;\n }\n var solution = null;\n var maxValue = -Infinity;\n for (var index = 0; index < list.length; index++) {\n var candidate = list[index];\n if (isBlank(candidate)) {\n continue;\n }\n var candidateValue = predicate(candidate);\n if (candidateValue > maxValue) {\n solution = candidate;\n maxValue = candidateValue;\n }\n }\n return solution;\n };\n ListWrapper.flatten = function (list) {\n var target = [];\n _flattenArray(list, target);\n return target;\n };\n ListWrapper.addAll = function (list, source) {\n for (var i = 0; i < source.length; i++) {\n list.push(source[i]);\n }\n };\n return ListWrapper;\n }());\n function _flattenArray(source, target) {\n if (isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (isArray(item)) {\n _flattenArray(item, target);\n }\n else {\n target.push(item);\n }\n }\n }\n return target;\n }\n function isListLikeIterable(obj) {\n if (!isJsObject(obj))\n return false;\n return isArray(obj) ||\n (!(obj instanceof Map$1) &&\n getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\n }\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Set constructor. We work around that by manually adding the items.\n var createSetFromList = (function () {\n var test = new Set$1([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst) { return new Set$1(lst); };\n }\n else {\n return function createSetAndPopulateFromList(lst) {\n var res = new Set$1(lst);\n if (res.size !== lst.length) {\n for (var i = 0; i < lst.length; i++) {\n res.add(lst[i]);\n }\n }\n return res;\n };\n }\n })();\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var NumberFormatStyle;\n (function (NumberFormatStyle) {\n NumberFormatStyle[NumberFormatStyle[\"Decimal\"] = 0] = \"Decimal\";\n NumberFormatStyle[NumberFormatStyle[\"Percent\"] = 1] = \"Percent\";\n NumberFormatStyle[NumberFormatStyle[\"Currency\"] = 2] = \"Currency\";\n })(NumberFormatStyle || (NumberFormatStyle = {}));\n var NumberFormatter = (function () {\n function NumberFormatter() {\n }\n NumberFormatter.format = function (num, locale, style, _a) {\n var _b = _a === void 0 ? {} : _a, minimumIntegerDigits = _b.minimumIntegerDigits, minimumFractionDigits = _b.minimumFractionDigits, maximumFractionDigits = _b.maximumFractionDigits, currency = _b.currency, _c = _b.currencyAsSymbol, currencyAsSymbol = _c === void 0 ? false : _c;\n var options = {\n minimumIntegerDigits: minimumIntegerDigits,\n minimumFractionDigits: minimumFractionDigits,\n maximumFractionDigits: maximumFractionDigits,\n style: NumberFormatStyle[style].toLowerCase()\n };\n if (style == NumberFormatStyle.Currency) {\n options.currency = currency;\n options.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\n }\n return new Intl.NumberFormat(locale, options).format(num);\n };\n return NumberFormatter;\n }());\n var DATE_FORMATS_SPLIT = /((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/;\n var PATTERN_ALIASES = {\n yMMMdjms: datePartGetterFactory(combine([\n digitCondition('year', 1),\n nameCondition('month', 3),\n digitCondition('day', 1),\n digitCondition('hour', 1),\n digitCondition('minute', 1),\n digitCondition('second', 1),\n ])),\n yMdjm: datePartGetterFactory(combine([\n digitCondition('year', 1), digitCondition('month', 1), digitCondition('day', 1),\n digitCondition('hour', 1), digitCondition('minute', 1)\n ])),\n yMMMMEEEEd: datePartGetterFactory(combine([\n digitCondition('year', 1), nameCondition('month', 4), nameCondition('weekday', 4),\n digitCondition('day', 1)\n ])),\n yMMMMd: datePartGetterFactory(combine([digitCondition('year', 1), nameCondition('month', 4), digitCondition('day', 1)])),\n yMMMd: datePartGetterFactory(combine([digitCondition('year', 1), nameCondition('month', 3), digitCondition('day', 1)])),\n yMd: datePartGetterFactory(combine([digitCondition('year', 1), digitCondition('month', 1), digitCondition('day', 1)])),\n jms: datePartGetterFactory(combine([digitCondition('hour', 1), digitCondition('second', 1), digitCondition('minute', 1)])),\n jm: datePartGetterFactory(combine([digitCondition('hour', 1), digitCondition('minute', 1)]))\n };\n var DATE_FORMATS = {\n yyyy: datePartGetterFactory(digitCondition('year', 4)),\n yy: datePartGetterFactory(digitCondition('year', 2)),\n y: datePartGetterFactory(digitCondition('year', 1)),\n MMMM: datePartGetterFactory(nameCondition('month', 4)),\n MMM: datePartGetterFactory(nameCondition('month', 3)),\n MM: datePartGetterFactory(digitCondition('month', 2)),\n M: datePartGetterFactory(digitCondition('month', 1)),\n LLLL: datePartGetterFactory(nameCondition('month', 4)),\n dd: datePartGetterFactory(digitCondition('day', 2)),\n d: datePartGetterFactory(digitCondition('day', 1)),\n HH: digitModifier(hourExtracter(datePartGetterFactory(hour12Modify(digitCondition('hour', 2), false)))),\n H: hourExtracter(datePartGetterFactory(hour12Modify(digitCondition('hour', 1), false))),\n hh: digitModifier(hourExtracter(datePartGetterFactory(hour12Modify(digitCondition('hour', 2), true)))),\n h: hourExtracter(datePartGetterFactory(hour12Modify(digitCondition('hour', 1), true))),\n jj: datePartGetterFactory(digitCondition('hour', 2)),\n j: datePartGetterFactory(digitCondition('hour', 1)),\n mm: digitModifier(datePartGetterFactory(digitCondition('minute', 2))),\n m: datePartGetterFactory(digitCondition('minute', 1)),\n ss: digitModifier(datePartGetterFactory(digitCondition('second', 2))),\n s: datePartGetterFactory(digitCondition('second', 1)),\n // while ISO 8601 requires fractions to be prefixed with `.` or `,`\n // we can be just safely rely on using `sss` since we currently don't support single or two digit\n // fractions\n sss: datePartGetterFactory(digitCondition('second', 3)),\n EEEE: datePartGetterFactory(nameCondition('weekday', 4)),\n EEE: datePartGetterFactory(nameCondition('weekday', 3)),\n EE: datePartGetterFactory(nameCondition('weekday', 2)),\n E: datePartGetterFactory(nameCondition('weekday', 1)),\n a: hourClockExtracter(datePartGetterFactory(hour12Modify(digitCondition('hour', 1), true))),\n Z: timeZoneGetter('short'),\n z: timeZoneGetter('long'),\n ww: datePartGetterFactory({}),\n // first Thursday of the year. not support ?\n w: datePartGetterFactory({}),\n // of the year not support ?\n G: datePartGetterFactory(nameCondition('era', 1)),\n GG: datePartGetterFactory(nameCondition('era', 2)),\n GGG: datePartGetterFactory(nameCondition('era', 3)),\n GGGG: datePartGetterFactory(nameCondition('era', 4))\n };\n function digitModifier(inner) {\n return function (date, locale) {\n var result = inner(date, locale);\n return result.length == 1 ? '0' + result : result;\n };\n }\n function hourClockExtracter(inner) {\n return function (date, locale) {\n var result = inner(date, locale);\n return result.split(' ')[1];\n };\n }\n function hourExtracter(inner) {\n return function (date, locale) {\n var result = inner(date, locale);\n return result.split(' ')[0];\n };\n }\n function intlDateFormat(date, locale, options) {\n return new Intl.DateTimeFormat(locale, options).format(date).replace(/[\\u200e\\u200f]/g, '');\n }\n function timeZoneGetter(timezone) {\n // To workaround `Intl` API restriction for single timezone let format with 24 hours\n var options = { hour: '2-digit', hour12: false, timeZoneName: timezone };\n return function (date, locale) {\n var result = intlDateFormat(date, locale, options);\n // Then extract first 3 letters that related to hours\n return result ? result.substring(3) : '';\n };\n }\n function hour12Modify(options, value) {\n options.hour12 = value;\n return options;\n }\n function digitCondition(prop, len) {\n var result = {};\n result[prop] = len == 2 ? '2-digit' : 'numeric';\n return result;\n }\n function nameCondition(prop, len) {\n var result = {};\n result[prop] = len < 4 ? 'short' : 'long';\n return result;\n }\n function combine(options) {\n var result = {};\n options.forEach(function (option) { Object.assign(result, option); });\n return result;\n }\n function datePartGetterFactory(ret) {\n return function (date, locale) { return intlDateFormat(date, locale, ret); };\n }\n var datePartsFormatterCache = new Map();\n function dateFormatter(format, date, locale) {\n var text = '';\n var match;\n var fn;\n var parts = [];\n if (PATTERN_ALIASES[format]) {\n return PATTERN_ALIASES[format](date, locale);\n }\n if (datePartsFormatterCache.has(format)) {\n parts = datePartsFormatterCache.get(format);\n }\n else {\n var matches = DATE_FORMATS_SPLIT.exec(format);\n while (format) {\n match = DATE_FORMATS_SPLIT.exec(format);\n if (match) {\n parts = concat(parts, match, 1);\n format = parts.pop();\n }\n else {\n parts.push(format);\n format = null;\n }\n }\n datePartsFormatterCache.set(format, parts);\n }\n parts.forEach(function (part) {\n fn = DATE_FORMATS[part];\n text += fn ? fn(date, locale) :\n part === '\\'\\'' ? '\\'' : part.replace(/(^'|'$)/g, '').replace(/''/g, '\\'');\n });\n return text;\n }\n var slice = [].slice;\n function concat(array1 /** TODO #9100 */, array2 /** TODO #9100 */, index /** TODO #9100 */) {\n return array1.concat(slice.call(array2, index));\n }\n var DateFormatter = (function () {\n function DateFormatter() {\n }\n DateFormatter.format = function (date, locale, pattern) {\n return dateFormatter(pattern, date, locale);\n };\n return DateFormatter;\n }());\n\n /**\n * Formats a date value to a string based on the requested format.\n *\n * WARNINGS:\n * - this pipe is marked as pure hence it will not be re-evaluated when the input is mutated.\n * Instead users should treat the date as an immutable object and change the reference when the\n * pipe needs to re-run (this is to avoid reformatting the date on every change detection run\n * which would be an expensive operation).\n * - this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera\n * browsers.\n *\n * ## Usage\n *\n * expression | date[:format]\n *\n * where `expression` is a date object or a number (milliseconds since UTC epoch) or an ISO string\n * (https://www.w3.org/TR/NOTE-datetime) and `format` indicates which date/time components to\n * include:\n *\n * | Component | Symbol | Short Form | Long Form | Numeric | 2-digit |\n * |-----------|:------:|--------------|-------------------|-----------|-----------|\n * | era | G | G (AD) | GGGG (Anno Domini)| - | - |\n * | year | y | - | - | y (2015) | yy (15) |\n * | month | M | MMM (Sep) | MMMM (September) | M (9) | MM (09) |\n * | day | d | - | - | d (3) | dd (03) |\n * | weekday | E | EEE (Sun) | EEEE (Sunday) | - | - |\n * | hour | j | - | - | j (13) | jj (13) |\n * | hour12 | h | - | - | h (1 PM) | hh (01 PM)|\n * | hour24 | H | - | - | H (13) | HH (13) |\n * | minute | m | - | - | m (5) | mm (05) |\n * | second | s | - | - | s (9) | ss (09) |\n * | timezone | z | - | z (Pacific Standard Time)| - | - |\n * | timezone | Z | Z (GMT-8:00) | - | - | - |\n * | timezone | a | a (PM) | - | - | - |\n *\n * In javascript, only the components specified will be respected (not the ordering,\n * punctuations, ...) and details of the formatting will be dependent on the locale.\n *\n * `format` can also be one of the following predefined formats:\n *\n * - `'medium'`: equivalent to `'yMMMdjms'` (e.g. Sep 3, 2010, 12:05:08 PM for en-US)\n * - `'short'`: equivalent to `'yMdjm'` (e.g. 9/3/2010, 12:05 PM for en-US)\n * - `'fullDate'`: equivalent to `'yMMMMEEEEd'` (e.g. Friday, September 3, 2010 for en-US)\n * - `'longDate'`: equivalent to `'yMMMMd'` (e.g. September 3, 2010)\n * - `'mediumDate'`: equivalent to `'yMMMd'` (e.g. Sep 3, 2010 for en-US)\n * - `'shortDate'`: equivalent to `'yMd'` (e.g. 9/3/2010 for en-US)\n * - `'mediumTime'`: equivalent to `'jms'` (e.g. 12:05:08 PM for en-US)\n * - `'shortTime'`: equivalent to `'jm'` (e.g. 12:05 PM for en-US)\n *\n * Timezone of the formatted text will be the local system timezone of the end-users machine.\n *\n * ### Examples\n *\n * Assuming `dateObj` is (year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11)\n * in the _local_ time and locale is 'en-US':\n *\n * ```\n * {{ dateObj | date }} // output is 'Jun 15, 2015'\n * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'\n * {{ dateObj | date:'shortTime' }} // output is '9:43 PM'\n * {{ dateObj | date:'mmss' }} // output is '43:11'\n * ```\n *\n * {@example core/pipes/ts/date_pipe/date_pipe_example.ts region='DatePipe'}\n *\n * @stable\n */\n var DatePipe = (function () {\n function DatePipe(_locale) {\n this._locale = _locale;\n }\n DatePipe.prototype.transform = function (value, pattern) {\n if (pattern === void 0) { pattern = 'mediumDate'; }\n if (isBlank(value))\n return null;\n if (!this.supports(value)) {\n throw new InvalidPipeArgumentError(DatePipe, value);\n }\n if (NumberWrapper.isNumeric(value)) {\n value = DateWrapper.fromMillis(parseFloat(value));\n }\n else if (isString(value)) {\n value = DateWrapper.fromISOString(value);\n }\n if (StringMapWrapper.contains(DatePipe._ALIASES, pattern)) {\n pattern = StringMapWrapper.get(DatePipe._ALIASES, pattern);\n }\n return DateFormatter.format(value, this._locale, pattern);\n };\n DatePipe.prototype.supports = function (obj) {\n if (isDate(obj) || NumberWrapper.isNumeric(obj)) {\n return true;\n }\n if (isString(obj) && isDate(DateWrapper.fromISOString(obj))) {\n return true;\n }\n return false;\n };\n /** @internal */\n DatePipe._ALIASES = {\n 'medium': 'yMMMdjms',\n 'short': 'yMdjm',\n 'fullDate': 'yMMMMEEEEd',\n 'longDate': 'yMMMMd',\n 'mediumDate': 'yMMMd',\n 'shortDate': 'yMd',\n 'mediumTime': 'jms',\n 'shortTime': 'jm'\n };\n DatePipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'date', pure: true },] },\n ];\n /** @nocollapse */\n DatePipe.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [_angular_core.LOCALE_ID,] },] },\n ];\n return DatePipe;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$2 = (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 };\n /**\n * @experimental\n */\n var NgLocalization = (function () {\n function NgLocalization() {\n }\n return NgLocalization;\n }());\n /**\n * Returns the plural category for a given value.\n * - \"=value\" when the case exists,\n * - the plural category otherwise\n *\n * @internal\n */\n function getPluralCategory(value, cases, ngLocalization) {\n var nbCase = \"=\" + value;\n return cases.indexOf(nbCase) > -1 ? nbCase : ngLocalization.getPluralCategory(value);\n }\n /**\n * Returns the plural case based on the locale\n *\n * @experimental\n */\n var NgLocaleLocalization = (function (_super) {\n __extends$2(NgLocaleLocalization, _super);\n function NgLocaleLocalization(_locale) {\n _super.call(this);\n this._locale = _locale;\n }\n NgLocaleLocalization.prototype.getPluralCategory = function (value) {\n var plural = getPluralCase(this._locale, value);\n switch (plural) {\n case Plural.Zero:\n return 'zero';\n case Plural.One:\n return 'one';\n case Plural.Two:\n return 'two';\n case Plural.Few:\n return 'few';\n case Plural.Many:\n return 'many';\n default:\n return 'other';\n }\n };\n NgLocaleLocalization.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n NgLocaleLocalization.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [_angular_core.LOCALE_ID,] },] },\n ];\n return NgLocaleLocalization;\n }(NgLocalization));\n // This is generated code DO NOT MODIFY\n // see angular2/script/cldr/gen_plural_rules.js\n /** @experimental */\n var Plural;\n (function (Plural) {\n Plural[Plural[\"Zero\"] = 0] = \"Zero\";\n Plural[Plural[\"One\"] = 1] = \"One\";\n Plural[Plural[\"Two\"] = 2] = \"Two\";\n Plural[Plural[\"Few\"] = 3] = \"Few\";\n Plural[Plural[\"Many\"] = 4] = \"Many\";\n Plural[Plural[\"Other\"] = 5] = \"Other\";\n })(Plural || (Plural = {}));\n /**\n * Returns the plural case based on the locale\n *\n * @experimental\n */\n function getPluralCase(locale, nLike) {\n // TODO(vicb): lazy compute\n if (typeof nLike === 'string') {\n nLike = parseInt(nLike, 10);\n }\n var n = nLike;\n var nDecimal = n.toString().replace(/^[^.]*\\.?/, '');\n var i = Math.floor(Math.abs(n));\n var v = nDecimal.length;\n var f = parseInt(nDecimal, 10);\n var t = parseInt(n.toString().replace(/^[^.]*\\.?|0+$/g, ''), 10) || 0;\n var lang = locale.split('_')[0].toLowerCase();\n switch (lang) {\n case 'af':\n case 'asa':\n case 'az':\n case 'bem':\n case 'bez':\n case 'bg':\n case 'brx':\n case 'ce':\n case 'cgg':\n case 'chr':\n case 'ckb':\n case 'ee':\n case 'el':\n case 'eo':\n case 'es':\n case 'eu':\n case 'fo':\n case 'fur':\n case 'gsw':\n case 'ha':\n case 'haw':\n case 'hu':\n case 'jgo':\n case 'jmc':\n case 'ka':\n case 'kk':\n case 'kkj':\n case 'kl':\n case 'ks':\n case 'ksb':\n case 'ky':\n case 'lb':\n case 'lg':\n case 'mas':\n case 'mgo':\n case 'ml':\n case 'mn':\n case 'nb':\n case 'nd':\n case 'ne':\n case 'nn':\n case 'nnh':\n case 'nyn':\n case 'om':\n case 'or':\n case 'os':\n case 'ps':\n case 'rm':\n case 'rof':\n case 'rwk':\n case 'saq':\n case 'seh':\n case 'sn':\n case 'so':\n case 'sq':\n case 'ta':\n case 'te':\n case 'teo':\n case 'tk':\n case 'tr':\n case 'ug':\n case 'uz':\n case 'vo':\n case 'vun':\n case 'wae':\n case 'xog':\n if (n === 1)\n return Plural.One;\n return Plural.Other;\n case 'agq':\n case 'bas':\n case 'cu':\n case 'dav':\n case 'dje':\n case 'dua':\n case 'dyo':\n case 'ebu':\n case 'ewo':\n case 'guz':\n case 'kam':\n case 'khq':\n case 'ki':\n case 'kln':\n case 'kok':\n case 'ksf':\n case 'lrc':\n case 'lu':\n case 'luo':\n case 'luy':\n case 'mer':\n case 'mfe':\n case 'mgh':\n case 'mua':\n case 'mzn':\n case 'nmg':\n case 'nus':\n case 'qu':\n case 'rn':\n case 'rw':\n case 'sbp':\n case 'twq':\n case 'vai':\n case 'yav':\n case 'yue':\n case 'zgh':\n case 'ak':\n case 'ln':\n case 'mg':\n case 'pa':\n case 'ti':\n if (n === Math.floor(n) && n >= 0 && n <= 1)\n return Plural.One;\n return Plural.Other;\n case 'am':\n case 'as':\n case 'bn':\n case 'fa':\n case 'gu':\n case 'hi':\n case 'kn':\n case 'mr':\n case 'zu':\n if (i === 0 || n === 1)\n return Plural.One;\n return Plural.Other;\n case 'ar':\n if (n === 0)\n return Plural.Zero;\n if (n === 1)\n return Plural.One;\n if (n === 2)\n return Plural.Two;\n if (n % 100 === Math.floor(n % 100) && n % 100 >= 3 && n % 100 <= 10)\n return Plural.Few;\n if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 99)\n return Plural.Many;\n return Plural.Other;\n case 'ast':\n case 'ca':\n case 'de':\n case 'en':\n case 'et':\n case 'fi':\n case 'fy':\n case 'gl':\n case 'it':\n case 'nl':\n case 'sv':\n case 'sw':\n case 'ur':\n case 'yi':\n if (i === 1 && v === 0)\n return Plural.One;\n return Plural.Other;\n case 'be':\n if (n % 10 === 1 && !(n % 100 === 11))\n return Plural.One;\n if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 4 &&\n !(n % 100 >= 12 && n % 100 <= 14))\n return Plural.Few;\n if (n % 10 === 0 || n % 10 === Math.floor(n % 10) && n % 10 >= 5 && n % 10 <= 9 ||\n n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 14)\n return Plural.Many;\n return Plural.Other;\n case 'br':\n if (n % 10 === 1 && !(n % 100 === 11 || n % 100 === 71 || n % 100 === 91))\n return Plural.One;\n if (n % 10 === 2 && !(n % 100 === 12 || n % 100 === 72 || n % 100 === 92))\n return Plural.Two;\n if (n % 10 === Math.floor(n % 10) && (n % 10 >= 3 && n % 10 <= 4 || n % 10 === 9) &&\n !(n % 100 >= 10 && n % 100 <= 19 || n % 100 >= 70 && n % 100 <= 79 ||\n n % 100 >= 90 && n % 100 <= 99))\n return Plural.Few;\n if (!(n === 0) && n % 1e6 === 0)\n return Plural.Many;\n return Plural.Other;\n case 'bs':\n case 'hr':\n case 'sr':\n if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11))\n return Plural.One;\n if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 &&\n !(i % 100 >= 12 && i % 100 <= 14) ||\n f % 10 === Math.floor(f % 10) && f % 10 >= 2 && f % 10 <= 4 &&\n !(f % 100 >= 12 && f % 100 <= 14))\n return Plural.Few;\n return Plural.Other;\n case 'cs':\n case 'sk':\n if (i === 1 && v === 0)\n return Plural.One;\n if (i === Math.floor(i) && i >= 2 && i <= 4 && v === 0)\n return Plural.Few;\n if (!(v === 0))\n return Plural.Many;\n return Plural.Other;\n case 'cy':\n if (n === 0)\n return Plural.Zero;\n if (n === 1)\n return Plural.One;\n if (n === 2)\n return Plural.Two;\n if (n === 3)\n return Plural.Few;\n if (n === 6)\n return Plural.Many;\n return Plural.Other;\n case 'da':\n if (n === 1 || !(t === 0) && (i === 0 || i === 1))\n return Plural.One;\n return Plural.Other;\n case 'dsb':\n case 'hsb':\n if (v === 0 && i % 100 === 1 || f % 100 === 1)\n return Plural.One;\n if (v === 0 && i % 100 === 2 || f % 100 === 2)\n return Plural.Two;\n if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 ||\n f % 100 === Math.floor(f % 100) && f % 100 >= 3 && f % 100 <= 4)\n return Plural.Few;\n return Plural.Other;\n case 'ff':\n case 'fr':\n case 'hy':\n case 'kab':\n if (i === 0 || i === 1)\n return Plural.One;\n return Plural.Other;\n case 'fil':\n if (v === 0 && (i === 1 || i === 2 || i === 3) ||\n v === 0 && !(i % 10 === 4 || i % 10 === 6 || i % 10 === 9) ||\n !(v === 0) && !(f % 10 === 4 || f % 10 === 6 || f % 10 === 9))\n return Plural.One;\n return Plural.Other;\n case 'ga':\n if (n === 1)\n return Plural.One;\n if (n === 2)\n return Plural.Two;\n if (n === Math.floor(n) && n >= 3 && n <= 6)\n return Plural.Few;\n if (n === Math.floor(n) && n >= 7 && n <= 10)\n return Plural.Many;\n return Plural.Other;\n case 'gd':\n if (n === 1 || n === 11)\n return Plural.One;\n if (n === 2 || n === 12)\n return Plural.Two;\n if (n === Math.floor(n) && (n >= 3 && n <= 10 || n >= 13 && n <= 19))\n return Plural.Few;\n return Plural.Other;\n case 'gv':\n if (v === 0 && i % 10 === 1)\n return Plural.One;\n if (v === 0 && i % 10 === 2)\n return Plural.Two;\n if (v === 0 &&\n (i % 100 === 0 || i % 100 === 20 || i % 100 === 40 || i % 100 === 60 || i % 100 === 80))\n return Plural.Few;\n if (!(v === 0))\n return Plural.Many;\n return Plural.Other;\n case 'he':\n if (i === 1 && v === 0)\n return Plural.One;\n if (i === 2 && v === 0)\n return Plural.Two;\n if (v === 0 && !(n >= 0 && n <= 10) && n % 10 === 0)\n return Plural.Many;\n return Plural.Other;\n case 'is':\n if (t === 0 && i % 10 === 1 && !(i % 100 === 11) || !(t === 0))\n return Plural.One;\n return Plural.Other;\n case 'ksh':\n if (n === 0)\n return Plural.Zero;\n if (n === 1)\n return Plural.One;\n return Plural.Other;\n case 'kw':\n case 'naq':\n case 'se':\n case 'smn':\n if (n === 1)\n return Plural.One;\n if (n === 2)\n return Plural.Two;\n return Plural.Other;\n case 'lag':\n if (n === 0)\n return Plural.Zero;\n if ((i === 0 || i === 1) && !(n === 0))\n return Plural.One;\n return Plural.Other;\n case 'lt':\n if (n % 10 === 1 && !(n % 100 >= 11 && n % 100 <= 19))\n return Plural.One;\n if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 9 &&\n !(n % 100 >= 11 && n % 100 <= 19))\n return Plural.Few;\n if (!(f === 0))\n return Plural.Many;\n return Plural.Other;\n case 'lv':\n case 'prg':\n if (n % 10 === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19 ||\n v === 2 && f % 100 === Math.floor(f % 100) && f % 100 >= 11 && f % 100 <= 19)\n return Plural.Zero;\n if (n % 10 === 1 && !(n % 100 === 11) || v === 2 && f % 10 === 1 && !(f % 100 === 11) ||\n !(v === 2) && f % 10 === 1)\n return Plural.One;\n return Plural.Other;\n case 'mk':\n if (v === 0 && i % 10 === 1 || f % 10 === 1)\n return Plural.One;\n return Plural.Other;\n case 'mt':\n if (n === 1)\n return Plural.One;\n if (n === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 2 && n % 100 <= 10)\n return Plural.Few;\n if (n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19)\n return Plural.Many;\n return Plural.Other;\n case 'pl':\n if (i === 1 && v === 0)\n return Plural.One;\n if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 &&\n !(i % 100 >= 12 && i % 100 <= 14))\n return Plural.Few;\n if (v === 0 && !(i === 1) && i % 10 === Math.floor(i % 10) && i % 10 >= 0 && i % 10 <= 1 ||\n v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 ||\n v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 12 && i % 100 <= 14)\n return Plural.Many;\n return Plural.Other;\n case 'pt':\n if (n === Math.floor(n) && n >= 0 && n <= 2 && !(n === 2))\n return Plural.One;\n return Plural.Other;\n case 'ro':\n if (i === 1 && v === 0)\n return Plural.One;\n if (!(v === 0) || n === 0 ||\n !(n === 1) && n % 100 === Math.floor(n % 100) && n % 100 >= 1 && n % 100 <= 19)\n return Plural.Few;\n return Plural.Other;\n case 'ru':\n case 'uk':\n if (v === 0 && i % 10 === 1 && !(i % 100 === 11))\n return Plural.One;\n if (v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 2 && i % 10 <= 4 &&\n !(i % 100 >= 12 && i % 100 <= 14))\n return Plural.Few;\n if (v === 0 && i % 10 === 0 ||\n v === 0 && i % 10 === Math.floor(i % 10) && i % 10 >= 5 && i % 10 <= 9 ||\n v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 11 && i % 100 <= 14)\n return Plural.Many;\n return Plural.Other;\n case 'shi':\n if (i === 0 || n === 1)\n return Plural.One;\n if (n === Math.floor(n) && n >= 2 && n <= 10)\n return Plural.Few;\n return Plural.Other;\n case 'si':\n if (n === 0 || n === 1 || i === 0 && f === 1)\n return Plural.One;\n return Plural.Other;\n case 'sl':\n if (v === 0 && i % 100 === 1)\n return Plural.One;\n if (v === 0 && i % 100 === 2)\n return Plural.Two;\n if (v === 0 && i % 100 === Math.floor(i % 100) && i % 100 >= 3 && i % 100 <= 4 || !(v === 0))\n return Plural.Few;\n return Plural.Other;\n case 'tzm':\n if (n === Math.floor(n) && n >= 0 && n <= 1 || n === Math.floor(n) && n >= 11 && n <= 99)\n return Plural.One;\n return Plural.Other;\n default:\n return Plural.Other;\n }\n }\n\n var _INTERPOLATION_REGEXP = /#/g;\n /**\n * Maps a value to a string that pluralizes the value properly.\n *\n * ## Usage\n *\n * expression | i18nPlural:mapping\n *\n * where `expression` is a number and `mapping` is an object that mimics the ICU format,\n * see http://userguide.icu-project.org/formatparse/messages\n *\n * ## Example\n *\n * ```\n * @Component({\n * selector: 'app',\n * template: `\n * <div>\n * {{ messages.length | i18nPlural: messageMapping }}\n * </div>\n * `,\n * // best practice is to define the locale at the application level\n * providers: [{provide: LOCALE_ID, useValue: 'en_US'}]\n * })\n *\n * class MyApp {\n * messages: any[];\n * messageMapping: {[k:string]: string} = {\n * '=0': 'No messages.',\n * '=1': 'One message.',\n * 'other': '# messages.'\n * }\n * ...\n * }\n * ```\n *\n * @experimental\n */\n var I18nPluralPipe = (function () {\n function I18nPluralPipe(_localization) {\n this._localization = _localization;\n }\n I18nPluralPipe.prototype.transform = function (value, pluralMap) {\n if (isBlank(value))\n return '';\n if (!isStringMap(pluralMap)) {\n throw new InvalidPipeArgumentError(I18nPluralPipe, pluralMap);\n }\n var key = getPluralCategory(value, Object.keys(pluralMap), this._localization);\n return StringWrapper.replaceAll(pluralMap[key], _INTERPOLATION_REGEXP, value.toString());\n };\n I18nPluralPipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'i18nPlural', pure: true },] },\n ];\n /** @nocollapse */\n I18nPluralPipe.ctorParameters = [\n { type: NgLocalization, },\n ];\n return I18nPluralPipe;\n }());\n\n /**\n *\n * Generic selector that displays the string that matches the current value.\n *\n * ## Usage\n *\n * expression | i18nSelect:mapping\n *\n * where `mapping` is an object that indicates the text that should be displayed\n * for different values of the provided `expression`.\n *\n * ## Example\n *\n * ```\n * <div>\n * {{ gender | i18nSelect: inviteMap }}\n * </div>\n *\n * class MyApp {\n * gender: string = 'male';\n * inviteMap: any = {\n * 'male': 'Invite him.',\n * 'female': 'Invite her.',\n * 'other': 'Invite them.'\n * }\n * ...\n * }\n * ```\n *\n * @experimental\n */\n var I18nSelectPipe = (function () {\n function I18nSelectPipe() {\n }\n I18nSelectPipe.prototype.transform = function (value, mapping) {\n if (isBlank(value))\n return '';\n if (!isStringMap(mapping)) {\n throw new InvalidPipeArgumentError(I18nSelectPipe, mapping);\n }\n return mapping.hasOwnProperty(value) ? mapping[value] : '';\n };\n I18nSelectPipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'i18nSelect', pure: true },] },\n ];\n /** @nocollapse */\n I18nSelectPipe.ctorParameters = [];\n return I18nSelectPipe;\n }());\n\n /**\n * Transforms any input value using `JSON.stringify`. Useful for debugging.\n *\n * ### Example\n * {@example core/pipes/ts/json_pipe/json_pipe_example.ts region='JsonPipe'}\n *\n * @stable\n */\n var JsonPipe = (function () {\n function JsonPipe() {\n }\n JsonPipe.prototype.transform = function (value) { return Json.stringify(value); };\n JsonPipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'json', pure: false },] },\n ];\n /** @nocollapse */\n JsonPipe.ctorParameters = [];\n return JsonPipe;\n }());\n\n /**\n * Transforms text to lowercase.\n *\n * ### Example\n *\n * {@example core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts region='LowerUpperPipe'}\n *\n * @stable\n */\n var LowerCasePipe = (function () {\n function LowerCasePipe() {\n }\n LowerCasePipe.prototype.transform = function (value) {\n if (isBlank(value))\n return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentError(LowerCasePipe, value);\n }\n return value.toLowerCase();\n };\n LowerCasePipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'lowercase' },] },\n ];\n /** @nocollapse */\n LowerCasePipe.ctorParameters = [];\n return LowerCasePipe;\n }());\n\n var _NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(\\-(\\d+))?)?$/;\n function formatNumber(pipe, locale, value, style, digits, currency, currencyAsSymbol) {\n if (currency === void 0) { currency = null; }\n if (currencyAsSymbol === void 0) { currencyAsSymbol = false; }\n if (isBlank(value))\n return null;\n // Convert strings to numbers\n value = isString(value) && NumberWrapper.isNumeric(value) ? +value : value;\n if (!isNumber(value)) {\n throw new InvalidPipeArgumentError(pipe, value);\n }\n var minInt;\n var minFraction;\n var maxFraction;\n if (style !== NumberFormatStyle.Currency) {\n // rely on Intl default for currency\n minInt = 1;\n minFraction = 0;\n maxFraction = 3;\n }\n if (isPresent(digits)) {\n var parts = digits.match(_NUMBER_FORMAT_REGEXP);\n if (parts === null) {\n throw new Error(digits + \" is not a valid digit info for number pipes\");\n }\n if (isPresent(parts[1])) {\n minInt = NumberWrapper.parseIntAutoRadix(parts[1]);\n }\n if (isPresent(parts[3])) {\n minFraction = NumberWrapper.parseIntAutoRadix(parts[3]);\n }\n if (isPresent(parts[5])) {\n maxFraction = NumberWrapper.parseIntAutoRadix(parts[5]);\n }\n }\n return NumberFormatter.format(value, locale, style, {\n minimumIntegerDigits: minInt,\n minimumFractionDigits: minFraction,\n maximumFractionDigits: maxFraction,\n currency: currency,\n currencyAsSymbol: currencyAsSymbol\n });\n }\n /**\n * WARNING: this pipe uses the Internationalization API.\n * Therefore it is only reliable in Chrome and Opera browsers. For other browsers please use an\n * polyfill, for example: [https://github.com/andyearnshaw/Intl.js/].\n *\n * Formats a number as local text. i.e. group sizing and separator and other locale-specific\n * configurations are based on the active locale.\n *\n * ### Usage\n *\n * expression | number[:digitInfo]\n *\n * where `expression` is a number and `digitInfo` has the following format:\n *\n * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}\n *\n * - minIntegerDigits is the minimum number of integer digits to use. Defaults to 1.\n * - minFractionDigits is the minimum number of digits after fraction. Defaults to 0.\n * - maxFractionDigits is the maximum number of digits after fraction. Defaults to 3.\n *\n * For more information on the acceptable range for each of these numbers and other\n * details see your native internationalization library.\n *\n * ### Example\n *\n * {@example core/pipes/ts/number_pipe/number_pipe_example.ts region='NumberPipe'}\n *\n * @stable\n */\n var DecimalPipe = (function () {\n function DecimalPipe(_locale) {\n this._locale = _locale;\n }\n DecimalPipe.prototype.transform = function (value, digits) {\n if (digits === void 0) { digits = null; }\n return formatNumber(DecimalPipe, this._locale, value, NumberFormatStyle.Decimal, digits);\n };\n DecimalPipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'number' },] },\n ];\n /** @nocollapse */\n DecimalPipe.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [_angular_core.LOCALE_ID,] },] },\n ];\n return DecimalPipe;\n }());\n /**\n * WARNING: this pipe uses the Internationalization API.\n * Therefore it is only reliable in Chrome and Opera browsers. For other browsers please use an\n * polyfill, for example: [https://github.com/andyearnshaw/Intl.js/].\n *\n * Formats a number as local percent.\n *\n * ### Usage\n *\n * expression | percent[:digitInfo]\n *\n * For more information about `digitInfo` see {@link DecimalPipe}\n *\n * ### Example\n *\n * {@example core/pipes/ts/number_pipe/number_pipe_example.ts region='PercentPipe'}\n *\n * @stable\n */\n var PercentPipe = (function () {\n function PercentPipe(_locale) {\n this._locale = _locale;\n }\n PercentPipe.prototype.transform = function (value, digits) {\n if (digits === void 0) { digits = null; }\n return formatNumber(PercentPipe, this._locale, value, NumberFormatStyle.Percent, digits);\n };\n PercentPipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'percent' },] },\n ];\n /** @nocollapse */\n PercentPipe.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [_angular_core.LOCALE_ID,] },] },\n ];\n return PercentPipe;\n }());\n /**\n * WARNING: this pipe uses the Internationalization API.\n * Therefore it is only reliable in Chrome and Opera browsers. For other browsers please use an\n * polyfill, for example: [https://github.com/andyearnshaw/Intl.js/].\n *\n *\n * Formats a number as local currency.\n *\n * ### Usage\n *\n * expression | currency[:currencyCode[:symbolDisplay[:digitInfo]]]\n *\n * where `currencyCode` is the ISO 4217 currency code, such as \"USD\" for the US dollar and\n * \"EUR\" for the euro. `symbolDisplay` is a boolean indicating whether to use the currency\n * symbol (e.g. $) or the currency code (e.g. USD) in the output. The default for this value\n * is `false`.\n * For more information about `digitInfo` see {@link DecimalPipe}\n *\n * ### Example\n *\n * {@example core/pipes/ts/number_pipe/number_pipe_example.ts region='CurrencyPipe'}\n *\n * @stable\n */\n var CurrencyPipe = (function () {\n function CurrencyPipe(_locale) {\n this._locale = _locale;\n }\n CurrencyPipe.prototype.transform = function (value, currencyCode, symbolDisplay, digits) {\n if (currencyCode === void 0) { currencyCode = 'USD'; }\n if (symbolDisplay === void 0) { symbolDisplay = false; }\n if (digits === void 0) { digits = null; }\n return formatNumber(CurrencyPipe, this._locale, value, NumberFormatStyle.Currency, digits, currencyCode, symbolDisplay);\n };\n CurrencyPipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'currency' },] },\n ];\n /** @nocollapse */\n CurrencyPipe.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Inject, args: [_angular_core.LOCALE_ID,] },] },\n ];\n return CurrencyPipe;\n }());\n\n /**\n * Creates a new List or String containing only a subset (slice) of the\n * elements.\n *\n * The starting index of the subset to return is specified by the `start` parameter.\n *\n * The ending index of the subset to return is specified by the optional `end` parameter.\n *\n * ### Usage\n *\n * expression | slice:start[:end]\n *\n * All behavior is based on the expected behavior of the JavaScript API\n * Array.prototype.slice() and String.prototype.slice()\n *\n * Where the input expression is a [List] or [String], and `start` is:\n *\n * - **a positive integer**: return the item at _start_ index and all items after\n * in the list or string expression.\n * - **a negative integer**: return the item at _start_ index from the end and all items after\n * in the list or string expression.\n * - **`|start|` greater than the size of the expression**: return an empty list or string.\n * - **`|start|` negative greater than the size of the expression**: return entire list or\n * string expression.\n *\n * and where `end` is:\n *\n * - **omitted**: return all items until the end of the input\n * - **a positive integer**: return all items before _end_ index of the list or string\n * expression.\n * - **a negative integer**: return all items before _end_ index from the end of the list\n * or string expression.\n *\n * When operating on a [List], the returned list is always a copy even when all\n * the elements are being returned.\n *\n * When operating on a blank value, returns it.\n *\n * ## List Example\n *\n * This `ngFor` example:\n *\n * {@example core/pipes/ts/slice_pipe/slice_pipe_example.ts region='SlicePipe_list'}\n *\n * produces the following:\n *\n * <li>b</li>\n * <li>c</li>\n *\n * ## String Examples\n *\n * {@example core/pipes/ts/slice_pipe/slice_pipe_example.ts region='SlicePipe_string'}\n *\n * @stable\n */\n var SlicePipe = (function () {\n function SlicePipe() {\n }\n SlicePipe.prototype.transform = function (value, start, end) {\n if (end === void 0) { end = null; }\n if (isBlank(value))\n return value;\n if (!this.supports(value)) {\n throw new InvalidPipeArgumentError(SlicePipe, value);\n }\n if (isString(value)) {\n return StringWrapper.slice(value, start, end);\n }\n return ListWrapper.slice(value, start, end);\n };\n SlicePipe.prototype.supports = function (obj) { return isString(obj) || isArray(obj); };\n SlicePipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'slice', pure: false },] },\n ];\n /** @nocollapse */\n SlicePipe.ctorParameters = [];\n return SlicePipe;\n }());\n\n /**\n * Implements uppercase transforms to text.\n *\n * ### Example\n *\n * {@example core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts region='LowerUpperPipe'}\n *\n * @stable\n */\n var UpperCasePipe = (function () {\n function UpperCasePipe() {\n }\n UpperCasePipe.prototype.transform = function (value) {\n if (isBlank(value))\n return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentError(UpperCasePipe, value);\n }\n return value.toUpperCase();\n };\n UpperCasePipe.decorators = [\n { type: _angular_core.Pipe, args: [{ name: 'uppercase' },] },\n ];\n /** @nocollapse */\n UpperCasePipe.ctorParameters = [];\n return UpperCasePipe;\n }());\n\n /**\n * The `NgClass` directive conditionally adds and removes CSS classes on an HTML element based on\n * an expression's evaluation result.\n *\n * The result of an expression evaluation is interpreted differently depending on type of\n * the expression evaluation result:\n * - `string` - all the CSS classes listed in a string (space delimited) are added\n * - `Array` - all the CSS classes (Array elements) are added\n * - `Object` - each key corresponds to a CSS class name while values are interpreted as expressions\n * evaluating to `Boolean`. If a given expression evaluates to `true` a corresponding CSS class\n * is added - otherwise it is removed.\n *\n * While the `NgClass` directive can interpret expressions evaluating to `string`, `Array`\n * or `Object`, the `Object`-based version is the most often used and has an advantage of keeping\n * all the CSS class names in a template.\n *\n * ### Example ([live demo](http://plnkr.co/edit/a4YdtmWywhJ33uqfpPPn?p=preview)):\n *\n * ```\n * import {Component} from '@angular/core';\n * import {NgClass} from '@angular/common';\n *\n * @Component({\n * selector: 'toggle-button',\n * inputs: ['isDisabled'],\n * template: `\n * <div class=\"button\" [ngClass]=\"{active: isOn, disabled: isDisabled}\"\n * (click)=\"toggle(!isOn)\">\n * Click me!\n * </div>`,\n * styles: [`\n * .button {\n * width: 120px;\n * border: medium solid black;\n * }\n *\n * .active {\n * background-color: red;\n * }\n *\n * .disabled {\n * color: gray;\n * border: medium solid gray;\n * }\n * `],\n * directives: [NgClass]\n * })\n * class ToggleButton {\n * isOn = false;\n * isDisabled = false;\n *\n * toggle(newState) {\n * if (!this.isDisabled) {\n * this.isOn = newState;\n * }\n * }\n * }\n * ```\n *\n * @stable\n */\n var NgClass = (function () {\n function NgClass(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {\n this._iterableDiffers = _iterableDiffers;\n this._keyValueDiffers = _keyValueDiffers;\n this._ngEl = _ngEl;\n this._renderer = _renderer;\n this._initialClasses = [];\n }\n Object.defineProperty(NgClass.prototype, \"initialClasses\", {\n set: function (v) {\n this._applyInitialClasses(true);\n this._initialClasses = isPresent(v) && isString(v) ? v.split(' ') : [];\n this._applyInitialClasses(false);\n this._applyClasses(this._rawClass, false);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgClass.prototype, \"ngClass\", {\n set: function (v) {\n this._cleanupClasses(this._rawClass);\n if (isString(v)) {\n v = v.split(' ');\n }\n this._rawClass = v;\n this._iterableDiffer = null;\n this._keyValueDiffer = null;\n if (isPresent(v)) {\n if (isListLikeIterable(v)) {\n this._iterableDiffer = this._iterableDiffers.find(v).create(null);\n }\n else {\n this._keyValueDiffer = this._keyValueDiffers.find(v).create(null);\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n NgClass.prototype.ngDoCheck = function () {\n if (isPresent(this._iterableDiffer)) {\n var changes = this._iterableDiffer.diff(this._rawClass);\n if (isPresent(changes)) {\n this._applyIterableChanges(changes);\n }\n }\n if (isPresent(this._keyValueDiffer)) {\n var changes = this._keyValueDiffer.diff(this._rawClass);\n if (isPresent(changes)) {\n this._applyKeyValueChanges(changes);\n }\n }\n };\n NgClass.prototype._cleanupClasses = function (rawClassVal) {\n this._applyClasses(rawClassVal, true);\n this._applyInitialClasses(false);\n };\n NgClass.prototype._applyKeyValueChanges = function (changes) {\n var _this = this;\n changes.forEachAddedItem(function (record) { _this._toggleClass(record.key, record.currentValue); });\n changes.forEachChangedItem(function (record) { _this._toggleClass(record.key, record.currentValue); });\n changes.forEachRemovedItem(function (record) {\n if (record.previousValue) {\n _this._toggleClass(record.key, false);\n }\n });\n };\n NgClass.prototype._applyIterableChanges = function (changes) {\n var _this = this;\n changes.forEachAddedItem(function (record) { _this._toggleClass(record.item, true); });\n changes.forEachRemovedItem(function (record) { _this._toggleClass(record.item, false); });\n };\n NgClass.prototype._applyInitialClasses = function (isCleanup) {\n var _this = this;\n this._initialClasses.forEach(function (className) { return _this._toggleClass(className, !isCleanup); });\n };\n NgClass.prototype._applyClasses = function (rawClassVal, isCleanup) {\n var _this = this;\n if (isPresent(rawClassVal)) {\n if (isArray(rawClassVal)) {\n rawClassVal.forEach(function (className) { return _this._toggleClass(className, !isCleanup); });\n }\n else if (rawClassVal instanceof Set) {\n rawClassVal.forEach(function (className) { return _this._toggleClass(className, !isCleanup); });\n }\n else {\n StringMapWrapper.forEach(rawClassVal, function (expVal, className) {\n if (isPresent(expVal))\n _this._toggleClass(className, !isCleanup);\n });\n }\n }\n };\n NgClass.prototype._toggleClass = function (className, enabled) {\n className = className.trim();\n if (className.length > 0) {\n if (className.indexOf(' ') > -1) {\n var classes = className.split(/\\s+/g);\n for (var i = 0, len = classes.length; i < len; i++) {\n this._renderer.setElementClass(this._ngEl.nativeElement, classes[i], enabled);\n }\n }\n else {\n this._renderer.setElementClass(this._ngEl.nativeElement, className, enabled);\n }\n }\n };\n NgClass.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngClass]' },] },\n ];\n /** @nocollapse */\n NgClass.ctorParameters = [\n { type: _angular_core.IterableDiffers, },\n { type: _angular_core.KeyValueDiffers, },\n { type: _angular_core.ElementRef, },\n { type: _angular_core.Renderer, },\n ];\n NgClass.propDecorators = {\n 'initialClasses': [{ type: _angular_core.Input, args: ['class',] },],\n 'ngClass': [{ type: _angular_core.Input },],\n };\n return NgClass;\n }());\n\n var NgForRow = (function () {\n function NgForRow($implicit, index, count) {\n this.$implicit = $implicit;\n this.index = index;\n this.count = count;\n }\n Object.defineProperty(NgForRow.prototype, \"first\", {\n get: function () { return this.index === 0; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForRow.prototype, \"last\", {\n get: function () { return this.index === this.count - 1; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForRow.prototype, \"even\", {\n get: function () { return this.index % 2 === 0; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForRow.prototype, \"odd\", {\n get: function () { return !this.even; },\n enumerable: true,\n configurable: true\n });\n return NgForRow;\n }());\n /**\n * The `NgFor` directive instantiates a template once per item from an iterable. The context for\n * each instantiated template inherits from the outer context with the given loop variable set\n * to the current item from the iterable.\n *\n * ### Local Variables\n *\n * `NgFor` provides several exported values that can be aliased to local variables:\n *\n * * `index` will be set to the current loop iteration for each template context.\n * * `first` will be set to a boolean value indicating whether the item is the first one in the\n * iteration.\n * * `last` will be set to a boolean value indicating whether the item is the last one in the\n * iteration.\n * * `even` will be set to a boolean value indicating whether this item has an even index.\n * * `odd` will be set to a boolean value indicating whether this item has an odd index.\n *\n * ### Change Propagation\n *\n * When the contents of the iterator changes, `NgFor` makes the corresponding changes to the DOM:\n *\n * * When an item is added, a new instance of the template is added to the DOM.\n * * When an item is removed, its template instance is removed from the DOM.\n * * When items are reordered, their respective templates are reordered in the DOM.\n * * Otherwise, the DOM element for that item will remain the same.\n *\n * Angular uses object identity to track insertions and deletions within the iterator and reproduce\n * those changes in the DOM. This has important implications for animations and any stateful\n * controls\n * (such as `<input>` elements which accept user input) that are present. Inserted rows can be\n * animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state such\n * as user input.\n *\n * It is possible for the identities of elements in the iterator to change while the data does not.\n * This can happen, for example, if the iterator produced from an RPC to the server, and that\n * RPC is re-run. Even if the data hasn't changed, the second response will produce objects with\n * different identities, and Angular will tear down the entire DOM and rebuild it (as if all old\n * elements were deleted and all new elements inserted). This is an expensive operation and should\n * be avoided if possible.\n *\n * To customize the default tracking algorithm, `NgFor` supports `trackBy` option.\n * `trackBy` takes a function which has two arguments: `index` and `item`.\n * If `trackBy` is given, Angular tracks changes by the return value of the function.\n *\n * ### Syntax\n *\n * - `<li *ngFor=\"let item of items; let i = index; trackBy: trackByFn\">...</li>`\n * - `<li template=\"ngFor let item of items; let i = index; trackBy: trackByFn\">...</li>`\n *\n * With `<template>` element:\n *\n * ```\n * <template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">\n * <li>...</li>\n * </template>\n * ```\n *\n * ### Example\n *\n * See a [live demo](http://plnkr.co/edit/KVuXxDp0qinGDyo307QW?p=preview) for a more detailed\n * example.\n *\n * @stable\n */\n var NgFor = (function () {\n function NgFor(_viewContainer, _templateRef, _iterableDiffers, _cdr) {\n this._viewContainer = _viewContainer;\n this._templateRef = _templateRef;\n this._iterableDiffers = _iterableDiffers;\n this._cdr = _cdr;\n }\n Object.defineProperty(NgFor.prototype, \"ngForTemplate\", {\n set: function (value) {\n if (isPresent(value)) {\n this._templateRef = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n NgFor.prototype.ngOnChanges = function (changes) {\n if ('ngForOf' in changes) {\n // React on ngForOf changes only once all inputs have been initialized\n var value = changes['ngForOf'].currentValue;\n if (isBlank(this._differ) && isPresent(value)) {\n try {\n this._differ = this._iterableDiffers.find(value).create(this._cdr, this.ngForTrackBy);\n }\n catch (e) {\n throw new Error(\"Cannot find a differ supporting object '\" + value + \"' of type '\" + getTypeNameForDebugging(value) + \"'. NgFor only supports binding to Iterables such as Arrays.\");\n }\n }\n }\n };\n NgFor.prototype.ngDoCheck = function () {\n if (isPresent(this._differ)) {\n var changes = this._differ.diff(this.ngForOf);\n if (isPresent(changes))\n this._applyChanges(changes);\n }\n };\n NgFor.prototype._applyChanges = function (changes) {\n var _this = this;\n var insertTuples = [];\n changes.forEachOperation(function (item, adjustedPreviousIndex, currentIndex) {\n if (item.previousIndex == null) {\n var view = _this._viewContainer.createEmbeddedView(_this._templateRef, new NgForRow(null, null, null), currentIndex);\n var tuple = new RecordViewTuple(item, view);\n insertTuples.push(tuple);\n }\n else if (currentIndex == null) {\n _this._viewContainer.remove(adjustedPreviousIndex);\n }\n else {\n var view = _this._viewContainer.get(adjustedPreviousIndex);\n _this._viewContainer.move(view, currentIndex);\n var tuple = new RecordViewTuple(item, view);\n insertTuples.push(tuple);\n }\n });\n for (var i = 0; i < insertTuples.length; i++) {\n this._perViewChange(insertTuples[i].view, insertTuples[i].record);\n }\n for (var i = 0, ilen = this._viewContainer.length; i < ilen; i++) {\n var viewRef = this._viewContainer.get(i);\n viewRef.context.index = i;\n viewRef.context.count = ilen;\n }\n changes.forEachIdentityChange(function (record) {\n var viewRef = _this._viewContainer.get(record.currentIndex);\n viewRef.context.$implicit = record.item;\n });\n };\n NgFor.prototype._perViewChange = function (view, record) {\n view.context.$implicit = record.item;\n };\n NgFor.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngFor][ngForOf]' },] },\n ];\n /** @nocollapse */\n NgFor.ctorParameters = [\n { type: _angular_core.ViewContainerRef, },\n { type: _angular_core.TemplateRef, },\n { type: _angular_core.IterableDiffers, },\n { type: _angular_core.ChangeDetectorRef, },\n ];\n NgFor.propDecorators = {\n 'ngForOf': [{ type: _angular_core.Input },],\n 'ngForTrackBy': [{ type: _angular_core.Input },],\n 'ngForTemplate': [{ type: _angular_core.Input },],\n };\n return NgFor;\n }());\n var RecordViewTuple = (function () {\n function RecordViewTuple(record, view) {\n this.record = record;\n this.view = view;\n }\n return RecordViewTuple;\n }());\n\n /**\n * Removes or recreates a portion of the DOM tree based on an {expression}.\n *\n * If the expression assigned to `ngIf` evaluates to a false value then the element\n * is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.\n *\n * ### Example ([live demo](http://plnkr.co/edit/fe0kgemFBtmQOY31b4tw?p=preview)):\n *\n * ```\n * <div *ngIf=\"errorCount > 0\" class=\"error\">\n * <!-- Error message displayed when the errorCount property on the current context is greater\n * than 0. -->\n * {{errorCount}} errors detected\n * </div>\n * ```\n *\n * ### Syntax\n *\n * - `<div *ngIf=\"condition\">...</div>`\n * - `<div template=\"ngIf condition\">...</div>`\n * - `<template [ngIf]=\"condition\"><div>...</div></template>`\n *\n * @stable\n */\n var NgIf = (function () {\n function NgIf(_viewContainer, _templateRef) {\n this._viewContainer = _viewContainer;\n this._templateRef = _templateRef;\n this._prevCondition = null;\n }\n Object.defineProperty(NgIf.prototype, \"ngIf\", {\n set: function (newCondition) {\n if (newCondition && (isBlank(this._prevCondition) || !this._prevCondition)) {\n this._prevCondition = true;\n this._viewContainer.createEmbeddedView(this._templateRef);\n }\n else if (!newCondition && (isBlank(this._prevCondition) || this._prevCondition)) {\n this._prevCondition = false;\n this._viewContainer.clear();\n }\n },\n enumerable: true,\n configurable: true\n });\n NgIf.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngIf]' },] },\n ];\n /** @nocollapse */\n NgIf.ctorParameters = [\n { type: _angular_core.ViewContainerRef, },\n { type: _angular_core.TemplateRef, },\n ];\n NgIf.propDecorators = {\n 'ngIf': [{ type: _angular_core.Input },],\n };\n return NgIf;\n }());\n\n var _CASE_DEFAULT = new Object();\n var SwitchView = (function () {\n function SwitchView(_viewContainerRef, _templateRef) {\n this._viewContainerRef = _viewContainerRef;\n this._templateRef = _templateRef;\n }\n SwitchView.prototype.create = function () { this._viewContainerRef.createEmbeddedView(this._templateRef); };\n SwitchView.prototype.destroy = function () { this._viewContainerRef.clear(); };\n return SwitchView;\n }());\n /**\n * Adds or removes DOM sub-trees when their match expressions match the switch expression.\n *\n * Elements within `NgSwitch` but without `NgSwitchCase` or `NgSwitchDefault` directives will be\n * preserved at the location as specified in the template.\n *\n * `NgSwitch` simply inserts nested elements based on which match expression matches the value\n * obtained from the evaluated switch expression. In other words, you define a container element\n * (where you place the directive with a switch expression on the\n * `[ngSwitch]=\"...\"` attribute), define any inner elements inside of the directive and\n * place a `[ngSwitchCase]` attribute per element.\n *\n * The `ngSwitchCase` property is used to inform `NgSwitch` which element to display when the\n * expression is evaluated. If a matching expression is not found via a `ngSwitchCase` property\n * then an element with the `ngSwitchDefault` attribute is displayed.\n *\n * ### Example ([live demo](http://plnkr.co/edit/DQMTII95CbuqWrl3lYAs?p=preview))\n *\n * ```typescript\n * @Component({\n * selector: 'app',\n * template: `\n * <p>Value = {{value}}</p>\n * <button (click)=\"inc()\">Increment</button>\n *\n * <div [ngSwitch]=\"value\">\n * <p *ngSwitchCase=\"'init'\">increment to start</p>\n * <p *ngSwitchCase=\"0\">0, increment again</p>\n * <p *ngSwitchCase=\"1\">1, increment again</p>\n * <p *ngSwitchCase=\"2\">2, stop incrementing</p>\n * <p *ngSwitchDefault>> 2, STOP!</p>\n * </div>\n *\n * <!-- alternate syntax -->\n *\n * <p [ngSwitch]=\"value\">\n * <template ngSwitchCase=\"init\">increment to start</template>\n * <template [ngSwitchCase]=\"0\">0, increment again</template>\n * <template [ngSwitchCase]=\"1\">1, increment again</template>\n * <template [ngSwitchCase]=\"2\">2, stop incrementing</template>\n * <template ngSwitchDefault>> 2, STOP!</template>\n * </p>\n * `,\n * directives: [NgSwitch, NgSwitchCase, NgSwitchDefault]\n * })\n * export class App {\n * value = 'init';\n *\n * inc() {\n * this.value = this.value === 'init' ? 0 : this.value + 1;\n * }\n * }\n * ```\n *\n * @stable\n */\n var NgSwitch = (function () {\n function NgSwitch() {\n this._useDefault = false;\n this._valueViews = new Map();\n this._activeViews = [];\n }\n Object.defineProperty(NgSwitch.prototype, \"ngSwitch\", {\n set: function (value) {\n // Empty the currently active ViewContainers\n this._emptyAllActiveViews();\n // Add the ViewContainers matching the value (with a fallback to default)\n this._useDefault = false;\n var views = this._valueViews.get(value);\n if (isBlank(views)) {\n this._useDefault = true;\n views = normalizeBlank(this._valueViews.get(_CASE_DEFAULT));\n }\n this._activateViews(views);\n this._switchValue = value;\n },\n enumerable: true,\n configurable: true\n });\n /** @internal */\n NgSwitch.prototype._onCaseValueChanged = function (oldCase, newCase, view) {\n this._deregisterView(oldCase, view);\n this._registerView(newCase, view);\n if (oldCase === this._switchValue) {\n view.destroy();\n ListWrapper.remove(this._activeViews, view);\n }\n else if (newCase === this._switchValue) {\n if (this._useDefault) {\n this._useDefault = false;\n this._emptyAllActiveViews();\n }\n view.create();\n this._activeViews.push(view);\n }\n // Switch to default when there is no more active ViewContainers\n if (this._activeViews.length === 0 && !this._useDefault) {\n this._useDefault = true;\n this._activateViews(this._valueViews.get(_CASE_DEFAULT));\n }\n };\n /** @internal */\n NgSwitch.prototype._emptyAllActiveViews = function () {\n var activeContainers = this._activeViews;\n for (var i = 0; i < activeContainers.length; i++) {\n activeContainers[i].destroy();\n }\n this._activeViews = [];\n };\n /** @internal */\n NgSwitch.prototype._activateViews = function (views) {\n // TODO(vicb): assert(this._activeViews.length === 0);\n if (isPresent(views)) {\n for (var i = 0; i < views.length; i++) {\n views[i].create();\n }\n this._activeViews = views;\n }\n };\n /** @internal */\n NgSwitch.prototype._registerView = function (value, view) {\n var views = this._valueViews.get(value);\n if (isBlank(views)) {\n views = [];\n this._valueViews.set(value, views);\n }\n views.push(view);\n };\n /** @internal */\n NgSwitch.prototype._deregisterView = function (value, view) {\n // `_CASE_DEFAULT` is used a marker for non-registered cases\n if (value === _CASE_DEFAULT)\n return;\n var views = this._valueViews.get(value);\n if (views.length == 1) {\n this._valueViews.delete(value);\n }\n else {\n ListWrapper.remove(views, view);\n }\n };\n NgSwitch.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngSwitch]' },] },\n ];\n /** @nocollapse */\n NgSwitch.ctorParameters = [];\n NgSwitch.propDecorators = {\n 'ngSwitch': [{ type: _angular_core.Input },],\n };\n return NgSwitch;\n }());\n /**\n * Insert the sub-tree when the `ngSwitchCase` expression evaluates to the same value as the\n * enclosing switch expression.\n *\n * If multiple match expression match the switch expression value, all of them are displayed.\n *\n * See {@link NgSwitch} for more details and example.\n *\n * @stable\n */\n var NgSwitchCase = (function () {\n function NgSwitchCase(viewContainer, templateRef, ngSwitch) {\n // `_CASE_DEFAULT` is used as a marker for a not yet initialized value\n /** @internal */\n this._value = _CASE_DEFAULT;\n this._switch = ngSwitch;\n this._view = new SwitchView(viewContainer, templateRef);\n }\n Object.defineProperty(NgSwitchCase.prototype, \"ngSwitchCase\", {\n set: function (value) {\n this._switch._onCaseValueChanged(this._value, value, this._view);\n this._value = value;\n },\n enumerable: true,\n configurable: true\n });\n NgSwitchCase.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngSwitchCase]' },] },\n ];\n /** @nocollapse */\n NgSwitchCase.ctorParameters = [\n { type: _angular_core.ViewContainerRef, },\n { type: _angular_core.TemplateRef, },\n { type: NgSwitch, decorators: [{ type: _angular_core.Host },] },\n ];\n NgSwitchCase.propDecorators = {\n 'ngSwitchCase': [{ type: _angular_core.Input },],\n };\n return NgSwitchCase;\n }());\n /**\n * Default case statements are displayed when no match expression matches the switch expression\n * value.\n *\n * See {@link NgSwitch} for more details and example.\n *\n * @stable\n */\n var NgSwitchDefault = (function () {\n function NgSwitchDefault(viewContainer, templateRef, sswitch) {\n sswitch._registerView(_CASE_DEFAULT, new SwitchView(viewContainer, templateRef));\n }\n NgSwitchDefault.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngSwitchDefault]' },] },\n ];\n /** @nocollapse */\n NgSwitchDefault.ctorParameters = [\n { type: _angular_core.ViewContainerRef, },\n { type: _angular_core.TemplateRef, },\n { type: NgSwitch, decorators: [{ type: _angular_core.Host },] },\n ];\n return NgSwitchDefault;\n }());\n\n /**\n * `ngPlural` is an i18n directive that displays DOM sub-trees that match the switch expression\n * value, or failing that, DOM sub-trees that match the switch expression's pluralization category.\n *\n * To use this directive you must provide a container element that sets the `[ngPlural]` attribute\n * to a\n * switch expression.\n * - Inner elements defined with an `[ngPluralCase]` attribute will display based on their\n * expression.\n * - If `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value\n * matches the switch expression exactly.\n * - Otherwise, the view will be treated as a \"category match\", and will only display if exact\n * value matches aren't found and the value maps to its category for the defined locale.\n *\n * ```typescript\n * @Component({\n * selector: 'app',\n * // best practice is to define the locale at the application level\n * providers: [{provide: LOCALE_ID, useValue: 'en_US'}]\n * })\n * @View({\n * template: `\n * <p>Value = {{value}}</p>\n * <button (click)=\"inc()\">Increment</button>\n *\n * <div [ngPlural]=\"value\">\n * <template ngPluralCase=\"=0\">there is nothing</template>\n * <template ngPluralCase=\"=1\">there is one</template>\n * <template ngPluralCase=\"few\">there are a few</template>\n * <template ngPluralCase=\"other\">there is some number</template>\n * </div>\n * `,\n * directives: [NgPlural, NgPluralCase]\n * })\n * export class App {\n * value = 'init';\n *\n * inc() {\n * this.value = this.value === 'init' ? 0 : this.value + 1;\n * }\n * }\n *\n * ```\n * @experimental\n */\n var NgPlural = (function () {\n function NgPlural(_localization) {\n this._localization = _localization;\n this._caseViews = {};\n }\n Object.defineProperty(NgPlural.prototype, \"ngPlural\", {\n set: function (value) {\n this._switchValue = value;\n this._updateView();\n },\n enumerable: true,\n configurable: true\n });\n NgPlural.prototype.addCase = function (value, switchView) { this._caseViews[value] = switchView; };\n /** @internal */\n NgPlural.prototype._updateView = function () {\n this._clearViews();\n var key = getPluralCategory(this._switchValue, Object.keys(this._caseViews), this._localization);\n this._activateView(this._caseViews[key]);\n };\n /** @internal */\n NgPlural.prototype._clearViews = function () {\n if (isPresent(this._activeView))\n this._activeView.destroy();\n };\n /** @internal */\n NgPlural.prototype._activateView = function (view) {\n if (!isPresent(view))\n return;\n this._activeView = view;\n this._activeView.create();\n };\n NgPlural.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngPlural]' },] },\n ];\n /** @nocollapse */\n NgPlural.ctorParameters = [\n { type: NgLocalization, },\n ];\n NgPlural.propDecorators = {\n 'ngPlural': [{ type: _angular_core.Input },],\n };\n return NgPlural;\n }());\n /**\n * @experimental\n */\n var NgPluralCase = (function () {\n function NgPluralCase(value, template, viewContainer, ngPlural) {\n this.value = value;\n ngPlural.addCase(value, new SwitchView(viewContainer, template));\n }\n NgPluralCase.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngPluralCase]' },] },\n ];\n /** @nocollapse */\n NgPluralCase.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Attribute, args: ['ngPluralCase',] },] },\n { type: _angular_core.TemplateRef, },\n { type: _angular_core.ViewContainerRef, },\n { type: NgPlural, decorators: [{ type: _angular_core.Host },] },\n ];\n return NgPluralCase;\n }());\n\n /**\n * The `NgStyle` directive changes styles based on a result of expression evaluation.\n *\n * An expression assigned to the `ngStyle` property must evaluate to an object and the\n * corresponding element styles are updated based on changes to this object. Style names to update\n * are taken from the object's keys, and values - from the corresponding object's values.\n *\n * ### Syntax\n *\n * - `<div [ngStyle]=\"{'font-style': styleExp}\"></div>`\n * - `<div [ngStyle]=\"{'max-width.px': widthExp}\"></div>`\n * - `<div [ngStyle]=\"styleExp\"></div>` - here the `styleExp` must evaluate to an object\n *\n * ### Example ([live demo](http://plnkr.co/edit/YamGS6GkUh9GqWNQhCyM?p=preview)):\n *\n * ```\n * import {Component} from '@angular/core';\n * import {NgStyle} from '@angular/common';\n *\n * @Component({\n * selector: 'ngStyle-example',\n * template: `\n * <h1 [ngStyle]=\"{'font-style': style, 'font-size': size, 'font-weight': weight}\">\n * Change style of this text!\n * </h1>\n *\n * <hr>\n *\n * <label>Italic: <input type=\"checkbox\" (change)=\"changeStyle($event)\"></label>\n * <label>Bold: <input type=\"checkbox\" (change)=\"changeWeight($event)\"></label>\n * <label>Size: <input type=\"text\" [value]=\"size\" (change)=\"size = $event.target.value\"></label>\n * `,\n * directives: [NgStyle]\n * })\n * export class NgStyleExample {\n * style = 'normal';\n * weight = 'normal';\n * size = '20px';\n *\n * changeStyle($event: any) {\n * this.style = $event.target.checked ? 'italic' : 'normal';\n * }\n *\n * changeWeight($event: any) {\n * this.weight = $event.target.checked ? 'bold' : 'normal';\n * }\n * }\n * ```\n *\n * In this example the `font-style`, `font-size` and `font-weight` styles will be updated\n * based on the `style` property's value changes.\n *\n * @stable\n */\n var NgStyle = (function () {\n function NgStyle(_differs, _ngEl, _renderer) {\n this._differs = _differs;\n this._ngEl = _ngEl;\n this._renderer = _renderer;\n }\n Object.defineProperty(NgStyle.prototype, \"ngStyle\", {\n set: function (v) {\n this._ngStyle = v;\n if (isBlank(this._differ) && isPresent(v)) {\n this._differ = this._differs.find(this._ngStyle).create(null);\n }\n },\n enumerable: true,\n configurable: true\n });\n NgStyle.prototype.ngDoCheck = function () {\n if (isPresent(this._differ)) {\n var changes = this._differ.diff(this._ngStyle);\n if (isPresent(changes)) {\n this._applyChanges(changes);\n }\n }\n };\n NgStyle.prototype._applyChanges = function (changes) {\n var _this = this;\n changes.forEachRemovedItem(function (record) { _this._setStyle(record.key, null); });\n changes.forEachAddedItem(function (record) { _this._setStyle(record.key, record.currentValue); });\n changes.forEachChangedItem(function (record) { _this._setStyle(record.key, record.currentValue); });\n };\n NgStyle.prototype._setStyle = function (name, val) {\n var nameParts = name.split('.');\n var nameToSet = nameParts[0];\n var valToSet = isPresent(val) && nameParts.length === 2 ? \"\" + val + nameParts[1] : val;\n this._renderer.setElementStyle(this._ngEl.nativeElement, nameToSet, valToSet);\n };\n NgStyle.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngStyle]' },] },\n ];\n /** @nocollapse */\n NgStyle.ctorParameters = [\n { type: _angular_core.KeyValueDiffers, },\n { type: _angular_core.ElementRef, },\n { type: _angular_core.Renderer, },\n ];\n NgStyle.propDecorators = {\n 'ngStyle': [{ type: _angular_core.Input },],\n };\n return NgStyle;\n }());\n\n /**\n * Creates and inserts an embedded view based on a prepared `TemplateRef`.\n * You can attach a context object to the `EmbeddedViewRef` by setting `[ngOutletContext]`.\n * `[ngOutletContext]` should be an object, the object's keys will be the local template variables\n * available within the `TemplateRef`.\n *\n * Note: using the key `$implicit` in the context object will set it's value as default.\n *\n * ### Syntax\n *\n * ```\n * <template [ngTemplateOutlet]=\"templateRefExpression\"\n * [ngOutletContext]=\"objectExpression\">\n * </template>\n * ```\n *\n * @experimental\n */\n var NgTemplateOutlet = (function () {\n function NgTemplateOutlet(_viewContainerRef) {\n this._viewContainerRef = _viewContainerRef;\n }\n Object.defineProperty(NgTemplateOutlet.prototype, \"ngOutletContext\", {\n set: function (context) { this._context = context; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgTemplateOutlet.prototype, \"ngTemplateOutlet\", {\n set: function (templateRef) { this._templateRef = templateRef; },\n enumerable: true,\n configurable: true\n });\n NgTemplateOutlet.prototype.ngOnChanges = function () {\n if (this._viewRef) {\n this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef));\n }\n if (this._templateRef) {\n this._viewRef = this._viewContainerRef.createEmbeddedView(this._templateRef, this._context);\n }\n };\n NgTemplateOutlet.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngTemplateOutlet]' },] },\n ];\n /** @nocollapse */\n NgTemplateOutlet.ctorParameters = [\n { type: _angular_core.ViewContainerRef, },\n ];\n NgTemplateOutlet.propDecorators = {\n 'ngOutletContext': [{ type: _angular_core.Input },],\n 'ngTemplateOutlet': [{ type: _angular_core.Input },],\n };\n return NgTemplateOutlet;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * This class should not be used directly by an application developer. Instead, use\n * {@link Location}.\n *\n * `PlatformLocation` encapsulates all calls to DOM apis, which allows the Router to be platform\n * agnostic.\n * This means that we can have different implementation of `PlatformLocation` for the different\n * platforms\n * that angular supports. For example, the default `PlatformLocation` is {@link\n * BrowserPlatformLocation},\n * however when you run your app in a WebWorker you use {@link WebWorkerPlatformLocation}.\n *\n * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}\n * when\n * they need to interact with the DOM apis like pushState, popState, etc...\n *\n * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly\n * by\n * the {@link Router} in order to navigate between routes. Since all interactions between {@link\n * Router} /\n * {@link Location} / {@link LocationStrategy} and DOM apis flow through the `PlatformLocation`\n * class\n * they are all platform independent.\n *\n * @stable\n */\n var PlatformLocation = (function () {\n function PlatformLocation() {\n }\n Object.defineProperty(PlatformLocation.prototype, \"pathname\", {\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(PlatformLocation.prototype, \"search\", {\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(PlatformLocation.prototype, \"hash\", {\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n return PlatformLocation;\n }());\n\n /**\n * `LocationStrategy` is responsible for representing and reading route state\n * from the browser's URL. Angular provides two strategies:\n * {@link HashLocationStrategy} and {@link PathLocationStrategy} (default).\n *\n * This is used under the hood of the {@link Location} service.\n *\n * Applications should use the {@link Router} or {@link Location} services to\n * interact with application route state.\n *\n * For instance, {@link HashLocationStrategy} produces URLs like\n * `http://example.com#/foo`, and {@link PathLocationStrategy} produces\n * `http://example.com/foo` as an equivalent URL.\n *\n * See these two classes for more.\n *\n * @stable\n */\n var LocationStrategy = (function () {\n function LocationStrategy() {\n }\n return LocationStrategy;\n }());\n /**\n * The `APP_BASE_HREF` token represents the base href to be used with the\n * {@link PathLocationStrategy}.\n *\n * If you're using {@link PathLocationStrategy}, you must provide a provider to a string\n * representing the URL prefix that should be preserved when generating and recognizing\n * URLs.\n *\n * ### Example\n *\n * import {Component, NgModule} from '@angular/core';\n * import {APP_BASE_HREF} from '@angular/common';\n *\n * @NgModule({\n * providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]\n * })\n * class AppModule {}\n * ```\n *\n * @stable\n */\n var APP_BASE_HREF = new _angular_core.OpaqueToken('appBaseHref');\n\n /**\n * `Location` is a service that applications can use to interact with a browser's URL.\n * Depending on which {@link LocationStrategy} is used, `Location` will either persist\n * to the URL's path or the URL's hash segment.\n *\n * Note: it's better to use {@link Router#navigate} service to trigger route changes. Use\n * `Location` only if you need to interact with or create normalized URLs outside of\n * routing.\n *\n * `Location` is responsible for normalizing the URL against the application's base href.\n * A normalized URL is absolute from the URL host, includes the application's base href, and has no\n * trailing slash:\n * - `/my/app/user/123` is normalized\n * - `my/app/user/123` **is not** normalized\n * - `/my/app/user/123/` **is not** normalized\n *\n * ### Example\n *\n * ```\n * import {Component} from '@angular/core';\n * import {Location} from '@angular/common';\n *\n * @Component({selector: 'app-component'})\n * class AppCmp {\n * constructor(location: Location) {\n * location.go('/foo');\n * }\n * }\n * ```\n *\n * @stable\n */\n var Location = (function () {\n function Location(platformStrategy) {\n var _this = this;\n /** @internal */\n this._subject = new _angular_core.EventEmitter();\n this._platformStrategy = platformStrategy;\n var browserBaseHref = this._platformStrategy.getBaseHref();\n this._baseHref = Location.stripTrailingSlash(_stripIndexHtml(browserBaseHref));\n this._platformStrategy.onPopState(function (ev) { _this._subject.emit({ 'url': _this.path(true), 'pop': true, 'type': ev.type }); });\n }\n /**\n * Returns the normalized URL path.\n */\n // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is\n // removed.\n Location.prototype.path = function (includeHash) {\n if (includeHash === void 0) { includeHash = false; }\n return this.normalize(this._platformStrategy.path(includeHash));\n };\n /**\n * Normalizes the given path and compares to the current normalized path.\n */\n Location.prototype.isCurrentPathEqualTo = function (path, query) {\n if (query === void 0) { query = ''; }\n return this.path() == this.normalize(path + Location.normalizeQueryParams(query));\n };\n /**\n * Given a string representing a URL, returns the normalized URL path without leading or\n * trailing slashes\n */\n Location.prototype.normalize = function (url) {\n return Location.stripTrailingSlash(_stripBaseHref(this._baseHref, _stripIndexHtml(url)));\n };\n /**\n * Given a string representing a URL, returns the platform-specific external URL path.\n * If the given URL doesn't begin with a leading slash (`'/'`), this method adds one\n * before normalizing. This method will also add a hash if `HashLocationStrategy` is\n * used, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.\n */\n Location.prototype.prepareExternalUrl = function (url) {\n if (url.length > 0 && !url.startsWith('/')) {\n url = '/' + url;\n }\n return this._platformStrategy.prepareExternalUrl(url);\n };\n // TODO: rename this method to pushState\n /**\n * Changes the browsers URL to the normalized version of the given URL, and pushes a\n * new item onto the platform's history.\n */\n Location.prototype.go = function (path, query) {\n if (query === void 0) { query = ''; }\n this._platformStrategy.pushState(null, '', path, query);\n };\n /**\n * Changes the browsers URL to the normalized version of the given URL, and replaces\n * the top item on the platform's history stack.\n */\n Location.prototype.replaceState = function (path, query) {\n if (query === void 0) { query = ''; }\n this._platformStrategy.replaceState(null, '', path, query);\n };\n /**\n * Navigates forward in the platform's history.\n */\n Location.prototype.forward = function () { this._platformStrategy.forward(); };\n /**\n * Navigates back in the platform's history.\n */\n Location.prototype.back = function () { this._platformStrategy.back(); };\n /**\n * Subscribe to the platform's `popState` events.\n */\n Location.prototype.subscribe = function (onNext, onThrow, onReturn) {\n if (onThrow === void 0) { onThrow = null; }\n if (onReturn === void 0) { onReturn = null; }\n return this._subject.subscribe({ next: onNext, error: onThrow, complete: onReturn });\n };\n /**\n * Given a string of url parameters, prepend with '?' if needed, otherwise return parameters as\n * is.\n */\n Location.normalizeQueryParams = function (params) {\n return (params.length > 0 && params.substring(0, 1) != '?') ? ('?' + params) : params;\n };\n /**\n * Given 2 parts of a url, join them with a slash if needed.\n */\n Location.joinWithSlash = function (start, end) {\n if (start.length == 0) {\n return end;\n }\n if (end.length == 0) {\n return start;\n }\n var slashes = 0;\n if (start.endsWith('/')) {\n slashes++;\n }\n if (end.startsWith('/')) {\n slashes++;\n }\n if (slashes == 2) {\n return start + end.substring(1);\n }\n if (slashes == 1) {\n return start + end;\n }\n return start + '/' + end;\n };\n /**\n * If url has a trailing slash, remove it, otherwise return url as is.\n */\n Location.stripTrailingSlash = function (url) {\n if (/\\/$/g.test(url)) {\n url = url.substring(0, url.length - 1);\n }\n return url;\n };\n Location.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n Location.ctorParameters = [\n { type: LocationStrategy, },\n ];\n return Location;\n }());\n function _stripBaseHref(baseHref, url) {\n if (baseHref.length > 0 && url.startsWith(baseHref)) {\n return url.substring(baseHref.length);\n }\n return url;\n }\n function _stripIndexHtml(url) {\n if (/\\/index.html$/g.test(url)) {\n // '/index.html'.length == 11\n return url.substring(0, url.length - 11);\n }\n return url;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$3 = (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 };\n /**\n * `HashLocationStrategy` is a {@link LocationStrategy} used to configure the\n * {@link Location} service to represent its state in the\n * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)\n * of the browser's URL.\n *\n * For instance, if you call `location.go('/foo')`, the browser's URL will become\n * `example.com#/foo`.\n *\n * ### Example\n *\n * ```\n * import {Component, NgModule} from '@angular/core';\n * import {\n * LocationStrategy,\n * HashLocationStrategy\n * } from '@angular/common';\n *\n * @NgModule({\n * providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}]\n * })\n * class AppModule {}\n * ```\n *\n * @stable\n */\n var HashLocationStrategy = (function (_super) {\n __extends$3(HashLocationStrategy, _super);\n function HashLocationStrategy(_platformLocation, _baseHref) {\n _super.call(this);\n this._platformLocation = _platformLocation;\n this._baseHref = '';\n if (isPresent(_baseHref)) {\n this._baseHref = _baseHref;\n }\n }\n HashLocationStrategy.prototype.onPopState = function (fn) {\n this._platformLocation.onPopState(fn);\n this._platformLocation.onHashChange(fn);\n };\n HashLocationStrategy.prototype.getBaseHref = function () { return this._baseHref; };\n HashLocationStrategy.prototype.path = function (includeHash) {\n if (includeHash === void 0) { includeHash = false; }\n // the hash value is always prefixed with a `#`\n // and if it is empty then it will stay empty\n var path = this._platformLocation.hash;\n if (!isPresent(path))\n path = '#';\n return path.length > 0 ? path.substring(1) : path;\n };\n HashLocationStrategy.prototype.prepareExternalUrl = function (internal) {\n var url = Location.joinWithSlash(this._baseHref, internal);\n return url.length > 0 ? ('#' + url) : url;\n };\n HashLocationStrategy.prototype.pushState = function (state, title, path, queryParams) {\n var url = this.prepareExternalUrl(path + Location.normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.pushState(state, title, url);\n };\n HashLocationStrategy.prototype.replaceState = function (state, title, path, queryParams) {\n var url = this.prepareExternalUrl(path + Location.normalizeQueryParams(queryParams));\n if (url.length == 0) {\n url = this._platformLocation.pathname;\n }\n this._platformLocation.replaceState(state, title, url);\n };\n HashLocationStrategy.prototype.forward = function () { this._platformLocation.forward(); };\n HashLocationStrategy.prototype.back = function () { this._platformLocation.back(); };\n HashLocationStrategy.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n HashLocationStrategy.ctorParameters = [\n { type: PlatformLocation, },\n { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [APP_BASE_HREF,] },] },\n ];\n return HashLocationStrategy;\n }(LocationStrategy));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$4 = (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 };\n /**\n * `PathLocationStrategy` is a {@link LocationStrategy} used to configure the\n * {@link Location} service to represent its state in the\n * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the\n * browser's URL.\n *\n * `PathLocationStrategy` is the default binding for {@link LocationStrategy}\n * provided in {@link ROUTER_PROVIDERS}.\n *\n * If you're using `PathLocationStrategy`, you must provide a {@link APP_BASE_HREF}\n * or add a base element to the document. This URL prefix that will be preserved\n * when generating and recognizing URLs.\n *\n * For instance, if you provide an `APP_BASE_HREF` of `'/my/app'` and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`.\n *\n * Similarly, if you add `<base href='/my/app'/>` to the document and call\n * `location.go('/foo')`, the browser's URL will become\n * `example.com/my/app/foo`.\n *\n * @stable\n */\n var PathLocationStrategy = (function (_super) {\n __extends$4(PathLocationStrategy, _super);\n function PathLocationStrategy(_platformLocation, href) {\n _super.call(this);\n this._platformLocation = _platformLocation;\n if (isBlank(href)) {\n href = this._platformLocation.getBaseHrefFromDOM();\n }\n if (isBlank(href)) {\n throw new Error(\"No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.\");\n }\n this._baseHref = href;\n }\n PathLocationStrategy.prototype.onPopState = function (fn) {\n this._platformLocation.onPopState(fn);\n this._platformLocation.onHashChange(fn);\n };\n PathLocationStrategy.prototype.getBaseHref = function () { return this._baseHref; };\n PathLocationStrategy.prototype.prepareExternalUrl = function (internal) {\n return Location.joinWithSlash(this._baseHref, internal);\n };\n PathLocationStrategy.prototype.path = function (includeHash) {\n if (includeHash === void 0) { includeHash = false; }\n var pathname = this._platformLocation.pathname +\n Location.normalizeQueryParams(this._platformLocation.search);\n var hash = this._platformLocation.hash;\n return hash && includeHash ? \"\" + pathname + hash : pathname;\n };\n PathLocationStrategy.prototype.pushState = function (state, title, url, queryParams) {\n var externalUrl = this.prepareExternalUrl(url + Location.normalizeQueryParams(queryParams));\n this._platformLocation.pushState(state, title, externalUrl);\n };\n PathLocationStrategy.prototype.replaceState = function (state, title, url, queryParams) {\n var externalUrl = this.prepareExternalUrl(url + Location.normalizeQueryParams(queryParams));\n this._platformLocation.replaceState(state, title, externalUrl);\n };\n PathLocationStrategy.prototype.forward = function () { this._platformLocation.forward(); };\n PathLocationStrategy.prototype.back = function () { this._platformLocation.back(); };\n PathLocationStrategy.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n PathLocationStrategy.ctorParameters = [\n { type: PlatformLocation, },\n { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [APP_BASE_HREF,] },] },\n ];\n return PathLocationStrategy;\n }(LocationStrategy));\n\n /**\n * A collection of Angular core directives that are likely to be used in each and every Angular\n * application.\n *\n * This collection can be used to quickly enumerate all the built-in directives in the `directives`\n * property of the `@Component` annotation.\n *\n * ### Example ([live demo](http://plnkr.co/edit/yakGwpCdUkg0qfzX5m8g?p=preview))\n *\n * Instead of writing:\n *\n * ```typescript\n * import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchCase, NgSwitchDefault} from '@angular/common';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'myComponent.html',\n * directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchCase, NgSwitchDefault, OtherDirective]\n * })\n * export class MyComponent {\n * ...\n * }\n * ```\n * one could import all the core directives at once:\n *\n * ```typescript\n * import {CORE_DIRECTIVES} from '@angular/common';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'myComponent.html',\n * directives: [CORE_DIRECTIVES, OtherDirective]\n * })\n * export class MyComponent {\n * ...\n * }\n * ```\n *\n * @stable\n */\n var CORE_DIRECTIVES = [\n NgClass,\n NgFor,\n NgIf,\n NgTemplateOutlet,\n NgStyle,\n NgSwitch,\n NgSwitchCase,\n NgSwitchDefault,\n NgPlural,\n NgPluralCase,\n ];\n\n /**\n * A collection of Angular core directives that are likely to be used in each and every Angular\n * application. This includes core directives (e.g., NgIf and NgFor), and forms directives (e.g.,\n * NgModel).\n *\n * This collection can be used to quickly enumerate all the built-in directives in the `directives`\n * property of the `@Component` decorator.\n *\n * ### Example\n *\n * Instead of writing:\n *\n * ```typescript\n * import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchCase, NgSwitchDefault, NgModel, NgForm} from\n * '@angular/common';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'myComponent.html',\n * directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchCase, NgSwitchDefault, NgModel, NgForm,\n * OtherDirective]\n * })\n * export class MyComponent {\n * ...\n * }\n * ```\n * one could import all the common directives at once:\n *\n * ```typescript\n * import {COMMON_DIRECTIVES} from '@angular/common';\n * import {OtherDirective} from './myDirectives';\n *\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'myComponent.html',\n * directives: [COMMON_DIRECTIVES, OtherDirective]\n * })\n * export class MyComponent {\n * ...\n * }\n * ```\n *\n * @experimental Contains forms which are experimental.\n */\n var COMMON_DIRECTIVES = CORE_DIRECTIVES;\n\n /**\n * A collection of Angular core pipes that are likely to be used in each and every\n * application.\n *\n * This collection can be used to quickly enumerate all the built-in pipes in the `pipes`\n * property of the `@Component` decorator.\n *\n * @experimental Contains i18n pipes which are experimental\n */\n var COMMON_PIPES = [\n AsyncPipe,\n UpperCasePipe,\n LowerCasePipe,\n JsonPipe,\n SlicePipe,\n DecimalPipe,\n PercentPipe,\n CurrencyPipe,\n DatePipe,\n I18nPluralPipe,\n I18nSelectPipe,\n ];\n\n // Note: This does not contain the location providers,\n // as they need some platform specific implementations to work.\n /**\n * The module that includes all the basic Angular directives like {@link NgIf}, ${link NgFor}, ...\n *\n * @stable\n */\n var CommonModule = (function () {\n function CommonModule() {\n }\n CommonModule.decorators = [\n { type: _angular_core.NgModule, args: [{\n declarations: [COMMON_DIRECTIVES, COMMON_PIPES],\n exports: [COMMON_DIRECTIVES, COMMON_PIPES],\n providers: [\n { provide: NgLocalization, useClass: NgLocaleLocalization },\n ],\n },] },\n ];\n /** @nocollapse */\n CommonModule.ctorParameters = [];\n return CommonModule;\n }());\n\n exports.NgLocalization = NgLocalization;\n exports.CommonModule = CommonModule;\n exports.AsyncPipe = AsyncPipe;\n exports.DatePipe = DatePipe;\n exports.I18nPluralPipe = I18nPluralPipe;\n exports.I18nSelectPipe = I18nSelectPipe;\n exports.JsonPipe = JsonPipe;\n exports.LowerCasePipe = LowerCasePipe;\n exports.CurrencyPipe = CurrencyPipe;\n exports.DecimalPipe = DecimalPipe;\n exports.PercentPipe = PercentPipe;\n exports.SlicePipe = SlicePipe;\n exports.UpperCasePipe = UpperCasePipe;\n exports.NgClass = NgClass;\n exports.NgFor = NgFor;\n exports.NgIf = NgIf;\n exports.NgPlural = NgPlural;\n exports.NgPluralCase = NgPluralCase;\n exports.NgStyle = NgStyle;\n exports.NgSwitch = NgSwitch;\n exports.NgSwitchCase = NgSwitchCase;\n exports.NgSwitchDefault = NgSwitchDefault;\n exports.NgTemplateOutlet = NgTemplateOutlet;\n exports.PlatformLocation = PlatformLocation;\n exports.LocationStrategy = LocationStrategy;\n exports.APP_BASE_HREF = APP_BASE_HREF;\n exports.HashLocationStrategy = HashLocationStrategy;\n exports.PathLocationStrategy = PathLocationStrategy;\n exports.Location = Location;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/common/bundles/common.umd.js\n ** module id = 333\n ** module chunks = 0\n **/","import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { AppComponent } from './app.component';\r\nimport { Http, HttpModule, RequestOptions, XHRBackend } from '@angular/http';\r\nimport { LocationStrategy, HashLocationStrategy, PathLocationStrategy} from '@angular/common';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\n\r\n/* Components */\r\nimport { HeaderComponent } from '../../modules/common/header/header.component';\r\nimport { FooterComponent } from '../../modules/common/footer/footer.component';\r\nimport { LoginComponent } from '../../modules/login/login.component';\r\nimport { LoginRouterComponent } from '../../modules/login/loginrouter.component';\r\n\r\n// import { HomeComponent } from '../../modules/home/home.component';\r\n// import { HomeRouterComponent } from '../../modules/home/homerouter.component';\r\n// import { ChannelComponent } from '../../modules/channels/channel.component';\r\n// import { subChannelComponent } from '../../modules/channels/sub-channel/subchannel.component';\r\n// import { ChannelRouterComponent } from '../../modules/channels/channelrouter.component';\r\n// import { FavoritesComponent } from '../../modules/favorites/favorites.component';\r\n// import { FavoritesRouterComponent } from '../../modules/favorites/favoritesrouter.component';\r\n// import { SubscriptionsComponent } from '../../modules/subscriptions/subscriptions.component';\r\n// import { SubscriptionsRouterComponent } from '../../modules/subscriptions/subscriptionsrouter.component';\r\n// import { HomeSearchComponent } from '../../modules/home/home-filter/homefilter.component';\r\n// import { AdvancedSearchComponent } from '../../modules/advancedSearch/advancedSearch.component';\r\n// import { VideoviewerComponent } from '../../modules/video/videoviewer.components';\r\n// import { PdfviewerComponent } from '../../modules/pdfviewer/pdfviewer.component';\r\n// import { AdvancedSearchRouterComponent } from '../../modules/advancedSearch/advancedSearchrouter.component'; \r\n// import { learningPathViewerComponent } from '../../modules/learningPathViewer/learningPathViewer.component';\r\n// import { learningPathViewerRouterComponent } from '../../modules/learningPathViewer/learningPathViewerrouter.component';\r\n// import { LearningpathComponent } from '../../modules/learningPath/learningpath.component';\r\n// import { LearningpathRouterComponent } from '../../modules/learningPath/learningpathrouter.component';\r\n// import { LearningpathdetailComponent } from '../../modules/learningPath/learningPathDetail/learningpathdetail.component';\r\n// import { LearningpathdetailRouterComponent } from '../../modules/learningPath/learningPathDetail/learningpathdetailrouter.component';\r\n// import { RegistrationComponent } from '../../modules/registration/registration.component';\r\n\r\n// import { ResetComponent } from '../../modules/resetPassword/reset.component';\r\n// import { ResetRouterComponent } from '../../modules/resetPassword/resetrouter.component';\r\n// import { ChannelMetaComponent } from '../../modules/channelMeta/channel.meta.component';\r\n\r\nimport { LandingComponent } from '../../modules/landingPage/landing.component';\r\nimport { LandingRouterComponent } from '../../modules/landingPage/landingrouter.component';\r\nimport { LoginCheck } from './app.login.component';\r\nimport { SaveUserData } from './app.user.data';\r\nimport { userMessage } from './app.user.message';\r\n\r\nimport { ApiWebConfig } from '../config/app.config';\r\nimport { ErrorComponent } from '../../modules/errorPage/error.component';\r\n\r\n// import { TemplateSwitch } from '../../modules/templateswitch/templateswitch.component';\r\n\r\n// import { PresenterComponent } from '../../modules/featuredPresenter/presenter.component';\r\n// import { BeginSurveyComponent } from '../../modules/assessment/BeginSurvey/beginsurvey.component';\r\n// import { UserQuestionComponent } from '../../modules/assessment/UserQuestion/userquestion.component';\r\n// import { RetakeComponent } from '../../modules/assessment/Retake/retake.component';\r\n// import { UserQuestionResultComponent } from '../../modules/assessment/Result/result.component';\r\n// import { AssessmentHeaderComponent } from '../../modules/assessment/common/Header/header.component';\r\n// import { ChannelMetaComponent } from '../../modules/channelMeta/channel.meta.component';\r\n\r\nimport { MetadataMenuComponent } from '../../modules/metadata-menu/metadatamenu.component';\r\nimport { MetadataTagsComponent } from '../../modules/metadata-menu/metadata-tags/metadatatags.component';\r\nimport { MetadataSubTagsComponent } from '../../modules/metadata-menu/metadata-tags/metadata-subtags/metadatasubtags.component';\r\n\r\n\r\nimport { EncryptComponent } from '../config/app.encrypt';\r\n\r\n/* Services */\r\nimport { ApiServices } from '../services/api.service';\r\n\r\n// import { HomeService } from '../services/home.service';\r\n\r\n// import { ChannelService } from '../services/channel/channel.service';\r\nimport { SubscriptionsService } from '../services/subscriptions/subscriptions.service';\r\n// import { FavoritesService } from '../services/favorites/favorites.service';\r\nimport { HelperService } from '../services/utility/utility.service';\r\nimport { AdvancedSearchService } from '../services/advancedSearch/advancedSearch.service';\r\n// import { LplistService } from '../services/learningPath/learningpath.service';\r\nimport { VideoViewerService } from '../services/video/video.service';\r\nimport { AdminSwitchService } from '../services/adminSwitch/adminswitch.service';\r\nimport { AssessmentEndUserService } from '../services/assessment/assessment.userend.service';\r\nimport { HttpService } from '../services/common/http.service';\r\n\r\nimport { ChannelcontentService } from '../../core/services/channel-content/channelcontent.service';\r\nimport { MetaDataService } from '../services/metadata/metadata.service';\r\n\r\nimport { RegisterationService } from '../../core/services/registeration/registeration.service';\r\nimport { FexIdService } from '../../core/services/fexid/fexid.service';\r\nimport { LoginService } from '../../core/services/loginReset/login.service';\r\n\r\n\r\n/* Routing */\r\nimport { routing } from '../routes/app.routes';\r\nimport { RegisterGaurd } from '../../core/router-guard/registration/register.guard';\r\n\r\n\r\n\r\n\r\n/* Directives */\r\nimport { dynamicTemplate } from '../directives/template.directives';\r\nimport { switchViewTemplate } from '../../core/directives/switchTemplate/templateswitch.directive';\r\nimport { OutClickDetection } from '../../core/directives/clickDetection/clickdetection.directive';\r\n\r\n\r\n/* Plugins */\r\nimport { CKEditorModule } from 'ng2-ckeditor';\r\n\r\n\r\n@NgModule({\r\n imports: [ BrowserModule, FormsModule, ReactiveFormsModule, HttpModule, routing, CKEditorModule ],\r\n declarations: [AppComponent, HeaderComponent, FooterComponent, dynamicTemplate, LoginComponent, LoginRouterComponent, LandingRouterComponent, LandingComponent, ErrorComponent, switchViewTemplate, OutClickDetection, MetadataMenuComponent, MetadataTagsComponent, MetadataSubTagsComponent ],\r\n providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }, HelperService, SubscriptionsService, AdvancedSearchService, LoginCheck, SaveUserData, ApiWebConfig, AdminSwitchService, VideoViewerService, EncryptComponent, ApiServices, AssessmentEndUserService,userMessage,MetaDataService,ChannelcontentService,RegisterationService,FexIdService,LoginService,RegisterGaurd,{\r\n provide: HttpService,\r\n useFactory: (backend: XHRBackend, options: RequestOptions, router: Router) => {\r\n return new HttpService(backend, options, router);\r\n },\r\n deps: [XHRBackend, RequestOptions, Router]\r\n }],\r\n bootstrap: [ AppComponent ],\r\n schemas: [ CUSTOM_ELEMENTS_SCHEMA ]\r\n})\r\nexport class AppModule { }\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/components/app.module.ts\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/operator/toPromise'), require('rxjs/Subject'), require('rxjs/Observable'), require('rxjs/observable/fromPromise')) :\n typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'rxjs/operator/toPromise', 'rxjs/Subject', 'rxjs/Observable', 'rxjs/observable/fromPromise'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.forms = global.ng.forms || {}),global.ng.core,global.Rx.Observable.prototype,global.Rx,global.Rx,global.Rx.Observable));\n}(this, function (exports,_angular_core,rxjs_operator_toPromise,rxjs_Subject,rxjs_Observable,rxjs_observable_fromPromise) { 'use strict';\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var globalScope;\n if (typeof window === 'undefined') {\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\n globalScope = self;\n }\n else {\n globalScope = global;\n }\n }\n else {\n globalScope = window;\n }\n // Need to declare a new variable for global here since TypeScript\n // exports the original value of the symbol.\n var global$1 = globalScope;\n // TODO: remove calls to assert in production environment\n // Note: Can't just export this and import in in other files\n // as `assert` is a reserved keyword in Dart\n global$1.assert = function assert(condition) {\n // TODO: to be fixed properly via #2830, noop for now\n };\n function isPresent(obj) {\n return obj !== undefined && obj !== null;\n }\n function isBlank(obj) {\n return obj === undefined || obj === null;\n }\n function isString(obj) {\n return typeof obj === 'string';\n }\n function isFunction(obj) {\n return typeof obj === 'function';\n }\n function isStringMap(obj) {\n return typeof obj === 'object' && obj !== null;\n }\n function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return isPresent(obj) && isFunction(obj.then);\n }\n function isArray(obj) {\n return Array.isArray(obj);\n }\n var StringWrapper = (function () {\n function StringWrapper() {\n }\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\n StringWrapper.equals = function (s, s2) { return s === s2; };\n StringWrapper.stripLeft = function (s, charVal) {\n if (s && s.length) {\n var pos = 0;\n for (var i = 0; i < s.length; i++) {\n if (s[i] != charVal)\n break;\n pos++;\n }\n s = s.substring(pos);\n }\n return s;\n };\n StringWrapper.stripRight = function (s, charVal) {\n if (s && s.length) {\n var pos = s.length;\n for (var i = s.length - 1; i >= 0; i--) {\n if (s[i] != charVal)\n break;\n pos--;\n }\n s = s.substring(0, pos);\n }\n return s;\n };\n StringWrapper.replace = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.replaceAll = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.slice = function (s, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return s.slice(from, to === null ? undefined : to);\n };\n StringWrapper.replaceAllMapped = function (s, from, cb) {\n return s.replace(from, function () {\n var matches = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n matches[_i - 0] = arguments[_i];\n }\n // Remove offset & string from the result array\n matches.splice(-2, 2);\n // The callback receives match, p1, ..., pn\n return cb(matches);\n });\n };\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\n StringWrapper.compare = function (a, b) {\n if (a < b) {\n return -1;\n }\n else if (a > b) {\n return 1;\n }\n else {\n return 0;\n }\n };\n return StringWrapper;\n }());\n var NumberWrapper = (function () {\n function NumberWrapper() {\n }\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\n NumberWrapper.equal = function (a, b) { return a === b; };\n NumberWrapper.parseIntAutoRadix = function (text) {\n var result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n };\n NumberWrapper.parseInt = function (text, radix) {\n if (radix == 10) {\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else if (radix == 16) {\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else {\n var result = parseInt(text, radix);\n if (!isNaN(result)) {\n return result;\n }\n }\n throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);\n };\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\n Object.defineProperty(NumberWrapper, \"NaN\", {\n get: function () { return NaN; },\n enumerable: true,\n configurable: true\n });\n NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\n return NumberWrapper;\n }());\n // JS has NaN !== NaN\n function looseIdentical(a, b) {\n return a === b || typeof a === 'number' && typeof b === 'number' && isNaN(a) && isNaN(b);\n }\n function normalizeBool(obj) {\n return isBlank(obj) ? false : obj;\n }\n function isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n }\n function isPrimitive(obj) {\n return !isJsObject(obj);\n }\n function hasConstructor(value, type) {\n return value.constructor === type;\n }\n\n /**\n * Base class for control directives.\n *\n * Only used internally in the forms module.\n *\n * @stable\n */\n var AbstractControlDirective = (function () {\n function AbstractControlDirective() {\n }\n Object.defineProperty(AbstractControlDirective.prototype, \"control\", {\n get: function () { throw new Error('unimplemented'); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"value\", {\n get: function () { return isPresent(this.control) ? this.control.value : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"valid\", {\n get: function () { return isPresent(this.control) ? this.control.valid : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"invalid\", {\n get: function () { return isPresent(this.control) ? this.control.invalid : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"pending\", {\n get: function () { return isPresent(this.control) ? this.control.pending : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"errors\", {\n get: function () {\n return isPresent(this.control) ? this.control.errors : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"pristine\", {\n get: function () { return isPresent(this.control) ? this.control.pristine : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"dirty\", {\n get: function () { return isPresent(this.control) ? this.control.dirty : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"touched\", {\n get: function () { return isPresent(this.control) ? this.control.touched : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"untouched\", {\n get: function () { return isPresent(this.control) ? this.control.untouched : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"disabled\", {\n get: function () { return isPresent(this.control) ? this.control.disabled : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"enabled\", {\n get: function () { return isPresent(this.control) ? this.control.enabled : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"statusChanges\", {\n get: function () {\n return isPresent(this.control) ? this.control.statusChanges : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"valueChanges\", {\n get: function () {\n return isPresent(this.control) ? this.control.valueChanges : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"path\", {\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n AbstractControlDirective.prototype.reset = function (value) {\n if (value === void 0) { value = undefined; }\n if (isPresent(this.control))\n this.control.reset(value);\n };\n return AbstractControlDirective;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n /**\n * A directive that contains multiple {@link NgControl}s.\n *\n * Only used by the forms module.\n *\n * @stable\n */\n var ControlContainer = (function (_super) {\n __extends$1(ControlContainer, _super);\n function ControlContainer() {\n _super.apply(this, arguments);\n }\n Object.defineProperty(ControlContainer.prototype, \"formDirective\", {\n /**\n * Get the form to which this container belongs.\n */\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ControlContainer.prototype, \"path\", {\n /**\n * Get the path to this container.\n */\n get: function () { return null; },\n enumerable: true,\n configurable: true\n });\n return ControlContainer;\n }(AbstractControlDirective));\n\n var Map$1 = global$1.Map;\n var Set = global$1.Set;\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Map constructor. We work around that by manually adding the items.\n var createMapFromPairs = (function () {\n try {\n if (new Map$1([[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs) { return new Map$1(pairs); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromPairs(pairs) {\n var map = new Map$1();\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n map.set(pair[0], pair[1]);\n }\n return map;\n };\n })();\n var createMapFromMap = (function () {\n try {\n if (new Map$1(new Map$1())) {\n return function createMapFromMap(m) { return new Map$1(m); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromMap(m) {\n var map = new Map$1();\n m.forEach(function (v, k) { map.set(k, v); });\n return map;\n };\n })();\n var _clearValues = (function () {\n if ((new Map$1()).keys().next) {\n return function _clearValues(m) {\n var keyIterator = m.keys();\n var k;\n while (!((k = keyIterator.next()).done)) {\n m.set(k.value, null);\n }\n };\n }\n else {\n return function _clearValuesWithForeEach(m) {\n m.forEach(function (v, k) { m.set(k, null); });\n };\n }\n })();\n // Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\n // TODO(mlaval): remove the work around once we have a working polyfill of Array.from\n var _arrayFromMap = (function () {\n try {\n if ((new Map$1()).values().next) {\n return function createArrayFromMap(m, getValues) {\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\n };\n }\n }\n catch (e) {\n }\n return function createArrayFromMapWithForeach(m, getValues) {\n var res = ListWrapper.createFixedSize(m.size), i = 0;\n m.forEach(function (v, k) {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n })();\n var MapWrapper = (function () {\n function MapWrapper() {\n }\n MapWrapper.clone = function (m) { return createMapFromMap(m); };\n MapWrapper.createFromStringMap = function (stringMap) {\n var result = new Map$1();\n for (var prop in stringMap) {\n result.set(prop, stringMap[prop]);\n }\n return result;\n };\n MapWrapper.toStringMap = function (m) {\n var r = {};\n m.forEach(function (v, k) { return r[k] = v; });\n return r;\n };\n MapWrapper.createFromPairs = function (pairs) { return createMapFromPairs(pairs); };\n MapWrapper.clearValues = function (m) { _clearValues(m); };\n MapWrapper.iterable = function (m) { return m; };\n MapWrapper.keys = function (m) { return _arrayFromMap(m, false); };\n MapWrapper.values = function (m) { return _arrayFromMap(m, true); };\n return MapWrapper;\n }());\n /**\n * Wraps Javascript Objects\n */\n var StringMapWrapper = (function () {\n function StringMapWrapper() {\n }\n StringMapWrapper.create = function () {\n // Note: We are not using Object.create(null) here due to\n // performance!\n // http://jsperf.com/ng2-object-create-null\n return {};\n };\n StringMapWrapper.contains = function (map, key) {\n return map.hasOwnProperty(key);\n };\n StringMapWrapper.get = function (map, key) {\n return map.hasOwnProperty(key) ? map[key] : undefined;\n };\n StringMapWrapper.set = function (map, key, value) { map[key] = value; };\n StringMapWrapper.keys = function (map) { return Object.keys(map); };\n StringMapWrapper.values = function (map) {\n return Object.keys(map).map(function (k) { return map[k]; });\n };\n StringMapWrapper.isEmpty = function (map) {\n for (var prop in map) {\n return false;\n }\n return true;\n };\n StringMapWrapper.delete = function (map, key) { delete map[key]; };\n StringMapWrapper.forEach = function (map, callback) {\n for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) {\n var k = _a[_i];\n callback(map[k], k);\n }\n };\n StringMapWrapper.merge = function (m1, m2) {\n var m = {};\n for (var _i = 0, _a = Object.keys(m1); _i < _a.length; _i++) {\n var k = _a[_i];\n m[k] = m1[k];\n }\n for (var _b = 0, _c = Object.keys(m2); _b < _c.length; _b++) {\n var k = _c[_b];\n m[k] = m2[k];\n }\n return m;\n };\n StringMapWrapper.equals = function (m1, m2) {\n var k1 = Object.keys(m1);\n var k2 = Object.keys(m2);\n if (k1.length != k2.length) {\n return false;\n }\n var key;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (m1[key] !== m2[key]) {\n return false;\n }\n }\n return true;\n };\n return StringMapWrapper;\n }());\n var ListWrapper = (function () {\n function ListWrapper() {\n }\n // JS has no way to express a statically fixed size list, but dart does so we\n // keep both methods.\n ListWrapper.createFixedSize = function (size) { return new Array(size); };\n ListWrapper.createGrowableSize = function (size) { return new Array(size); };\n ListWrapper.clone = function (array) { return array.slice(0); };\n ListWrapper.forEachWithIndex = function (array, fn) {\n for (var i = 0; i < array.length; i++) {\n fn(array[i], i);\n }\n };\n ListWrapper.first = function (array) {\n if (!array)\n return null;\n return array[0];\n };\n ListWrapper.last = function (array) {\n if (!array || array.length == 0)\n return null;\n return array[array.length - 1];\n };\n ListWrapper.indexOf = function (array, value, startIndex) {\n if (startIndex === void 0) { startIndex = 0; }\n return array.indexOf(value, startIndex);\n };\n ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; };\n ListWrapper.reversed = function (array) {\n var a = ListWrapper.clone(array);\n return a.reverse();\n };\n ListWrapper.concat = function (a, b) { return a.concat(b); };\n ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); };\n ListWrapper.removeAt = function (list, index) {\n var res = list[index];\n list.splice(index, 1);\n return res;\n };\n ListWrapper.removeAll = function (list, items) {\n for (var i = 0; i < items.length; ++i) {\n var index = list.indexOf(items[i]);\n list.splice(index, 1);\n }\n };\n ListWrapper.remove = function (list, el) {\n var index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n return true;\n }\n return false;\n };\n ListWrapper.clear = function (list) { list.length = 0; };\n ListWrapper.isEmpty = function (list) { return list.length == 0; };\n ListWrapper.fill = function (list, value, start, end) {\n if (start === void 0) { start = 0; }\n if (end === void 0) { end = null; }\n list.fill(value, start, end === null ? list.length : end);\n };\n ListWrapper.equals = function (a, b) {\n if (a.length != b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n };\n ListWrapper.slice = function (l, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return l.slice(from, to === null ? undefined : to);\n };\n ListWrapper.splice = function (l, from, length) { return l.splice(from, length); };\n ListWrapper.sort = function (l, compareFn) {\n if (isPresent(compareFn)) {\n l.sort(compareFn);\n }\n else {\n l.sort();\n }\n };\n ListWrapper.toString = function (l) { return l.toString(); };\n ListWrapper.toJSON = function (l) { return JSON.stringify(l); };\n ListWrapper.maximum = function (list, predicate) {\n if (list.length == 0) {\n return null;\n }\n var solution = null;\n var maxValue = -Infinity;\n for (var index = 0; index < list.length; index++) {\n var candidate = list[index];\n if (isBlank(candidate)) {\n continue;\n }\n var candidateValue = predicate(candidate);\n if (candidateValue > maxValue) {\n solution = candidate;\n maxValue = candidateValue;\n }\n }\n return solution;\n };\n ListWrapper.flatten = function (list) {\n var target = [];\n _flattenArray(list, target);\n return target;\n };\n ListWrapper.addAll = function (list, source) {\n for (var i = 0; i < source.length; i++) {\n list.push(source[i]);\n }\n };\n return ListWrapper;\n }());\n function _flattenArray(source, target) {\n if (isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (isArray(item)) {\n _flattenArray(item, target);\n }\n else {\n target.push(item);\n }\n }\n }\n return target;\n }\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Set constructor. We work around that by manually adding the items.\n var createSetFromList = (function () {\n var test = new Set([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst) { return new Set(lst); };\n }\n else {\n return function createSetAndPopulateFromList(lst) {\n var res = new Set(lst);\n if (res.size !== lst.length) {\n for (var i = 0; i < lst.length; i++) {\n res.add(lst[i]);\n }\n }\n return res;\n };\n }\n })();\n\n /**\n * Providers for validators to be used for {@link FormControl}s in a form.\n *\n * Provide this using `multi: true` to add validators.\n *\n * ### Example\n *\n * {@example core/forms/ts/ng_validators/ng_validators.ts region='ng_validators'}\n * @stable\n */\n var NG_VALIDATORS = new _angular_core.OpaqueToken('NgValidators');\n /**\n * Providers for asynchronous validators to be used for {@link FormControl}s\n * in a form.\n *\n * Provide this using `multi: true` to add validators.\n *\n * See {@link NG_VALIDATORS} for more details.\n *\n * @stable\n */\n var NG_ASYNC_VALIDATORS = new _angular_core.OpaqueToken('NgAsyncValidators');\n /**\n * Provides a set of validators used by form controls.\n *\n * A validator is a function that processes a {@link FormControl} or collection of\n * controls and returns a map of errors. A null map means that validation has passed.\n *\n * ### Example\n *\n * ```typescript\n * var loginControl = new FormControl(\"\", Validators.required)\n * ```\n *\n * @stable\n */\n var Validators = (function () {\n function Validators() {\n }\n /**\n * Validator that requires controls to have a non-empty value.\n */\n Validators.required = function (control) {\n return isBlank(control.value) || (isString(control.value) && control.value == '') ?\n { 'required': true } :\n null;\n };\n /**\n * Validator that requires controls to have a value of a minimum length.\n */\n Validators.minLength = function (minLength) {\n return function (control) {\n if (isPresent(Validators.required(control)))\n return null;\n var v = control.value;\n return v.length < minLength ?\n { 'minlength': { 'requiredLength': minLength, 'actualLength': v.length } } :\n null;\n };\n };\n /**\n * Validator that requires controls to have a value of a maximum length.\n */\n Validators.maxLength = function (maxLength) {\n return function (control) {\n if (isPresent(Validators.required(control)))\n return null;\n var v = control.value;\n return v.length > maxLength ?\n { 'maxlength': { 'requiredLength': maxLength, 'actualLength': v.length } } :\n null;\n };\n };\n /**\n * Validator that requires a control to match a regex to its value.\n */\n Validators.pattern = function (pattern) {\n return function (control) {\n if (isPresent(Validators.required(control)))\n return null;\n var regex = new RegExp(\"^\" + pattern + \"$\");\n var v = control.value;\n return regex.test(v) ? null :\n { 'pattern': { 'requiredPattern': \"^\" + pattern + \"$\", 'actualValue': v } };\n };\n };\n /**\n * No-op validator.\n */\n Validators.nullValidator = function (c) { return null; };\n /**\n * Compose multiple validators into a single function that returns the union\n * of the individual error maps.\n */\n Validators.compose = function (validators) {\n if (isBlank(validators))\n return null;\n var presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n return _mergeErrors(_executeValidators(control, presentValidators));\n };\n };\n Validators.composeAsync = function (validators) {\n if (isBlank(validators))\n return null;\n var presentValidators = validators.filter(isPresent);\n if (presentValidators.length == 0)\n return null;\n return function (control) {\n var promises = _executeAsyncValidators(control, presentValidators).map(_convertToPromise);\n return Promise.all(promises).then(_mergeErrors);\n };\n };\n return Validators;\n }());\n function _convertToPromise(obj) {\n return isPromise(obj) ? obj : rxjs_operator_toPromise.toPromise.call(obj);\n }\n function _executeValidators(control, validators) {\n return validators.map(function (v) { return v(control); });\n }\n function _executeAsyncValidators(control, validators) {\n return validators.map(function (v) { return v(control); });\n }\n function _mergeErrors(arrayOfErrors) {\n var res = arrayOfErrors.reduce(function (res, errors) {\n return isPresent(errors) ? StringMapWrapper.merge(res, errors) : res;\n }, {});\n return StringMapWrapper.isEmpty(res) ? null : res;\n }\n\n /**\n * Used to provide a {@link ControlValueAccessor} for form controls.\n *\n * See {@link DefaultValueAccessor} for how to implement one.\n * @stable\n */\n var NG_VALUE_ACCESSOR = new _angular_core.OpaqueToken('NgValueAccessor');\n\n var CHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: _angular_core.forwardRef(function () { return CheckboxControlValueAccessor; }),\n multi: true\n };\n /**\n * The accessor for writing a value and listening to changes on a checkbox input element.\n *\n * ### Example\n * ```\n * <input type=\"checkbox\" name=\"rememberLogin\" ngModel>\n * ```\n *\n * @stable\n */\n var CheckboxControlValueAccessor = (function () {\n function CheckboxControlValueAccessor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n this.onChange = function (_) { };\n this.onTouched = function () { };\n }\n CheckboxControlValueAccessor.prototype.writeValue = function (value) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', value);\n };\n CheckboxControlValueAccessor.prototype.registerOnChange = function (fn) { this.onChange = fn; };\n CheckboxControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\n CheckboxControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n };\n CheckboxControlValueAccessor.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',\n host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },\n providers: [CHECKBOX_VALUE_ACCESSOR]\n },] },\n ];\n /** @nocollapse */\n CheckboxControlValueAccessor.ctorParameters = [\n { type: _angular_core.Renderer, },\n { type: _angular_core.ElementRef, },\n ];\n return CheckboxControlValueAccessor;\n }());\n\n var DEFAULT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: _angular_core.forwardRef(function () { return DefaultValueAccessor; }),\n multi: true\n };\n /**\n * The default accessor for writing a value and listening to changes that is used by the\n * {@link NgModel}, {@link FormControlDirective}, and {@link FormControlName} directives.\n *\n * ### Example\n * ```\n * <input type=\"text\" name=\"searchQuery\" ngModel>\n * ```\n *\n * @stable\n */\n var DefaultValueAccessor = (function () {\n function DefaultValueAccessor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n this.onChange = function (_) { };\n this.onTouched = function () { };\n }\n DefaultValueAccessor.prototype.writeValue = function (value) {\n var normalizedValue = isBlank(value) ? '' : value;\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue);\n };\n DefaultValueAccessor.prototype.registerOnChange = function (fn) { this.onChange = fn; };\n DefaultValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\n DefaultValueAccessor.prototype.setDisabledState = function (isDisabled) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n };\n DefaultValueAccessor.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',\n // TODO: vsavkin replace the above selector with the one below it once\n // https://github.com/angular/angular/issues/3011 is implemented\n // selector: '[ngControl],[ngModel],[ngFormControl]',\n host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [DEFAULT_VALUE_ACCESSOR]\n },] },\n ];\n /** @nocollapse */\n DefaultValueAccessor.ctorParameters = [\n { type: _angular_core.Renderer, },\n { type: _angular_core.ElementRef, },\n ];\n return DefaultValueAccessor;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function normalizeValidator(validator) {\n if (validator.validate !== undefined) {\n return function (c) { return validator.validate(c); };\n }\n else {\n return validator;\n }\n }\n function normalizeAsyncValidator(validator) {\n if (validator.validate !== undefined) {\n return function (c) { return validator.validate(c); };\n }\n else {\n return validator;\n }\n }\n\n var NUMBER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: _angular_core.forwardRef(function () { return NumberValueAccessor; }),\n multi: true\n };\n /**\n * The accessor for writing a number value and listening to changes that is used by the\n * {@link NgModel}, {@link FormControlDirective}, and {@link FormControlName} directives.\n *\n * ### Example\n * ```\n * <input type=\"number\" [(ngModel)]=\"age\">\n * ```\n */\n var NumberValueAccessor = (function () {\n function NumberValueAccessor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n this.onChange = function (_) { };\n this.onTouched = function () { };\n }\n NumberValueAccessor.prototype.writeValue = function (value) {\n // The value needs to be normalized for IE9, otherwise it is set to 'null' when null\n var normalizedValue = isBlank(value) ? '' : value;\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue);\n };\n NumberValueAccessor.prototype.registerOnChange = function (fn) {\n this.onChange = function (value) { fn(value == '' ? null : NumberWrapper.parseFloat(value)); };\n };\n NumberValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\n NumberValueAccessor.prototype.setDisabledState = function (isDisabled) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n };\n NumberValueAccessor.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',\n host: {\n '(change)': 'onChange($event.target.value)',\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()'\n },\n providers: [NUMBER_VALUE_ACCESSOR]\n },] },\n ];\n /** @nocollapse */\n NumberValueAccessor.ctorParameters = [\n { type: _angular_core.Renderer, },\n { type: _angular_core.ElementRef, },\n ];\n return NumberValueAccessor;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$2 = (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 };\n function unimplemented() {\n throw new Error('unimplemented');\n }\n /**\n * A base class that all control directive extend.\n * It binds a {@link FormControl} object to a DOM element.\n *\n * Used internally by Angular forms.\n *\n * @stable\n */\n var NgControl = (function (_super) {\n __extends$2(NgControl, _super);\n function NgControl() {\n _super.apply(this, arguments);\n /** @internal */\n this._parent = null;\n this.name = null;\n this.valueAccessor = null;\n /** @internal */\n this._rawValidators = [];\n /** @internal */\n this._rawAsyncValidators = [];\n }\n Object.defineProperty(NgControl.prototype, \"validator\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControl.prototype, \"asyncValidator\", {\n get: function () { return unimplemented(); },\n enumerable: true,\n configurable: true\n });\n return NgControl;\n }(AbstractControlDirective));\n\n var RADIO_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: _angular_core.forwardRef(function () { return RadioControlValueAccessor; }),\n multi: true\n };\n /**\n * Internal class used by Angular to uncheck radio buttons with the matching name.\n */\n var RadioControlRegistry = (function () {\n function RadioControlRegistry() {\n this._accessors = [];\n }\n RadioControlRegistry.prototype.add = function (control, accessor) {\n this._accessors.push([control, accessor]);\n };\n RadioControlRegistry.prototype.remove = function (accessor) {\n var indexToRemove = -1;\n for (var i = 0; i < this._accessors.length; ++i) {\n if (this._accessors[i][1] === accessor) {\n indexToRemove = i;\n }\n }\n ListWrapper.removeAt(this._accessors, indexToRemove);\n };\n RadioControlRegistry.prototype.select = function (accessor) {\n var _this = this;\n this._accessors.forEach(function (c) {\n if (_this._isSameGroup(c, accessor) && c[1] !== accessor) {\n c[1].fireUncheck(accessor.value);\n }\n });\n };\n RadioControlRegistry.prototype._isSameGroup = function (controlPair, accessor) {\n if (!controlPair[0].control)\n return false;\n return controlPair[0]._parent === accessor._control._parent &&\n controlPair[1].name === accessor.name;\n };\n RadioControlRegistry.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n RadioControlRegistry.ctorParameters = [];\n return RadioControlRegistry;\n }());\n /**\n * The accessor for writing a radio control value and listening to changes that is used by the\n * {@link NgModel}, {@link FormControlDirective}, and {@link FormControlName} directives.\n *\n * ### Example\n * ```\n * @Component({\n * template: `\n * <input type=\"radio\" name=\"food\" [(ngModel)]=\"food\" value=\"chicken\">\n * <input type=\"radio\" name=\"food\" [(ngModel)]=\"food\" value=\"fish\">\n * `\n * })\n * class FoodCmp {\n * food = 'chicken';\n * }\n * ```\n */\n var RadioControlValueAccessor = (function () {\n function RadioControlValueAccessor(_renderer, _elementRef, _registry, _injector) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n this._registry = _registry;\n this._injector = _injector;\n this.onChange = function () { };\n this.onTouched = function () { };\n }\n RadioControlValueAccessor.prototype.ngOnInit = function () {\n this._control = this._injector.get(NgControl);\n this._checkName();\n this._registry.add(this._control, this);\n };\n RadioControlValueAccessor.prototype.ngOnDestroy = function () { this._registry.remove(this); };\n RadioControlValueAccessor.prototype.writeValue = function (value) {\n this._state = value === this.value;\n if (isPresent(value)) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', this._state);\n }\n };\n RadioControlValueAccessor.prototype.registerOnChange = function (fn) {\n var _this = this;\n this._fn = fn;\n this.onChange = function () {\n fn(_this.value);\n _this._registry.select(_this);\n };\n };\n RadioControlValueAccessor.prototype.fireUncheck = function (value) { this.writeValue(value); };\n RadioControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\n RadioControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n };\n RadioControlValueAccessor.prototype._checkName = function () {\n if (this.name && this.formControlName && this.name !== this.formControlName) {\n this._throwNameError();\n }\n if (!this.name && this.formControlName)\n this.name = this.formControlName;\n };\n RadioControlValueAccessor.prototype._throwNameError = function () {\n throw new Error(\"\\n If you define both a name and a formControlName attribute on your radio button, their values\\n must match. Ex: <input type=\\\"radio\\\" formControlName=\\\"food\\\" name=\\\"food\\\">\\n \");\n };\n RadioControlValueAccessor.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',\n host: { '(change)': 'onChange()', '(blur)': 'onTouched()' },\n providers: [RADIO_VALUE_ACCESSOR]\n },] },\n ];\n /** @nocollapse */\n RadioControlValueAccessor.ctorParameters = [\n { type: _angular_core.Renderer, },\n { type: _angular_core.ElementRef, },\n { type: RadioControlRegistry, },\n { type: _angular_core.Injector, },\n ];\n RadioControlValueAccessor.propDecorators = {\n 'name': [{ type: _angular_core.Input },],\n 'formControlName': [{ type: _angular_core.Input },],\n 'value': [{ type: _angular_core.Input },],\n };\n return RadioControlValueAccessor;\n }());\n\n var SELECT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: _angular_core.forwardRef(function () { return SelectControlValueAccessor; }),\n multi: true\n };\n function _buildValueString(id, value) {\n if (isBlank(id))\n return \"\" + value;\n if (!isPrimitive(value))\n value = 'Object';\n return StringWrapper.slice(id + \": \" + value, 0, 50);\n }\n function _extractId(valueString) {\n return valueString.split(':')[0];\n }\n /**\n * The accessor for writing a value and listening to changes on a select element.\n *\n * Note: We have to listen to the 'change' event because 'input' events aren't fired\n * for selects in Firefox and IE:\n * https://bugzilla.mozilla.org/show_bug.cgi?id=1024350\n * https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4660045/\n *\n * @stable\n */\n var SelectControlValueAccessor = (function () {\n function SelectControlValueAccessor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n /** @internal */\n this._optionMap = new Map();\n /** @internal */\n this._idCounter = 0;\n this.onChange = function (_) { };\n this.onTouched = function () { };\n }\n SelectControlValueAccessor.prototype.writeValue = function (value) {\n this.value = value;\n var valueString = _buildValueString(this._getOptionId(value), value);\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', valueString);\n };\n SelectControlValueAccessor.prototype.registerOnChange = function (fn) {\n var _this = this;\n this.onChange = function (valueString) {\n _this.value = valueString;\n fn(_this._getOptionValue(valueString));\n };\n };\n SelectControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\n SelectControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n };\n /** @internal */\n SelectControlValueAccessor.prototype._registerOption = function () { return (this._idCounter++).toString(); };\n /** @internal */\n SelectControlValueAccessor.prototype._getOptionId = function (value) {\n for (var _i = 0, _a = MapWrapper.keys(this._optionMap); _i < _a.length; _i++) {\n var id = _a[_i];\n if (looseIdentical(this._optionMap.get(id), value))\n return id;\n }\n return null;\n };\n /** @internal */\n SelectControlValueAccessor.prototype._getOptionValue = function (valueString) {\n var value = this._optionMap.get(_extractId(valueString));\n return isPresent(value) ? value : valueString;\n };\n SelectControlValueAccessor.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',\n host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\n providers: [SELECT_VALUE_ACCESSOR]\n },] },\n ];\n /** @nocollapse */\n SelectControlValueAccessor.ctorParameters = [\n { type: _angular_core.Renderer, },\n { type: _angular_core.ElementRef, },\n ];\n return SelectControlValueAccessor;\n }());\n /**\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * ### Example\n *\n * ```\n * <select name=\"city\" ngModel>\n * <option *ngFor=\"let c of cities\" [value]=\"c\"></option>\n * </select>\n * ```\n *\n * @stable\n */\n var NgSelectOption = (function () {\n function NgSelectOption(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (isPresent(this._select))\n this.id = this._select._registerOption();\n }\n Object.defineProperty(NgSelectOption.prototype, \"ngValue\", {\n set: function (value) {\n if (this._select == null)\n return;\n this._select._optionMap.set(this.id, value);\n this._setElementValue(_buildValueString(this.id, value));\n this._select.writeValue(this._select.value);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgSelectOption.prototype, \"value\", {\n set: function (value) {\n this._setElementValue(value);\n if (isPresent(this._select))\n this._select.writeValue(this._select.value);\n },\n enumerable: true,\n configurable: true\n });\n /** @internal */\n NgSelectOption.prototype._setElementValue = function (value) {\n this._renderer.setElementProperty(this._element.nativeElement, 'value', value);\n };\n NgSelectOption.prototype.ngOnDestroy = function () {\n if (isPresent(this._select)) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n };\n NgSelectOption.decorators = [\n { type: _angular_core.Directive, args: [{ selector: 'option' },] },\n ];\n /** @nocollapse */\n NgSelectOption.ctorParameters = [\n { type: _angular_core.ElementRef, },\n { type: _angular_core.Renderer, },\n { type: SelectControlValueAccessor, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Host },] },\n ];\n NgSelectOption.propDecorators = {\n 'ngValue': [{ type: _angular_core.Input, args: ['ngValue',] },],\n 'value': [{ type: _angular_core.Input, args: ['value',] },],\n };\n return NgSelectOption;\n }());\n\n var SELECT_MULTIPLE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: _angular_core.forwardRef(function () { return SelectMultipleControlValueAccessor; }),\n multi: true\n };\n function _buildValueString$1(id, value) {\n if (isBlank(id))\n return \"\" + value;\n if (isString(value))\n value = \"'\" + value + \"'\";\n if (!isPrimitive(value))\n value = 'Object';\n return StringWrapper.slice(id + \": \" + value, 0, 50);\n }\n function _extractId$1(valueString) {\n return valueString.split(':')[0];\n }\n /**\n * The accessor for writing a value and listening to changes on a select element.\n *\n * @stable\n */\n var SelectMultipleControlValueAccessor = (function () {\n function SelectMultipleControlValueAccessor(_renderer, _elementRef) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n /** @internal */\n this._optionMap = new Map();\n /** @internal */\n this._idCounter = 0;\n this.onChange = function (_) { };\n this.onTouched = function () { };\n }\n SelectMultipleControlValueAccessor.prototype.writeValue = function (value) {\n var _this = this;\n this.value = value;\n if (value == null)\n return;\n var values = value;\n // convert values to ids\n var ids = values.map(function (v) { return _this._getOptionId(v); });\n this._optionMap.forEach(function (opt, o) { opt._setSelected(ids.indexOf(o.toString()) > -1); });\n };\n SelectMultipleControlValueAccessor.prototype.registerOnChange = function (fn) {\n var _this = this;\n this.onChange = function (_) {\n var selected = [];\n if (_.hasOwnProperty('selectedOptions')) {\n var options = _.selectedOptions;\n for (var i = 0; i < options.length; i++) {\n var opt = options.item(i);\n var val = _this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n else {\n var options = _.options;\n for (var i = 0; i < options.length; i++) {\n var opt = options.item(i);\n if (opt.selected) {\n var val = _this._getOptionValue(opt.value);\n selected.push(val);\n }\n }\n }\n fn(selected);\n };\n };\n SelectMultipleControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\n SelectMultipleControlValueAccessor.prototype.setDisabledState = function (isDisabled) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'disabled', isDisabled);\n };\n /** @internal */\n SelectMultipleControlValueAccessor.prototype._registerOption = function (value) {\n var id = (this._idCounter++).toString();\n this._optionMap.set(id, value);\n return id;\n };\n /** @internal */\n SelectMultipleControlValueAccessor.prototype._getOptionId = function (value) {\n for (var _i = 0, _a = MapWrapper.keys(this._optionMap); _i < _a.length; _i++) {\n var id = _a[_i];\n if (looseIdentical(this._optionMap.get(id)._value, value))\n return id;\n }\n return null;\n };\n /** @internal */\n SelectMultipleControlValueAccessor.prototype._getOptionValue = function (valueString) {\n var opt = this._optionMap.get(_extractId$1(valueString));\n return isPresent(opt) ? opt._value : valueString;\n };\n SelectMultipleControlValueAccessor.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',\n host: { '(change)': 'onChange($event.target)', '(blur)': 'onTouched()' },\n providers: [SELECT_MULTIPLE_VALUE_ACCESSOR]\n },] },\n ];\n /** @nocollapse */\n SelectMultipleControlValueAccessor.ctorParameters = [\n { type: _angular_core.Renderer, },\n { type: _angular_core.ElementRef, },\n ];\n return SelectMultipleControlValueAccessor;\n }());\n /**\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\n *\n * ### Example\n *\n * ```\n * <select multiple name=\"city\" ngModel>\n * <option *ngFor=\"let c of cities\" [value]=\"c\"></option>\n * </select>\n * ```\n */\n var NgSelectMultipleOption = (function () {\n function NgSelectMultipleOption(_element, _renderer, _select) {\n this._element = _element;\n this._renderer = _renderer;\n this._select = _select;\n if (isPresent(this._select)) {\n this.id = this._select._registerOption(this);\n }\n }\n Object.defineProperty(NgSelectMultipleOption.prototype, \"ngValue\", {\n set: function (value) {\n if (this._select == null)\n return;\n this._value = value;\n this._setElementValue(_buildValueString$1(this.id, value));\n this._select.writeValue(this._select.value);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgSelectMultipleOption.prototype, \"value\", {\n set: function (value) {\n if (isPresent(this._select)) {\n this._value = value;\n this._setElementValue(_buildValueString$1(this.id, value));\n this._select.writeValue(this._select.value);\n }\n else {\n this._setElementValue(value);\n }\n },\n enumerable: true,\n configurable: true\n });\n /** @internal */\n NgSelectMultipleOption.prototype._setElementValue = function (value) {\n this._renderer.setElementProperty(this._element.nativeElement, 'value', value);\n };\n /** @internal */\n NgSelectMultipleOption.prototype._setSelected = function (selected) {\n this._renderer.setElementProperty(this._element.nativeElement, 'selected', selected);\n };\n NgSelectMultipleOption.prototype.ngOnDestroy = function () {\n if (isPresent(this._select)) {\n this._select._optionMap.delete(this.id);\n this._select.writeValue(this._select.value);\n }\n };\n NgSelectMultipleOption.decorators = [\n { type: _angular_core.Directive, args: [{ selector: 'option' },] },\n ];\n /** @nocollapse */\n NgSelectMultipleOption.ctorParameters = [\n { type: _angular_core.ElementRef, },\n { type: _angular_core.Renderer, },\n { type: SelectMultipleControlValueAccessor, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Host },] },\n ];\n NgSelectMultipleOption.propDecorators = {\n 'ngValue': [{ type: _angular_core.Input, args: ['ngValue',] },],\n 'value': [{ type: _angular_core.Input, args: ['value',] },],\n };\n return NgSelectMultipleOption;\n }());\n\n function controlPath(name, parent) {\n var p = ListWrapper.clone(parent.path);\n p.push(name);\n return p;\n }\n function setUpControl(control, dir) {\n if (isBlank(control))\n _throwError(dir, 'Cannot find control with');\n if (isBlank(dir.valueAccessor))\n _throwError(dir, 'No value accessor for form control with');\n control.validator = Validators.compose([control.validator, dir.validator]);\n control.asyncValidator = Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);\n dir.valueAccessor.writeValue(control.value);\n // view -> model\n dir.valueAccessor.registerOnChange(function (newValue) {\n dir.viewToModelUpdate(newValue);\n control.markAsDirty();\n control.setValue(newValue, { emitModelToViewChange: false });\n });\n // touched\n dir.valueAccessor.registerOnTouched(function () { return control.markAsTouched(); });\n control.registerOnChange(function (newValue, emitModelEvent) {\n // control -> view\n dir.valueAccessor.writeValue(newValue);\n // control -> ngModel\n if (emitModelEvent)\n dir.viewToModelUpdate(newValue);\n });\n if (dir.valueAccessor.setDisabledState) {\n control.registerOnDisabledChange(function (isDisabled) { dir.valueAccessor.setDisabledState(isDisabled); });\n }\n // re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4\n dir._rawValidators.forEach(function (validator) {\n if (validator.registerOnChange)\n validator.registerOnChange(function () { return control.updateValueAndValidity(); });\n });\n dir._rawAsyncValidators.forEach(function (validator) {\n if (validator.registerOnChange)\n validator.registerOnChange(function () { return control.updateValueAndValidity(); });\n });\n }\n function cleanUpControl(control, dir) {\n dir.valueAccessor.registerOnChange(function () { return _noControlError(dir); });\n dir.valueAccessor.registerOnTouched(function () { return _noControlError(dir); });\n dir._rawValidators.forEach(function (validator) { return validator.registerOnChange(null); });\n dir._rawAsyncValidators.forEach(function (validator) { return validator.registerOnChange(null); });\n if (control)\n control._clearChangeFns();\n }\n function setUpFormContainer(control, dir) {\n if (isBlank(control))\n _throwError(dir, 'Cannot find control with');\n control.validator = Validators.compose([control.validator, dir.validator]);\n control.asyncValidator = Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);\n }\n function _noControlError(dir) {\n return _throwError(dir, 'There is no FormControl instance attached to form control element with');\n }\n function _throwError(dir, message) {\n var messageEnd;\n if (dir.path.length > 1) {\n messageEnd = \"path: '\" + dir.path.join(' -> ') + \"'\";\n }\n else if (dir.path[0]) {\n messageEnd = \"name: '\" + dir.path + \"'\";\n }\n else {\n messageEnd = 'unspecified name attribute';\n }\n throw new Error(message + \" \" + messageEnd);\n }\n function composeValidators(validators) {\n return isPresent(validators) ? Validators.compose(validators.map(normalizeValidator)) : null;\n }\n function composeAsyncValidators(validators) {\n return isPresent(validators) ? Validators.composeAsync(validators.map(normalizeAsyncValidator)) :\n null;\n }\n function isPropertyUpdated(changes, viewModel) {\n if (!StringMapWrapper.contains(changes, 'model'))\n return false;\n var change = changes['model'];\n if (change.isFirstChange())\n return true;\n return !looseIdentical(viewModel, change.currentValue);\n }\n function isBuiltInAccessor(valueAccessor) {\n return (hasConstructor(valueAccessor, CheckboxControlValueAccessor) ||\n hasConstructor(valueAccessor, NumberValueAccessor) ||\n hasConstructor(valueAccessor, SelectControlValueAccessor) ||\n hasConstructor(valueAccessor, SelectMultipleControlValueAccessor) ||\n hasConstructor(valueAccessor, RadioControlValueAccessor));\n }\n // TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented\n function selectValueAccessor(dir, valueAccessors) {\n if (isBlank(valueAccessors))\n return null;\n var defaultAccessor;\n var builtinAccessor;\n var customAccessor;\n valueAccessors.forEach(function (v) {\n if (hasConstructor(v, DefaultValueAccessor)) {\n defaultAccessor = v;\n }\n else if (isBuiltInAccessor(v)) {\n if (isPresent(builtinAccessor))\n _throwError(dir, 'More than one built-in value accessor matches form control with');\n builtinAccessor = v;\n }\n else {\n if (isPresent(customAccessor))\n _throwError(dir, 'More than one custom value accessor matches form control with');\n customAccessor = v;\n }\n });\n if (isPresent(customAccessor))\n return customAccessor;\n if (isPresent(builtinAccessor))\n return builtinAccessor;\n if (isPresent(defaultAccessor))\n return defaultAccessor;\n _throwError(dir, 'No valid value accessor for form control with');\n return null;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __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 };\n /**\n * This is a base class for code shared between {@link NgModelGroup} and {@link FormGroupName}.\n *\n * @stable\n */\n var AbstractFormGroupDirective = (function (_super) {\n __extends(AbstractFormGroupDirective, _super);\n function AbstractFormGroupDirective() {\n _super.apply(this, arguments);\n }\n AbstractFormGroupDirective.prototype.ngOnInit = function () {\n this._checkParentType();\n this.formDirective.addFormGroup(this);\n };\n AbstractFormGroupDirective.prototype.ngOnDestroy = function () {\n if (this.formDirective) {\n this.formDirective.removeFormGroup(this);\n }\n };\n Object.defineProperty(AbstractFormGroupDirective.prototype, \"control\", {\n /**\n * Get the {@link FormGroup} backing this binding.\n */\n get: function () { return this.formDirective.getFormGroup(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractFormGroupDirective.prototype, \"path\", {\n /**\n * Get the path to this control group.\n */\n get: function () { return controlPath(this.name, this._parent); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractFormGroupDirective.prototype, \"formDirective\", {\n /**\n * Get the {@link Form} to which this group belongs.\n */\n get: function () { return this._parent ? this._parent.formDirective : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractFormGroupDirective.prototype, \"validator\", {\n get: function () { return composeValidators(this._validators); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractFormGroupDirective.prototype, \"asyncValidator\", {\n get: function () { return composeAsyncValidators(this._asyncValidators); },\n enumerable: true,\n configurable: true\n });\n /** @internal */\n AbstractFormGroupDirective.prototype._checkParentType = function () { };\n return AbstractFormGroupDirective;\n }(ControlContainer));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$3 = (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 };\n var AbstractControlStatus = (function () {\n function AbstractControlStatus(cd) {\n this._cd = cd;\n }\n Object.defineProperty(AbstractControlStatus.prototype, \"ngClassUntouched\", {\n get: function () {\n return isPresent(this._cd.control) ? this._cd.control.untouched : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlStatus.prototype, \"ngClassTouched\", {\n get: function () {\n return isPresent(this._cd.control) ? this._cd.control.touched : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlStatus.prototype, \"ngClassPristine\", {\n get: function () {\n return isPresent(this._cd.control) ? this._cd.control.pristine : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlStatus.prototype, \"ngClassDirty\", {\n get: function () {\n return isPresent(this._cd.control) ? this._cd.control.dirty : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlStatus.prototype, \"ngClassValid\", {\n get: function () {\n return isPresent(this._cd.control) ? this._cd.control.valid : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlStatus.prototype, \"ngClassInvalid\", {\n get: function () {\n return isPresent(this._cd.control) ? this._cd.control.invalid : false;\n },\n enumerable: true,\n configurable: true\n });\n return AbstractControlStatus;\n }());\n var ngControlStatusHost = {\n '[class.ng-untouched]': 'ngClassUntouched',\n '[class.ng-touched]': 'ngClassTouched',\n '[class.ng-pristine]': 'ngClassPristine',\n '[class.ng-dirty]': 'ngClassDirty',\n '[class.ng-valid]': 'ngClassValid',\n '[class.ng-invalid]': 'ngClassInvalid'\n };\n /**\n * Directive automatically applied to Angular form controls that sets CSS classes\n * based on control status (valid/invalid/dirty/etc).\n *\n * @stable\n */\n var NgControlStatus = (function (_super) {\n __extends$3(NgControlStatus, _super);\n function NgControlStatus(cd) {\n _super.call(this, cd);\n }\n NgControlStatus.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost },] },\n ];\n /** @nocollapse */\n NgControlStatus.ctorParameters = [\n { type: NgControl, decorators: [{ type: _angular_core.Self },] },\n ];\n return NgControlStatus;\n }(AbstractControlStatus));\n /**\n * Directive automatically applied to Angular form groups that sets CSS classes\n * based on control status (valid/invalid/dirty/etc).\n *\n * @stable\n */\n var NgControlStatusGroup = (function (_super) {\n __extends$3(NgControlStatusGroup, _super);\n function NgControlStatusGroup(cd) {\n _super.call(this, cd);\n }\n NgControlStatusGroup.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',\n host: ngControlStatusHost\n },] },\n ];\n /** @nocollapse */\n NgControlStatusGroup.ctorParameters = [\n { type: ControlContainer, decorators: [{ type: _angular_core.Self },] },\n ];\n return NgControlStatusGroup;\n }(AbstractControlStatus));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$5 = (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 };\n /**\n * Use by directives and components to emit custom Events.\n *\n * ### Examples\n *\n * In the following example, `Zippy` alternatively emits `open` and `close` events when its\n * title gets clicked:\n *\n * ```\n * @Component({\n * selector: 'zippy',\n * template: `\n * <div class=\"zippy\">\n * <div (click)=\"toggle()\">Toggle</div>\n * <div [hidden]=\"!visible\">\n * <ng-content></ng-content>\n * </div>\n * </div>`})\n * export class Zippy {\n * visible: boolean = true;\n * @Output() open: EventEmitter<any> = new EventEmitter();\n * @Output() close: EventEmitter<any> = new EventEmitter();\n *\n * toggle() {\n * this.visible = !this.visible;\n * if (this.visible) {\n * this.open.emit(null);\n * } else {\n * this.close.emit(null);\n * }\n * }\n * }\n * ```\n *\n * The events payload can be accessed by the parameter `$event` on the components output event\n * handler:\n *\n * ```\n * <zippy (open)=\"onOpen($event)\" (close)=\"onClose($event)\"></zippy>\n * ```\n *\n * Uses Rx.Observable but provides an adapter to make it work as specified here:\n * https://github.com/jhusain/observable-spec\n *\n * Once a reference implementation of the spec is available, switch to it.\n * @stable\n */\n var EventEmitter = (function (_super) {\n __extends$5(EventEmitter, _super);\n /**\n * Creates an instance of [EventEmitter], which depending on [isAsync],\n * delivers events synchronously or asynchronously.\n */\n function EventEmitter(isAsync) {\n if (isAsync === void 0) { isAsync = false; }\n _super.call(this);\n this.__isAsync = isAsync;\n }\n EventEmitter.prototype.emit = function (value) { _super.prototype.next.call(this, value); };\n EventEmitter.prototype.subscribe = function (generatorOrNext, error, complete) {\n var schedulerFn;\n var errorFn = function (err) { return null; };\n var completeFn = function () { return null; };\n if (generatorOrNext && typeof generatorOrNext === 'object') {\n schedulerFn = this.__isAsync ? function (value /** TODO #9100 */) {\n setTimeout(function () { return generatorOrNext.next(value); });\n } : function (value /** TODO #9100 */) { generatorOrNext.next(value); };\n if (generatorOrNext.error) {\n errorFn = this.__isAsync ? function (err) { setTimeout(function () { return generatorOrNext.error(err); }); } :\n function (err) { generatorOrNext.error(err); };\n }\n if (generatorOrNext.complete) {\n completeFn = this.__isAsync ? function () { setTimeout(function () { return generatorOrNext.complete(); }); } :\n function () { generatorOrNext.complete(); };\n }\n }\n else {\n schedulerFn = this.__isAsync ? function (value /** TODO #9100 */) {\n setTimeout(function () { return generatorOrNext(value); });\n } : function (value /** TODO #9100 */) { generatorOrNext(value); };\n if (error) {\n errorFn =\n this.__isAsync ? function (err) { setTimeout(function () { return error(err); }); } : function (err) { error(err); };\n }\n if (complete) {\n completeFn =\n this.__isAsync ? function () { setTimeout(function () { return complete(); }); } : function () { complete(); };\n }\n }\n return _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);\n };\n return EventEmitter;\n }(rxjs_Subject.Subject));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$6 = (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 };\n /**\n * Indicates that a FormControl is valid, i.e. that no errors exist in the input value.\n */\n var VALID = 'VALID';\n /**\n * Indicates that a FormControl is invalid, i.e. that an error exists in the input value.\n */\n var INVALID = 'INVALID';\n /**\n * Indicates that a FormControl is pending, i.e. that async validation is occurring and\n * errors are not yet available for the input value.\n */\n var PENDING = 'PENDING';\n /**\n * Indicates that a FormControl is disabled, i.e. that the control is exempt from ancestor\n * calculations of validity or value.\n */\n var DISABLED = 'DISABLED';\n function _find(control, path, delimiter) {\n if (isBlank(path))\n return null;\n if (!(path instanceof Array)) {\n path = path.split(delimiter);\n }\n if (path instanceof Array && ListWrapper.isEmpty(path))\n return null;\n return path.reduce(function (v, name) {\n if (v instanceof FormGroup) {\n return isPresent(v.controls[name]) ? v.controls[name] : null;\n }\n else if (v instanceof FormArray) {\n var index = name;\n return isPresent(v.at(index)) ? v.at(index) : null;\n }\n else {\n return null;\n }\n }, control);\n }\n function toObservable(r) {\n return isPromise(r) ? rxjs_observable_fromPromise.fromPromise(r) : r;\n }\n function coerceToValidator(validator) {\n return Array.isArray(validator) ? composeValidators(validator) : validator;\n }\n function coerceToAsyncValidator(asyncValidator) {\n return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) : asyncValidator;\n }\n /**\n * @stable\n */\n var AbstractControl = (function () {\n function AbstractControl(validator, asyncValidator) {\n this.validator = validator;\n this.asyncValidator = asyncValidator;\n this._pristine = true;\n this._touched = false;\n }\n Object.defineProperty(AbstractControl.prototype, \"value\", {\n get: function () { return this._value; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"status\", {\n get: function () { return this._status; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"valid\", {\n get: function () { return this._status === VALID; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"invalid\", {\n get: function () { return this._status === INVALID; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"errors\", {\n /**\n * Returns the errors of this control.\n */\n get: function () { return this._errors; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"pristine\", {\n get: function () { return this._pristine; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"dirty\", {\n get: function () { return !this.pristine; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"touched\", {\n get: function () { return this._touched; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"untouched\", {\n get: function () { return !this._touched; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"valueChanges\", {\n get: function () { return this._valueChanges; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"statusChanges\", {\n get: function () { return this._statusChanges; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"pending\", {\n get: function () { return this._status == PENDING; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"disabled\", {\n get: function () { return this._status === DISABLED; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"enabled\", {\n get: function () { return this._status !== DISABLED; },\n enumerable: true,\n configurable: true\n });\n AbstractControl.prototype.setAsyncValidators = function (newValidator) {\n this.asyncValidator = coerceToAsyncValidator(newValidator);\n };\n AbstractControl.prototype.clearAsyncValidators = function () { this.asyncValidator = null; };\n AbstractControl.prototype.setValidators = function (newValidator) {\n this.validator = coerceToValidator(newValidator);\n };\n AbstractControl.prototype.clearValidators = function () { this.validator = null; };\n AbstractControl.prototype.markAsTouched = function (_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n onlySelf = normalizeBool(onlySelf);\n this._touched = true;\n if (isPresent(this._parent) && !onlySelf) {\n this._parent.markAsTouched({ onlySelf: onlySelf });\n }\n };\n AbstractControl.prototype.markAsDirty = function (_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n onlySelf = normalizeBool(onlySelf);\n this._pristine = false;\n if (isPresent(this._parent) && !onlySelf) {\n this._parent.markAsDirty({ onlySelf: onlySelf });\n }\n };\n AbstractControl.prototype.markAsPristine = function (_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._pristine = true;\n this._forEachChild(function (control) { control.markAsPristine({ onlySelf: true }); });\n if (isPresent(this._parent) && !onlySelf) {\n this._parent._updatePristine({ onlySelf: onlySelf });\n }\n };\n AbstractControl.prototype.markAsUntouched = function (_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._touched = false;\n this._forEachChild(function (control) { control.markAsUntouched({ onlySelf: true }); });\n if (isPresent(this._parent) && !onlySelf) {\n this._parent._updateTouched({ onlySelf: onlySelf });\n }\n };\n AbstractControl.prototype.markAsPending = function (_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n onlySelf = normalizeBool(onlySelf);\n this._status = PENDING;\n if (isPresent(this._parent) && !onlySelf) {\n this._parent.markAsPending({ onlySelf: onlySelf });\n }\n };\n AbstractControl.prototype.disable = function (_a) {\n var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;\n emitEvent = isPresent(emitEvent) ? emitEvent : true;\n this._status = DISABLED;\n this._forEachChild(function (control) { control.disable({ onlySelf: true }); });\n this._updateValue();\n if (emitEvent) {\n this._valueChanges.emit(this._value);\n this._statusChanges.emit(this._status);\n }\n this._updateAncestors(onlySelf);\n this._onDisabledChange(true);\n };\n AbstractControl.prototype.enable = function (_a) {\n var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;\n this._status = VALID;\n this._forEachChild(function (control) { control.enable({ onlySelf: true }); });\n this.updateValueAndValidity({ onlySelf: true, emitEvent: emitEvent });\n this._updateAncestors(onlySelf);\n this._onDisabledChange(false);\n };\n AbstractControl.prototype._updateAncestors = function (onlySelf) {\n if (isPresent(this._parent) && !onlySelf) {\n this._parent.updateValueAndValidity();\n this._parent._updatePristine();\n this._parent._updateTouched();\n }\n };\n AbstractControl.prototype.setParent = function (parent) { this._parent = parent; };\n AbstractControl.prototype.updateValueAndValidity = function (_a) {\n var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;\n onlySelf = normalizeBool(onlySelf);\n emitEvent = isPresent(emitEvent) ? emitEvent : true;\n this._updateValue();\n this._errors = this._runValidator();\n var originalStatus = this._status;\n this._status = this._calculateStatus();\n if (this._status == VALID || this._status == PENDING) {\n this._runAsyncValidator(emitEvent);\n }\n if (this._disabledChanged(originalStatus)) {\n this._updateValue();\n }\n if (emitEvent) {\n this._valueChanges.emit(this._value);\n this._statusChanges.emit(this._status);\n }\n if (isPresent(this._parent) && !onlySelf) {\n this._parent.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });\n }\n };\n /** @internal */\n AbstractControl.prototype._updateTreeValidity = function (_a) {\n var emitEvent = (_a === void 0 ? { emitEvent: true } : _a).emitEvent;\n this._forEachChild(function (ctrl) { return ctrl._updateTreeValidity({ emitEvent: emitEvent }); });\n this.updateValueAndValidity({ onlySelf: true, emitEvent: emitEvent });\n };\n AbstractControl.prototype._runValidator = function () {\n return isPresent(this.validator) ? this.validator(this) : null;\n };\n AbstractControl.prototype._runAsyncValidator = function (emitEvent) {\n var _this = this;\n if (isPresent(this.asyncValidator)) {\n this._status = PENDING;\n this._cancelExistingSubscription();\n var obs = toObservable(this.asyncValidator(this));\n this._asyncValidationSubscription = obs.subscribe({ next: function (res) { return _this.setErrors(res, { emitEvent: emitEvent }); } });\n }\n };\n AbstractControl.prototype._cancelExistingSubscription = function () {\n if (isPresent(this._asyncValidationSubscription)) {\n this._asyncValidationSubscription.unsubscribe();\n }\n };\n AbstractControl.prototype._disabledChanged = function (originalStatus) {\n return this._status !== originalStatus &&\n (this._status === DISABLED || originalStatus === DISABLED);\n };\n /**\n * Sets errors on a form control.\n *\n * This is used when validations are run not automatically, but manually by the user.\n *\n * Calling `setErrors` will also update the validity of the parent control.\n *\n * ## Usage\n *\n * ```\n * var login = new FormControl(\"someLogin\");\n * login.setErrors({\n * \"notUnique\": true\n * });\n *\n * expect(login.valid).toEqual(false);\n * expect(login.errors).toEqual({\"notUnique\": true});\n *\n * login.updateValue(\"someOtherLogin\");\n *\n * expect(login.valid).toEqual(true);\n * ```\n */\n AbstractControl.prototype.setErrors = function (errors, _a) {\n var emitEvent = (_a === void 0 ? {} : _a).emitEvent;\n emitEvent = isPresent(emitEvent) ? emitEvent : true;\n this._errors = errors;\n this._updateControlsErrors(emitEvent);\n };\n AbstractControl.prototype.get = function (path) { return _find(this, path, '.'); };\n AbstractControl.prototype.getError = function (errorCode, path) {\n if (path === void 0) { path = null; }\n var control = isPresent(path) && !ListWrapper.isEmpty(path) ? this.get(path) : this;\n if (isPresent(control) && isPresent(control._errors)) {\n return StringMapWrapper.get(control._errors, errorCode);\n }\n else {\n return null;\n }\n };\n AbstractControl.prototype.hasError = function (errorCode, path) {\n if (path === void 0) { path = null; }\n return isPresent(this.getError(errorCode, path));\n };\n Object.defineProperty(AbstractControl.prototype, \"root\", {\n get: function () {\n var x = this;\n while (isPresent(x._parent)) {\n x = x._parent;\n }\n return x;\n },\n enumerable: true,\n configurable: true\n });\n /** @internal */\n AbstractControl.prototype._updateControlsErrors = function (emitEvent) {\n this._status = this._calculateStatus();\n if (emitEvent) {\n this._statusChanges.emit(this._status);\n }\n if (isPresent(this._parent)) {\n this._parent._updateControlsErrors(emitEvent);\n }\n };\n /** @internal */\n AbstractControl.prototype._initObservables = function () {\n this._valueChanges = new EventEmitter();\n this._statusChanges = new EventEmitter();\n };\n AbstractControl.prototype._calculateStatus = function () {\n if (isPresent(this._errors))\n return INVALID;\n if (this._anyControlsHaveStatus(PENDING))\n return PENDING;\n if (this._anyControlsHaveStatus(INVALID))\n return INVALID;\n if (this._allControlsDisabled())\n return DISABLED;\n return VALID;\n };\n /** @internal */\n AbstractControl.prototype._anyControlsHaveStatus = function (status) {\n return this._anyControls(function (control) { return control.status == status; });\n };\n /** @internal */\n AbstractControl.prototype._anyControlsDirty = function () {\n return this._anyControls(function (control) { return control.dirty; });\n };\n /** @internal */\n AbstractControl.prototype._anyControlsTouched = function () {\n return this._anyControls(function (control) { return control.touched; });\n };\n /** @internal */\n AbstractControl.prototype._updatePristine = function (_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._pristine = !this._anyControlsDirty();\n if (isPresent(this._parent) && !onlySelf) {\n this._parent._updatePristine({ onlySelf: onlySelf });\n }\n };\n /** @internal */\n AbstractControl.prototype._updateTouched = function (_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._touched = this._anyControlsTouched();\n if (isPresent(this._parent) && !onlySelf) {\n this._parent._updateTouched({ onlySelf: onlySelf });\n }\n };\n /** @internal */\n AbstractControl.prototype._onDisabledChange = function (isDisabled) { };\n /** @internal */\n AbstractControl.prototype._isBoxedValue = function (formState) {\n return isStringMap(formState) && Object.keys(formState).length === 2 && 'value' in formState &&\n 'disabled' in formState;\n };\n return AbstractControl;\n }());\n /**\n * Defines a part of a form that cannot be divided into other controls. `FormControl`s have values\n * and\n * validation state, which is determined by an optional validation function.\n *\n * `FormControl` is one of the three fundamental building blocks used to define forms in Angular,\n * along\n * with {@link FormGroup} and {@link FormArray}.\n *\n * ## Usage\n *\n * By default, a `FormControl` is created for every `<input>` or other form component.\n * With {@link FormControlDirective} or {@link FormGroupDirective} an existing {@link FormControl}\n * can be bound to a DOM element instead. This `FormControl` can be configured with a custom\n * validation function.\n *\n * @stable\n */\n var FormControl = (function (_super) {\n __extends$6(FormControl, _super);\n function FormControl(formState, validator, asyncValidator) {\n if (formState === void 0) { formState = null; }\n if (validator === void 0) { validator = null; }\n if (asyncValidator === void 0) { asyncValidator = null; }\n _super.call(this, coerceToValidator(validator), coerceToAsyncValidator(asyncValidator));\n /** @internal */\n this._onChange = [];\n this._applyFormState(formState);\n this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\n this._initObservables();\n }\n /**\n * Set the value of the form control to `value`.\n *\n * If `onlySelf` is `true`, this change will only affect the validation of this `FormControl`\n * and not its parent component. If `emitEvent` is `true`, this change will cause a\n * `valueChanges` event on the `FormControl` to be emitted. Both of these options default to\n * `false`.\n *\n * If `emitModelToViewChange` is `true`, the view will be notified about the new value\n * via an `onChange` event. This is the default behavior if `emitModelToViewChange` is not\n * specified.\n *\n * If `emitViewToModelChange` is `true`, an ngModelChange event will be fired to update the\n * model. This is the default behavior if `emitViewToModelChange` is not specified.\n */\n FormControl.prototype.setValue = function (value, _a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent, emitModelToViewChange = _b.emitModelToViewChange, emitViewToModelChange = _b.emitViewToModelChange;\n emitModelToViewChange = isPresent(emitModelToViewChange) ? emitModelToViewChange : true;\n emitViewToModelChange = isPresent(emitViewToModelChange) ? emitViewToModelChange : true;\n this._value = value;\n if (this._onChange.length && emitModelToViewChange) {\n this._onChange.forEach(function (changeFn) { return changeFn(_this._value, emitViewToModelChange); });\n }\n this.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });\n };\n /**\n * This function is functionally the same as updateValue() at this level. It exists for\n * symmetry with patchValue() on FormGroups and FormArrays, where it does behave differently.\n */\n FormControl.prototype.patchValue = function (value, options) {\n if (options === void 0) { options = {}; }\n this.setValue(value, options);\n };\n FormControl.prototype.reset = function (formState, _a) {\n if (formState === void 0) { formState = null; }\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._applyFormState(formState);\n this.markAsPristine({ onlySelf: onlySelf });\n this.markAsUntouched({ onlySelf: onlySelf });\n this.setValue(this._value, { onlySelf: onlySelf });\n };\n /**\n * @internal\n */\n FormControl.prototype._updateValue = function () { };\n /**\n * @internal\n */\n FormControl.prototype._anyControls = function (condition) { return false; };\n /**\n * @internal\n */\n FormControl.prototype._allControlsDisabled = function () { return this.disabled; };\n /**\n * Register a listener for change events.\n */\n FormControl.prototype.registerOnChange = function (fn) { this._onChange.push(fn); };\n /**\n * @internal\n */\n FormControl.prototype._clearChangeFns = function () {\n this._onChange = [];\n this._onDisabledChange = null;\n };\n /**\n * Register a listener for disabled events.\n */\n FormControl.prototype.registerOnDisabledChange = function (fn) { this._onDisabledChange = fn; };\n /**\n * @internal\n */\n FormControl.prototype._forEachChild = function (cb) { };\n FormControl.prototype._applyFormState = function (formState) {\n if (this._isBoxedValue(formState)) {\n this._value = formState.value;\n formState.disabled ? this.disable({ onlySelf: true, emitEvent: false }) :\n this.enable({ onlySelf: true, emitEvent: false });\n }\n else {\n this._value = formState;\n }\n };\n return FormControl;\n }(AbstractControl));\n /**\n * Defines a part of a form, of fixed length, that can contain other controls.\n *\n * A `FormGroup` aggregates the values of each {@link FormControl} in the group.\n * The status of a `FormGroup` depends on the status of its children.\n * If one of the controls in a group is invalid, the entire group is invalid.\n * Similarly, if a control changes its value, the entire group changes as well.\n *\n * `FormGroup` is one of the three fundamental building blocks used to define forms in Angular,\n * along with {@link FormControl} and {@link FormArray}. {@link FormArray} can also contain other\n * controls, but is of variable length.\n *\n *\n * @stable\n */\n var FormGroup = (function (_super) {\n __extends$6(FormGroup, _super);\n function FormGroup(controls, validator, asyncValidator) {\n if (validator === void 0) { validator = null; }\n if (asyncValidator === void 0) { asyncValidator = null; }\n _super.call(this, validator, asyncValidator);\n this.controls = controls;\n this._initObservables();\n this._setParentForControls();\n this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\n }\n /**\n * Register a control with the group's list of controls.\n */\n FormGroup.prototype.registerControl = function (name, control) {\n if (this.controls[name])\n return this.controls[name];\n this.controls[name] = control;\n control.setParent(this);\n return control;\n };\n /**\n * Add a control to this group.\n */\n FormGroup.prototype.addControl = function (name, control) {\n this.registerControl(name, control);\n this.updateValueAndValidity();\n };\n /**\n * Remove a control from this group.\n */\n FormGroup.prototype.removeControl = function (name) {\n StringMapWrapper.delete(this.controls, name);\n this.updateValueAndValidity();\n };\n /**\n * Check whether there is a control with the given name in the group.\n */\n FormGroup.prototype.contains = function (controlName) {\n var c = StringMapWrapper.contains(this.controls, controlName);\n return c && this.get(controlName).enabled;\n };\n FormGroup.prototype.setValue = function (value, _a) {\n var _this = this;\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._checkAllValuesPresent(value);\n StringMapWrapper.forEach(value, function (newValue, name) {\n _this._throwIfControlMissing(name);\n _this.controls[name].setValue(newValue, { onlySelf: true });\n });\n this.updateValueAndValidity({ onlySelf: onlySelf });\n };\n FormGroup.prototype.patchValue = function (value, _a) {\n var _this = this;\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n StringMapWrapper.forEach(value, function (newValue, name) {\n if (_this.controls[name]) {\n _this.controls[name].patchValue(newValue, { onlySelf: true });\n }\n });\n this.updateValueAndValidity({ onlySelf: onlySelf });\n };\n FormGroup.prototype.reset = function (value, _a) {\n if (value === void 0) { value = {}; }\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._forEachChild(function (control, name) {\n control.reset(value[name], { onlySelf: true });\n });\n this.updateValueAndValidity({ onlySelf: onlySelf });\n this._updatePristine({ onlySelf: onlySelf });\n this._updateTouched({ onlySelf: onlySelf });\n };\n FormGroup.prototype.getRawValue = function () {\n return this._reduceChildren({}, function (acc, control, name) {\n acc[name] = control.value;\n return acc;\n });\n };\n /** @internal */\n FormGroup.prototype._throwIfControlMissing = function (name) {\n if (!Object.keys(this.controls).length) {\n throw new Error(\"\\n There are no form controls registered with this group yet. If you're using ngModel,\\n you may want to check next tick (e.g. use setTimeout).\\n \");\n }\n if (!this.controls[name]) {\n throw new Error(\"Cannot find form control with name: \" + name + \".\");\n }\n };\n /** @internal */\n FormGroup.prototype._forEachChild = function (cb) {\n StringMapWrapper.forEach(this.controls, cb);\n };\n /** @internal */\n FormGroup.prototype._setParentForControls = function () {\n var _this = this;\n this._forEachChild(function (control, name) { control.setParent(_this); });\n };\n /** @internal */\n FormGroup.prototype._updateValue = function () { this._value = this._reduceValue(); };\n /** @internal */\n FormGroup.prototype._anyControls = function (condition) {\n var _this = this;\n var res = false;\n this._forEachChild(function (control, name) {\n res = res || (_this.contains(name) && condition(control));\n });\n return res;\n };\n /** @internal */\n FormGroup.prototype._reduceValue = function () {\n var _this = this;\n return this._reduceChildren({}, function (acc, control, name) {\n if (control.enabled || _this.disabled) {\n acc[name] = control.value;\n }\n return acc;\n });\n };\n /** @internal */\n FormGroup.prototype._reduceChildren = function (initValue, fn) {\n var res = initValue;\n this._forEachChild(function (control, name) { res = fn(res, control, name); });\n return res;\n };\n /** @internal */\n FormGroup.prototype._allControlsDisabled = function () {\n for (var _i = 0, _a = Object.keys(this.controls); _i < _a.length; _i++) {\n var controlName = _a[_i];\n if (this.controls[controlName].enabled) {\n return false;\n }\n }\n return !StringMapWrapper.isEmpty(this.controls);\n };\n /** @internal */\n FormGroup.prototype._checkAllValuesPresent = function (value) {\n this._forEachChild(function (control, name) {\n if (value[name] === undefined) {\n throw new Error(\"Must supply a value for form control with name: '\" + name + \"'.\");\n }\n });\n };\n return FormGroup;\n }(AbstractControl));\n /**\n * Defines a part of a form, of variable length, that can contain other controls.\n *\n * A `FormArray` aggregates the values of each {@link FormControl} in the group.\n * The status of a `FormArray` depends on the status of its children.\n * If one of the controls in a group is invalid, the entire array is invalid.\n * Similarly, if a control changes its value, the entire array changes as well.\n *\n * `FormArray` is one of the three fundamental building blocks used to define forms in Angular,\n * along with {@link FormControl} and {@link FormGroup}. {@link FormGroup} can also contain\n * other controls, but is of fixed length.\n *\n * ## Adding or removing controls\n *\n * To change the controls in the array, use the `push`, `insert`, or `removeAt` methods\n * in `FormArray` itself. These methods ensure the controls are properly tracked in the\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\n * the `FormArray` directly, as that will result in strange and unexpected behavior such\n * as broken change detection.\n *\n *\n * @stable\n */\n var FormArray = (function (_super) {\n __extends$6(FormArray, _super);\n function FormArray(controls, validator, asyncValidator) {\n if (validator === void 0) { validator = null; }\n if (asyncValidator === void 0) { asyncValidator = null; }\n _super.call(this, validator, asyncValidator);\n this.controls = controls;\n this._initObservables();\n this._setParentForControls();\n this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\n }\n /**\n * Get the {@link AbstractControl} at the given `index` in the array.\n */\n FormArray.prototype.at = function (index) { return this.controls[index]; };\n /**\n * Insert a new {@link AbstractControl} at the end of the array.\n */\n FormArray.prototype.push = function (control) {\n this.controls.push(control);\n control.setParent(this);\n this.updateValueAndValidity();\n };\n /**\n * Insert a new {@link AbstractControl} at the given `index` in the array.\n */\n FormArray.prototype.insert = function (index, control) {\n ListWrapper.insert(this.controls, index, control);\n control.setParent(this);\n this.updateValueAndValidity();\n };\n /**\n * Remove the control at the given `index` in the array.\n */\n FormArray.prototype.removeAt = function (index) {\n ListWrapper.removeAt(this.controls, index);\n this.updateValueAndValidity();\n };\n Object.defineProperty(FormArray.prototype, \"length\", {\n /**\n * Length of the control array.\n */\n get: function () { return this.controls.length; },\n enumerable: true,\n configurable: true\n });\n FormArray.prototype.setValue = function (value, _a) {\n var _this = this;\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._checkAllValuesPresent(value);\n value.forEach(function (newValue, index) {\n _this._throwIfControlMissing(index);\n _this.at(index).setValue(newValue, { onlySelf: true });\n });\n this.updateValueAndValidity({ onlySelf: onlySelf });\n };\n FormArray.prototype.patchValue = function (value, _a) {\n var _this = this;\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n value.forEach(function (newValue, index) {\n if (_this.at(index)) {\n _this.at(index).patchValue(newValue, { onlySelf: true });\n }\n });\n this.updateValueAndValidity({ onlySelf: onlySelf });\n };\n FormArray.prototype.reset = function (value, _a) {\n if (value === void 0) { value = []; }\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n this._forEachChild(function (control, index) {\n control.reset(value[index], { onlySelf: true });\n });\n this.updateValueAndValidity({ onlySelf: onlySelf });\n this._updatePristine({ onlySelf: onlySelf });\n this._updateTouched({ onlySelf: onlySelf });\n };\n FormArray.prototype.getRawValue = function () { return this.controls.map(function (control) { return control.value; }); };\n /** @internal */\n FormArray.prototype._throwIfControlMissing = function (index) {\n if (!this.controls.length) {\n throw new Error(\"\\n There are no form controls registered with this array yet. If you're using ngModel,\\n you may want to check next tick (e.g. use setTimeout).\\n \");\n }\n if (!this.at(index)) {\n throw new Error(\"Cannot find form control at index \" + index);\n }\n };\n /** @internal */\n FormArray.prototype._forEachChild = function (cb) {\n this.controls.forEach(function (control, index) { cb(control, index); });\n };\n /** @internal */\n FormArray.prototype._updateValue = function () {\n var _this = this;\n this._value = this.controls.filter(function (control) { return control.enabled || _this.disabled; })\n .map(function (control) { return control.value; });\n };\n /** @internal */\n FormArray.prototype._anyControls = function (condition) {\n return this.controls.some(function (control) { return control.enabled && condition(control); });\n };\n /** @internal */\n FormArray.prototype._setParentForControls = function () {\n var _this = this;\n this._forEachChild(function (control) { control.setParent(_this); });\n };\n /** @internal */\n FormArray.prototype._checkAllValuesPresent = function (value) {\n this._forEachChild(function (control, i) {\n if (value[i] === undefined) {\n throw new Error(\"Must supply a value for form control at index: \" + i + \".\");\n }\n });\n };\n /** @internal */\n FormArray.prototype._allControlsDisabled = function () {\n for (var _i = 0, _a = this.controls; _i < _a.length; _i++) {\n var control = _a[_i];\n if (control.enabled)\n return false;\n }\n return !!this.controls.length;\n };\n return FormArray;\n }(AbstractControl));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$4 = (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 };\n var formDirectiveProvider = {\n provide: ControlContainer,\n useExisting: _angular_core.forwardRef(function () { return NgForm; })\n };\n var resolvedPromise = Promise.resolve(null);\n /**\n * If `NgForm` is bound in a component, `<form>` elements in that component will be\n * upgraded to use the Angular form system.\n *\n * ### Typical Use\n *\n * Include `FORM_DIRECTIVES` in the `directives` section of a {@link Component} annotation\n * to use `NgForm` and its associated controls.\n *\n * ### Structure\n *\n * An Angular form is a collection of `FormControl`s in some hierarchy.\n * `FormControl`s can be at the top level or can be organized in `FormGroup`s\n * or `FormArray`s. This hierarchy is reflected in the form's `value`, a\n * JSON object that mirrors the form structure.\n *\n * ### Submission\n *\n * The `ngSubmit` event signals when the user triggers a form submission.\n *\n * ```typescript\n * @Component({\n * selector: 'my-app',\n * template: `\n * <div>\n * <p>Submit the form to see the data object Angular builds</p>\n * <h2>NgForm demo</h2>\n * <form #f=\"ngForm\" (ngSubmit)=\"onSubmit(f.value)\">\n * <h3>Control group: credentials</h3>\n * <div ngModelGroup=\"credentials\">\n * <p>Login: <input type=\"text\" name=\"login\" ngModel></p>\n * <p>Password: <input type=\"password\" name=\"password\" ngModel></p>\n * </div>\n * <h3>Control group: person</h3>\n * <div ngModelGroup=\"person\">\n * <p>First name: <input type=\"text\" name=\"firstName\" ngModel></p>\n * <p>Last name: <input type=\"text\" name=\"lastName\" ngModel></p>\n * </div>\n * <button type=\"submit\">Submit Form</button>\n * <p>Form data submitted:</p>\n * </form>\n * <pre>{{data}}</pre>\n * </div>\n * `,\n * directives: []\n * })\n * export class App {\n * constructor() {}\n *\n * data: string;\n *\n * onSubmit(data) {\n * this.data = JSON.stringify(data, null, 2);\n * }\n * }\n * ```\n *\n * @stable\n */\n var NgForm = (function (_super) {\n __extends$4(NgForm, _super);\n function NgForm(validators, asyncValidators) {\n _super.call(this);\n this._submitted = false;\n this.ngSubmit = new EventEmitter();\n this.form =\n new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));\n }\n Object.defineProperty(NgForm.prototype, \"submitted\", {\n get: function () { return this._submitted; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForm.prototype, \"formDirective\", {\n get: function () { return this; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForm.prototype, \"control\", {\n get: function () { return this.form; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForm.prototype, \"path\", {\n get: function () { return []; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForm.prototype, \"controls\", {\n get: function () { return this.form.controls; },\n enumerable: true,\n configurable: true\n });\n NgForm.prototype.addControl = function (dir) {\n var _this = this;\n resolvedPromise.then(function () {\n var container = _this._findContainer(dir.path);\n dir._control = container.registerControl(dir.name, dir.control);\n setUpControl(dir.control, dir);\n dir.control.updateValueAndValidity({ emitEvent: false });\n });\n };\n NgForm.prototype.getControl = function (dir) { return this.form.get(dir.path); };\n NgForm.prototype.removeControl = function (dir) {\n var _this = this;\n resolvedPromise.then(function () {\n var container = _this._findContainer(dir.path);\n if (isPresent(container)) {\n container.removeControl(dir.name);\n }\n });\n };\n NgForm.prototype.addFormGroup = function (dir) {\n var _this = this;\n resolvedPromise.then(function () {\n var container = _this._findContainer(dir.path);\n var group = new FormGroup({});\n setUpFormContainer(group, dir);\n container.registerControl(dir.name, group);\n group.updateValueAndValidity({ emitEvent: false });\n });\n };\n NgForm.prototype.removeFormGroup = function (dir) {\n var _this = this;\n resolvedPromise.then(function () {\n var container = _this._findContainer(dir.path);\n if (isPresent(container)) {\n container.removeControl(dir.name);\n }\n });\n };\n NgForm.prototype.getFormGroup = function (dir) { return this.form.get(dir.path); };\n NgForm.prototype.updateModel = function (dir, value) {\n var _this = this;\n resolvedPromise.then(function () {\n var ctrl = _this.form.get(dir.path);\n ctrl.setValue(value);\n });\n };\n NgForm.prototype.setValue = function (value) { this.control.setValue(value); };\n NgForm.prototype.onSubmit = function () {\n this._submitted = true;\n this.ngSubmit.emit(null);\n return false;\n };\n NgForm.prototype.onReset = function () { this.resetForm(); };\n NgForm.prototype.resetForm = function (value) {\n if (value === void 0) { value = undefined; }\n this.form.reset(value);\n this._submitted = false;\n };\n /** @internal */\n NgForm.prototype._findContainer = function (path) {\n path.pop();\n return ListWrapper.isEmpty(path) ? this.form : this.form.get(path);\n };\n NgForm.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: 'form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]',\n providers: [formDirectiveProvider],\n host: { '(submit)': 'onSubmit()', '(reset)': 'onReset()' },\n outputs: ['ngSubmit'],\n exportAs: 'ngForm'\n },] },\n ];\n /** @nocollapse */\n NgForm.ctorParameters = [\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n ];\n return NgForm;\n }(ControlContainer));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var Examples = {\n formControlName: \"\\n <div [formGroup]=\\\"myGroup\\\">\\n <input formControlName=\\\"firstName\\\">\\n </div>\\n\\n In your class:\\n\\n this.myGroup = new FormGroup({\\n firstName: new FormControl()\\n });\",\n formGroupName: \"\\n <div [formGroup]=\\\"myGroup\\\">\\n <div formGroupName=\\\"person\\\">\\n <input formControlName=\\\"firstName\\\">\\n </div>\\n </div>\\n\\n In your class:\\n\\n this.myGroup = new FormGroup({\\n person: new FormGroup({ firstName: new FormControl() })\\n });\",\n formArrayName: \"\\n <div [formGroup]=\\\"myGroup\\\">\\n <div formArrayName=\\\"cities\\\">\\n <div *ngFor=\\\"let city of cityArray.controls; let i=index\\\">\\n <input [formControlName]=\\\"i\\\">\\n </div>\\n </div>\\n </div>\\n\\n In your class:\\n\\n this.cityArray = new FormArray([new FormControl('SF')]);\\n this.myGroup = new FormGroup({\\n cities: this.cityArray\\n });\",\n ngModelGroup: \"\\n <form>\\n <div ngModelGroup=\\\"person\\\">\\n <input [(ngModel)]=\\\"person.name\\\" name=\\\"firstName\\\">\\n </div>\\n </form>\",\n ngModelWithFormGroup: \"\\n <div [formGroup]=\\\"myGroup\\\">\\n <input formControlName=\\\"firstName\\\">\\n <input [(ngModel)]=\\\"showMoreControls\\\" [ngModelOptions]=\\\"{standalone: true}\\\">\\n </div>\\n \"\n };\n\n var TemplateDrivenErrors = (function () {\n function TemplateDrivenErrors() {\n }\n TemplateDrivenErrors.modelParentException = function () {\n throw new Error(\"\\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\\n formGroup's partner directive \\\"formControlName\\\" instead. Example:\\n\\n \" + Examples.formControlName + \"\\n\\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\\n\\n Example:\\n\\n \" + Examples.ngModelWithFormGroup);\n };\n TemplateDrivenErrors.formGroupNameException = function () {\n throw new Error(\"\\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\\n\\n Option 1: Use formControlName instead of ngModel (reactive strategy):\\n\\n \" + Examples.formGroupName + \"\\n\\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\\n\\n \" + Examples.ngModelGroup);\n };\n TemplateDrivenErrors.missingNameException = function () {\n throw new Error(\"If ngModel is used within a form tag, either the name attribute must be set or the form\\n control must be defined as 'standalone' in ngModelOptions.\\n\\n Example 1: <input [(ngModel)]=\\\"person.firstName\\\" name=\\\"first\\\">\\n Example 2: <input [(ngModel)]=\\\"person.firstName\\\" [ngModelOptions]=\\\"{standalone: true}\\\">\");\n };\n TemplateDrivenErrors.modelGroupParentException = function () {\n throw new Error(\"\\n ngModelGroup cannot be used with a parent formGroup directive.\\n\\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\\n\\n \" + Examples.formGroupName + \"\\n\\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\\n\\n \" + Examples.ngModelGroup);\n };\n return TemplateDrivenErrors;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$8 = (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 };\n var modelGroupProvider = {\n provide: ControlContainer,\n useExisting: _angular_core.forwardRef(function () { return NgModelGroup; })\n };\n /**\n * Creates and binds a model group to a DOM element.\n *\n * This directive can only be used as a child of {@link NgForm}.\n *\n * ```typescript\n * @Component({\n * selector: 'my-app',\n * template: `\n * <div>\n * <h2>Angular forms Example</h2>\n * <form #f=\"ngForm\">\n * <div ngModelGroup=\"name\" #mgName=\"ngModelGroup\">\n * <h3>Enter your name:</h3>\n * <p>First: <input name=\"first\" ngModel required></p>\n * <p>Middle: <input name=\"middle\" ngModel></p>\n * <p>Last: <input name=\"last\" ngModel required></p>\n * </div>\n * <h3>Name value:</h3>\n * <pre>{{ mgName.value | json }}</pre>\n * <p>Name is {{mgName?.valid ? \"valid\" : \"invalid\"}}</p>\n * <h3>What's your favorite food?</h3>\n * <p><input name=\"food\" ngModel></p>\n * <h3>Form value</h3>\n * <pre>{{ f.value | json }}</pre>\n * </form>\n * </div>\n * `\n * })\n * export class App {}\n * ```\n *\n * This example declares a model group for a user's name. The value and validation state of\n * this group can be accessed separately from the overall form.\n *\n * @stable\n */\n var NgModelGroup = (function (_super) {\n __extends$8(NgModelGroup, _super);\n function NgModelGroup(parent, validators, asyncValidators) {\n _super.call(this);\n this._parent = parent;\n this._validators = validators;\n this._asyncValidators = asyncValidators;\n }\n /** @internal */\n NgModelGroup.prototype._checkParentType = function () {\n if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\n TemplateDrivenErrors.modelGroupParentException();\n }\n };\n NgModelGroup.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' },] },\n ];\n /** @nocollapse */\n NgModelGroup.ctorParameters = [\n { type: ControlContainer, decorators: [{ type: _angular_core.Host }, { type: _angular_core.SkipSelf },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n ];\n NgModelGroup.propDecorators = {\n 'name': [{ type: _angular_core.Input, args: ['ngModelGroup',] },],\n };\n return NgModelGroup;\n }(AbstractFormGroupDirective));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$7 = (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 };\n var formControlBinding = {\n provide: NgControl,\n useExisting: _angular_core.forwardRef(function () { return NgModel; })\n };\n var resolvedPromise$1 = Promise.resolve(null);\n /**\n * Binds a domain model to a form control.\n *\n * ### Usage\n *\n * `ngModel` binds an existing domain model to a form control. For a\n * two-way binding, use `[(ngModel)]` to ensure the model updates in\n * both directions.\n *\n * ```typescript\n * @Component({\n * selector: \"search-comp\",\n * directives: [],\n * template: `<input type='text' [(ngModel)]=\"searchQuery\">`\n * })\n * class SearchComp {\n * searchQuery: string;\n * }\n * ```\n *\n * @stable\n */\n var NgModel = (function (_super) {\n __extends$7(NgModel, _super);\n function NgModel(parent, validators, asyncValidators, valueAccessors) {\n _super.call(this);\n /** @internal */\n this._control = new FormControl();\n /** @internal */\n this._registered = false;\n this.update = new EventEmitter();\n this._parent = parent;\n this._rawValidators = validators || [];\n this._rawAsyncValidators = asyncValidators || [];\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n NgModel.prototype.ngOnChanges = function (changes) {\n this._checkForErrors();\n if (!this._registered)\n this._setUpControl();\n if ('isDisabled' in changes) {\n this._updateDisabled(changes);\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n this._updateValue(this.model);\n this.viewModel = this.model;\n }\n };\n NgModel.prototype.ngOnDestroy = function () { this.formDirective && this.formDirective.removeControl(this); };\n Object.defineProperty(NgModel.prototype, \"control\", {\n get: function () { return this._control; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModel.prototype, \"path\", {\n get: function () {\n return this._parent ? controlPath(this.name, this._parent) : [this.name];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModel.prototype, \"formDirective\", {\n get: function () { return this._parent ? this._parent.formDirective : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModel.prototype, \"validator\", {\n get: function () { return composeValidators(this._rawValidators); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModel.prototype, \"asyncValidator\", {\n get: function () {\n return composeAsyncValidators(this._rawAsyncValidators);\n },\n enumerable: true,\n configurable: true\n });\n NgModel.prototype.viewToModelUpdate = function (newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n };\n NgModel.prototype._setUpControl = function () {\n this._isStandalone() ? this._setUpStandalone() :\n this.formDirective.addControl(this);\n this._registered = true;\n };\n NgModel.prototype._isStandalone = function () {\n return !this._parent || (this.options && this.options.standalone);\n };\n NgModel.prototype._setUpStandalone = function () {\n setUpControl(this._control, this);\n this._control.updateValueAndValidity({ emitEvent: false });\n };\n NgModel.prototype._checkForErrors = function () {\n if (!this._isStandalone()) {\n this._checkParentType();\n }\n this._checkName();\n };\n NgModel.prototype._checkParentType = function () {\n if (!(this._parent instanceof NgModelGroup) &&\n this._parent instanceof AbstractFormGroupDirective) {\n TemplateDrivenErrors.formGroupNameException();\n }\n else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {\n TemplateDrivenErrors.modelParentException();\n }\n };\n NgModel.prototype._checkName = function () {\n if (this.options && this.options.name)\n this.name = this.options.name;\n if (!this._isStandalone() && !this.name) {\n TemplateDrivenErrors.missingNameException();\n }\n };\n NgModel.prototype._updateValue = function (value) {\n var _this = this;\n resolvedPromise$1.then(function () { _this.control.setValue(value, { emitViewToModelChange: false }); });\n };\n NgModel.prototype._updateDisabled = function (changes) {\n var _this = this;\n var disabledValue = changes['isDisabled'].currentValue;\n var isDisabled = disabledValue != null && disabledValue != false;\n resolvedPromise$1.then(function () {\n if (isDisabled && !_this.control.disabled) {\n _this.control.disable();\n }\n else if (!isDisabled && _this.control.disabled) {\n _this.control.enable();\n }\n });\n };\n NgModel.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: '[ngModel]:not([formControlName]):not([formControl])',\n providers: [formControlBinding],\n exportAs: 'ngModel'\n },] },\n ];\n /** @nocollapse */\n NgModel.ctorParameters = [\n { type: ControlContainer, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Host },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALUE_ACCESSOR,] },] },\n ];\n NgModel.propDecorators = {\n 'name': [{ type: _angular_core.Input },],\n 'isDisabled': [{ type: _angular_core.Input, args: ['disabled',] },],\n 'model': [{ type: _angular_core.Input, args: ['ngModel',] },],\n 'options': [{ type: _angular_core.Input, args: ['ngModelOptions',] },],\n 'update': [{ type: _angular_core.Output, args: ['ngModelChange',] },],\n };\n return NgModel;\n }(NgControl));\n\n var ReactiveErrors = (function () {\n function ReactiveErrors() {\n }\n ReactiveErrors.controlParentException = function () {\n throw new Error(\"formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\\n directive and pass it an existing FormGroup instance (you can create one in your class).\\n\\n Example:\\n\\n \" + Examples.formControlName);\n };\n ReactiveErrors.ngModelGroupException = function () {\n throw new Error(\"formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\\n that also have a \\\"form\\\" prefix: formGroupName, formArrayName, or formGroup.\\n\\n Option 1: Update the parent to be formGroupName (reactive form strategy)\\n\\n \" + Examples.formGroupName + \"\\n\\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\\n\\n \" + Examples.ngModelGroup);\n };\n ReactiveErrors.missingFormException = function () {\n throw new Error(\"formGroup expects a FormGroup instance. Please pass one in.\\n\\n Example:\\n\\n \" + Examples.formControlName);\n };\n ReactiveErrors.groupParentException = function () {\n throw new Error(\"formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\\n directive and pass it an existing FormGroup instance (you can create one in your class).\\n\\n Example:\\n\\n \" + Examples.formGroupName);\n };\n ReactiveErrors.arrayParentException = function () {\n throw new Error(\"formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\\n directive and pass it an existing FormGroup instance (you can create one in your class).\\n\\n Example:\\n\\n \" + Examples.formArrayName);\n };\n ReactiveErrors.disabledAttrWarning = function () {\n console.warn(\"\\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\\n you. We recommend using this approach to avoid 'changed after checked' errors.\\n \\n Example: \\n form = new FormGroup({\\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\\n last: new FormControl('Drew', Validators.required)\\n });\\n \");\n };\n return ReactiveErrors;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$9 = (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 };\n var formControlBinding$1 = {\n provide: NgControl,\n useExisting: _angular_core.forwardRef(function () { return FormControlDirective; })\n };\n /**\n * Binds an existing {@link FormControl} to a DOM element. It requires importing the {@link\n * ReactiveFormsModule}.\n *\n * In this example, we bind the control to an input element. When the value of the input element\n * changes, the value of the control will reflect that change. Likewise, if the value of the\n * control changes, the input element reflects that change.\n *\n * ```typescript\n * @Component({\n * selector: 'my-app',\n * template: `\n * <div>\n * <h2>Bind existing control example</h2>\n * <form>\n * <p>Element with existing control: <input type=\"text\"\n * [formControl]=\"loginControl\"></p>\n * <p>Value of existing control: {{loginControl.value}}</p>\n * </form>\n * </div>\n * `,\n * })\n * export class App {\n * loginControl: FormControl = new FormControl('');\n * }\n * ```\n *\n * ### ngModel\n *\n * We can also set the value of the form programmatically with setValue().\n **\n * ```typescript\n * @Component({\n * selector: \"login-comp\",\n\n * template: \"<input type='text' [formControl]='loginControl'>\"\n * })\n * class LoginComp {\n * loginControl: FormControl = new FormControl('');\n *\n * populate() {\n * this.loginControl.setValue('some login');\n * }\n *\n * }\n * ```\n *\n * @stable\n */\n var FormControlDirective = (function (_super) {\n __extends$9(FormControlDirective, _super);\n function FormControlDirective(validators, asyncValidators, valueAccessors) {\n _super.call(this);\n this.update = new EventEmitter();\n this._rawValidators = validators || [];\n this._rawAsyncValidators = asyncValidators || [];\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n Object.defineProperty(FormControlDirective.prototype, \"isDisabled\", {\n set: function (isDisabled) { ReactiveErrors.disabledAttrWarning(); },\n enumerable: true,\n configurable: true\n });\n FormControlDirective.prototype.ngOnChanges = function (changes) {\n if (this._isControlChanged(changes)) {\n setUpControl(this.form, this);\n if (this.control.disabled)\n this.valueAccessor.setDisabledState(true);\n this.form.updateValueAndValidity({ emitEvent: false });\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n this.form.setValue(this.model);\n this.viewModel = this.model;\n }\n };\n Object.defineProperty(FormControlDirective.prototype, \"path\", {\n get: function () { return []; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormControlDirective.prototype, \"validator\", {\n get: function () { return composeValidators(this._rawValidators); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormControlDirective.prototype, \"asyncValidator\", {\n get: function () {\n return composeAsyncValidators(this._rawAsyncValidators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormControlDirective.prototype, \"control\", {\n get: function () { return this.form; },\n enumerable: true,\n configurable: true\n });\n FormControlDirective.prototype.viewToModelUpdate = function (newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n };\n FormControlDirective.prototype._isControlChanged = function (changes) {\n return StringMapWrapper.contains(changes, 'form');\n };\n FormControlDirective.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[formControl]', providers: [formControlBinding$1], exportAs: 'ngForm' },] },\n ];\n /** @nocollapse */\n FormControlDirective.ctorParameters = [\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALUE_ACCESSOR,] },] },\n ];\n FormControlDirective.propDecorators = {\n 'form': [{ type: _angular_core.Input, args: ['formControl',] },],\n 'model': [{ type: _angular_core.Input, args: ['ngModel',] },],\n 'update': [{ type: _angular_core.Output, args: ['ngModelChange',] },],\n 'isDisabled': [{ type: _angular_core.Input, args: ['disabled',] },],\n };\n return FormControlDirective;\n }(NgControl));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$11 = (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 };\n var formDirectiveProvider$1 = {\n provide: ControlContainer,\n useExisting: _angular_core.forwardRef(function () { return FormGroupDirective; })\n };\n /**\n * Binds an existing form group to a DOM element. It requires importing the {@link\n * ReactiveFormsModule}.\n *\n * In this example, we bind the form group to the form element, and we bind the login and\n * password controls to the login and password elements.\n *\n * ```typescript\n * @Component({\n * selector: 'my-app',\n * template: `\n * <div>\n * <h2>Binding an existing form group</h2>\n * <form [formGroup]=\"loginForm\">\n * <p>Login: <input type=\"text\" formControlName=\"login\"></p>\n * <p>Password: <input type=\"password\" formControlName=\"password\"></p>\n * </form>\n * <p>Value:</p>\n * <pre>{{ loginForm.value | json}}</pre>\n * </div>\n * `\n * })\n * export class App {\n * loginForm: FormGroup;\n *\n * constructor() {\n * this.loginForm = new FormGroup({\n * login: new FormControl(\"\"),\n * password: new FormControl(\"\")\n * });\n * }\n *\n * }\n * ```\n *\n * We can also use setValue() to populate the form programmatically.\n *\n * ```typescript\n * @Component({\n * selector: \"login-comp\",\n * template: `\n * <form [formGroup]='loginForm'>\n * Login <input type='text' formControlName='login'>\n * Password <input type='password' formControlName='password'>\n * <button (click)=\"onLogin()\">Login</button>\n * </form>`\n * })\n * class LoginComp {\n * loginForm: FormGroup;\n *\n * constructor() {\n * this.loginForm = new FormGroup({\n * login: new FormControl(''),\n * password: new FormControl('')\n * });\n * }\n *\n * populate() {\n * this.loginForm.setValue({ login: 'some login', password: 'some password'});\n * }\n *\n * onLogin(): void {\n * // this.credentials.login === 'some login'\n * // this.credentials.password === 'some password'\n * }\n * }\n * ```\n *\n * @stable\n */\n var FormGroupDirective = (function (_super) {\n __extends$11(FormGroupDirective, _super);\n function FormGroupDirective(_validators, _asyncValidators) {\n _super.call(this);\n this._validators = _validators;\n this._asyncValidators = _asyncValidators;\n this._submitted = false;\n this.directives = [];\n this.form = null;\n this.ngSubmit = new EventEmitter();\n }\n FormGroupDirective.prototype.ngOnChanges = function (changes) {\n this._checkFormPresent();\n if (StringMapWrapper.contains(changes, 'form')) {\n var sync = composeValidators(this._validators);\n this.form.validator = Validators.compose([this.form.validator, sync]);\n var async = composeAsyncValidators(this._asyncValidators);\n this.form.asyncValidator = Validators.composeAsync([this.form.asyncValidator, async]);\n this._updateDomValue(changes);\n }\n };\n Object.defineProperty(FormGroupDirective.prototype, \"submitted\", {\n get: function () { return this._submitted; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormGroupDirective.prototype, \"formDirective\", {\n get: function () { return this; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormGroupDirective.prototype, \"control\", {\n get: function () { return this.form; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormGroupDirective.prototype, \"path\", {\n get: function () { return []; },\n enumerable: true,\n configurable: true\n });\n FormGroupDirective.prototype.addControl = function (dir) {\n var ctrl = this.form.get(dir.path);\n setUpControl(ctrl, dir);\n ctrl.updateValueAndValidity({ emitEvent: false });\n this.directives.push(dir);\n };\n FormGroupDirective.prototype.getControl = function (dir) { return this.form.get(dir.path); };\n FormGroupDirective.prototype.removeControl = function (dir) { ListWrapper.remove(this.directives, dir); };\n FormGroupDirective.prototype.addFormGroup = function (dir) {\n var ctrl = this.form.get(dir.path);\n setUpFormContainer(ctrl, dir);\n ctrl.updateValueAndValidity({ emitEvent: false });\n };\n FormGroupDirective.prototype.removeFormGroup = function (dir) { };\n FormGroupDirective.prototype.getFormGroup = function (dir) { return this.form.get(dir.path); };\n FormGroupDirective.prototype.addFormArray = function (dir) {\n var ctrl = this.form.get(dir.path);\n setUpFormContainer(ctrl, dir);\n ctrl.updateValueAndValidity({ emitEvent: false });\n };\n FormGroupDirective.prototype.removeFormArray = function (dir) { };\n FormGroupDirective.prototype.getFormArray = function (dir) { return this.form.get(dir.path); };\n FormGroupDirective.prototype.updateModel = function (dir, value) {\n var ctrl = this.form.get(dir.path);\n ctrl.setValue(value);\n };\n FormGroupDirective.prototype.onSubmit = function () {\n this._submitted = true;\n this.ngSubmit.emit(null);\n return false;\n };\n FormGroupDirective.prototype.onReset = function () { this.resetForm(); };\n FormGroupDirective.prototype.resetForm = function (value) {\n if (value === void 0) { value = undefined; }\n this.form.reset(value);\n this._submitted = false;\n };\n /** @internal */\n FormGroupDirective.prototype._updateDomValue = function (changes) {\n var _this = this;\n var oldForm = changes['form'].previousValue;\n this.directives.forEach(function (dir) {\n var newCtrl = _this.form.get(dir.path);\n var oldCtrl = oldForm.get(dir.path);\n if (oldCtrl !== newCtrl) {\n cleanUpControl(oldCtrl, dir);\n if (newCtrl)\n setUpControl(newCtrl, dir);\n }\n });\n this.form._updateTreeValidity({ emitEvent: false });\n };\n FormGroupDirective.prototype._checkFormPresent = function () {\n if (isBlank(this.form)) {\n ReactiveErrors.missingFormException();\n }\n };\n FormGroupDirective.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: '[formGroup]',\n providers: [formDirectiveProvider$1],\n host: { '(submit)': 'onSubmit()', '(reset)': 'onReset()' },\n exportAs: 'ngForm'\n },] },\n ];\n /** @nocollapse */\n FormGroupDirective.ctorParameters = [\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n ];\n FormGroupDirective.propDecorators = {\n 'form': [{ type: _angular_core.Input, args: ['formGroup',] },],\n 'ngSubmit': [{ type: _angular_core.Output },],\n };\n return FormGroupDirective;\n }(ControlContainer));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$12 = (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 };\n var formGroupNameProvider = {\n provide: ControlContainer,\n useExisting: _angular_core.forwardRef(function () { return FormGroupName; })\n };\n /**\n * Syncs an existing form group to a DOM element.\n *\n * This directive can only be used as a child of {@link FormGroupDirective}. It also requires\n * importing the {@link ReactiveFormsModule}.\n *\n * ```typescript\n * @Component({\n * selector: 'my-app',\n * template: `\n * <div>\n * <h2>Angular FormGroup Example</h2>\n * <form [formGroup]=\"myForm\">\n * <div formGroupName=\"name\">\n * <h3>Enter your name:</h3>\n * <p>First: <input formControlName=\"first\"></p>\n * <p>Middle: <input formControlName=\"middle\"></p>\n * <p>Last: <input formControlName=\"last\"></p>\n * </div>\n * <h3>Name value:</h3>\n * <pre>{{ myForm.get('name') | json }}</pre>\n * <p>Name is {{myForm.get('name')?.valid ? \"valid\" : \"invalid\"}}</p>\n * <h3>What's your favorite food?</h3>\n * <p><input formControlName=\"food\"></p>\n * <h3>Form value</h3>\n * <pre> {{ myForm | json }} </pre>\n * </form>\n * </div>\n * `\n * })\n * export class App {\n * myForm = new FormGroup({\n * name: new FormGroup({\n * first: new FormControl('', Validators.required),\n * middle: new FormControl(''),\n * last: new FormControl('', Validators.required)\n * }),\n * food: new FormControl()\n * });\n * }\n * ```\n *\n * This example syncs the form group for the user's name. The value and validation state of\n * this group can be accessed separately from the overall form.\n *\n * @stable\n */\n var FormGroupName = (function (_super) {\n __extends$12(FormGroupName, _super);\n function FormGroupName(parent, validators, asyncValidators) {\n _super.call(this);\n this._parent = parent;\n this._validators = validators;\n this._asyncValidators = asyncValidators;\n }\n /** @internal */\n FormGroupName.prototype._checkParentType = function () {\n if (_hasInvalidParent(this._parent)) {\n ReactiveErrors.groupParentException();\n }\n };\n FormGroupName.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] },] },\n ];\n /** @nocollapse */\n FormGroupName.ctorParameters = [\n { type: ControlContainer, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Host }, { type: _angular_core.SkipSelf },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n ];\n FormGroupName.propDecorators = {\n 'name': [{ type: _angular_core.Input, args: ['formGroupName',] },],\n };\n return FormGroupName;\n }(AbstractFormGroupDirective));\n var formArrayNameProvider = {\n provide: ControlContainer,\n useExisting: _angular_core.forwardRef(function () { return FormArrayName; })\n };\n /**\n * Syncs an existing form array to a DOM element.\n *\n * This directive can only be used as a child of {@link FormGroupDirective}. It also requires\n * importing the {@link ReactiveFormsModule}.\n *\n * ```typescript\n * @Component({\n * selector: 'my-app',\n * template: `\n * <div>\n * <h2>Angular FormArray Example</h2>\n * <form [formGroup]=\"myForm\">\n * <div formArrayName=\"cities\">\n * <div *ngFor=\"let city of cityArray.controls; let i=index\">\n * <input [formControlName]=\"i\">\n * </div>\n * </div>\n * </form>\n * {{ myForm.value | json }} // {cities: ['SF', 'NY']}\n * </div>\n * `\n * })\n * export class App {\n * cityArray = new FormArray([\n * new FormControl('SF'),\n * new FormControl('NY')\n * ]);\n * myForm = new FormGroup({\n * cities: this.cityArray\n * });\n * }\n * ```\n *\n * @stable\n */\n var FormArrayName = (function (_super) {\n __extends$12(FormArrayName, _super);\n function FormArrayName(parent, validators, asyncValidators) {\n _super.call(this);\n this._parent = parent;\n this._validators = validators;\n this._asyncValidators = asyncValidators;\n }\n FormArrayName.prototype.ngOnInit = function () {\n this._checkParentType();\n this.formDirective.addFormArray(this);\n };\n FormArrayName.prototype.ngOnDestroy = function () {\n if (this.formDirective) {\n this.formDirective.removeFormArray(this);\n }\n };\n Object.defineProperty(FormArrayName.prototype, \"control\", {\n get: function () { return this.formDirective.getFormArray(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormArrayName.prototype, \"formDirective\", {\n get: function () {\n return this._parent ? this._parent.formDirective : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormArrayName.prototype, \"path\", {\n get: function () { return controlPath(this.name, this._parent); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormArrayName.prototype, \"validator\", {\n get: function () { return composeValidators(this._validators); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormArrayName.prototype, \"asyncValidator\", {\n get: function () { return composeAsyncValidators(this._asyncValidators); },\n enumerable: true,\n configurable: true\n });\n FormArrayName.prototype._checkParentType = function () {\n if (_hasInvalidParent(this._parent)) {\n ReactiveErrors.arrayParentException();\n }\n };\n FormArrayName.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] },] },\n ];\n /** @nocollapse */\n FormArrayName.ctorParameters = [\n { type: ControlContainer, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Host }, { type: _angular_core.SkipSelf },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n ];\n FormArrayName.propDecorators = {\n 'name': [{ type: _angular_core.Input, args: ['formArrayName',] },],\n };\n return FormArrayName;\n }(ControlContainer));\n function _hasInvalidParent(parent) {\n return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) &&\n !(parent instanceof FormArrayName);\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$10 = (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 };\n var controlNameBinding = {\n provide: NgControl,\n useExisting: _angular_core.forwardRef(function () { return FormControlName; })\n };\n /**\n * Syncs an existing form control with the specified name to a DOM element.\n *\n * This directive can only be used as a child of {@link FormGroupDirective}. It also requires\n * importing the {@link ReactiveFormsModule}.\n\n * ### Example\n *\n * In this example, we create the login and password controls.\n * We can work with each control separately: check its validity, get its value, listen to its\n * changes.\n *\n * ```\n * @Component({\n * selector: \"login-comp\",\n * template: `\n * <form [formGroup]=\"myForm\" (submit)=\"onLogIn()\">\n * Login <input type=\"text\" formControlName=\"login\">\n * <div *ngIf=\"!loginCtrl.valid\">Login is invalid</div>\n * Password <input type=\"password\" formControlName=\"password\">\n * <button type=\"submit\">Log in!</button>\n * </form>\n * `})\n * class LoginComp {\n * loginCtrl = new FormControl();\n * passwordCtrl = new FormControl();\n * myForm = new FormGroup({\n * login: loginCtrl,\n * password: passwordCtrl\n * });\n * onLogIn(): void {\n * // value === {login: 'some login', password: 'some password'}\n * }\n * }\n * ```\n *\n * We can also set the value of the form programmatically using setValue().\n *\n * ```\n * @Component({\n * selector: \"login-comp\",\n * template: `\n * <form [formGroup]=\"myForm\" (submit)='onLogIn()'>\n * Login <input type='text' formControlName='login'>\n * Password <input type='password' formControlName='password'>\n * <button type='submit'>Log in!</button>\n * </form>\n * `})\n * class LoginComp {\n * myForm = new FormGroup({\n * login: new FormControl(),\n * password: new FormControl()\n * });\n *\n * populate() {\n * this.myForm.setValue({login: 'some login', password: 'some password'});\n * }\n *\n * onLogIn(): void {\n * // this.credentials.login === \"some login\"\n * // this.credentials.password === \"some password\"\n * }\n * }\n * ```\n *\n * @stable\n */\n var FormControlName = (function (_super) {\n __extends$10(FormControlName, _super);\n function FormControlName(parent, validators, asyncValidators, valueAccessors) {\n _super.call(this);\n this._added = false;\n this.update = new EventEmitter();\n this._parent = parent;\n this._rawValidators = validators || [];\n this._rawAsyncValidators = asyncValidators || [];\n this.valueAccessor = selectValueAccessor(this, valueAccessors);\n }\n Object.defineProperty(FormControlName.prototype, \"isDisabled\", {\n set: function (isDisabled) { ReactiveErrors.disabledAttrWarning(); },\n enumerable: true,\n configurable: true\n });\n FormControlName.prototype.ngOnChanges = function (changes) {\n if (!this._added) {\n this._checkParentType();\n this.formDirective.addControl(this);\n if (this.control.disabled)\n this.valueAccessor.setDisabledState(true);\n this._added = true;\n }\n if (isPropertyUpdated(changes, this.viewModel)) {\n this.viewModel = this.model;\n this.formDirective.updateModel(this, this.model);\n }\n };\n FormControlName.prototype.ngOnDestroy = function () {\n if (this.formDirective) {\n this.formDirective.removeControl(this);\n }\n };\n FormControlName.prototype.viewToModelUpdate = function (newValue) {\n this.viewModel = newValue;\n this.update.emit(newValue);\n };\n Object.defineProperty(FormControlName.prototype, \"path\", {\n get: function () { return controlPath(this.name, this._parent); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormControlName.prototype, \"formDirective\", {\n get: function () { return this._parent ? this._parent.formDirective : null; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormControlName.prototype, \"validator\", {\n get: function () { return composeValidators(this._rawValidators); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormControlName.prototype, \"asyncValidator\", {\n get: function () {\n return composeAsyncValidators(this._rawAsyncValidators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(FormControlName.prototype, \"control\", {\n get: function () { return this.formDirective.getControl(this); },\n enumerable: true,\n configurable: true\n });\n FormControlName.prototype._checkParentType = function () {\n if (!(this._parent instanceof FormGroupName) &&\n this._parent instanceof AbstractFormGroupDirective) {\n ReactiveErrors.ngModelGroupException();\n }\n else if (!(this._parent instanceof FormGroupName) && !(this._parent instanceof FormGroupDirective) &&\n !(this._parent instanceof FormArrayName)) {\n ReactiveErrors.controlParentException();\n }\n };\n FormControlName.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[formControlName]', providers: [controlNameBinding] },] },\n ];\n /** @nocollapse */\n FormControlName.ctorParameters = [\n { type: ControlContainer, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Host }, { type: _angular_core.SkipSelf },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_ASYNC_VALIDATORS,] },] },\n { type: Array, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Self }, { type: _angular_core.Inject, args: [NG_VALUE_ACCESSOR,] },] },\n ];\n FormControlName.propDecorators = {\n 'name': [{ type: _angular_core.Input, args: ['formControlName',] },],\n 'model': [{ type: _angular_core.Input, args: ['ngModel',] },],\n 'update': [{ type: _angular_core.Output, args: ['ngModelChange',] },],\n 'isDisabled': [{ type: _angular_core.Input, args: ['disabled',] },],\n };\n return FormControlName;\n }(NgControl));\n\n var REQUIRED_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: _angular_core.forwardRef(function () { return RequiredValidator; }),\n multi: true\n };\n /**\n * A Directive that adds the `required` validator to any controls marked with the\n * `required` attribute, via the {@link NG_VALIDATORS} binding.\n *\n * ### Example\n *\n * ```\n * <input name=\"fullName\" ngModel required>\n * ```\n *\n * @stable\n */\n var RequiredValidator = (function () {\n function RequiredValidator() {\n }\n Object.defineProperty(RequiredValidator.prototype, \"required\", {\n get: function () { return this._required; },\n set: function (value) {\n this._required = isPresent(value) && \"\" + value !== 'false';\n if (this._onChange)\n this._onChange();\n },\n enumerable: true,\n configurable: true\n });\n RequiredValidator.prototype.validate = function (c) {\n return this.required ? Validators.required(c) : null;\n };\n RequiredValidator.prototype.registerOnChange = function (fn) { this._onChange = fn; };\n RequiredValidator.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: '[required][formControlName],[required][formControl],[required][ngModel]',\n providers: [REQUIRED_VALIDATOR],\n host: { '[attr.required]': 'required? \"\" : null' }\n },] },\n ];\n /** @nocollapse */\n RequiredValidator.ctorParameters = [];\n RequiredValidator.propDecorators = {\n 'required': [{ type: _angular_core.Input },],\n };\n return RequiredValidator;\n }());\n /**\n * Provider which adds {@link MinLengthValidator} to {@link NG_VALIDATORS}.\n *\n * ## Example:\n *\n * {@example common/forms/ts/validators/validators.ts region='min'}\n */\n var MIN_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: _angular_core.forwardRef(function () { return MinLengthValidator; }),\n multi: true\n };\n /**\n * A directive which installs the {@link MinLengthValidator} for any `formControlName`,\n * `formControl`, or control with `ngModel` that also has a `minlength` attribute.\n *\n * @stable\n */\n var MinLengthValidator = (function () {\n function MinLengthValidator() {\n }\n MinLengthValidator.prototype._createValidator = function () {\n this._validator = Validators.minLength(parseInt(this.minlength, 10));\n };\n MinLengthValidator.prototype.ngOnChanges = function (changes) {\n if (changes['minlength']) {\n this._createValidator();\n if (this._onChange)\n this._onChange();\n }\n };\n MinLengthValidator.prototype.validate = function (c) {\n return isPresent(this.minlength) ? this._validator(c) : null;\n };\n MinLengthValidator.prototype.registerOnChange = function (fn) { this._onChange = fn; };\n MinLengthValidator.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',\n providers: [MIN_LENGTH_VALIDATOR],\n host: { '[attr.minlength]': 'minlength? minlength : null' }\n },] },\n ];\n /** @nocollapse */\n MinLengthValidator.ctorParameters = [];\n MinLengthValidator.propDecorators = {\n 'minlength': [{ type: _angular_core.Input },],\n };\n return MinLengthValidator;\n }());\n /**\n * Provider which adds {@link MaxLengthValidator} to {@link NG_VALIDATORS}.\n *\n * ## Example:\n *\n * {@example common/forms/ts/validators/validators.ts region='max'}\n */\n var MAX_LENGTH_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: _angular_core.forwardRef(function () { return MaxLengthValidator; }),\n multi: true\n };\n /**\n * A directive which installs the {@link MaxLengthValidator} for any `formControlName,\n * `formControl`,\n * or control with `ngModel` that also has a `maxlength` attribute.\n *\n * @stable\n */\n var MaxLengthValidator = (function () {\n function MaxLengthValidator() {\n }\n MaxLengthValidator.prototype._createValidator = function () {\n this._validator = Validators.maxLength(parseInt(this.maxlength, 10));\n };\n MaxLengthValidator.prototype.ngOnChanges = function (changes) {\n if (changes['maxlength']) {\n this._createValidator();\n if (this._onChange)\n this._onChange();\n }\n };\n MaxLengthValidator.prototype.validate = function (c) {\n return isPresent(this.maxlength) ? this._validator(c) : null;\n };\n MaxLengthValidator.prototype.registerOnChange = function (fn) { this._onChange = fn; };\n MaxLengthValidator.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',\n providers: [MAX_LENGTH_VALIDATOR],\n host: { '[attr.maxlength]': 'maxlength? maxlength : null' }\n },] },\n ];\n /** @nocollapse */\n MaxLengthValidator.ctorParameters = [];\n MaxLengthValidator.propDecorators = {\n 'maxlength': [{ type: _angular_core.Input },],\n };\n return MaxLengthValidator;\n }());\n var PATTERN_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: _angular_core.forwardRef(function () { return PatternValidator; }),\n multi: true\n };\n /**\n * A Directive that adds the `pattern` validator to any controls marked with the\n * `pattern` attribute, via the {@link NG_VALIDATORS} binding. Uses attribute value\n * as the regex to validate Control value against. Follows pattern attribute\n * semantics; i.e. regex must match entire Control value.\n *\n * ### Example\n *\n * ```\n * <input [name]=\"fullName\" pattern=\"[a-zA-Z ]*\" ngModel>\n * ```\n * @stable\n */\n var PatternValidator = (function () {\n function PatternValidator() {\n }\n PatternValidator.prototype._createValidator = function () { this._validator = Validators.pattern(this.pattern); };\n PatternValidator.prototype.ngOnChanges = function (changes) {\n if (changes['pattern']) {\n this._createValidator();\n if (this._onChange)\n this._onChange();\n }\n };\n PatternValidator.prototype.validate = function (c) {\n return isPresent(this.pattern) ? this._validator(c) : null;\n };\n PatternValidator.prototype.registerOnChange = function (fn) { this._onChange = fn; };\n PatternValidator.decorators = [\n { type: _angular_core.Directive, args: [{\n selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',\n providers: [PATTERN_VALIDATOR],\n host: { '[attr.pattern]': 'pattern? pattern : null' }\n },] },\n ];\n /** @nocollapse */\n PatternValidator.ctorParameters = [];\n PatternValidator.propDecorators = {\n 'pattern': [{ type: _angular_core.Input },],\n };\n return PatternValidator;\n }());\n\n /**\n * Creates a form object from a user-specified configuration.\n *\n * ```typescript\n * @Component({\n * selector: 'my-app',\n * template: `\n * <form [formGroup]=\"loginForm\">\n * <p>Login <input formControlName=\"login\"></p>\n * <div formGroupName=\"passwordRetry\">\n * <p>Password <input type=\"password\" formControlName=\"password\"></p>\n * <p>Confirm password <input type=\"password\" formControlName=\"passwordConfirmation\"></p>\n * </div>\n * </form>\n * <h3>Form value:</h3>\n * <pre>{{value}}</pre>\n * `,\n * directives: [REACTIVE_FORM_DIRECTIVES]\n * })\n * export class App {\n * loginForm: FormGroup;\n *\n * constructor(builder: FormBuilder) {\n * this.loginForm = builder.group({\n * login: [\"\", Validators.required],\n * passwordRetry: builder.group({\n * password: [\"\", Validators.required],\n * passwordConfirmation: [\"\", Validators.required, asyncValidator]\n * })\n * });\n * }\n *\n * get value(): string {\n * return JSON.stringify(this.loginForm.value, null, 2);\n * }\n * }\n * ```\n *\n * @stable\n */\n var FormBuilder = (function () {\n function FormBuilder() {\n }\n /**\n * Construct a new {@link FormGroup} with the given map of configuration.\n * Valid keys for the `extra` parameter map are `optionals` and `validator`.\n *\n * See the {@link FormGroup} constructor for more details.\n */\n FormBuilder.prototype.group = function (controlsConfig, extra) {\n if (extra === void 0) { extra = null; }\n var controls = this._reduceControls(controlsConfig);\n var validator = isPresent(extra) ? StringMapWrapper.get(extra, 'validator') : null;\n var asyncValidator = isPresent(extra) ? StringMapWrapper.get(extra, 'asyncValidator') : null;\n return new FormGroup(controls, validator, asyncValidator);\n };\n /**\n * Construct a new {@link FormControl} with the given `formState`,`validator`, and\n * `asyncValidator`.\n */\n FormBuilder.prototype.control = function (formState, validator, asyncValidator) {\n if (validator === void 0) { validator = null; }\n if (asyncValidator === void 0) { asyncValidator = null; }\n return new FormControl(formState, validator, asyncValidator);\n };\n /**\n * Construct an array of {@link FormControl}s from the given `controlsConfig` array of\n * configuration, with the given optional `validator` and `asyncValidator`.\n */\n FormBuilder.prototype.array = function (controlsConfig, validator, asyncValidator) {\n var _this = this;\n if (validator === void 0) { validator = null; }\n if (asyncValidator === void 0) { asyncValidator = null; }\n var controls = controlsConfig.map(function (c) { return _this._createControl(c); });\n return new FormArray(controls, validator, asyncValidator);\n };\n /** @internal */\n FormBuilder.prototype._reduceControls = function (controlsConfig) {\n var _this = this;\n var controls = {};\n StringMapWrapper.forEach(controlsConfig, function (controlConfig, controlName) {\n controls[controlName] = _this._createControl(controlConfig);\n });\n return controls;\n };\n /** @internal */\n FormBuilder.prototype._createControl = function (controlConfig) {\n if (controlConfig instanceof FormControl || controlConfig instanceof FormGroup ||\n controlConfig instanceof FormArray) {\n return controlConfig;\n }\n else if (isArray(controlConfig)) {\n var value = controlConfig[0];\n var validator = controlConfig.length > 1 ? controlConfig[1] : null;\n var asyncValidator = controlConfig.length > 2 ? controlConfig[2] : null;\n return this.control(value, validator, asyncValidator);\n }\n else {\n return this.control(controlConfig);\n }\n };\n FormBuilder.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n FormBuilder.ctorParameters = [];\n return FormBuilder;\n }());\n\n var SHARED_FORM_DIRECTIVES = [\n NgSelectOption, NgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor,\n CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor,\n RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator,\n MinLengthValidator, MaxLengthValidator, PatternValidator\n ];\n var TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];\n var REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];\n /**\n * Internal module used for sharing directives between FormsModule and ReactiveFormsModule\n */\n var InternalFormsSharedModule = (function () {\n function InternalFormsSharedModule() {\n }\n InternalFormsSharedModule.decorators = [\n { type: _angular_core.NgModule, args: [{ declarations: SHARED_FORM_DIRECTIVES, exports: SHARED_FORM_DIRECTIVES },] },\n ];\n /** @nocollapse */\n InternalFormsSharedModule.ctorParameters = [];\n return InternalFormsSharedModule;\n }());\n\n /**\n * The ng module for forms.\n * @stable\n */\n var FormsModule = (function () {\n function FormsModule() {\n }\n FormsModule.decorators = [\n { type: _angular_core.NgModule, args: [{\n declarations: TEMPLATE_DRIVEN_DIRECTIVES,\n providers: [RadioControlRegistry],\n exports: [InternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]\n },] },\n ];\n /** @nocollapse */\n FormsModule.ctorParameters = [];\n return FormsModule;\n }());\n /**\n * The ng module for reactive forms.\n * @stable\n */\n var ReactiveFormsModule = (function () {\n function ReactiveFormsModule() {\n }\n ReactiveFormsModule.decorators = [\n { type: _angular_core.NgModule, args: [{\n declarations: [REACTIVE_DRIVEN_DIRECTIVES],\n providers: [FormBuilder, RadioControlRegistry],\n exports: [InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]\n },] },\n ];\n /** @nocollapse */\n ReactiveFormsModule.ctorParameters = [];\n return ReactiveFormsModule;\n }());\n\n exports.AbstractControlDirective = AbstractControlDirective;\n exports.AbstractFormGroupDirective = AbstractFormGroupDirective;\n exports.CheckboxControlValueAccessor = CheckboxControlValueAccessor;\n exports.ControlContainer = ControlContainer;\n exports.NG_VALUE_ACCESSOR = NG_VALUE_ACCESSOR;\n exports.DefaultValueAccessor = DefaultValueAccessor;\n exports.NgControl = NgControl;\n exports.NgControlStatus = NgControlStatus;\n exports.NgControlStatusGroup = NgControlStatusGroup;\n exports.NgForm = NgForm;\n exports.NgModel = NgModel;\n exports.NgModelGroup = NgModelGroup;\n exports.FormControlDirective = FormControlDirective;\n exports.FormControlName = FormControlName;\n exports.FormGroupDirective = FormGroupDirective;\n exports.FormArrayName = FormArrayName;\n exports.FormGroupName = FormGroupName;\n exports.NgSelectOption = NgSelectOption;\n exports.SelectControlValueAccessor = SelectControlValueAccessor;\n exports.SelectMultipleControlValueAccessor = SelectMultipleControlValueAccessor;\n exports.MaxLengthValidator = MaxLengthValidator;\n exports.MinLengthValidator = MinLengthValidator;\n exports.PatternValidator = PatternValidator;\n exports.RequiredValidator = RequiredValidator;\n exports.FormBuilder = FormBuilder;\n exports.AbstractControl = AbstractControl;\n exports.FormArray = FormArray;\n exports.FormControl = FormControl;\n exports.FormGroup = FormGroup;\n exports.NG_ASYNC_VALIDATORS = NG_ASYNC_VALIDATORS;\n exports.NG_VALIDATORS = NG_VALIDATORS;\n exports.Validators = Validators;\n exports.FormsModule = FormsModule;\n exports.ReactiveFormsModule = ReactiveFormsModule;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/forms/bundles/forms.umd.js\n ** module id = 335\n ** module chunks = 0\n **/","\"use strict\";\nvar root_1 = require('../util/root');\n/**\n * @param PromiseCtor\n * @return {Promise<T>}\n * @method toPromise\n * @owner Observable\n */\nfunction toPromise(PromiseCtor) {\n var _this = this;\n if (!PromiseCtor) {\n if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) {\n PromiseCtor = root_1.root.Rx.config.Promise;\n }\n else if (root_1.root.Promise) {\n PromiseCtor = root_1.root.Promise;\n }\n }\n if (!PromiseCtor) {\n throw new Error('no Promise impl found');\n }\n return new PromiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n}\nexports.toPromise = toPromise;\n//# sourceMappingURL=toPromise.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/toPromise.js\n ** module id = 336\n ** module chunks = 0\n **/","\"use strict\";\nvar PromiseObservable_1 = require('./PromiseObservable');\nexports.fromPromise = PromiseObservable_1.PromiseObservable.create;\n//# sourceMappingURL=fromPromise.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/fromPromise.js\n ** module id = 337\n ** module chunks = 0\n **/","\"use strict\";\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 root_1 = require('../util/root');\nvar Observable_1 = require('../Observable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar PromiseObservable = (function (_super) {\n __extends(PromiseObservable, _super);\n function PromiseObservable(promise, scheduler) {\n _super.call(this);\n this.promise = promise;\n this.scheduler = scheduler;\n }\n /**\n * Converts a Promise to an Observable.\n *\n * <span class=\"informal\">Returns an Observable that just emits the Promise's\n * resolved value, then completes.</span>\n *\n * Converts an ES2015 Promise or a Promises/A+ spec compliant Promise to an\n * Observable. If the Promise resolves with a value, the output Observable\n * emits that resolved value as a `next`, and then completes. If the Promise\n * is rejected, then the output Observable emits the corresponding Error.\n *\n * @example <caption>Convert the Promise returned by Fetch to an Observable</caption>\n * var result = Rx.Observable.fromPromise(fetch('http://myserver.com/'));\n * result.subscribe(x => console.log(x), e => console.error(e));\n *\n * @see {@link bindCallback}\n * @see {@link from}\n *\n * @param {Promise<T>} promise The promise to be converted.\n * @param {Scheduler} [scheduler] An optional Scheduler to use for scheduling\n * the delivery of the resolved value (or the rejection).\n * @return {Observable<T>} An Observable which wraps the Promise.\n * @static true\n * @name fromPromise\n * @owner Observable\n */\n PromiseObservable.create = function (promise, scheduler) {\n return new PromiseObservable(promise, scheduler);\n };\n PromiseObservable.prototype._subscribe = function (subscriber) {\n var _this = this;\n var promise = this.promise;\n var scheduler = this.scheduler;\n if (scheduler == null) {\n if (this._isScalar) {\n if (!subscriber.closed) {\n subscriber.next(this.value);\n subscriber.complete();\n }\n }\n else {\n promise.then(function (value) {\n _this.value = value;\n _this._isScalar = true;\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, function (err) {\n if (!subscriber.closed) {\n subscriber.error(err);\n }\n })\n .then(null, function (err) {\n // escape the promise trap, throw unhandled errors\n root_1.root.setTimeout(function () { throw err; });\n });\n }\n }\n else {\n if (this._isScalar) {\n if (!subscriber.closed) {\n return scheduler.schedule(dispatchNext, 0, { value: this.value, subscriber: subscriber });\n }\n }\n else {\n promise.then(function (value) {\n _this.value = value;\n _this._isScalar = true;\n if (!subscriber.closed) {\n subscriber.add(scheduler.schedule(dispatchNext, 0, { value: value, subscriber: subscriber }));\n }\n }, function (err) {\n if (!subscriber.closed) {\n subscriber.add(scheduler.schedule(dispatchError, 0, { err: err, subscriber: subscriber }));\n }\n })\n .then(null, function (err) {\n // escape the promise trap, throw unhandled errors\n root_1.root.setTimeout(function () { throw err; });\n });\n }\n }\n };\n return PromiseObservable;\n}(Observable_1.Observable));\nexports.PromiseObservable = PromiseObservable;\nfunction dispatchNext(arg) {\n var value = arg.value, subscriber = arg.subscriber;\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n}\nfunction dispatchError(arg) {\n var err = arg.err, subscriber = arg.subscriber;\n if (!subscriber.closed) {\n subscriber.error(err);\n }\n}\n//# sourceMappingURL=PromiseObservable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/PromiseObservable.js\n ** module id = 338\n ** module chunks = 0\n **/","import { Component, ElementRef } from '@angular/core';\r\nimport { HelperService } from '../../core/services/utility/utility.service';\r\n\r\n@Component({\r\n selector: 'content-raven',\r\n templateUrl: 'app/core/components/app.component.html'\r\n})\r\nexport class AppComponent {\r\n hideHeaderSection: boolean = true;\r\n hideFooterSection: boolean = true;\r\n constructor(private elementRef: ElementRef, private helper: HelperService) { }\r\n ngOnInit() {\r\n this.helper.myHeaderShowHide.subscribe(\r\n data => {\r\n this.hideHeaderSection = data;\r\n }\r\n );\r\n this.helper.myFooterShowHide.subscribe(\r\n data => {\r\n this.hideFooterSection = data;\r\n }\r\n );\r\n }\r\n ngAfterViewInit() {\r\n var s = document.createElement(\"script\");\r\n s.type = \"text/javascript\";\r\n s.src = \"app/assets/js/main.js\";\r\n this.elementRef.nativeElement.appendChild(s);\r\n }\r\n}\r\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/components/app.component.ts\n **/","import { Injectable, EventEmitter } from '@angular/core';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { SaveUserData } from '../../../core/components/app.user.data';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\nimport { AdminSwitchService } from '../../services/adminSwitch/adminswitch.service';\r\n\r\n\r\ndeclare var $: any;\r\n@Injectable()\r\nexport class HelperService {\r\n constructor(private _http: Http, private userData: SaveUserData, private config: ApiWebConfig, private apiService: ApiServices, private adminSwitch: AdminSwitchService) { }\r\n\r\n myHeaderShowHide = new EventEmitter();\r\n myFooterShowHide = new EventEmitter();\r\n errorMessage = new EventEmitter();\r\n //Generating Rating Stars\r\n ratings(num, activeClass) {\r\n var vidRating = num,\r\n structure = '',\r\n totalRating = 5,\r\n rateStruct = '';\r\n for (var i = 0; i < totalRating; i++) {\r\n var ratingCount = i + 1;\r\n if (i < vidRating) {\r\n structure += '<span rel=\"' + ratingCount + '\" class=\"' + activeClass + '\"></span>';\r\n } else {\r\n structure += '<span rel=\"' + ratingCount + '\"></span>';\r\n }\r\n }\r\n return structure;\r\n }\r\n\r\n //Fav\r\n favUrl = this.config.apiUrl + \"vmhome/favoritecontent\";\r\n ratingUrl = this.config.apiUrl + \"vmhome/addratingsforcontent\";\r\n //launchurl = this.config.apiUrl+\"launchcontentdetails/launchurl\";\r\n postLaunchUrl = this.config.apiUrl + 'learningpathuser/dtclaunchurl';\r\n postdescription = this.config.apiUrl + 'description/getdescription';\r\n\r\n favbtnFun(favBtn, Id, iscrcontent, SetAccessId, issearchbycontent) {\r\n var issearchByContent = issearchbycontent == 1 ? 1 : 0;\r\n var jsonData = { \"orgid\": this.userData.orgId, \"userid\": this.userData.userId, \"contentid\": Id, \"iscrcontent\": iscrcontent, \"setaccessid\": SetAccessId, \"issearchbycontent\": issearchByContent };\r\n\r\n return this.apiService.postApiData(this.favUrl, jsonData);\r\n }\r\n\r\n ratingAry = new Array(5);\r\n ratingFun(rating, Id, iscrcontent, issearchbycontent) {\r\n var issearchByContent = issearchbycontent == 1 ? 1 : 0;\r\n var jsonData = { \"orgid\": this.userData.orgId, \"userid\": this.userData.userId, \"contentid\": Id, \"rating\": rating, \"iscrcontent\": iscrcontent, \"issearchbycontent\": issearchByContent };\r\n\r\n return this.apiService.postApiData(this.ratingUrl, jsonData);\r\n }\r\n\r\n launchurlFun(eleParent, ProductId, PermissionId, SetAccessId, IsCrContent, ChannelId) {\r\n // if(this.userData.loginStatus=='1') {\r\n // PermissionId = this.userData.PermissionId;\r\n // }\r\n if (this.userData.loginStatus == '2') {\r\n if (this.userData.PermissionId > 0) {\r\n PermissionId = this.userData.PermissionId;\r\n }\r\n }\r\n \r\n // console.log('PermissionId: '+PermissionId);\r\n \r\n var jsonData = { \"ContentId\": ProductId, \"LearningPathId\": \"-1\", \"ContentMode\": IsCrContent, \"UserEmail\": this.userData.userEmail, \"OrgId\": this.userData.orgId, \"PermissionId\": PermissionId, \"channelId\": ChannelId, \"dtcid\": this.userData.launchDtcId };\r\n console.log(JSON.stringify(jsonData));\r\n return this.apiService.postApiData(this.postLaunchUrl, jsonData);\r\n }\r\n\r\n contentResize(className: any) {\r\n setTimeout(() => {\r\n var maxHeight = 0;\r\n $(className).css('height', 'auto');\r\n $(className).each(function () {\r\n if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }\r\n });\r\n $(className).css('height', maxHeight + 5);\r\n }, 10);\r\n }\r\n\r\n getdescription(contentId, ChannelId, IsCrContent, islab){\r\n //if(islab==1){ IsCrContent = 2; }\r\n var jsonData = {\r\n \"ContentId\": contentId,\r\n \"ChannelId\": ChannelId,\r\n \"IsCrContent\": IsCrContent\r\n };\r\n console.log(jsonData);\r\n return this.apiService.postApiData(this.postdescription, jsonData);\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/utility/utility.service.ts\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/Observable'), require('@angular/platform-browser')) :\n typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'rxjs/Observable', '@angular/platform-browser'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.http = global.ng.http || {}),global.ng.core,global.Rx,global.ng.platformBrowser));\n}(this, function (exports,_angular_core,rxjs_Observable,_angular_platformBrowser) { 'use strict';\n\n /**\n * A backend for http that uses the `XMLHttpRequest` browser API.\n *\n * Take care not to evaluate this in non-browser contexts.\n *\n * @experimental\n */\n var BrowserXhr = (function () {\n function BrowserXhr() {\n }\n BrowserXhr.prototype.build = function () { return (new XMLHttpRequest()); };\n BrowserXhr.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n BrowserXhr.ctorParameters = [];\n return BrowserXhr;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var globalScope;\n if (typeof window === 'undefined') {\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\n globalScope = self;\n }\n else {\n globalScope = global;\n }\n }\n else {\n globalScope = window;\n }\n // Need to declare a new variable for global here since TypeScript\n // exports the original value of the symbol.\n var global$1 = globalScope;\n // TODO: remove calls to assert in production environment\n // Note: Can't just export this and import in in other files\n // as `assert` is a reserved keyword in Dart\n global$1.assert = function assert(condition) {\n // TODO: to be fixed properly via #2830, noop for now\n };\n function isPresent(obj) {\n return obj !== undefined && obj !== null;\n }\n function isBlank(obj) {\n return obj === undefined || obj === null;\n }\n function isString(obj) {\n return typeof obj === 'string';\n }\n function isArray(obj) {\n return Array.isArray(obj);\n }\n var StringWrapper = (function () {\n function StringWrapper() {\n }\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\n StringWrapper.equals = function (s, s2) { return s === s2; };\n StringWrapper.stripLeft = function (s, charVal) {\n if (s && s.length) {\n var pos = 0;\n for (var i = 0; i < s.length; i++) {\n if (s[i] != charVal)\n break;\n pos++;\n }\n s = s.substring(pos);\n }\n return s;\n };\n StringWrapper.stripRight = function (s, charVal) {\n if (s && s.length) {\n var pos = s.length;\n for (var i = s.length - 1; i >= 0; i--) {\n if (s[i] != charVal)\n break;\n pos--;\n }\n s = s.substring(0, pos);\n }\n return s;\n };\n StringWrapper.replace = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.replaceAll = function (s, from, replace) {\n return s.replace(from, replace);\n };\n StringWrapper.slice = function (s, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return s.slice(from, to === null ? undefined : to);\n };\n StringWrapper.replaceAllMapped = function (s, from, cb) {\n return s.replace(from, function () {\n var matches = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n matches[_i - 0] = arguments[_i];\n }\n // Remove offset & string from the result array\n matches.splice(-2, 2);\n // The callback receives match, p1, ..., pn\n return cb(matches);\n });\n };\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\n StringWrapper.compare = function (a, b) {\n if (a < b) {\n return -1;\n }\n else if (a > b) {\n return 1;\n }\n else {\n return 0;\n }\n };\n return StringWrapper;\n }());\n var NumberWrapper = (function () {\n function NumberWrapper() {\n }\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\n NumberWrapper.equal = function (a, b) { return a === b; };\n NumberWrapper.parseIntAutoRadix = function (text) {\n var result = parseInt(text);\n if (isNaN(result)) {\n throw new Error('Invalid integer literal when parsing ' + text);\n }\n return result;\n };\n NumberWrapper.parseInt = function (text, radix) {\n if (radix == 10) {\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else if (radix == 16) {\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\n return parseInt(text, radix);\n }\n }\n else {\n var result = parseInt(text, radix);\n if (!isNaN(result)) {\n return result;\n }\n }\n throw new Error('Invalid integer literal when parsing ' + text + ' in base ' + radix);\n };\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\n Object.defineProperty(NumberWrapper, \"NaN\", {\n get: function () { return NaN; },\n enumerable: true,\n configurable: true\n });\n NumberWrapper.isNumeric = function (value) { return !isNaN(value - parseFloat(value)); };\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\n return NumberWrapper;\n }());\n function isJsObject(o) {\n return o !== null && (typeof o === 'function' || typeof o === 'object');\n }\n // Can't be all uppercase as our transpiler would think it is a special directive...\n var Json = (function () {\n function Json() {\n }\n Json.parse = function (s) { return global$1.JSON.parse(s); };\n Json.stringify = function (data) {\n // Dart doesn't take 3 arguments\n return global$1.JSON.stringify(data, null, 2);\n };\n return Json;\n }());\n var _symbolIterator = null;\n function getSymbolIterator() {\n if (isBlank(_symbolIterator)) {\n if (isPresent(globalScope.Symbol) && isPresent(Symbol.iterator)) {\n _symbolIterator = Symbol.iterator;\n }\n else {\n // es6-shim specific logic\n var keys = Object.getOwnPropertyNames(Map.prototype);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (key !== 'entries' && key !== 'size' &&\n Map.prototype[key] === Map.prototype['entries']) {\n _symbolIterator = key;\n }\n }\n }\n }\n return _symbolIterator;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Supported http methods.\n * @experimental\n */\n exports.RequestMethod;\n (function (RequestMethod) {\n RequestMethod[RequestMethod[\"Get\"] = 0] = \"Get\";\n RequestMethod[RequestMethod[\"Post\"] = 1] = \"Post\";\n RequestMethod[RequestMethod[\"Put\"] = 2] = \"Put\";\n RequestMethod[RequestMethod[\"Delete\"] = 3] = \"Delete\";\n RequestMethod[RequestMethod[\"Options\"] = 4] = \"Options\";\n RequestMethod[RequestMethod[\"Head\"] = 5] = \"Head\";\n RequestMethod[RequestMethod[\"Patch\"] = 6] = \"Patch\";\n })(exports.RequestMethod || (exports.RequestMethod = {}));\n /**\n * All possible states in which a connection can be, based on\n * [States](http://www.w3.org/TR/XMLHttpRequest/#states) from the `XMLHttpRequest` spec, but with an\n * additional \"CANCELLED\" state.\n * @experimental\n */\n exports.ReadyState;\n (function (ReadyState) {\n ReadyState[ReadyState[\"Unsent\"] = 0] = \"Unsent\";\n ReadyState[ReadyState[\"Open\"] = 1] = \"Open\";\n ReadyState[ReadyState[\"HeadersReceived\"] = 2] = \"HeadersReceived\";\n ReadyState[ReadyState[\"Loading\"] = 3] = \"Loading\";\n ReadyState[ReadyState[\"Done\"] = 4] = \"Done\";\n ReadyState[ReadyState[\"Cancelled\"] = 5] = \"Cancelled\";\n })(exports.ReadyState || (exports.ReadyState = {}));\n /**\n * Acceptable response types to be associated with a {@link Response}, based on\n * [ResponseType](https://fetch.spec.whatwg.org/#responsetype) from the Fetch spec.\n * @experimental\n */\n exports.ResponseType;\n (function (ResponseType) {\n ResponseType[ResponseType[\"Basic\"] = 0] = \"Basic\";\n ResponseType[ResponseType[\"Cors\"] = 1] = \"Cors\";\n ResponseType[ResponseType[\"Default\"] = 2] = \"Default\";\n ResponseType[ResponseType[\"Error\"] = 3] = \"Error\";\n ResponseType[ResponseType[\"Opaque\"] = 4] = \"Opaque\";\n })(exports.ResponseType || (exports.ResponseType = {}));\n /**\n * Supported content type to be automatically associated with a {@link Request}.\n * @experimental\n */\n var ContentType;\n (function (ContentType) {\n ContentType[ContentType[\"NONE\"] = 0] = \"NONE\";\n ContentType[ContentType[\"JSON\"] = 1] = \"JSON\";\n ContentType[ContentType[\"FORM\"] = 2] = \"FORM\";\n ContentType[ContentType[\"FORM_DATA\"] = 3] = \"FORM_DATA\";\n ContentType[ContentType[\"TEXT\"] = 4] = \"TEXT\";\n ContentType[ContentType[\"BLOB\"] = 5] = \"BLOB\";\n ContentType[ContentType[\"ARRAY_BUFFER\"] = 6] = \"ARRAY_BUFFER\";\n })(ContentType || (ContentType = {}));\n /**\n * Define which buffer to use to store the response\n * @experimental\n */\n exports.ResponseContentType;\n (function (ResponseContentType) {\n ResponseContentType[ResponseContentType[\"Text\"] = 0] = \"Text\";\n ResponseContentType[ResponseContentType[\"Json\"] = 1] = \"Json\";\n ResponseContentType[ResponseContentType[\"ArrayBuffer\"] = 2] = \"ArrayBuffer\";\n ResponseContentType[ResponseContentType[\"Blob\"] = 3] = \"Blob\";\n })(exports.ResponseContentType || (exports.ResponseContentType = {}));\n\n var Map$1 = global$1.Map;\n var Set = global$1.Set;\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Map constructor. We work around that by manually adding the items.\n var createMapFromPairs = (function () {\n try {\n if (new Map$1([[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs) { return new Map$1(pairs); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromPairs(pairs) {\n var map = new Map$1();\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n map.set(pair[0], pair[1]);\n }\n return map;\n };\n })();\n var createMapFromMap = (function () {\n try {\n if (new Map$1(new Map$1())) {\n return function createMapFromMap(m) { return new Map$1(m); };\n }\n }\n catch (e) {\n }\n return function createMapAndPopulateFromMap(m) {\n var map = new Map$1();\n m.forEach(function (v, k) { map.set(k, v); });\n return map;\n };\n })();\n var _clearValues = (function () {\n if ((new Map$1()).keys().next) {\n return function _clearValues(m) {\n var keyIterator = m.keys();\n var k;\n while (!((k = keyIterator.next()).done)) {\n m.set(k.value, null);\n }\n };\n }\n else {\n return function _clearValuesWithForeEach(m) {\n m.forEach(function (v, k) { m.set(k, null); });\n };\n }\n })();\n // Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\n // TODO(mlaval): remove the work around once we have a working polyfill of Array.from\n var _arrayFromMap = (function () {\n try {\n if ((new Map$1()).values().next) {\n return function createArrayFromMap(m, getValues) {\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\n };\n }\n }\n catch (e) {\n }\n return function createArrayFromMapWithForeach(m, getValues) {\n var res = ListWrapper.createFixedSize(m.size), i = 0;\n m.forEach(function (v, k) {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n })();\n var MapWrapper = (function () {\n function MapWrapper() {\n }\n MapWrapper.clone = function (m) { return createMapFromMap(m); };\n MapWrapper.createFromStringMap = function (stringMap) {\n var result = new Map$1();\n for (var prop in stringMap) {\n result.set(prop, stringMap[prop]);\n }\n return result;\n };\n MapWrapper.toStringMap = function (m) {\n var r = {};\n m.forEach(function (v, k) { return r[k] = v; });\n return r;\n };\n MapWrapper.createFromPairs = function (pairs) { return createMapFromPairs(pairs); };\n MapWrapper.clearValues = function (m) { _clearValues(m); };\n MapWrapper.iterable = function (m) { return m; };\n MapWrapper.keys = function (m) { return _arrayFromMap(m, false); };\n MapWrapper.values = function (m) { return _arrayFromMap(m, true); };\n return MapWrapper;\n }());\n /**\n * Wraps Javascript Objects\n */\n var StringMapWrapper = (function () {\n function StringMapWrapper() {\n }\n StringMapWrapper.create = function () {\n // Note: We are not using Object.create(null) here due to\n // performance!\n // http://jsperf.com/ng2-object-create-null\n return {};\n };\n StringMapWrapper.contains = function (map, key) {\n return map.hasOwnProperty(key);\n };\n StringMapWrapper.get = function (map, key) {\n return map.hasOwnProperty(key) ? map[key] : undefined;\n };\n StringMapWrapper.set = function (map, key, value) { map[key] = value; };\n StringMapWrapper.keys = function (map) { return Object.keys(map); };\n StringMapWrapper.values = function (map) {\n return Object.keys(map).map(function (k) { return map[k]; });\n };\n StringMapWrapper.isEmpty = function (map) {\n for (var prop in map) {\n return false;\n }\n return true;\n };\n StringMapWrapper.delete = function (map, key) { delete map[key]; };\n StringMapWrapper.forEach = function (map, callback) {\n for (var _i = 0, _a = Object.keys(map); _i < _a.length; _i++) {\n var k = _a[_i];\n callback(map[k], k);\n }\n };\n StringMapWrapper.merge = function (m1, m2) {\n var m = {};\n for (var _i = 0, _a = Object.keys(m1); _i < _a.length; _i++) {\n var k = _a[_i];\n m[k] = m1[k];\n }\n for (var _b = 0, _c = Object.keys(m2); _b < _c.length; _b++) {\n var k = _c[_b];\n m[k] = m2[k];\n }\n return m;\n };\n StringMapWrapper.equals = function (m1, m2) {\n var k1 = Object.keys(m1);\n var k2 = Object.keys(m2);\n if (k1.length != k2.length) {\n return false;\n }\n var key;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (m1[key] !== m2[key]) {\n return false;\n }\n }\n return true;\n };\n return StringMapWrapper;\n }());\n var ListWrapper = (function () {\n function ListWrapper() {\n }\n // JS has no way to express a statically fixed size list, but dart does so we\n // keep both methods.\n ListWrapper.createFixedSize = function (size) { return new Array(size); };\n ListWrapper.createGrowableSize = function (size) { return new Array(size); };\n ListWrapper.clone = function (array) { return array.slice(0); };\n ListWrapper.forEachWithIndex = function (array, fn) {\n for (var i = 0; i < array.length; i++) {\n fn(array[i], i);\n }\n };\n ListWrapper.first = function (array) {\n if (!array)\n return null;\n return array[0];\n };\n ListWrapper.last = function (array) {\n if (!array || array.length == 0)\n return null;\n return array[array.length - 1];\n };\n ListWrapper.indexOf = function (array, value, startIndex) {\n if (startIndex === void 0) { startIndex = 0; }\n return array.indexOf(value, startIndex);\n };\n ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; };\n ListWrapper.reversed = function (array) {\n var a = ListWrapper.clone(array);\n return a.reverse();\n };\n ListWrapper.concat = function (a, b) { return a.concat(b); };\n ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); };\n ListWrapper.removeAt = function (list, index) {\n var res = list[index];\n list.splice(index, 1);\n return res;\n };\n ListWrapper.removeAll = function (list, items) {\n for (var i = 0; i < items.length; ++i) {\n var index = list.indexOf(items[i]);\n list.splice(index, 1);\n }\n };\n ListWrapper.remove = function (list, el) {\n var index = list.indexOf(el);\n if (index > -1) {\n list.splice(index, 1);\n return true;\n }\n return false;\n };\n ListWrapper.clear = function (list) { list.length = 0; };\n ListWrapper.isEmpty = function (list) { return list.length == 0; };\n ListWrapper.fill = function (list, value, start, end) {\n if (start === void 0) { start = 0; }\n if (end === void 0) { end = null; }\n list.fill(value, start, end === null ? list.length : end);\n };\n ListWrapper.equals = function (a, b) {\n if (a.length != b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i])\n return false;\n }\n return true;\n };\n ListWrapper.slice = function (l, from, to) {\n if (from === void 0) { from = 0; }\n if (to === void 0) { to = null; }\n return l.slice(from, to === null ? undefined : to);\n };\n ListWrapper.splice = function (l, from, length) { return l.splice(from, length); };\n ListWrapper.sort = function (l, compareFn) {\n if (isPresent(compareFn)) {\n l.sort(compareFn);\n }\n else {\n l.sort();\n }\n };\n ListWrapper.toString = function (l) { return l.toString(); };\n ListWrapper.toJSON = function (l) { return JSON.stringify(l); };\n ListWrapper.maximum = function (list, predicate) {\n if (list.length == 0) {\n return null;\n }\n var solution = null;\n var maxValue = -Infinity;\n for (var index = 0; index < list.length; index++) {\n var candidate = list[index];\n if (isBlank(candidate)) {\n continue;\n }\n var candidateValue = predicate(candidate);\n if (candidateValue > maxValue) {\n solution = candidate;\n maxValue = candidateValue;\n }\n }\n return solution;\n };\n ListWrapper.flatten = function (list) {\n var target = [];\n _flattenArray(list, target);\n return target;\n };\n ListWrapper.addAll = function (list, source) {\n for (var i = 0; i < source.length; i++) {\n list.push(source[i]);\n }\n };\n return ListWrapper;\n }());\n function _flattenArray(source, target) {\n if (isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (isArray(item)) {\n _flattenArray(item, target);\n }\n else {\n target.push(item);\n }\n }\n }\n return target;\n }\n function isListLikeIterable(obj) {\n if (!isJsObject(obj))\n return false;\n return isArray(obj) ||\n (!(obj instanceof Map$1) &&\n getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\n }\n function iterateListLike(obj, fn) {\n if (isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n }\n else {\n var iterator = obj[getSymbolIterator()]();\n var item;\n while (!((item = iterator.next()).done)) {\n fn(item.value);\n }\n }\n }\n // Safari and Internet Explorer do not support the iterable parameter to the\n // Set constructor. We work around that by manually adding the items.\n var createSetFromList = (function () {\n var test = new Set([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst) { return new Set(lst); };\n }\n else {\n return function createSetAndPopulateFromList(lst) {\n var res = new Set(lst);\n if (res.size !== lst.length) {\n for (var i = 0; i < lst.length; i++) {\n res.add(lst[i]);\n }\n }\n return res;\n };\n }\n })();\n\n /**\n * Polyfill for [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers), as\n * specified in the [Fetch Spec](https://fetch.spec.whatwg.org/#headers-class).\n *\n * The only known difference between this `Headers` implementation and the spec is the\n * lack of an `entries` method.\n *\n * ### Example ([live demo](http://plnkr.co/edit/MTdwT6?p=preview))\n *\n * ```\n * import {Headers} from '@angular/http';\n *\n * var firstHeaders = new Headers();\n * firstHeaders.append('Content-Type', 'image/jpeg');\n * console.log(firstHeaders.get('Content-Type')) //'image/jpeg'\n *\n * // Create headers from Plain Old JavaScript Object\n * var secondHeaders = new Headers({\n * 'X-My-Custom-Header': 'Angular'\n * });\n * console.log(secondHeaders.get('X-My-Custom-Header')); //'Angular'\n *\n * var thirdHeaders = new Headers(secondHeaders);\n * console.log(thirdHeaders.get('X-My-Custom-Header')); //'Angular'\n * ```\n *\n * @experimental\n */\n var Headers = (function () {\n function Headers(headers) {\n var _this = this;\n if (headers instanceof Headers) {\n this._headersMap = new Map$1(headers._headersMap);\n return;\n }\n this._headersMap = new Map$1();\n if (isBlank(headers)) {\n return;\n }\n // headers instanceof StringMap\n StringMapWrapper.forEach(headers, function (v, k) {\n _this._headersMap.set(normalize(k), isListLikeIterable(v) ? v : [v]);\n });\n }\n /**\n * Returns a new Headers instance from the given DOMString of Response Headers\n */\n Headers.fromResponseHeaderString = function (headersString) {\n var headers = new Headers();\n headersString.split('\\n').forEach(function (line) {\n var index = line.indexOf(':');\n if (index > 0) {\n var key = line.substring(0, index);\n var value = line.substring(index + 1).trim();\n headers.set(key, value);\n }\n });\n return headers;\n };\n /**\n * Appends a header to existing list of header values for a given header name.\n */\n Headers.prototype.append = function (name, value) {\n name = normalize(name);\n var mapName = this._headersMap.get(name);\n var list = isListLikeIterable(mapName) ? mapName : [];\n list.push(value);\n this._headersMap.set(name, list);\n };\n /**\n * Deletes all header values for the given name.\n */\n Headers.prototype.delete = function (name) { this._headersMap.delete(normalize(name)); };\n Headers.prototype.forEach = function (fn) {\n this._headersMap.forEach(fn);\n };\n /**\n * Returns first header that matches given name.\n */\n Headers.prototype.get = function (header) { return ListWrapper.first(this._headersMap.get(normalize(header))); };\n /**\n * Check for existence of header by given name.\n */\n Headers.prototype.has = function (header) { return this._headersMap.has(normalize(header)); };\n /**\n * Provides names of set headers\n */\n Headers.prototype.keys = function () { return MapWrapper.keys(this._headersMap); };\n /**\n * Sets or overrides header value for given name.\n */\n Headers.prototype.set = function (header, value) {\n var list = [];\n if (isListLikeIterable(value)) {\n var pushValue = value.join(',');\n list.push(pushValue);\n }\n else {\n list.push(value);\n }\n this._headersMap.set(normalize(header), list);\n };\n /**\n * Returns values of all headers.\n */\n Headers.prototype.values = function () { return MapWrapper.values(this._headersMap); };\n /**\n * Returns string of all headers.\n */\n Headers.prototype.toJSON = function () {\n var serializableHeaders = {};\n this._headersMap.forEach(function (values, name) {\n var list = [];\n iterateListLike(values, function (val /** TODO #9100 */) { return list = ListWrapper.concat(list, val.split(',')); });\n serializableHeaders[normalize(name)] = list;\n });\n return serializableHeaders;\n };\n /**\n * Returns list of header values for a given name.\n */\n Headers.prototype.getAll = function (header) {\n var headers = this._headersMap.get(normalize(header));\n return isListLikeIterable(headers) ? headers : [];\n };\n /**\n * This method is not implemented.\n */\n Headers.prototype.entries = function () { throw new Error('\"entries\" method is not implemented on Headers class'); };\n return Headers;\n }());\n // \"HTTP character sets are identified by case-insensitive tokens\"\n // Spec at https://tools.ietf.org/html/rfc2616\n // This implementation is same as NodeJS.\n // see https://nodejs.org/dist/latest-v6.x/docs/api/http.html#http_message_headers\n function normalize(name) {\n return name.toLowerCase();\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n /**\n * Creates a response options object to be optionally provided when instantiating a\n * {@link Response}.\n *\n * This class is based on the `ResponseInit` description in the [Fetch\n * Spec](https://fetch.spec.whatwg.org/#responseinit).\n *\n * All values are null by default. Typical defaults can be found in the\n * {@link BaseResponseOptions} class, which sub-classes `ResponseOptions`.\n *\n * This class may be used in tests to build {@link Response Responses} for\n * mock responses (see {@link MockBackend}).\n *\n * ### Example ([live demo](http://plnkr.co/edit/P9Jkk8e8cz6NVzbcxEsD?p=preview))\n *\n * ```typescript\n * import {ResponseOptions, Response} from '@angular/http';\n *\n * var options = new ResponseOptions({\n * body: '{\"name\":\"Jeff\"}'\n * });\n * var res = new Response(options);\n *\n * console.log('res.json():', res.json()); // Object {name: \"Jeff\"}\n * ```\n *\n * @experimental\n */\n var ResponseOptions = (function () {\n function ResponseOptions(_a) {\n var _b = _a === void 0 ? {} : _a, body = _b.body, status = _b.status, headers = _b.headers, statusText = _b.statusText, type = _b.type, url = _b.url;\n this.body = isPresent(body) ? body : null;\n this.status = isPresent(status) ? status : null;\n this.headers = isPresent(headers) ? headers : null;\n this.statusText = isPresent(statusText) ? statusText : null;\n this.type = isPresent(type) ? type : null;\n this.url = isPresent(url) ? url : null;\n }\n /**\n * Creates a copy of the `ResponseOptions` instance, using the optional input as values to\n * override\n * existing values. This method will not change the values of the instance on which it is being\n * called.\n *\n * This may be useful when sharing a base `ResponseOptions` object inside tests,\n * where certain properties may change from test to test.\n *\n * ### Example ([live demo](http://plnkr.co/edit/1lXquqFfgduTFBWjNoRE?p=preview))\n *\n * ```typescript\n * import {ResponseOptions, Response} from '@angular/http';\n *\n * var options = new ResponseOptions({\n * body: {name: 'Jeff'}\n * });\n * var res = new Response(options.merge({\n * url: 'https://google.com'\n * }));\n * console.log('options.url:', options.url); // null\n * console.log('res.json():', res.json()); // Object {name: \"Jeff\"}\n * console.log('res.url:', res.url); // https://google.com\n * ```\n */\n ResponseOptions.prototype.merge = function (options) {\n return new ResponseOptions({\n body: isPresent(options) && isPresent(options.body) ? options.body : this.body,\n status: isPresent(options) && isPresent(options.status) ? options.status : this.status,\n headers: isPresent(options) && isPresent(options.headers) ? options.headers : this.headers,\n statusText: isPresent(options) && isPresent(options.statusText) ? options.statusText :\n this.statusText,\n type: isPresent(options) && isPresent(options.type) ? options.type : this.type,\n url: isPresent(options) && isPresent(options.url) ? options.url : this.url,\n });\n };\n return ResponseOptions;\n }());\n /**\n * Subclass of {@link ResponseOptions}, with default values.\n *\n * Default values:\n * * status: 200\n * * headers: empty {@link Headers} object\n *\n * This class could be extended and bound to the {@link ResponseOptions} class\n * when configuring an {@link Injector}, in order to override the default options\n * used by {@link Http} to create {@link Response Responses}.\n *\n * ### Example ([live demo](http://plnkr.co/edit/qv8DLT?p=preview))\n *\n * ```typescript\n * import {provide} from '@angular/core';\n * import {bootstrap} from '@angular/platform-browser/browser';\n * import {HTTP_PROVIDERS, Headers, Http, BaseResponseOptions, ResponseOptions} from\n * '@angular/http';\n * import {App} from './myapp';\n *\n * class MyOptions extends BaseResponseOptions {\n * headers:Headers = new Headers({network: 'github'});\n * }\n *\n * bootstrap(App, [HTTP_PROVIDERS, {provide: ResponseOptions, useClass: MyOptions}]);\n * ```\n *\n * The options could also be extended when manually creating a {@link Response}\n * object.\n *\n * ### Example ([live demo](http://plnkr.co/edit/VngosOWiaExEtbstDoix?p=preview))\n *\n * ```\n * import {BaseResponseOptions, Response} from '@angular/http';\n *\n * var options = new BaseResponseOptions();\n * var res = new Response(options.merge({\n * body: 'Angular',\n * headers: new Headers({framework: 'angular'})\n * }));\n * console.log('res.headers.get(\"framework\"):', res.headers.get('framework')); // angular\n * console.log('res.text():', res.text()); // Angular;\n * ```\n *\n * @experimental\n */\n var BaseResponseOptions = (function (_super) {\n __extends$1(BaseResponseOptions, _super);\n function BaseResponseOptions() {\n _super.call(this, { status: 200, statusText: 'Ok', type: exports.ResponseType.Default, headers: new Headers() });\n }\n BaseResponseOptions.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n BaseResponseOptions.ctorParameters = [];\n return BaseResponseOptions;\n }(ResponseOptions));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * Abstract class from which real backends are derived.\n *\n * The primary purpose of a `ConnectionBackend` is to create new connections to fulfill a given\n * {@link Request}.\n *\n * @experimental\n */\n var ConnectionBackend = (function () {\n function ConnectionBackend() {\n }\n return ConnectionBackend;\n }());\n /**\n * Abstract class from which real connections are derived.\n *\n * @experimental\n */\n var Connection = (function () {\n function Connection() {\n }\n return Connection;\n }());\n /**\n * An XSRFStrategy configures XSRF protection (e.g. via headers) on an HTTP request.\n *\n * @experimental\n */\n var XSRFStrategy = (function () {\n function XSRFStrategy() {\n }\n return XSRFStrategy;\n }());\n\n function normalizeMethodName(method) {\n if (isString(method)) {\n var originalMethod = method;\n method = method\n .replace(/(\\w)(\\w*)/g, function (g0, g1, g2) { return g1.toUpperCase() + g2.toLowerCase(); });\n method = exports.RequestMethod[method];\n if (typeof method !== 'number')\n throw new Error(\"Invalid request method. The method \\\"\" + originalMethod + \"\\\" is not supported.\");\n }\n return method;\n }\n var isSuccess = function (status) { return (status >= 200 && status < 300); };\n function getResponseURL(xhr) {\n if ('responseURL' in xhr) {\n return xhr.responseURL;\n }\n if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader('X-Request-URL');\n }\n return;\n }\n function stringToArrayBuffer(input) {\n var view = new Uint16Array(input.length);\n for (var i = 0, strLen = input.length; i < strLen; i++) {\n view[i] = input.charCodeAt(i);\n }\n return view.buffer;\n }\n\n function paramParser(rawParams) {\n if (rawParams === void 0) { rawParams = ''; }\n var map = new Map$1();\n if (rawParams.length > 0) {\n var params = rawParams.split('&');\n params.forEach(function (param) {\n var eqIdx = param.indexOf('=');\n var _a = eqIdx == -1 ? [param, ''] : [param.slice(0, eqIdx), param.slice(eqIdx + 1)], key = _a[0], val = _a[1];\n var list = map.get(key) || [];\n list.push(val);\n map.set(key, list);\n });\n }\n return map;\n }\n /**\n * @experimental\n **/\n var QueryEncoder = (function () {\n function QueryEncoder() {\n }\n QueryEncoder.prototype.encodeKey = function (k) { return standardEncoding(k); };\n QueryEncoder.prototype.encodeValue = function (v) { return standardEncoding(v); };\n return QueryEncoder;\n }());\n function standardEncoding(v) {\n return encodeURIComponent(v)\n .replace(/%40/gi, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/gi, '$')\n .replace(/%2C/gi, ',')\n .replace(/%3B/gi, ';')\n .replace(/%2B/gi, '+')\n .replace(/%3D/gi, '=')\n .replace(/%3F/gi, '?')\n .replace(/%2F/gi, '/');\n }\n /**\n * Map-like representation of url search parameters, based on\n * [URLSearchParams](https://url.spec.whatwg.org/#urlsearchparams) in the url living standard,\n * with several extensions for merging URLSearchParams objects:\n * - setAll()\n * - appendAll()\n * - replaceAll()\n *\n * This class accepts an optional second parameter of ${@link QueryEncoder},\n * which is used to serialize parameters before making a request. By default,\n * `QueryEncoder` encodes keys and values of parameters using `encodeURIComponent`,\n * and then un-encodes certain characters that are allowed to be part of the query\n * according to IETF RFC 3986: https://tools.ietf.org/html/rfc3986.\n *\n * These are the characters that are not encoded: `! $ \\' ( ) * + , ; A 9 - . _ ~ ? /`\n *\n * If the set of allowed query characters is not acceptable for a particular backend,\n * `QueryEncoder` can be subclassed and provided as the 2nd argument to URLSearchParams.\n *\n * ```\n * import {URLSearchParams, QueryEncoder} from '@angular/http';\n * class MyQueryEncoder extends QueryEncoder {\n * encodeKey(k: string): string {\n * return myEncodingFunction(k);\n * }\n *\n * encodeValue(v: string): string {\n * return myEncodingFunction(v);\n * }\n * }\n *\n * let params = new URLSearchParams('', new MyQueryEncoder());\n * ```\n * @experimental\n */\n var URLSearchParams = (function () {\n function URLSearchParams(rawParams, queryEncoder) {\n if (rawParams === void 0) { rawParams = ''; }\n if (queryEncoder === void 0) { queryEncoder = new QueryEncoder(); }\n this.rawParams = rawParams;\n this.queryEncoder = queryEncoder;\n this.paramsMap = paramParser(rawParams);\n }\n URLSearchParams.prototype.clone = function () {\n var clone = new URLSearchParams('', this.queryEncoder);\n clone.appendAll(this);\n return clone;\n };\n URLSearchParams.prototype.has = function (param) { return this.paramsMap.has(param); };\n URLSearchParams.prototype.get = function (param) {\n var storedParam = this.paramsMap.get(param);\n if (isListLikeIterable(storedParam)) {\n return ListWrapper.first(storedParam);\n }\n else {\n return null;\n }\n };\n URLSearchParams.prototype.getAll = function (param) {\n var mapParam = this.paramsMap.get(param);\n return isPresent(mapParam) ? mapParam : [];\n };\n URLSearchParams.prototype.set = function (param, val) {\n var mapParam = this.paramsMap.get(param);\n var list = isPresent(mapParam) ? mapParam : [];\n ListWrapper.clear(list);\n list.push(val);\n this.paramsMap.set(param, list);\n };\n // A merge operation\n // For each name-values pair in `searchParams`, perform `set(name, values[0])`\n //\n // E.g: \"a=[1,2,3], c=[8]\" + \"a=[4,5,6], b=[7]\" = \"a=[4], c=[8], b=[7]\"\n //\n // TODO(@caitp): document this better\n URLSearchParams.prototype.setAll = function (searchParams) {\n var _this = this;\n searchParams.paramsMap.forEach(function (value, param) {\n var mapParam = _this.paramsMap.get(param);\n var list = isPresent(mapParam) ? mapParam : [];\n ListWrapper.clear(list);\n list.push(value[0]);\n _this.paramsMap.set(param, list);\n });\n };\n URLSearchParams.prototype.append = function (param, val) {\n var mapParam = this.paramsMap.get(param);\n var list = isPresent(mapParam) ? mapParam : [];\n list.push(val);\n this.paramsMap.set(param, list);\n };\n // A merge operation\n // For each name-values pair in `searchParams`, perform `append(name, value)`\n // for each value in `values`.\n //\n // E.g: \"a=[1,2], c=[8]\" + \"a=[3,4], b=[7]\" = \"a=[1,2,3,4], c=[8], b=[7]\"\n //\n // TODO(@caitp): document this better\n URLSearchParams.prototype.appendAll = function (searchParams) {\n var _this = this;\n searchParams.paramsMap.forEach(function (value, param) {\n var mapParam = _this.paramsMap.get(param);\n var list = isPresent(mapParam) ? mapParam : [];\n for (var i = 0; i < value.length; ++i) {\n list.push(value[i]);\n }\n _this.paramsMap.set(param, list);\n });\n };\n // A merge operation\n // For each name-values pair in `searchParams`, perform `delete(name)`,\n // followed by `set(name, values)`\n //\n // E.g: \"a=[1,2,3], c=[8]\" + \"a=[4,5,6], b=[7]\" = \"a=[4,5,6], c=[8], b=[7]\"\n //\n // TODO(@caitp): document this better\n URLSearchParams.prototype.replaceAll = function (searchParams) {\n var _this = this;\n searchParams.paramsMap.forEach(function (value, param) {\n var mapParam = _this.paramsMap.get(param);\n var list = isPresent(mapParam) ? mapParam : [];\n ListWrapper.clear(list);\n for (var i = 0; i < value.length; ++i) {\n list.push(value[i]);\n }\n _this.paramsMap.set(param, list);\n });\n };\n URLSearchParams.prototype.toString = function () {\n var _this = this;\n var paramsList = [];\n this.paramsMap.forEach(function (values, k) {\n values.forEach(function (v) { return paramsList.push(_this.queryEncoder.encodeKey(k) + '=' + _this.queryEncoder.encodeValue(v)); });\n });\n return paramsList.join('&');\n };\n URLSearchParams.prototype.delete = function (param) { this.paramsMap.delete(param); };\n return URLSearchParams;\n }());\n\n /**\n * HTTP request body used by both {@link Request} and {@link Response}\n * https://fetch.spec.whatwg.org/#body\n */\n var Body = (function () {\n function Body() {\n }\n /**\n * Attempts to return body as parsed `JSON` object, or raises an exception.\n */\n Body.prototype.json = function () {\n if (isString(this._body)) {\n return Json.parse(this._body);\n }\n if (this._body instanceof ArrayBuffer) {\n return Json.parse(this.text());\n }\n return this._body;\n };\n /**\n * Returns the body as a string, presuming `toString()` can be called on the response body.\n */\n Body.prototype.text = function () {\n if (this._body instanceof URLSearchParams) {\n return this._body.toString();\n }\n if (this._body instanceof ArrayBuffer) {\n return String.fromCharCode.apply(null, new Uint16Array(this._body));\n }\n if (this._body === null) {\n return '';\n }\n if (isJsObject(this._body)) {\n return Json.stringify(this._body);\n }\n return this._body.toString();\n };\n /**\n * Return the body as an ArrayBuffer\n */\n Body.prototype.arrayBuffer = function () {\n if (this._body instanceof ArrayBuffer) {\n return this._body;\n }\n return stringToArrayBuffer(this.text());\n };\n /**\n * Returns the request's body as a Blob, assuming that body exists.\n */\n Body.prototype.blob = function () {\n if (this._body instanceof Blob) {\n return this._body;\n }\n if (this._body instanceof ArrayBuffer) {\n return new Blob([this._body]);\n }\n throw new Error('The request body isn\\'t either a blob or an array buffer');\n };\n return Body;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$2 = (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 };\n /**\n * Creates `Response` instances from provided values.\n *\n * Though this object isn't\n * usually instantiated by end-users, it is the primary object interacted with when it comes time to\n * add data to a view.\n *\n * ### Example\n *\n * ```\n * http.request('my-friends.txt').subscribe(response => this.friends = response.text());\n * ```\n *\n * The Response's interface is inspired by the Response constructor defined in the [Fetch\n * Spec](https://fetch.spec.whatwg.org/#response-class), but is considered a static value whose body\n * can be accessed many times. There are other differences in the implementation, but this is the\n * most significant.\n *\n * @experimental\n */\n var Response = (function (_super) {\n __extends$2(Response, _super);\n function Response(responseOptions) {\n _super.call(this);\n this._body = responseOptions.body;\n this.status = responseOptions.status;\n this.ok = (this.status >= 200 && this.status <= 299);\n this.statusText = responseOptions.statusText;\n this.headers = responseOptions.headers;\n this.type = responseOptions.type;\n this.url = responseOptions.url;\n }\n Response.prototype.toString = function () {\n return \"Response with status: \" + this.status + \" \" + this.statusText + \" for URL: \" + this.url;\n };\n return Response;\n }(Body));\n\n var _nextRequestId = 0;\n var JSONP_HOME = '__ng_jsonp__';\n var _jsonpConnections = null;\n function _getJsonpConnections() {\n if (_jsonpConnections === null) {\n _jsonpConnections = global$1[JSONP_HOME] = {};\n }\n return _jsonpConnections;\n }\n // Make sure not to evaluate this in a non-browser environment!\n var BrowserJsonp = (function () {\n function BrowserJsonp() {\n }\n // Construct a <script> element with the specified URL\n BrowserJsonp.prototype.build = function (url) {\n var node = document.createElement('script');\n node.src = url;\n return node;\n };\n BrowserJsonp.prototype.nextRequestID = function () { return \"__req\" + _nextRequestId++; };\n BrowserJsonp.prototype.requestCallback = function (id) { return JSONP_HOME + \".\" + id + \".finished\"; };\n BrowserJsonp.prototype.exposeConnection = function (id, connection) {\n var connections = _getJsonpConnections();\n connections[id] = connection;\n };\n BrowserJsonp.prototype.removeConnection = function (id) {\n var connections = _getJsonpConnections();\n connections[id] = null;\n };\n // Attach the <script> element to the DOM\n BrowserJsonp.prototype.send = function (node) { document.body.appendChild((node)); };\n // Remove <script> element from the DOM\n BrowserJsonp.prototype.cleanup = function (node) {\n if (node.parentNode) {\n node.parentNode.removeChild((node));\n }\n };\n BrowserJsonp.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n BrowserJsonp.ctorParameters = [];\n return BrowserJsonp;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __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 };\n var JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';\n var JSONP_ERR_WRONG_METHOD = 'JSONP requests must use GET request method.';\n /**\n * Abstract base class for an in-flight JSONP request.\n *\n * @experimental\n */\n var JSONPConnection = (function () {\n function JSONPConnection() {\n }\n return JSONPConnection;\n }());\n var JSONPConnection_ = (function (_super) {\n __extends(JSONPConnection_, _super);\n function JSONPConnection_(req, _dom, baseResponseOptions) {\n var _this = this;\n _super.call(this);\n this._dom = _dom;\n this.baseResponseOptions = baseResponseOptions;\n this._finished = false;\n if (req.method !== exports.RequestMethod.Get) {\n throw new TypeError(JSONP_ERR_WRONG_METHOD);\n }\n this.request = req;\n this.response = new rxjs_Observable.Observable(function (responseObserver) {\n _this.readyState = exports.ReadyState.Loading;\n var id = _this._id = _dom.nextRequestID();\n _dom.exposeConnection(id, _this);\n // Workaround Dart\n // url = url.replace(/=JSONP_CALLBACK(&|$)/, `generated method`);\n var callback = _dom.requestCallback(_this._id);\n var url = req.url;\n if (url.indexOf('=JSONP_CALLBACK&') > -1) {\n url = StringWrapper.replace(url, '=JSONP_CALLBACK&', \"=\" + callback + \"&\");\n }\n else if (url.lastIndexOf('=JSONP_CALLBACK') === url.length - '=JSONP_CALLBACK'.length) {\n url = url.substring(0, url.length - '=JSONP_CALLBACK'.length) + (\"=\" + callback);\n }\n var script = _this._script = _dom.build(url);\n var onLoad = function (event) {\n if (_this.readyState === exports.ReadyState.Cancelled)\n return;\n _this.readyState = exports.ReadyState.Done;\n _dom.cleanup(script);\n if (!_this._finished) {\n var responseOptions_1 = new ResponseOptions({ body: JSONP_ERR_NO_CALLBACK, type: exports.ResponseType.Error, url: url });\n if (isPresent(baseResponseOptions)) {\n responseOptions_1 = baseResponseOptions.merge(responseOptions_1);\n }\n responseObserver.error(new Response(responseOptions_1));\n return;\n }\n var responseOptions = new ResponseOptions({ body: _this._responseData, url: url });\n if (isPresent(_this.baseResponseOptions)) {\n responseOptions = _this.baseResponseOptions.merge(responseOptions);\n }\n responseObserver.next(new Response(responseOptions));\n responseObserver.complete();\n };\n var onError = function (error) {\n if (_this.readyState === exports.ReadyState.Cancelled)\n return;\n _this.readyState = exports.ReadyState.Done;\n _dom.cleanup(script);\n var responseOptions = new ResponseOptions({ body: error.message, type: exports.ResponseType.Error });\n if (isPresent(baseResponseOptions)) {\n responseOptions = baseResponseOptions.merge(responseOptions);\n }\n responseObserver.error(new Response(responseOptions));\n };\n script.addEventListener('load', onLoad);\n script.addEventListener('error', onError);\n _dom.send(script);\n return function () {\n _this.readyState = exports.ReadyState.Cancelled;\n script.removeEventListener('load', onLoad);\n script.removeEventListener('error', onError);\n if (isPresent(script)) {\n _this._dom.cleanup(script);\n }\n };\n });\n }\n JSONPConnection_.prototype.finished = function (data) {\n // Don't leak connections\n this._finished = true;\n this._dom.removeConnection(this._id);\n if (this.readyState === exports.ReadyState.Cancelled)\n return;\n this._responseData = data;\n };\n return JSONPConnection_;\n }(JSONPConnection));\n /**\n * A {@link ConnectionBackend} that uses the JSONP strategy of making requests.\n *\n * @experimental\n */\n var JSONPBackend = (function (_super) {\n __extends(JSONPBackend, _super);\n function JSONPBackend() {\n _super.apply(this, arguments);\n }\n return JSONPBackend;\n }(ConnectionBackend));\n var JSONPBackend_ = (function (_super) {\n __extends(JSONPBackend_, _super);\n function JSONPBackend_(_browserJSONP, _baseResponseOptions) {\n _super.call(this);\n this._browserJSONP = _browserJSONP;\n this._baseResponseOptions = _baseResponseOptions;\n }\n JSONPBackend_.prototype.createConnection = function (request) {\n return new JSONPConnection_(request, this._browserJSONP, this._baseResponseOptions);\n };\n JSONPBackend_.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n JSONPBackend_.ctorParameters = [\n { type: BrowserJsonp, },\n { type: ResponseOptions, },\n ];\n return JSONPBackend_;\n }(JSONPBackend));\n\n var XSSI_PREFIX = /^\\)\\]\\}',?\\n/;\n /**\n * Creates connections using `XMLHttpRequest`. Given a fully-qualified\n * request, an `XHRConnection` will immediately create an `XMLHttpRequest` object and send the\n * request.\n *\n * This class would typically not be created or interacted with directly inside applications, though\n * the {@link MockConnection} may be interacted with in tests.\n *\n * @experimental\n */\n var XHRConnection = (function () {\n function XHRConnection(req, browserXHR, baseResponseOptions) {\n var _this = this;\n this.request = req;\n this.response = new rxjs_Observable.Observable(function (responseObserver) {\n var _xhr = browserXHR.build();\n _xhr.open(exports.RequestMethod[req.method].toUpperCase(), req.url);\n if (isPresent(req.withCredentials)) {\n _xhr.withCredentials = req.withCredentials;\n }\n // load event handler\n var onLoad = function () {\n // responseText is the old-school way of retrieving response (supported by IE8 & 9)\n // response/responseType properties were introduced in ResourceLoader Level2 spec (supported\n // by\n // IE10)\n var body = isPresent(_xhr.response) ? _xhr.response : _xhr.responseText;\n // Implicitly strip a potential XSSI prefix.\n if (isString(body))\n body = body.replace(XSSI_PREFIX, '');\n var headers = Headers.fromResponseHeaderString(_xhr.getAllResponseHeaders());\n var url = getResponseURL(_xhr);\n // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\n var status = _xhr.status === 1223 ? 204 : _xhr.status;\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = body ? 200 : 0;\n }\n var statusText = _xhr.statusText || 'OK';\n var responseOptions = new ResponseOptions({ body: body, status: status, headers: headers, statusText: statusText, url: url });\n if (isPresent(baseResponseOptions)) {\n responseOptions = baseResponseOptions.merge(responseOptions);\n }\n var response = new Response(responseOptions);\n response.ok = isSuccess(status);\n if (response.ok) {\n responseObserver.next(response);\n // TODO(gdi2290): defer complete if array buffer until done\n responseObserver.complete();\n return;\n }\n responseObserver.error(response);\n };\n // error event handler\n var onError = function (err) {\n var responseOptions = new ResponseOptions({\n body: err,\n type: exports.ResponseType.Error,\n status: _xhr.status,\n statusText: _xhr.statusText,\n });\n if (isPresent(baseResponseOptions)) {\n responseOptions = baseResponseOptions.merge(responseOptions);\n }\n responseObserver.error(new Response(responseOptions));\n };\n _this.setDetectedContentType(req, _xhr);\n if (isPresent(req.headers)) {\n req.headers.forEach(function (values, name) { return _xhr.setRequestHeader(name, values.join(',')); });\n }\n // Select the correct buffer type to store the response\n if (isPresent(req.responseType) && isPresent(_xhr.responseType)) {\n switch (req.responseType) {\n case exports.ResponseContentType.ArrayBuffer:\n _xhr.responseType = 'arraybuffer';\n break;\n case exports.ResponseContentType.Json:\n _xhr.responseType = 'json';\n break;\n case exports.ResponseContentType.Text:\n _xhr.responseType = 'text';\n break;\n case exports.ResponseContentType.Blob:\n _xhr.responseType = 'blob';\n break;\n default:\n throw new Error('The selected responseType is not supported');\n }\n }\n _xhr.addEventListener('load', onLoad);\n _xhr.addEventListener('error', onError);\n _xhr.send(_this.request.getBody());\n return function () {\n _xhr.removeEventListener('load', onLoad);\n _xhr.removeEventListener('error', onError);\n _xhr.abort();\n };\n });\n }\n XHRConnection.prototype.setDetectedContentType = function (req /** TODO #9100 */, _xhr /** TODO #9100 */) {\n // Skip if a custom Content-Type header is provided\n if (isPresent(req.headers) && isPresent(req.headers.get('Content-Type'))) {\n return;\n }\n // Set the detected content type\n switch (req.contentType) {\n case ContentType.NONE:\n break;\n case ContentType.JSON:\n _xhr.setRequestHeader('content-type', 'application/json');\n break;\n case ContentType.FORM:\n _xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n break;\n case ContentType.TEXT:\n _xhr.setRequestHeader('content-type', 'text/plain');\n break;\n case ContentType.BLOB:\n var blob = req.blob();\n if (blob.type) {\n _xhr.setRequestHeader('content-type', blob.type);\n }\n break;\n }\n };\n return XHRConnection;\n }());\n /**\n * `XSRFConfiguration` sets up Cross Site Request Forgery (XSRF) protection for the application\n * using a cookie. See {@link https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)}\n * for more information on XSRF.\n *\n * Applications can configure custom cookie and header names by binding an instance of this class\n * with different `cookieName` and `headerName` values. See the main HTTP documentation for more\n * details.\n *\n * @experimental\n */\n var CookieXSRFStrategy = (function () {\n function CookieXSRFStrategy(_cookieName, _headerName) {\n if (_cookieName === void 0) { _cookieName = 'XSRF-TOKEN'; }\n if (_headerName === void 0) { _headerName = 'X-XSRF-TOKEN'; }\n this._cookieName = _cookieName;\n this._headerName = _headerName;\n }\n CookieXSRFStrategy.prototype.configureRequest = function (req) {\n var xsrfToken = _angular_platformBrowser.__platform_browser_private__.getDOM().getCookie(this._cookieName);\n if (xsrfToken && !req.headers.has(this._headerName)) {\n req.headers.set(this._headerName, xsrfToken);\n }\n };\n return CookieXSRFStrategy;\n }());\n /**\n * Creates {@link XHRConnection} instances.\n *\n * This class would typically not be used by end users, but could be\n * overridden if a different backend implementation should be used,\n * such as in a node backend.\n *\n * ### Example\n *\n * ```\n * import {Http, MyNodeBackend, HTTP_PROVIDERS, BaseRequestOptions} from '@angular/http';\n * @Component({\n * viewProviders: [\n * HTTP_PROVIDERS,\n * {provide: Http, useFactory: (backend, options) => {\n * return new Http(backend, options);\n * }, deps: [MyNodeBackend, BaseRequestOptions]}]\n * })\n * class MyComponent {\n * constructor(http:Http) {\n * http.request('people.json').subscribe(res => this.people = res.json());\n * }\n * }\n * ```\n * @experimental\n */\n var XHRBackend = (function () {\n function XHRBackend(_browserXHR, _baseResponseOptions, _xsrfStrategy) {\n this._browserXHR = _browserXHR;\n this._baseResponseOptions = _baseResponseOptions;\n this._xsrfStrategy = _xsrfStrategy;\n }\n XHRBackend.prototype.createConnection = function (request) {\n this._xsrfStrategy.configureRequest(request);\n return new XHRConnection(request, this._browserXHR, this._baseResponseOptions);\n };\n XHRBackend.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n XHRBackend.ctorParameters = [\n { type: BrowserXhr, },\n { type: ResponseOptions, },\n { type: XSRFStrategy, },\n ];\n return XHRBackend;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$3 = (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 };\n /**\n * Creates a request options object to be optionally provided when instantiating a\n * {@link Request}.\n *\n * This class is based on the `RequestInit` description in the [Fetch\n * Spec](https://fetch.spec.whatwg.org/#requestinit).\n *\n * All values are null by default. Typical defaults can be found in the {@link BaseRequestOptions}\n * class, which sub-classes `RequestOptions`.\n *\n * ### Example ([live demo](http://plnkr.co/edit/7Wvi3lfLq41aQPKlxB4O?p=preview))\n *\n * ```typescript\n * import {RequestOptions, Request, RequestMethod} from '@angular/http';\n *\n * var options = new RequestOptions({\n * method: RequestMethod.Post,\n * url: 'https://google.com'\n * });\n * var req = new Request(options);\n * console.log('req.method:', RequestMethod[req.method]); // Post\n * console.log('options.url:', options.url); // https://google.com\n * ```\n *\n * @experimental\n */\n var RequestOptions = (function () {\n function RequestOptions(_a) {\n var _b = _a === void 0 ? {} : _a, method = _b.method, headers = _b.headers, body = _b.body, url = _b.url, search = _b.search, withCredentials = _b.withCredentials, responseType = _b.responseType;\n this.method = isPresent(method) ? normalizeMethodName(method) : null;\n this.headers = isPresent(headers) ? headers : null;\n this.body = isPresent(body) ? body : null;\n this.url = isPresent(url) ? url : null;\n this.search = isPresent(search) ?\n (isString(search) ? new URLSearchParams((search)) : (search)) :\n null;\n this.withCredentials = isPresent(withCredentials) ? withCredentials : null;\n this.responseType = isPresent(responseType) ? responseType : null;\n }\n /**\n * Creates a copy of the `RequestOptions` instance, using the optional input as values to override\n * existing values. This method will not change the values of the instance on which it is being\n * called.\n *\n * Note that `headers` and `search` will override existing values completely if present in\n * the `options` object. If these values should be merged, it should be done prior to calling\n * `merge` on the `RequestOptions` instance.\n *\n * ### Example ([live demo](http://plnkr.co/edit/6w8XA8YTkDRcPYpdB9dk?p=preview))\n *\n * ```typescript\n * import {RequestOptions, Request, RequestMethod} from '@angular/http';\n *\n * var options = new RequestOptions({\n * method: RequestMethod.Post\n * });\n * var req = new Request(options.merge({\n * url: 'https://google.com'\n * }));\n * console.log('req.method:', RequestMethod[req.method]); // Post\n * console.log('options.url:', options.url); // null\n * console.log('req.url:', req.url); // https://google.com\n * ```\n */\n RequestOptions.prototype.merge = function (options) {\n return new RequestOptions({\n method: isPresent(options) && isPresent(options.method) ? options.method : this.method,\n headers: isPresent(options) && isPresent(options.headers) ? options.headers : this.headers,\n body: isPresent(options) && isPresent(options.body) ? options.body : this.body,\n url: isPresent(options) && isPresent(options.url) ? options.url : this.url,\n search: isPresent(options) && isPresent(options.search) ?\n (isString(options.search) ? new URLSearchParams((options.search)) :\n (options.search).clone()) :\n this.search,\n withCredentials: isPresent(options) && isPresent(options.withCredentials) ?\n options.withCredentials :\n this.withCredentials,\n responseType: isPresent(options) && isPresent(options.responseType) ? options.responseType :\n this.responseType\n });\n };\n return RequestOptions;\n }());\n /**\n * Subclass of {@link RequestOptions}, with default values.\n *\n * Default values:\n * * method: {@link RequestMethod RequestMethod.Get}\n * * headers: empty {@link Headers} object\n *\n * This class could be extended and bound to the {@link RequestOptions} class\n * when configuring an {@link Injector}, in order to override the default options\n * used by {@link Http} to create and send {@link Request Requests}.\n *\n * ### Example ([live demo](http://plnkr.co/edit/LEKVSx?p=preview))\n *\n * ```typescript\n * import {provide} from '@angular/core';\n * import {bootstrap} from '@angular/platform-browser/browser';\n * import {HTTP_PROVIDERS, Http, BaseRequestOptions, RequestOptions} from '@angular/http';\n * import {App} from './myapp';\n *\n * class MyOptions extends BaseRequestOptions {\n * search: string = 'coreTeam=true';\n * }\n *\n * bootstrap(App, [HTTP_PROVIDERS, {provide: RequestOptions, useClass: MyOptions}]);\n * ```\n *\n * The options could also be extended when manually creating a {@link Request}\n * object.\n *\n * ### Example ([live demo](http://plnkr.co/edit/oyBoEvNtDhOSfi9YxaVb?p=preview))\n *\n * ```\n * import {BaseRequestOptions, Request, RequestMethod} from '@angular/http';\n *\n * var options = new BaseRequestOptions();\n * var req = new Request(options.merge({\n * method: RequestMethod.Post,\n * url: 'https://google.com'\n * }));\n * console.log('req.method:', RequestMethod[req.method]); // Post\n * console.log('options.url:', options.url); // null\n * console.log('req.url:', req.url); // https://google.com\n * ```\n *\n * @experimental\n */\n var BaseRequestOptions = (function (_super) {\n __extends$3(BaseRequestOptions, _super);\n function BaseRequestOptions() {\n _super.call(this, { method: exports.RequestMethod.Get, headers: new Headers() });\n }\n BaseRequestOptions.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n BaseRequestOptions.ctorParameters = [];\n return BaseRequestOptions;\n }(RequestOptions));\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$5 = (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 };\n // TODO(jeffbcross): properly implement body accessors\n /**\n * Creates `Request` instances from provided values.\n *\n * The Request's interface is inspired by the Request constructor defined in the [Fetch\n * Spec](https://fetch.spec.whatwg.org/#request-class),\n * but is considered a static value whose body can be accessed many times. There are other\n * differences in the implementation, but this is the most significant.\n *\n * `Request` instances are typically created by higher-level classes, like {@link Http} and\n * {@link Jsonp}, but it may occasionally be useful to explicitly create `Request` instances.\n * One such example is when creating services that wrap higher-level services, like {@link Http},\n * where it may be useful to generate a `Request` with arbitrary headers and search params.\n *\n * ```typescript\n * import {Injectable, Injector} from '@angular/core';\n * import {HTTP_PROVIDERS, Http, Request, RequestMethod} from '@angular/http';\n *\n * @Injectable()\n * class AutoAuthenticator {\n * constructor(public http:Http) {}\n * request(url:string) {\n * return this.http.request(new Request({\n * method: RequestMethod.Get,\n * url: url,\n * search: 'password=123'\n * }));\n * }\n * }\n *\n * var injector = Injector.resolveAndCreate([HTTP_PROVIDERS, AutoAuthenticator]);\n * var authenticator = injector.get(AutoAuthenticator);\n * authenticator.request('people.json').subscribe(res => {\n * //URL should have included '?password=123'\n * console.log('people', res.json());\n * });\n * ```\n *\n * @experimental\n */\n var Request = (function (_super) {\n __extends$5(Request, _super);\n function Request(requestOptions) {\n _super.call(this);\n // TODO: assert that url is present\n var url = requestOptions.url;\n this.url = requestOptions.url;\n if (isPresent(requestOptions.search)) {\n var search = requestOptions.search.toString();\n if (search.length > 0) {\n var prefix = '?';\n if (StringWrapper.contains(this.url, '?')) {\n prefix = (this.url[this.url.length - 1] == '&') ? '' : '&';\n }\n // TODO: just delete search-query-looking string in url?\n this.url = url + prefix + search;\n }\n }\n this._body = requestOptions.body;\n this.method = normalizeMethodName(requestOptions.method);\n // TODO(jeffbcross): implement behavior\n // Defaults to 'omit', consistent with browser\n // TODO(jeffbcross): implement behavior\n this.headers = new Headers(requestOptions.headers);\n this.contentType = this.detectContentType();\n this.withCredentials = requestOptions.withCredentials;\n this.responseType = requestOptions.responseType;\n }\n /**\n * Returns the content type enum based on header options.\n */\n Request.prototype.detectContentType = function () {\n switch (this.headers.get('content-type')) {\n case 'application/json':\n return ContentType.JSON;\n case 'application/x-www-form-urlencoded':\n return ContentType.FORM;\n case 'multipart/form-data':\n return ContentType.FORM_DATA;\n case 'text/plain':\n case 'text/html':\n return ContentType.TEXT;\n case 'application/octet-stream':\n return ContentType.BLOB;\n default:\n return this.detectContentTypeFromBody();\n }\n };\n /**\n * Returns the content type of request's body based on its type.\n */\n Request.prototype.detectContentTypeFromBody = function () {\n if (this._body == null) {\n return ContentType.NONE;\n }\n else if (this._body instanceof URLSearchParams) {\n return ContentType.FORM;\n }\n else if (this._body instanceof FormData) {\n return ContentType.FORM_DATA;\n }\n else if (this._body instanceof Blob$1) {\n return ContentType.BLOB;\n }\n else if (this._body instanceof ArrayBuffer$1) {\n return ContentType.ARRAY_BUFFER;\n }\n else if (this._body && typeof this._body == 'object') {\n return ContentType.JSON;\n }\n else {\n return ContentType.TEXT;\n }\n };\n /**\n * Returns the request's body according to its type. If body is undefined, return\n * null.\n */\n Request.prototype.getBody = function () {\n switch (this.contentType) {\n case ContentType.JSON:\n return this.text();\n case ContentType.FORM:\n return this.text();\n case ContentType.FORM_DATA:\n return this._body;\n case ContentType.TEXT:\n return this.text();\n case ContentType.BLOB:\n return this.blob();\n case ContentType.ARRAY_BUFFER:\n return this.arrayBuffer();\n default:\n return null;\n }\n };\n return Request;\n }(Body));\n var noop$1 = function () { };\n var w = typeof window == 'object' ? window : noop$1;\n var FormData = w['FormData'] || noop$1;\n var Blob$1 = w['Blob'] || noop$1;\n var ArrayBuffer$1 = w['ArrayBuffer'] || noop$1;\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$4 = (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 };\n function httpRequest(backend, request) {\n return backend.createConnection(request).response;\n }\n function mergeOptions(defaultOpts, providedOpts, method, url) {\n var newOptions = defaultOpts;\n if (isPresent(providedOpts)) {\n // Hack so Dart can used named parameters\n return newOptions.merge(new RequestOptions({\n method: providedOpts.method || method,\n url: providedOpts.url || url,\n search: providedOpts.search,\n headers: providedOpts.headers,\n body: providedOpts.body,\n withCredentials: providedOpts.withCredentials,\n responseType: providedOpts.responseType\n }));\n }\n if (isPresent(method)) {\n return newOptions.merge(new RequestOptions({ method: method, url: url }));\n }\n else {\n return newOptions.merge(new RequestOptions({ url: url }));\n }\n }\n /**\n * Performs http requests using `XMLHttpRequest` as the default backend.\n *\n * `Http` is available as an injectable class, with methods to perform http requests. Calling\n * `request` returns an `Observable` which will emit a single {@link Response} when a\n * response is received.\n *\n * ### Example\n *\n * ```typescript\n * import {Http, HTTP_PROVIDERS} from '@angular/http';\n * import 'rxjs/add/operator/map'\n * @Component({\n * selector: 'http-app',\n * viewProviders: [HTTP_PROVIDERS],\n * templateUrl: 'people.html'\n * })\n * class PeopleComponent {\n * constructor(http: Http) {\n * http.get('people.json')\n * // Call map on the response observable to get the parsed people object\n * .map(res => res.json())\n * // Subscribe to the observable to get the parsed people object and attach it to the\n * // component\n * .subscribe(people => this.people = people);\n * }\n * }\n * ```\n *\n *\n * ### Example\n *\n * ```\n * http.get('people.json').subscribe((res:Response) => this.people = res.json());\n * ```\n *\n * The default construct used to perform requests, `XMLHttpRequest`, is abstracted as a \"Backend\" (\n * {@link XHRBackend} in this case), which could be mocked with dependency injection by replacing\n * the {@link XHRBackend} provider, as in the following example:\n *\n * ### Example\n *\n * ```typescript\n * import {BaseRequestOptions, Http} from '@angular/http';\n * import {MockBackend} from '@angular/http/testing';\n * var injector = Injector.resolveAndCreate([\n * BaseRequestOptions,\n * MockBackend,\n * {provide: Http, useFactory:\n * function(backend, defaultOptions) {\n * return new Http(backend, defaultOptions);\n * },\n * deps: [MockBackend, BaseRequestOptions]}\n * ]);\n * var http = injector.get(Http);\n * http.get('request-from-mock-backend.json').subscribe((res:Response) => doSomething(res));\n * ```\n *\n * @experimental\n */\n var Http = (function () {\n function Http(_backend, _defaultOptions) {\n this._backend = _backend;\n this._defaultOptions = _defaultOptions;\n }\n /**\n * Performs any type of http request. First argument is required, and can either be a url or\n * a {@link Request} instance. If the first argument is a url, an optional {@link RequestOptions}\n * object can be provided as the 2nd argument. The options object will be merged with the values\n * of {@link BaseRequestOptions} before performing the request.\n */\n Http.prototype.request = function (url, options) {\n var responseObservable;\n if (isString(url)) {\n responseObservable = httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions, options, exports.RequestMethod.Get, url)));\n }\n else if (url instanceof Request) {\n responseObservable = httpRequest(this._backend, url);\n }\n else {\n throw new Error('First argument must be a url string or Request instance.');\n }\n return responseObservable;\n };\n /**\n * Performs a request with `get` http method.\n */\n Http.prototype.get = function (url, options) {\n return httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions, options, exports.RequestMethod.Get, url)));\n };\n /**\n * Performs a request with `post` http method.\n */\n Http.prototype.post = function (url, body, options) {\n return httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions.merge(new RequestOptions({ body: body })), options, exports.RequestMethod.Post, url)));\n };\n /**\n * Performs a request with `put` http method.\n */\n Http.prototype.put = function (url, body, options) {\n return httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions.merge(new RequestOptions({ body: body })), options, exports.RequestMethod.Put, url)));\n };\n /**\n * Performs a request with `delete` http method.\n */\n Http.prototype.delete = function (url, options) {\n return httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions, options, exports.RequestMethod.Delete, url)));\n };\n /**\n * Performs a request with `patch` http method.\n */\n Http.prototype.patch = function (url, body, options) {\n return httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions.merge(new RequestOptions({ body: body })), options, exports.RequestMethod.Patch, url)));\n };\n /**\n * Performs a request with `head` http method.\n */\n Http.prototype.head = function (url, options) {\n return httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions, options, exports.RequestMethod.Head, url)));\n };\n /**\n * Performs a request with `options` http method.\n */\n Http.prototype.options = function (url, options) {\n return httpRequest(this._backend, new Request(mergeOptions(this._defaultOptions, options, exports.RequestMethod.Options, url)));\n };\n Http.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n Http.ctorParameters = [\n { type: ConnectionBackend, },\n { type: RequestOptions, },\n ];\n return Http;\n }());\n /**\n * @experimental\n */\n var Jsonp = (function (_super) {\n __extends$4(Jsonp, _super);\n function Jsonp(backend, defaultOptions) {\n _super.call(this, backend, defaultOptions);\n }\n /**\n * Performs any type of http request. First argument is required, and can either be a url or\n * a {@link Request} instance. If the first argument is a url, an optional {@link RequestOptions}\n * object can be provided as the 2nd argument. The options object will be merged with the values\n * of {@link BaseRequestOptions} before performing the request.\n *\n * @security Regular XHR is the safest alternative to JSONP for most applications, and is\n * supported by all current browsers. Because JSONP creates a `<script>` element with\n * contents retrieved from a remote source, attacker-controlled data introduced by an untrusted\n * source could expose your application to XSS risks. Data exposed by JSONP may also be\n * readable by malicious third-party websites. In addition, JSONP introduces potential risk for\n * future security issues (e.g. content sniffing). For more detail, see the\n * [Security Guide](http://g.co/ng/security).\n */\n Jsonp.prototype.request = function (url, options) {\n var responseObservable;\n if (isString(url)) {\n url =\n new Request(mergeOptions(this._defaultOptions, options, exports.RequestMethod.Get, url));\n }\n if (url instanceof Request) {\n if (url.method !== exports.RequestMethod.Get) {\n throw new Error('JSONP requests must use GET request method.');\n }\n responseObservable = httpRequest(this._backend, url);\n }\n else {\n throw new Error('First argument must be a url string or Request instance.');\n }\n return responseObservable;\n };\n Jsonp.decorators = [\n { type: _angular_core.Injectable },\n ];\n /** @nocollapse */\n Jsonp.ctorParameters = [\n { type: ConnectionBackend, },\n { type: RequestOptions, },\n ];\n return Jsonp;\n }(Http));\n\n function _createDefaultCookieXSRFStrategy() {\n return new CookieXSRFStrategy();\n }\n function httpFactory(xhrBackend, requestOptions) {\n return new Http(xhrBackend, requestOptions);\n }\n function jsonpFactory(jsonpBackend, requestOptions) {\n return new Jsonp(jsonpBackend, requestOptions);\n }\n /**\n * The module that includes http's providers\n *\n * @experimental\n */\n var HttpModule = (function () {\n function HttpModule() {\n }\n HttpModule.decorators = [\n { type: _angular_core.NgModule, args: [{\n providers: [\n // TODO(pascal): use factory type annotations once supported in DI\n // issue: https://github.com/angular/angular/issues/3183\n { provide: Http, useFactory: httpFactory, deps: [XHRBackend, RequestOptions] },\n BrowserXhr,\n { provide: RequestOptions, useClass: BaseRequestOptions },\n { provide: ResponseOptions, useClass: BaseResponseOptions },\n XHRBackend,\n { provide: XSRFStrategy, useFactory: _createDefaultCookieXSRFStrategy },\n ],\n },] },\n ];\n /** @nocollapse */\n HttpModule.ctorParameters = [];\n return HttpModule;\n }());\n /**\n * The module that includes jsonp's providers\n *\n * @experimental\n */\n var JsonpModule = (function () {\n function JsonpModule() {\n }\n JsonpModule.decorators = [\n { type: _angular_core.NgModule, args: [{\n providers: [\n // TODO(pascal): use factory type annotations once supported in DI\n // issue: https://github.com/angular/angular/issues/3183\n { provide: Jsonp, useFactory: jsonpFactory, deps: [JSONPBackend, RequestOptions] },\n BrowserJsonp,\n { provide: RequestOptions, useClass: BaseRequestOptions },\n { provide: ResponseOptions, useClass: BaseResponseOptions },\n { provide: JSONPBackend, useClass: JSONPBackend_ },\n ],\n },] },\n ];\n /** @nocollapse */\n JsonpModule.ctorParameters = [];\n return JsonpModule;\n }());\n\n exports.BrowserXhr = BrowserXhr;\n exports.JSONPBackend = JSONPBackend;\n exports.JSONPConnection = JSONPConnection;\n exports.CookieXSRFStrategy = CookieXSRFStrategy;\n exports.XHRBackend = XHRBackend;\n exports.XHRConnection = XHRConnection;\n exports.BaseRequestOptions = BaseRequestOptions;\n exports.RequestOptions = RequestOptions;\n exports.BaseResponseOptions = BaseResponseOptions;\n exports.ResponseOptions = ResponseOptions;\n exports.Headers = Headers;\n exports.Http = Http;\n exports.Jsonp = Jsonp;\n exports.HttpModule = HttpModule;\n exports.JsonpModule = JsonpModule;\n exports.Connection = Connection;\n exports.ConnectionBackend = ConnectionBackend;\n exports.XSRFStrategy = XSRFStrategy;\n exports.Request = Request;\n exports.Response = Response;\n exports.QueryEncoder = QueryEncoder;\n exports.URLSearchParams = URLSearchParams;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/http/bundles/http.umd.js\n ** module id = 341\n ** module chunks = 0\n **/","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar map_1 = require('../../operator/map');\nObservable_1.Observable.prototype.map = map_1.map;\n//# sourceMappingURL=map.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/add/operator/map.js\n ** module id = 342\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../Subscriber');\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 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 if (typeof project !== 'function') {\n throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n }\n return this.lift(new MapOperator(project, thisArg));\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}());\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//# sourceMappingURL=map.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/map.js\n ** module id = 343\n ** module chunks = 0\n **/","import { Injectable, EventEmitter } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { EncryptComponent } from '../../core/config/app.encrypt';\r\n\r\ndeclare var CryptoJS:any;\r\n\r\n@Injectable()\r\nexport class SaveUserData {\r\n constructor(private router: Router, private config: ApiWebConfig, private decrypt: EncryptComponent){}\r\n\r\n loginStatus:any='';\r\n orgId:any='';\r\n userId:any='';\r\n userEmail:any='';\r\n userLPOption = new EventEmitter<any>();\r\n userLogo = new EventEmitter<any>();\r\n PermissionId:any='';\r\n ExternalId:any='';\r\n dtcId:any='';\r\n launchDtcId:any='';\r\n FontColor:any='';\r\n FontStyle:any='';\r\n authHeadToken:any='';\r\n defaultPage:any='';\r\n getUserlData(cond=true) {\r\n if(cond) {\r\n var userInfo = localStorage.getItem('auth_data');\r\n var userkey = localStorage.getItem('auth_key');\r\n var auth_controls_data = localStorage.getItem('auth_controls_data');\r\n var userLogo = localStorage.getItem('auth_userLogo');\r\n var auth_head_token = localStorage.getItem('authHeadToken');\r\n var defaultRoute = localStorage.getItem('defaultPage');\r\n this.userLogo.emit(userLogo);\r\n if(!userInfo){\r\n this.router.navigate(['login']);\r\n }\r\n if(auth_head_token){\r\n this.authHeadToken = auth_head_token;\r\n }\r\n if(userkey){\r\n var dedode_userkey = this.decrypt.decryptPass(userkey, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var extId='';\r\n var userkey_array = dedode_userkey.split(',');\r\n extId = userkey_array[0];\r\n var extIdList = extId.split('|');\r\n this.ExternalId = extIdList.toString();\r\n this.PermissionId = userkey_array[1];\r\n }\r\n if(userInfo){\r\n var dedode = this.decrypt.decryptPass(userInfo, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var str_array = dedode.split(',');\r\n this.loginStatus = str_array[0];\r\n this.orgId = str_array[1];\r\n this.userId = str_array[2];\r\n this.userEmail = str_array[3];\r\n this.userLPOption.emit(str_array[4]);\r\n }\r\n if(auth_controls_data){\r\n var dedode_data = this.decrypt.decryptPass(auth_controls_data, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var str_array_data = dedode_data.split(',');\r\n this.loginStatus = str_array_data[0];\r\n this.PermissionId = str_array_data[1];\r\n this.dtcId = str_array_data[2];\r\n //this.FontColor = str_array_data[3];\r\n //this.FontStyle = str_array_data[4];\r\n this.launchDtcId = str_array_data[5];\r\n }\r\n if(defaultRoute){\r\n this.defaultPage = defaultRoute;\r\n }\r\n }\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/components/app.user.data.ts\n **/","/**\n * @license Angular v2.0.0-rc.6\n * (c) 2010-2016 Google, Inc. https://angular.io/\n * License: MIT\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('rxjs/Subject'), require('rxjs/observable/from'), require('rxjs/observable/of'), require('rxjs/operator/every'), require('rxjs/operator/map'), require('rxjs/operator/mergeAll'), require('rxjs/operator/mergeMap'), require('rxjs/operator/reduce'), require('rxjs/Observable'), require('rxjs/operator/catch'), require('rxjs/operator/concatAll'), require('rxjs/operator/first'), require('rxjs/util/EmptyError'), require('rxjs/observable/fromPromise'), require('rxjs/operator/last'), require('rxjs/BehaviorSubject')) :\n typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@angular/core', 'rxjs/Subject', 'rxjs/observable/from', 'rxjs/observable/of', 'rxjs/operator/every', 'rxjs/operator/map', 'rxjs/operator/mergeAll', 'rxjs/operator/mergeMap', 'rxjs/operator/reduce', 'rxjs/Observable', 'rxjs/operator/catch', 'rxjs/operator/concatAll', 'rxjs/operator/first', 'rxjs/util/EmptyError', 'rxjs/observable/fromPromise', 'rxjs/operator/last', 'rxjs/BehaviorSubject'], factory) :\n (factory((global.ng = global.ng || {}, global.ng.router = global.ng.router || {}),global.ng.common,global.ng.core,global.Rx,global.Rx.Observable,global.Rx.Observable,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx,global.Rx.Observable,global.Rx.Observable.prototype,global.Rx));\n}(this, function (exports,_angular_common,_angular_core,rxjs_Subject,rxjs_observable_from,rxjs_observable_of,rxjs_operator_every,rxjs_operator_map,rxjs_operator_mergeAll,rxjs_operator_mergeMap,rxjs_operator_reduce,rxjs_Observable,rxjs_operator_catch,rxjs_operator_concatAll,rxjs_operator_first,rxjs_util_EmptyError,rxjs_observable_fromPromise,l,rxjs_BehaviorSubject) { 'use strict';\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __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 };\n /**\n * Name of the primary outlet.\n * @type {string}\n *\n * @stable\n */\n var PRIMARY_OUTLET = 'primary';\n var NavigationCancelingError = (function (_super) {\n __extends(NavigationCancelingError, _super);\n function NavigationCancelingError(message) {\n _super.call(this, message);\n this.message = message;\n this.stack = (new Error(message)).stack;\n }\n NavigationCancelingError.prototype.toString = function () { return this.message; };\n return NavigationCancelingError;\n }(Error));\n\n function shallowEqualArrays(a, b) {\n if (a.length !== b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (!shallowEqual(a[i], b[i]))\n return false;\n }\n return true;\n }\n function shallowEqual(a, b) {\n var k1 = Object.keys(a);\n var k2 = Object.keys(b);\n if (k1.length != k2.length) {\n return false;\n }\n var key;\n for (var i = 0; i < k1.length; i++) {\n key = k1[i];\n if (a[key] !== b[key]) {\n return false;\n }\n }\n return true;\n }\n function flatten(a) {\n var target = [];\n for (var i = 0; i < a.length; ++i) {\n for (var j = 0; j < a[i].length; ++j) {\n target.push(a[i][j]);\n }\n }\n return target;\n }\n function last(a) {\n return a.length > 0 ? a[a.length - 1] : null;\n }\n function merge(m1, m2) {\n var m = {};\n for (var attr in m1) {\n if (m1.hasOwnProperty(attr)) {\n m[attr] = m1[attr];\n }\n }\n for (var attr in m2) {\n if (m2.hasOwnProperty(attr)) {\n m[attr] = m2[attr];\n }\n }\n return m;\n }\n function forEach(map, callback) {\n for (var prop in map) {\n if (map.hasOwnProperty(prop)) {\n callback(map[prop], prop);\n }\n }\n }\n function waitForMap(obj, fn) {\n var waitFor = [];\n var res = {};\n forEach(obj, function (a, k) {\n if (k === PRIMARY_OUTLET) {\n waitFor.push(rxjs_operator_map.map.call(fn(k, a), function (_) {\n res[k] = _;\n return _;\n }));\n }\n });\n forEach(obj, function (a, k) {\n if (k !== PRIMARY_OUTLET) {\n waitFor.push(rxjs_operator_map.map.call(fn(k, a), function (_) {\n res[k] = _;\n return _;\n }));\n }\n });\n if (waitFor.length > 0) {\n var concatted$ = rxjs_operator_concatAll.concatAll.call(rxjs_observable_of.of.apply(void 0, waitFor));\n var last$ = l.last.call(concatted$);\n return rxjs_operator_map.map.call(last$, function () { return res; });\n }\n else {\n return rxjs_observable_of.of(res);\n }\n }\n function andObservables(observables) {\n var merged$ = rxjs_operator_mergeAll.mergeAll.call(observables);\n return rxjs_operator_every.every.call(merged$, function (result) { return result === true; });\n }\n function wrapIntoObservable(value) {\n if (value instanceof rxjs_Observable.Observable) {\n return value;\n }\n else if (value instanceof Promise) {\n return rxjs_observable_fromPromise.fromPromise(value);\n }\n else {\n return rxjs_observable_of.of(value);\n }\n }\n\n /**\n * @experimental\n */\n var ROUTES = new _angular_core.OpaqueToken('ROUTES');\n var LoadedRouterConfig = (function () {\n function LoadedRouterConfig(routes, injector, factoryResolver) {\n this.routes = routes;\n this.injector = injector;\n this.factoryResolver = factoryResolver;\n }\n return LoadedRouterConfig;\n }());\n var RouterConfigLoader = (function () {\n function RouterConfigLoader(loader, compiler) {\n this.loader = loader;\n this.compiler = compiler;\n }\n RouterConfigLoader.prototype.load = function (parentInjector, loadChildren) {\n return rxjs_operator_map.map.call(this.loadModuleFactory(loadChildren), function (r) {\n var ref = r.create(parentInjector);\n return new LoadedRouterConfig(flatten(ref.injector.get(ROUTES)), ref.injector, ref.componentFactoryResolver);\n });\n };\n RouterConfigLoader.prototype.loadModuleFactory = function (loadChildren) {\n var _this = this;\n if (typeof loadChildren === 'string') {\n return rxjs_observable_fromPromise.fromPromise(this.loader.load(loadChildren));\n }\n else {\n var offlineMode_1 = this.compiler instanceof _angular_core.Compiler;\n return rxjs_operator_mergeMap.mergeMap.call(wrapIntoObservable(loadChildren()), function (t) { return offlineMode_1 ? rxjs_observable_of.of(t) : rxjs_observable_fromPromise.fromPromise(_this.compiler.compileModuleAsync(t)); });\n }\n };\n return RouterConfigLoader;\n }());\n\n function createEmptyUrlTree() {\n return new UrlTree(new UrlSegmentGroup([], {}), {}, null);\n }\n function containsTree(container, containee, exact) {\n if (exact) {\n return equalSegmentGroups(container.root, containee.root);\n }\n else {\n return containsSegmentGroup(container.root, containee.root);\n }\n }\n function equalSegmentGroups(container, containee) {\n if (!equalPath(container.segments, containee.segments))\n return false;\n if (container.numberOfChildren !== containee.numberOfChildren)\n return false;\n for (var c in containee.children) {\n if (!container.children[c])\n return false;\n if (!equalSegmentGroups(container.children[c], containee.children[c]))\n return false;\n }\n return true;\n }\n function containsSegmentGroup(container, containee) {\n return containsSegmentGroupHelper(container, containee, containee.segments);\n }\n function containsSegmentGroupHelper(container, containee, containeePaths) {\n if (container.segments.length > containeePaths.length) {\n var current = container.segments.slice(0, containeePaths.length);\n if (!equalPath(current, containeePaths))\n return false;\n if (containee.hasChildren())\n return false;\n return true;\n }\n else if (container.segments.length === containeePaths.length) {\n if (!equalPath(container.segments, containeePaths))\n return false;\n for (var c in containee.children) {\n if (!container.children[c])\n return false;\n if (!containsSegmentGroup(container.children[c], containee.children[c]))\n return false;\n }\n return true;\n }\n else {\n var current = containeePaths.slice(0, container.segments.length);\n var next = containeePaths.slice(container.segments.length);\n if (!equalPath(container.segments, current))\n return false;\n if (!container.children[PRIMARY_OUTLET])\n return false;\n return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next);\n }\n }\n /**\n * A URL in the tree form.\n *\n * @stable\n */\n var UrlTree = (function () {\n /**\n * @internal\n */\n function UrlTree(root, queryParams, fragment) {\n this.root = root;\n this.queryParams = queryParams;\n this.fragment = fragment;\n }\n UrlTree.prototype.toString = function () { return new DefaultUrlSerializer().serialize(this); };\n return UrlTree;\n }());\n /**\n * @stable\n */\n var UrlSegmentGroup = (function () {\n function UrlSegmentGroup(segments, children) {\n var _this = this;\n this.segments = segments;\n this.children = children;\n this.parent = null;\n forEach(children, function (v, k) { return v.parent = _this; });\n }\n /**\n * Return true if the segment has child segments\n */\n UrlSegmentGroup.prototype.hasChildren = function () { return this.numberOfChildren > 0; };\n Object.defineProperty(UrlSegmentGroup.prototype, \"numberOfChildren\", {\n /**\n * Returns the number of child sements.\n */\n get: function () { return Object.keys(this.children).length; },\n enumerable: true,\n configurable: true\n });\n UrlSegmentGroup.prototype.toString = function () { return serializePaths(this); };\n return UrlSegmentGroup;\n }());\n /**\n * @stable\n */\n var UrlSegment = (function () {\n function UrlSegment(path, parameters) {\n this.path = path;\n this.parameters = parameters;\n }\n UrlSegment.prototype.toString = function () { return serializePath(this); };\n return UrlSegment;\n }());\n function equalPath(a, b) {\n if (a.length !== b.length)\n return false;\n for (var i = 0; i < a.length; ++i) {\n if (a[i].path !== b[i].path)\n return false;\n }\n return true;\n }\n function mapChildrenIntoArray(segment, fn) {\n var res = [];\n forEach(segment.children, function (child, childOutlet) {\n if (childOutlet === PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n forEach(segment.children, function (child, childOutlet) {\n if (childOutlet !== PRIMARY_OUTLET) {\n res = res.concat(fn(child, childOutlet));\n }\n });\n return res;\n }\n /**\n * Defines a way to serialize/deserialize a url tree.\n *\n * @stable\n */\n var UrlSerializer = (function () {\n function UrlSerializer() {\n }\n return UrlSerializer;\n }());\n /**\n * A default implementation of the serialization.\n *\n * @stable\n */\n var DefaultUrlSerializer = (function () {\n function DefaultUrlSerializer() {\n }\n DefaultUrlSerializer.prototype.parse = function (url) {\n var p = new UrlParser(url);\n return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());\n };\n DefaultUrlSerializer.prototype.serialize = function (tree) {\n var segment = \"/\" + serializeSegment(tree.root, true);\n var query = serializeQueryParams(tree.queryParams);\n var fragment = tree.fragment !== null && tree.fragment !== undefined ? \"#\" + encodeURI(tree.fragment) : '';\n return \"\" + segment + query + fragment;\n };\n return DefaultUrlSerializer;\n }());\n function serializePaths(segment) {\n return segment.segments.map(function (p) { return serializePath(p); }).join('/');\n }\n function serializeSegment(segment, root) {\n if (segment.hasChildren() && root) {\n var primary = segment.children[PRIMARY_OUTLET] ?\n serializeSegment(segment.children[PRIMARY_OUTLET], false) :\n '';\n var children_1 = [];\n forEach(segment.children, function (v, k) {\n if (k !== PRIMARY_OUTLET) {\n children_1.push(k + \":\" + serializeSegment(v, false));\n }\n });\n if (children_1.length > 0) {\n return primary + \"(\" + children_1.join('//') + \")\";\n }\n else {\n return \"\" + primary;\n }\n }\n else if (segment.hasChildren() && !root) {\n var children = mapChildrenIntoArray(segment, function (v, k) {\n if (k === PRIMARY_OUTLET) {\n return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];\n }\n else {\n return [(k + \":\" + serializeSegment(v, false))];\n }\n });\n return serializePaths(segment) + \"/(\" + children.join('//') + \")\";\n }\n else {\n return serializePaths(segment);\n }\n }\n function encode(s) {\n return encodeURIComponent(s);\n }\n function decode(s) {\n return decodeURIComponent(s);\n }\n function serializePath(path) {\n return \"\" + encode(path.path) + serializeParams(path.parameters);\n }\n function serializeParams(params) {\n return pairs(params).map(function (p) { return (\";\" + encode(p.first) + \"=\" + encode(p.second)); }).join('');\n }\n function serializeQueryParams(params) {\n var strs = pairs(params).map(function (p) { return (encode(p.first) + \"=\" + encode(p.second)); });\n return strs.length > 0 ? \"?\" + strs.join(\"&\") : '';\n }\n var Pair = (function () {\n function Pair(first, second) {\n this.first = first;\n this.second = second;\n }\n return Pair;\n }());\n function pairs(obj) {\n var res = [];\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n res.push(new Pair(prop, obj[prop]));\n }\n }\n return res;\n }\n var SEGMENT_RE = /^[^\\/\\(\\)\\?;=&#]+/;\n function matchSegments(str) {\n SEGMENT_RE.lastIndex = 0;\n var match = str.match(SEGMENT_RE);\n return match ? match[0] : '';\n }\n var QUERY_PARAM_RE = /^[^=\\?&#]+/;\n function matchQueryParams(str) {\n QUERY_PARAM_RE.lastIndex = 0;\n var match = str.match(SEGMENT_RE);\n return match ? match[0] : '';\n }\n var QUERY_PARAM_VALUE_RE = /^[^\\?&#]+/;\n function matchUrlQueryParamValue(str) {\n QUERY_PARAM_VALUE_RE.lastIndex = 0;\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n }\n var UrlParser = (function () {\n function UrlParser(url) {\n this.url = url;\n this.remaining = url;\n }\n UrlParser.prototype.peekStartsWith = function (str) { return this.remaining.startsWith(str); };\n UrlParser.prototype.capture = function (str) {\n if (!this.remaining.startsWith(str)) {\n throw new Error(\"Expected \\\"\" + str + \"\\\".\");\n }\n this.remaining = this.remaining.substring(str.length);\n };\n UrlParser.prototype.parseRootSegment = function () {\n if (this.remaining.startsWith('/')) {\n this.capture('/');\n }\n if (this.remaining === '' || this.remaining.startsWith('?') || this.remaining.startsWith('#')) {\n return new UrlSegmentGroup([], {});\n }\n else {\n return new UrlSegmentGroup([], this.parseChildren());\n }\n };\n UrlParser.prototype.parseChildren = function () {\n if (this.remaining.length == 0) {\n return {};\n }\n if (this.peekStartsWith('/')) {\n this.capture('/');\n }\n var paths = [];\n if (!this.peekStartsWith('(')) {\n paths.push(this.parseSegments());\n }\n while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {\n this.capture('/');\n paths.push(this.parseSegments());\n }\n var children = {};\n if (this.peekStartsWith('/(')) {\n this.capture('/');\n children = this.parseParens(true);\n }\n var res = {};\n if (this.peekStartsWith('(')) {\n res = this.parseParens(false);\n }\n if (paths.length > 0 || Object.keys(children).length > 0) {\n res[PRIMARY_OUTLET] = new UrlSegmentGroup(paths, children);\n }\n return res;\n };\n UrlParser.prototype.parseSegments = function () {\n var path = matchSegments(this.remaining);\n if (path === '' && this.peekStartsWith(';')) {\n throw new Error(\"Empty path url segment cannot have parameters: '\" + this.remaining + \"'.\");\n }\n this.capture(path);\n var matrixParams = {};\n if (this.peekStartsWith(';')) {\n matrixParams = this.parseMatrixParams();\n }\n return new UrlSegment(decode(path), matrixParams);\n };\n UrlParser.prototype.parseQueryParams = function () {\n var params = {};\n if (this.peekStartsWith('?')) {\n this.capture('?');\n this.parseQueryParam(params);\n while (this.remaining.length > 0 && this.peekStartsWith('&')) {\n this.capture('&');\n this.parseQueryParam(params);\n }\n }\n return params;\n };\n UrlParser.prototype.parseFragment = function () {\n if (this.peekStartsWith('#')) {\n return decodeURI(this.remaining.substring(1));\n }\n else {\n return null;\n }\n };\n UrlParser.prototype.parseMatrixParams = function () {\n var params = {};\n while (this.remaining.length > 0 && this.peekStartsWith(';')) {\n this.capture(';');\n this.parseParam(params);\n }\n return params;\n };\n UrlParser.prototype.parseParam = function (params) {\n var key = matchSegments(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n var value = '';\n if (this.peekStartsWith('=')) {\n this.capture('=');\n var valueMatch = matchSegments(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n params[decode(key)] = decode(value);\n };\n UrlParser.prototype.parseQueryParam = function (params) {\n var key = matchQueryParams(this.remaining);\n if (!key) {\n return;\n }\n this.capture(key);\n var value = '';\n if (this.peekStartsWith('=')) {\n this.capture('=');\n var valueMatch = matchUrlQueryParamValue(this.remaining);\n if (valueMatch) {\n value = valueMatch;\n this.capture(value);\n }\n }\n params[decode(key)] = decode(value);\n };\n UrlParser.prototype.parseParens = function (allowPrimary) {\n var segments = {};\n this.capture('(');\n while (!this.peekStartsWith(')') && this.remaining.length > 0) {\n var path = matchSegments(this.remaining);\n var next = this.remaining[path.length];\n // if is is not one of these characters, then the segment was unescaped\n // or the group was not closed\n if (next !== '/' && next !== ')' && next !== ';') {\n throw new Error(\"Cannot parse url '\" + this.url + \"'\");\n }\n var outletName = void 0;\n if (path.indexOf(':') > -1) {\n outletName = path.substr(0, path.indexOf(':'));\n this.capture(outletName);\n this.capture(':');\n }\n else if (allowPrimary) {\n outletName = PRIMARY_OUTLET;\n }\n var children = this.parseChildren();\n segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] :\n new UrlSegmentGroup([], children);\n if (this.peekStartsWith('//')) {\n this.capture('//');\n }\n }\n this.capture(')');\n return segments;\n };\n return UrlParser;\n }());\n\n var NoMatch = (function () {\n function NoMatch(segmentGroup) {\n if (segmentGroup === void 0) { segmentGroup = null; }\n this.segmentGroup = segmentGroup;\n }\n return NoMatch;\n }());\n var AbsoluteRedirect = (function () {\n function AbsoluteRedirect(segments) {\n this.segments = segments;\n }\n return AbsoluteRedirect;\n }());\n function noMatch(segmentGroup) {\n return new rxjs_Observable.Observable(function (obs) { return obs.error(new NoMatch(segmentGroup)); });\n }\n function absoluteRedirect(segments) {\n return new rxjs_Observable.Observable(function (obs) { return obs.error(new AbsoluteRedirect(segments)); });\n }\n function canLoadFails(route) {\n return new rxjs_Observable.Observable(function (obs) { return obs.error(new NavigationCancelingError(\"Cannot load children because the guard of the route \\\"path: '\" + route.path + \"'\\\" returned false\")); });\n }\n function applyRedirects(injector, configLoader, urlTree, config) {\n return new ApplyRedirects(injector, configLoader, urlTree, config).apply();\n }\n var ApplyRedirects = (function () {\n function ApplyRedirects(injector, configLoader, urlTree, config) {\n this.injector = injector;\n this.configLoader = configLoader;\n this.urlTree = urlTree;\n this.config = config;\n this.allowRedirects = true;\n }\n ApplyRedirects.prototype.apply = function () {\n var _this = this;\n var expanded$ = this.expandSegmentGroup(this.injector, this.config, this.urlTree.root, PRIMARY_OUTLET);\n var urlTrees$ = rxjs_operator_map.map.call(expanded$, function (rootSegmentGroup) { return _this.createUrlTree(rootSegmentGroup); });\n return rxjs_operator_catch._catch.call(urlTrees$, function (e) {\n if (e instanceof AbsoluteRedirect) {\n // after an absolute redirect we do not apply any more redirects!\n _this.allowRedirects = false;\n var group = new UrlSegmentGroup([], (_a = {}, _a[PRIMARY_OUTLET] = new UrlSegmentGroup(e.segments, {}), _a));\n // we need to run matching, so we can fetch all lazy-loaded modules\n return _this.match(group);\n }\n else if (e instanceof NoMatch) {\n throw _this.noMatchError(e);\n }\n else {\n throw e;\n }\n var _a;\n });\n };\n ApplyRedirects.prototype.match = function (segmentGroup) {\n var _this = this;\n var expanded$ = this.expandSegmentGroup(this.injector, this.config, segmentGroup, PRIMARY_OUTLET);\n var mapped$ = rxjs_operator_map.map.call(expanded$, function (rootSegmentGroup) { return _this.createUrlTree(rootSegmentGroup); });\n return rxjs_operator_catch._catch.call(mapped$, function (e) {\n if (e instanceof NoMatch) {\n throw _this.noMatchError(e);\n }\n else {\n throw e;\n }\n });\n };\n ApplyRedirects.prototype.noMatchError = function (e) {\n return new Error(\"Cannot match any routes: '\" + e.segmentGroup + \"'\");\n };\n ApplyRedirects.prototype.createUrlTree = function (rootCandidate) {\n var root = rootCandidate.segments.length > 0 ?\n new UrlSegmentGroup([], (_a = {}, _a[PRIMARY_OUTLET] = rootCandidate, _a)) :\n rootCandidate;\n return new UrlTree(root, this.urlTree.queryParams, this.urlTree.fragment);\n var _a;\n };\n ApplyRedirects.prototype.expandSegmentGroup = function (injector, routes, segmentGroup, outlet) {\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return rxjs_operator_map.map.call(this.expandChildren(injector, routes, segmentGroup), function (children) { return new UrlSegmentGroup([], children); });\n }\n else {\n return this.expandSegment(injector, segmentGroup, routes, segmentGroup.segments, outlet, true);\n }\n };\n ApplyRedirects.prototype.expandChildren = function (injector, routes, segmentGroup) {\n var _this = this;\n return waitForMap(segmentGroup.children, function (childOutlet, child) { return _this.expandSegmentGroup(injector, routes, child, childOutlet); });\n };\n ApplyRedirects.prototype.expandSegment = function (injector, segmentGroup, routes, segments, outlet, allowRedirects) {\n var _this = this;\n var routes$ = rxjs_observable_of.of.apply(void 0, routes);\n var processedRoutes$ = rxjs_operator_map.map.call(routes$, function (r) {\n var expanded$ = _this.expandSegmentAgainstRoute(injector, segmentGroup, routes, r, segments, outlet, allowRedirects);\n return rxjs_operator_catch._catch.call(expanded$, function (e) {\n if (e instanceof NoMatch)\n return rxjs_observable_of.of(null);\n else\n throw e;\n });\n });\n var concattedProcessedRoutes$ = rxjs_operator_concatAll.concatAll.call(processedRoutes$);\n var first$ = rxjs_operator_first.first.call(concattedProcessedRoutes$, function (s) { return !!s; });\n return rxjs_operator_catch._catch.call(first$, function (e, _) {\n if (e instanceof rxjs_util_EmptyError.EmptyError) {\n throw new NoMatch(segmentGroup);\n }\n else {\n throw e;\n }\n });\n };\n ApplyRedirects.prototype.expandSegmentAgainstRoute = function (injector, segmentGroup, routes, route, paths, outlet, allowRedirects) {\n if (getOutlet$1(route) !== outlet)\n return noMatch(segmentGroup);\n if (route.redirectTo !== undefined && !(allowRedirects && this.allowRedirects))\n return noMatch(segmentGroup);\n if (route.redirectTo === undefined) {\n return this.matchSegmentAgainstRoute(injector, segmentGroup, route, paths);\n }\n else {\n return this.expandSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, paths, outlet);\n }\n };\n ApplyRedirects.prototype.expandSegmentAgainstRouteUsingRedirect = function (injector, segmentGroup, routes, route, segments, outlet) {\n if (route.path === '**') {\n return this.expandWildCardWithParamsAgainstRouteUsingRedirect(route);\n }\n else {\n return this.expandRegularSegmentAgainstRouteUsingRedirect(injector, segmentGroup, routes, route, segments, outlet);\n }\n };\n ApplyRedirects.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect = function (route) {\n var newSegments = applyRedirectCommands([], route.redirectTo, {});\n if (route.redirectTo.startsWith('/')) {\n return absoluteRedirect(newSegments);\n }\n else {\n return rxjs_observable_of.of(new UrlSegmentGroup(newSegments, {}));\n }\n };\n ApplyRedirects.prototype.expandRegularSegmentAgainstRouteUsingRedirect = function (injector, segmentGroup, routes, route, segments, outlet) {\n var _a = match(segmentGroup, route, segments), matched = _a.matched, consumedSegments = _a.consumedSegments, lastChild = _a.lastChild, positionalParamSegments = _a.positionalParamSegments;\n if (!matched)\n return noMatch(segmentGroup);\n var newSegments = applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);\n if (route.redirectTo.startsWith('/')) {\n return absoluteRedirect(newSegments);\n }\n else {\n return this.expandSegment(injector, segmentGroup, routes, newSegments.concat(segments.slice(lastChild)), outlet, false);\n }\n };\n ApplyRedirects.prototype.matchSegmentAgainstRoute = function (injector, rawSegmentGroup, route, segments) {\n var _this = this;\n if (route.path === '**') {\n return rxjs_observable_of.of(new UrlSegmentGroup(segments, {}));\n }\n else {\n var _a = match(rawSegmentGroup, route, segments), matched = _a.matched, consumedSegments_1 = _a.consumedSegments, lastChild = _a.lastChild;\n if (!matched)\n return noMatch(rawSegmentGroup);\n var rawSlicedSegments_1 = segments.slice(lastChild);\n var childConfig$ = this.getChildConfig(injector, route);\n return rxjs_operator_mergeMap.mergeMap.call(childConfig$, function (routerConfig) {\n var childInjector = routerConfig.injector;\n var childConfig = routerConfig.routes;\n var _a = split(rawSegmentGroup, consumedSegments_1, rawSlicedSegments_1, childConfig), segmentGroup = _a.segmentGroup, slicedSegments = _a.slicedSegments;\n if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n var expanded$ = _this.expandChildren(childInjector, childConfig, segmentGroup);\n return rxjs_operator_map.map.call(expanded$, function (children) { return new UrlSegmentGroup(consumedSegments_1, children); });\n }\n else if (childConfig.length === 0 && slicedSegments.length === 0) {\n return rxjs_observable_of.of(new UrlSegmentGroup(consumedSegments_1, {}));\n }\n else {\n var expanded$ = _this.expandSegment(childInjector, segmentGroup, childConfig, slicedSegments, PRIMARY_OUTLET, true);\n return rxjs_operator_map.map.call(expanded$, function (cs) { return new UrlSegmentGroup(consumedSegments_1.concat(cs.segments), cs.children); });\n }\n });\n }\n };\n ApplyRedirects.prototype.getChildConfig = function (injector, route) {\n var _this = this;\n if (route.children) {\n return rxjs_observable_of.of(new LoadedRouterConfig(route.children, injector, null));\n }\n else if (route.loadChildren) {\n return rxjs_operator_mergeMap.mergeMap.call(runGuards(injector, route), function (shouldLoad) {\n if (shouldLoad) {\n if (route._loadedConfig) {\n return rxjs_observable_of.of(route._loadedConfig);\n }\n else {\n return rxjs_operator_map.map.call(_this.configLoader.load(injector, route.loadChildren), function (r) {\n route._loadedConfig = r;\n return r;\n });\n }\n }\n else {\n return canLoadFails(route);\n }\n });\n }\n else {\n return rxjs_observable_of.of(new LoadedRouterConfig([], injector, null));\n }\n };\n return ApplyRedirects;\n }());\n function runGuards(injector, route) {\n var canLoad = route.canLoad;\n if (!canLoad || canLoad.length === 0)\n return rxjs_observable_of.of(true);\n var obs = rxjs_operator_map.map.call(rxjs_observable_from.from(canLoad), function (c) {\n var guard = injector.get(c);\n if (guard.canLoad) {\n return wrapIntoObservable(guard.canLoad(route));\n }\n else {\n return wrapIntoObservable(guard(route));\n }\n });\n return andObservables(obs);\n }\n function match(segmentGroup, route, segments) {\n var noMatch = { matched: false, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };\n if (route.path === '') {\n if ((route.pathMatch === 'full') && (segmentGroup.hasChildren() || segments.length > 0)) {\n return { matched: false, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };\n }\n else {\n return { matched: true, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };\n }\n }\n var path = route.path;\n var parts = path.split('/');\n var positionalParamSegments = {};\n var consumedSegments = [];\n var currentIndex = 0;\n for (var i = 0; i < parts.length; ++i) {\n if (currentIndex >= segments.length)\n return noMatch;\n var current = segments[currentIndex];\n var p = parts[i];\n var isPosParam = p.startsWith(':');\n if (!isPosParam && p !== current.path)\n return noMatch;\n if (isPosParam) {\n positionalParamSegments[p.substring(1)] = current;\n }\n consumedSegments.push(current);\n currentIndex++;\n }\n if (route.pathMatch === 'full' &&\n (segmentGroup.hasChildren() || currentIndex < segments.length)) {\n return { matched: false, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };\n }\n return { matched: true, consumedSegments: consumedSegments, lastChild: currentIndex, positionalParamSegments: positionalParamSegments };\n }\n function applyRedirectCommands(segments, redirectTo, posParams) {\n var r = redirectTo.startsWith('/') ? redirectTo.substring(1) : redirectTo;\n if (r === '') {\n return [];\n }\n else {\n return createSegments(redirectTo, r.split('/'), segments, posParams);\n }\n }\n function createSegments(redirectTo, parts, segments, posParams) {\n return parts.map(function (p) { return p.startsWith(':') ? findPosParam(p, posParams, redirectTo) :\n findOrCreateSegment(p, segments); });\n }\n function findPosParam(part, posParams, redirectTo) {\n var paramName = part.substring(1);\n var pos = posParams[paramName];\n if (!pos)\n throw new Error(\"Cannot redirect to '\" + redirectTo + \"'. Cannot find '\" + part + \"'.\");\n return pos;\n }\n function findOrCreateSegment(part, segments) {\n var idx = 0;\n for (var _i = 0, segments_1 = segments; _i < segments_1.length; _i++) {\n var s = segments_1[_i];\n if (s.path === part) {\n segments.splice(idx);\n return s;\n }\n idx++;\n }\n return new UrlSegment(part, {});\n }\n function split(segmentGroup, consumedSegments, slicedSegments, config) {\n if (slicedSegments.length > 0 &&\n containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, slicedSegments, config)) {\n var s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptySegments(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\n return { segmentGroup: mergeTrivialChildren(s), slicedSegments: [] };\n }\n else if (slicedSegments.length === 0 &&\n containsEmptyPathRedirects(segmentGroup, slicedSegments, config)) {\n var s = new UrlSegmentGroup(segmentGroup.segments, addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));\n return { segmentGroup: mergeTrivialChildren(s), slicedSegments: slicedSegments };\n }\n else {\n return { segmentGroup: segmentGroup, slicedSegments: slicedSegments };\n }\n }\n function mergeTrivialChildren(s) {\n if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {\n var c = s.children[PRIMARY_OUTLET];\n return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);\n }\n else {\n return s;\n }\n }\n function addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {\n var res = {};\n for (var _i = 0, routes_1 = routes; _i < routes_1.length; _i++) {\n var r = routes_1[_i];\n if (emptyPathRedirect(segmentGroup, slicedSegments, r) && !children[getOutlet$1(r)]) {\n res[getOutlet$1(r)] = new UrlSegmentGroup([], {});\n }\n }\n return merge(children, res);\n }\n function createChildrenForEmptySegments(routes, primarySegmentGroup) {\n var res = {};\n res[PRIMARY_OUTLET] = primarySegmentGroup;\n for (var _i = 0, routes_2 = routes; _i < routes_2.length; _i++) {\n var r = routes_2[_i];\n if (r.path === '' && getOutlet$1(r) !== PRIMARY_OUTLET) {\n res[getOutlet$1(r)] = new UrlSegmentGroup([], {});\n }\n }\n return res;\n }\n function containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, slicedSegments, routes) {\n return routes\n .filter(function (r) { return emptyPathRedirect(segmentGroup, slicedSegments, r) &&\n getOutlet$1(r) !== PRIMARY_OUTLET; })\n .length > 0;\n }\n function containsEmptyPathRedirects(segmentGroup, slicedSegments, routes) {\n return routes.filter(function (r) { return emptyPathRedirect(segmentGroup, slicedSegments, r); }).length > 0;\n }\n function emptyPathRedirect(segmentGroup, slicedSegments, r) {\n if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full')\n return false;\n return r.path === '' && r.redirectTo !== undefined;\n }\n function getOutlet$1(route) {\n return route.outlet ? route.outlet : PRIMARY_OUTLET;\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n function validateConfig(config) {\n config.forEach(validateNode);\n }\n function validateNode(route) {\n if (Array.isArray(route)) {\n throw new Error(\"Invalid route configuration: Array cannot be specified\");\n }\n if (!!route.redirectTo && !!route.children) {\n throw new Error(\"Invalid configuration of route '\" + route.path + \"': redirectTo and children cannot be used together\");\n }\n if (!!route.redirectTo && !!route.loadChildren) {\n throw new Error(\"Invalid configuration of route '\" + route.path + \"': redirectTo and loadChildren cannot be used together\");\n }\n if (!!route.children && !!route.loadChildren) {\n throw new Error(\"Invalid configuration of route '\" + route.path + \"': children and loadChildren cannot be used together\");\n }\n if (!!route.redirectTo && !!route.component) {\n throw new Error(\"Invalid configuration of route '\" + route.path + \"': redirectTo and component cannot be used together\");\n }\n if (route.redirectTo === undefined && !route.component && !route.children &&\n !route.loadChildren) {\n throw new Error(\"Invalid configuration of route '\" + route.path + \"': one of the following must be provided (component or redirectTo or children or loadChildren)\");\n }\n if (route.path === undefined) {\n throw new Error(\"Invalid route configuration: routes must have path specified\");\n }\n if (route.path.startsWith('/')) {\n throw new Error(\"Invalid route configuration of route '\" + route.path + \"': path cannot start with a slash\");\n }\n if (route.path === '' && route.redirectTo !== undefined && route.pathMatch === undefined) {\n var exp = \"The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.\";\n throw new Error(\"Invalid route configuration of route '{path: \\\"\" + route.path + \"\\\", redirectTo: \\\"\" + route.redirectTo + \"\\\"}': please provide 'pathMatch'. \" + exp);\n }\n if (route.pathMatch !== undefined && route.pathMatch !== 'full' && route.pathMatch !== 'prefix') {\n throw new Error(\"Invalid configuration of route '\" + route.path + \"': pathMatch can only be set to 'prefix' or 'full'\");\n }\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var Tree = (function () {\n function Tree(root) {\n this._root = root;\n }\n Object.defineProperty(Tree.prototype, \"root\", {\n get: function () { return this._root.value; },\n enumerable: true,\n configurable: true\n });\n /**\n * @internal\n */\n Tree.prototype.parent = function (t) {\n var p = this.pathFromRoot(t);\n return p.length > 1 ? p[p.length - 2] : null;\n };\n /**\n * @internal\n */\n Tree.prototype.children = function (t) {\n var n = findNode(t, this._root);\n return n ? n.children.map(function (t) { return t.value; }) : [];\n };\n /**\n * @internal\n */\n Tree.prototype.firstChild = function (t) {\n var n = findNode(t, this._root);\n return n && n.children.length > 0 ? n.children[0].value : null;\n };\n /**\n * @internal\n */\n Tree.prototype.siblings = function (t) {\n var p = findPath(t, this._root, []);\n if (p.length < 2)\n return [];\n var c = p[p.length - 2].children.map(function (c) { return c.value; });\n return c.filter(function (cc) { return cc !== t; });\n };\n /**\n * @internal\n */\n Tree.prototype.pathFromRoot = function (t) { return findPath(t, this._root, []).map(function (s) { return s.value; }); };\n return Tree;\n }());\n function findNode(expected, c) {\n if (expected === c.value)\n return c;\n for (var _i = 0, _a = c.children; _i < _a.length; _i++) {\n var cc = _a[_i];\n var r = findNode(expected, cc);\n if (r)\n return r;\n }\n return null;\n }\n function findPath(expected, c, collected) {\n collected.push(c);\n if (expected === c.value)\n return collected;\n for (var _i = 0, _a = c.children; _i < _a.length; _i++) {\n var cc = _a[_i];\n var cloned = collected.slice(0);\n var r = findPath(expected, cc, cloned);\n if (r.length > 0)\n return r;\n }\n return [];\n }\n var TreeNode = (function () {\n function TreeNode(value, children) {\n this.value = value;\n this.children = children;\n }\n TreeNode.prototype.toString = function () { return \"TreeNode(\" + this.value + \")\"; };\n return TreeNode;\n }());\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n var __extends$1 = (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 };\n /**\n * The state of the router.\n *\n * ### Usage\n *\n * ```\n * @Component({template:''})\n * class MyComponent {\n * constructor(router: Router) {\n * const state = router.routerState;\n * const id: Observable<string> = state.root.firstChild.params.map(p => p.id);\n * const isDebug: Observable<string> = state.root.queryParams.map(q => q.debug);\n * }\n * }\n * ```\n *\n * @stable\n */\n var RouterState = (function (_super) {\n __extends$1(RouterState, _super);\n /**\n * @internal\n */\n function RouterState(root, snapshot) {\n _super.call(this, root);\n this.snapshot = snapshot;\n setRouterStateSnapshot(this, root);\n }\n RouterState.prototype.toString = function () { return this.snapshot.toString(); };\n return RouterState;\n }(Tree));\n function createEmptyState(urlTree, rootComponent) {\n var snapshot = createEmptyStateSnapshot(urlTree, rootComponent);\n var emptyUrl = new rxjs_BehaviorSubject.BehaviorSubject([new UrlSegment('', {})]);\n var emptyParams = new rxjs_BehaviorSubject.BehaviorSubject({});\n var emptyData = new rxjs_BehaviorSubject.BehaviorSubject({});\n var emptyQueryParams = new rxjs_BehaviorSubject.BehaviorSubject({});\n var fragment = new rxjs_BehaviorSubject.BehaviorSubject('');\n var activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);\n activated.snapshot = snapshot.root;\n return new RouterState(new TreeNode(activated, []), snapshot);\n }\n function createEmptyStateSnapshot(urlTree, rootComponent) {\n var emptyParams = {};\n var emptyData = {};\n var emptyQueryParams = {};\n var fragment = '';\n var activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, urlTree.root, -1, InheritedResolve.empty);\n return new RouterStateSnapshot('', new TreeNode(activated, []));\n }\n /**\n * Contains the information about a component loaded in an outlet. The information is provided\n * through the params, urlSegments, and data observables.\n *\n * ### Usage\n *\n * ```\n * @Component({template:''})\n * class MyComponent {\n * constructor(route: ActivatedRoute) {\n * const id: Observable<string> = route.params.map(p => p.id);\n * const data = route.data.map(d => d.user); //includes `data` and `resolve`\n * }\n * }\n * ```\n *\n * @stable\n */\n var ActivatedRoute = (function () {\n /**\n * @internal\n */\n function ActivatedRoute(url, params, queryParams, fragment, data, outlet, component, futureSnapshot) {\n this.url = url;\n this.params = params;\n this.queryParams = queryParams;\n this.fragment = fragment;\n this.data = data;\n this.outlet = outlet;\n this.component = component;\n this._futureSnapshot = futureSnapshot;\n }\n Object.defineProperty(ActivatedRoute.prototype, \"routeConfig\", {\n get: function () { return this._futureSnapshot.routeConfig; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRoute.prototype, \"root\", {\n get: function () { return this._routerState.root; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRoute.prototype, \"parent\", {\n get: function () { return this._routerState.parent(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRoute.prototype, \"firstChild\", {\n get: function () { return this._routerState.firstChild(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRoute.prototype, \"children\", {\n get: function () { return this._routerState.children(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRoute.prototype, \"pathFromRoot\", {\n get: function () { return this._routerState.pathFromRoot(this); },\n enumerable: true,\n configurable: true\n });\n ActivatedRoute.prototype.toString = function () {\n return this.snapshot ? this.snapshot.toString() : \"Future(\" + this._futureSnapshot + \")\";\n };\n return ActivatedRoute;\n }());\n /**\n * @internal\n */\n var InheritedResolve = (function () {\n function InheritedResolve(parent, current) {\n this.parent = parent;\n this.current = current;\n /**\n * @internal\n */\n this.resolvedData = {};\n }\n Object.defineProperty(InheritedResolve.prototype, \"flattenedResolvedData\", {\n /**\n * @internal\n */\n get: function () {\n return this.parent ? merge(this.parent.flattenedResolvedData, this.resolvedData) :\n this.resolvedData;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(InheritedResolve, \"empty\", {\n get: function () { return new InheritedResolve(null, {}); },\n enumerable: true,\n configurable: true\n });\n return InheritedResolve;\n }());\n /**\n * Contains the information about a component loaded in an outlet at a particular moment in time.\n *\n * ### Usage\n *\n * ```\n * @Component({template:''})\n * class MyComponent {\n * constructor(route: ActivatedRoute) {\n * const id: string = route.snapshot.params.id;\n * const data = route.snapshot.data;\n * }\n * }\n * ```\n *\n * @stable\n */\n var ActivatedRouteSnapshot = (function () {\n /**\n * @internal\n */\n function ActivatedRouteSnapshot(url, params, queryParams, fragment, data, outlet, component, routeConfig, urlSegment, lastPathIndex, resolve) {\n this.url = url;\n this.params = params;\n this.queryParams = queryParams;\n this.fragment = fragment;\n this.data = data;\n this.outlet = outlet;\n this.component = component;\n this._routeConfig = routeConfig;\n this._urlSegment = urlSegment;\n this._lastPathIndex = lastPathIndex;\n this._resolve = resolve;\n }\n Object.defineProperty(ActivatedRouteSnapshot.prototype, \"routeConfig\", {\n get: function () { return this._routeConfig; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRouteSnapshot.prototype, \"root\", {\n get: function () { return this._routerState.root; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRouteSnapshot.prototype, \"parent\", {\n get: function () { return this._routerState.parent(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRouteSnapshot.prototype, \"firstChild\", {\n get: function () { return this._routerState.firstChild(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRouteSnapshot.prototype, \"children\", {\n get: function () { return this._routerState.children(this); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ActivatedRouteSnapshot.prototype, \"pathFromRoot\", {\n get: function () { return this._routerState.pathFromRoot(this); },\n enumerable: true,\n configurable: true\n });\n ActivatedRouteSnapshot.prototype.toString = function () {\n var url = this.url.map(function (s) { return s.toString(); }).join('/');\n var matched = this._routeConfig ? this._routeConfig.path : '';\n return \"Route(url:'\" + url + \"', path:'\" + matched + \"')\";\n };\n return ActivatedRouteSnapshot;\n }());\n /**\n * The state of the router at a particular moment in time.\n *\n * ### Usage\n *\n * ```\n * @Component({template:''})\n * class MyComponent {\n * constructor(router: Router) {\n * const snapshot = router.routerState.snapshot;\n * }\n * }\n * ```\n *\n * @stable\n */\n var RouterStateSnapshot = (function (_super) {\n __extends$1(RouterStateSnapshot, _super);\n /**\n * @internal\n */\n function RouterStateSnapshot(url, root) {\n _super.call(this, root);\n this.url = url;\n setRouterStateSnapshot(this, root);\n }\n RouterStateSnapshot.prototype.toString = function () { return serializeNode(this._root); };\n return RouterStateSnapshot;\n }(Tree));\n function setRouterStateSnapshot(state, node) {\n node.value._routerState = state;\n node.children.forEach(function (c) { return setRouterStateSnapshot(state, c); });\n }\n function serializeNode(node) {\n var c = node.children.length > 0 ? \" { \" + node.children.map(serializeNode).join(\", \") + \" } \" : '';\n return \"\" + node.value + c;\n }\n /**\n * The expectation is that the activate route is created with the right set of parameters.\n * So we push new values into the observables only when they are not the initial values.\n * And we detect that by checking if the snapshot field is set.\n */\n function advanceActivatedRoute(route) {\n if (route.snapshot) {\n if (!shallowEqual(route.snapshot.queryParams, route._futureSnapshot.queryParams)) {\n route.queryParams.next(route._futureSnapshot.queryParams);\n }\n if (route.snapshot.fragment !== route._futureSnapshot.fragment) {\n route.fragment.next(route._futureSnapshot.fragment);\n }\n if (!shallowEqual(route.snapshot.params, route._futureSnapshot.params)) {\n route.params.next(route._futureSnapshot.params);\n route.data.next(route._futureSnapshot.data);\n }\n if (!shallowEqualArrays(route.snapshot.url, route._futureSnapshot.url)) {\n route.url.next(route._futureSnapshot.url);\n }\n route.snapshot = route._futureSnapshot;\n }\n else {\n route.snapshot = route._futureSnapshot;\n // this is for resolved data\n route.data.next(route._futureSnapshot.data);\n }\n }\n\n function createRouterState(curr, prevState) {\n var root = createNode(curr._root, prevState ? prevState._root : undefined);\n return new RouterState(root, curr);\n }\n function createNode(curr, prevState) {\n if (prevState && equalRouteSnapshots(prevState.value.snapshot, curr.value)) {\n var value = prevState.value;\n value._futureSnapshot = curr.value;\n var children = createOrReuseChildren(curr, prevState);\n return new TreeNode(value, children);\n }\n else {\n var value = createActivatedRoute(curr.value);\n var children = curr.children.map(function (c) { return createNode(c); });\n return new TreeNode(value, children);\n }\n }\n function createOrReuseChildren(curr, prevState) {\n return curr.children.map(function (child) {\n for (var _i = 0, _a = prevState.children; _i < _a.length; _i++) {\n var p = _a[_i];\n if (equalRouteSnapshots(p.value.snapshot, child.value)) {\n return createNode(child, p);\n }\n }\n return createNode(child);\n });\n }\n function createActivatedRoute(c) {\n return new ActivatedRoute(new rxjs_BehaviorSubject.BehaviorSubject(c.url), new rxjs_BehaviorSubject.BehaviorSubject(c.params), new rxjs_BehaviorSubject.BehaviorSubject(c.queryParams), new rxjs_BehaviorSubject.BehaviorSubject(c.fragment), new rxjs_BehaviorSubject.BehaviorSubject(c.data), c.outlet, c.component, c);\n }\n function equalRouteSnapshots(a, b) {\n return a._routeConfig === b._routeConfig;\n }\n\n function createUrlTree(route, urlTree, commands, queryParams, fragment) {\n if (commands.length === 0) {\n return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);\n }\n var normalizedCommands = normalizeCommands(commands);\n validateCommands(normalizedCommands);\n if (navigateToRoot(normalizedCommands)) {\n return tree(urlTree.root, new UrlSegmentGroup([], {}), urlTree, queryParams, fragment);\n }\n var startingPosition = findStartingPosition(normalizedCommands, urlTree, route);\n var segmentGroup = startingPosition.processChildren ?\n updateSegmentGroupChildren(startingPosition.segmentGroup, startingPosition.index, normalizedCommands.commands) :\n updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, normalizedCommands.commands);\n return tree(startingPosition.segmentGroup, segmentGroup, urlTree, queryParams, fragment);\n }\n function validateCommands(n) {\n if (n.isAbsolute && n.commands.length > 0 && isMatrixParams(n.commands[0])) {\n throw new Error('Root segment cannot have matrix parameters');\n }\n var c = n.commands.filter(function (c) { return typeof c === 'object' && c.outlets !== undefined; });\n if (c.length > 0 && c[0] !== n.commands[n.commands.length - 1]) {\n throw new Error('{outlets:{}} has to be the last command');\n }\n }\n function isMatrixParams(command) {\n return typeof command === 'object' && command.outlets === undefined &&\n command.segmentPath === undefined;\n }\n function tree(oldSegmentGroup, newSegmentGroup, urlTree, queryParams, fragment) {\n if (urlTree.root === oldSegmentGroup) {\n return new UrlTree(newSegmentGroup, stringify(queryParams), fragment);\n }\n else {\n return new UrlTree(replaceSegment(urlTree.root, oldSegmentGroup, newSegmentGroup), stringify(queryParams), fragment);\n }\n }\n function replaceSegment(current, oldSegment, newSegment) {\n var children = {};\n forEach(current.children, function (c, outletName) {\n if (c === oldSegment) {\n children[outletName] = newSegment;\n }\n else {\n children[outletName] = replaceSegment(c, oldSegment, newSegment);\n }\n });\n return new UrlSegmentGroup(current.segments, children);\n }\n function navigateToRoot(normalizedChange) {\n return normalizedChange.isAbsolute && normalizedChange.commands.length === 1 &&\n normalizedChange.commands[0] == '/';\n }\n var NormalizedNavigationCommands = (function () {\n function NormalizedNavigationCommands(isAbsolute, numberOfDoubleDots, commands) {\n this.isAbsolute = isAbsolute;\n this.numberOfDoubleDots = numberOfDoubleDots;\n this.commands = commands;\n }\n return NormalizedNavigationCommands;\n }());\n function normalizeCommands(commands) {\n if ((typeof commands[0] === 'string') && commands.length === 1 && commands[0] == '/') {\n return new NormalizedNavigationCommands(true, 0, commands);\n }\n var numberOfDoubleDots = 0;\n var isAbsolute = false;\n var res = [];\n var _loop_1 = function(i) {\n var c = commands[i];\n if (typeof c === 'object' && c.outlets !== undefined) {\n var r_1 = {};\n forEach(c.outlets, function (commands, name) {\n if (typeof commands === 'string') {\n r_1[name] = commands.split('/');\n }\n else {\n r_1[name] = commands;\n }\n });\n res.push({ outlets: r_1 });\n return \"continue\";\n }\n if (typeof c === 'object' && c.segmentPath !== undefined) {\n res.push(c.segmentPath);\n return \"continue\";\n }\n if (!(typeof c === 'string')) {\n res.push(c);\n return \"continue\";\n }\n if (i === 0) {\n var parts = c.split('/');\n for (var j = 0; j < parts.length; ++j) {\n var cc = parts[j];\n if (j == 0 && cc == '.') {\n }\n else if (j == 0 && cc == '') {\n isAbsolute = true;\n }\n else if (cc == '..') {\n numberOfDoubleDots++;\n }\n else if (cc != '') {\n res.push(cc);\n }\n }\n }\n else {\n res.push(c);\n }\n };\n for (var i = 0; i < commands.length; ++i) {\n _loop_1(i);\n }\n return new NormalizedNavigationCommands(isAbsolute, numberOfDoubleDots, res);\n }\n var Position = (function () {\n function Position(segmentGroup, processChildren, index) {\n this.segmentGroup = segmentGroup;\n this.processChildren = processChildren;\n this.index = index;\n }\n return Position;\n }());\n function findStartingPosition(normalizedChange, urlTree, route) {\n if (normalizedChange.isAbsolute) {\n return new Position(urlTree.root, true, 0);\n }\n else if (route.snapshot._lastPathIndex === -1) {\n return new Position(route.snapshot._urlSegment, true, 0);\n }\n else {\n var modifier = isMatrixParams(normalizedChange.commands[0]) ? 0 : 1;\n var index = route.snapshot._lastPathIndex + modifier;\n return createPositionApplyingDoubleDots(route.snapshot._urlSegment, index, normalizedChange.numberOfDoubleDots);\n }\n }\n function createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {\n var g = group;\n var ci = index;\n var dd = numberOfDoubleDots;\n while (dd > ci) {\n dd -= ci;\n g = g.parent;\n if (!g) {\n throw new Error('Invalid number of \\'../\\'');\n }\n ci = g.segments.length;\n }\n return new Position(g, false, ci - dd);\n }\n function getPath(command) {\n return \"\" + command;\n }\n function getOutlets(commands) {\n if (!(typeof commands[0] === 'object'))\n return (_a = {}, _a[PRIMARY_OUTLET] = commands, _a);\n if (commands[0].outlets === undefined)\n return (_b = {}, _b[PRIMARY_OUTLET] = commands, _b);\n return commands[0].outlets;\n var _a, _b;\n }\n function updateSegmentGroup(segmentGroup, startIndex, commands) {\n if (!segmentGroup) {\n segmentGroup = new UrlSegmentGroup([], {});\n }\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return updateSegmentGroupChildren(segmentGroup, startIndex, commands);\n }\n var m = prefixedWith(segmentGroup, startIndex, commands);\n var slicedCommands = commands.slice(m.lastIndex);\n if (m.match && slicedCommands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else if (m.match && !segmentGroup.hasChildren()) {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n else if (m.match) {\n return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);\n }\n else {\n return createNewSegmentGroup(segmentGroup, startIndex, commands);\n }\n }\n function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {\n if (commands.length === 0) {\n return new UrlSegmentGroup(segmentGroup.segments, {});\n }\n else {\n var outlets_1 = getOutlets(commands);\n var children_1 = {};\n forEach(outlets_1, function (commands, outlet) {\n if (commands !== null) {\n children_1[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);\n }\n });\n forEach(segmentGroup.children, function (child, childOutlet) {\n if (outlets_1[childOutlet] === undefined) {\n children_1[childOutlet] = child;\n }\n });\n return new UrlSegmentGroup(segmentGroup.segments, children_1);\n }\n }\n function prefixedWith(segmentGroup, startIndex, commands) {\n var currentCommandIndex = 0;\n var currentPathIndex = startIndex;\n var noMatch = { match: false, lastIndex: 0 };\n while (currentPathIndex < segmentGroup.segments.length) {\n if (currentCommandIndex >= commands.length)\n return noMatch;\n var path = segmentGroup.segments[currentPathIndex];\n var curr = getPath(commands[currentCommandIndex]);\n var next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;\n if (curr && next && (typeof next === 'object') && next.outlets === undefined) {\n if (!compare(curr, next, path))\n return noMatch;\n currentCommandIndex += 2;\n }\n else {\n if (!compare(curr, {}, path))\n return noMatch;\n currentCommandIndex++;\n }\n currentPathIndex++;\n }\n return { match: true, lastIndex: currentCommandIndex };\n }\n function createNewSegmentGroup(segmentGroup, startIndex, commands) {\n var paths = segmentGroup.segments.slice(0, startIndex);\n var i = 0;\n while (i < commands.length) {\n if (typeof commands[i] === 'object' && commands[i].outlets !== undefined) {\n var children = createNewSegmentChldren(commands[i].outlets);\n return new UrlSegmentGroup(paths, children);\n }\n // if we start with an object literal, we need to reuse the path part from the segment\n if (i === 0 && isMatrixParams(commands[0])) {\n var p = segmentGroup.segments[startIndex];\n paths.push(new UrlSegment(p.path, commands[0]));\n i++;\n continue;\n }\n var curr = getPath(commands[i]);\n var next = (i < commands.length - 1) ? commands[i + 1] : null;\n if (curr && next && isMatrixParams(next)) {\n paths.push(new UrlSegment(curr, stringify(next)));\n i += 2;\n }\n else {\n paths.push(new UrlSegment(curr, {}));\n i++;\n }\n }\n return new UrlSegmentGroup(paths, {});\n }\n function createNewSegmentChldren(outlets) {\n var children = {};\n forEach(outlets, function (commands, outlet) {\n if (commands !== null) {\n children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);\n }\n });\n return children;\n }\n function stringify(params) {\n var res = {};\n forEach(params, function (v, k) { return res[k] = \"\" + v; });\n return res;\n }\n function compare(path, params, segment) {\n return path == segment.path && shallowEqual(params, segment.parameters);\n }\n\n var NoMatch$1 = (function () {\n function NoMatch() {\n }\n return NoMatch;\n }());\n var InheritedFromParent = (function () {\n function InheritedFromParent(parent, snapshot, params, data, resolve) {\n this.parent = parent;\n this.snapshot = snapshot;\n this.params = params;\n this.data = data;\n this.resolve = resolve;\n }\n Object.defineProperty(InheritedFromParent.prototype, \"allParams\", {\n get: function () {\n return this.parent ? merge(this.parent.allParams, this.params) : this.params;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(InheritedFromParent.prototype, \"allData\", {\n get: function () { return this.parent ? merge(this.parent.allData, this.data) : this.data; },\n enumerable: true,\n configurable: true\n });\n InheritedFromParent.empty = function (snapshot) {\n return new InheritedFromParent(null, snapshot, {}, {}, new InheritedResolve(null, {}));\n };\n return InheritedFromParent;\n }());\n function recognize(rootComponentType, config, urlTree, url) {\n return new Recognizer(rootComponentType, config, urlTree, url).recognize();\n }\n var Recognizer = (function () {\n function Recognizer(rootComponentType, config, urlTree, url) {\n this.rootComponentType = rootComponentType;\n this.config = config;\n this.urlTree = urlTree;\n this.url = url;\n }\n Recognizer.prototype.recognize = function () {\n try {\n var rootSegmentGroup = split$1(this.urlTree.root, [], [], this.config).segmentGroup;\n var children = this.processSegmentGroup(this.config, rootSegmentGroup, InheritedFromParent.empty(null), PRIMARY_OUTLET);\n var root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(this.urlTree.queryParams), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, this.urlTree.root, -1, InheritedResolve.empty);\n var rootNode = new TreeNode(root, children);\n return rxjs_observable_of.of(new RouterStateSnapshot(this.url, rootNode));\n }\n catch (e) {\n return new rxjs_Observable.Observable(function (obs) { return obs.error(e); });\n }\n };\n Recognizer.prototype.processSegmentGroup = function (config, segmentGroup, inherited, outlet) {\n if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {\n return this.processChildren(config, segmentGroup, inherited);\n }\n else {\n return this.processSegment(config, segmentGroup, 0, segmentGroup.segments, inherited, outlet);\n }\n };\n Recognizer.prototype.processChildren = function (config, segmentGroup, inherited) {\n var _this = this;\n var children = mapChildrenIntoArray(segmentGroup, function (child, childOutlet) { return _this.processSegmentGroup(config, child, inherited, childOutlet); });\n checkOutletNameUniqueness(children);\n sortActivatedRouteSnapshots(children);\n return children;\n };\n Recognizer.prototype.processSegment = function (config, segmentGroup, pathIndex, segments, inherited, outlet) {\n for (var _i = 0, config_1 = config; _i < config_1.length; _i++) {\n var r = config_1[_i];\n try {\n return this.processSegmentAgainstRoute(r, segmentGroup, pathIndex, segments, inherited, outlet);\n }\n catch (e) {\n if (!(e instanceof NoMatch$1))\n throw e;\n }\n }\n throw new NoMatch$1();\n };\n Recognizer.prototype.processSegmentAgainstRoute = function (route, rawSegment, pathIndex, segments, inherited, outlet) {\n if (route.redirectTo)\n throw new NoMatch$1();\n if ((route.outlet ? route.outlet : PRIMARY_OUTLET) !== outlet)\n throw new NoMatch$1();\n var newInheritedResolve = new InheritedResolve(inherited.resolve, getResolve(route));\n if (route.path === '**') {\n var params = segments.length > 0 ? last(segments).parameters : {};\n var snapshot_1 = new ActivatedRouteSnapshot(segments, Object.freeze(merge(inherited.allParams, params)), Object.freeze(this.urlTree.queryParams), this.urlTree.fragment, merge(inherited.allData, getData(route)), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, newInheritedResolve);\n return [new TreeNode(snapshot_1, [])];\n }\n var _a = match$1(rawSegment, route, segments, inherited.snapshot), consumedSegments = _a.consumedSegments, parameters = _a.parameters, lastChild = _a.lastChild;\n var rawSlicedSegments = segments.slice(lastChild);\n var childConfig = getChildConfig(route);\n var _b = split$1(rawSegment, consumedSegments, rawSlicedSegments, childConfig), segmentGroup = _b.segmentGroup, slicedSegments = _b.slicedSegments;\n var snapshot = new ActivatedRouteSnapshot(consumedSegments, Object.freeze(merge(inherited.allParams, parameters)), Object.freeze(this.urlTree.queryParams), this.urlTree.fragment, merge(inherited.allData, getData(route)), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, newInheritedResolve);\n var newInherited = route.component ?\n InheritedFromParent.empty(snapshot) :\n new InheritedFromParent(inherited, snapshot, parameters, getData(route), newInheritedResolve);\n if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {\n var children = this.processChildren(childConfig, segmentGroup, newInherited);\n return [new TreeNode(snapshot, children)];\n }\n else if (childConfig.length === 0 && slicedSegments.length === 0) {\n return [new TreeNode(snapshot, [])];\n }\n else {\n var children = this.processSegment(childConfig, segmentGroup, pathIndex + lastChild, slicedSegments, newInherited, PRIMARY_OUTLET);\n return [new TreeNode(snapshot, children)];\n }\n };\n return Recognizer;\n }());\n function sortActivatedRouteSnapshots(nodes) {\n nodes.sort(function (a, b) {\n if (a.value.outlet === PRIMARY_OUTLET)\n return -1;\n if (b.value.outlet === PRIMARY_OUTLET)\n return 1;\n return a.value.outlet.localeCompare(b.value.outlet);\n });\n }\n function getChildConfig(route) {\n if (route.children) {\n return route.children;\n }\n else if (route.loadChildren) {\n return route._loadedConfig.routes;\n }\n else {\n return [];\n }\n }\n function match$1(segmentGroup, route, segments, parent) {\n if (route.path === '') {\n if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {\n throw new NoMatch$1();\n }\n else {\n var params = parent ? parent.params : {};\n return { consumedSegments: [], lastChild: 0, parameters: params };\n }\n }\n var path = route.path;\n var parts = path.split('/');\n var posParameters = {};\n var consumedSegments = [];\n var currentIndex = 0;\n for (var i = 0; i < parts.length; ++i) {\n if (currentIndex >= segments.length)\n throw new NoMatch$1();\n var current = segments[currentIndex];\n var p = parts[i];\n var isPosParam = p.startsWith(':');\n if (!isPosParam && p !== current.path)\n throw new NoMatch$1();\n if (isPosParam) {\n posParameters[p.substring(1)] = current.path;\n }\n consumedSegments.push(current);\n currentIndex++;\n }\n if (route.pathMatch === 'full' &&\n (segmentGroup.hasChildren() || currentIndex < segments.length)) {\n throw new NoMatch$1();\n }\n var parameters = merge(posParameters, consumedSegments[consumedSegments.length - 1].parameters);\n return { consumedSegments: consumedSegments, lastChild: currentIndex, parameters: parameters };\n }\n function checkOutletNameUniqueness(nodes) {\n var names = {};\n nodes.forEach(function (n) {\n var routeWithSameOutletName = names[n.value.outlet];\n if (routeWithSameOutletName) {\n var p = routeWithSameOutletName.url.map(function (s) { return s.toString(); }).join('/');\n var c = n.value.url.map(function (s) { return s.toString(); }).join('/');\n throw new Error(\"Two segments cannot have the same outlet name: '\" + p + \"' and '\" + c + \"'.\");\n }\n names[n.value.outlet] = n.value;\n });\n }\n function getSourceSegmentGroup(segmentGroup) {\n var s = segmentGroup;\n while (s._sourceSegment) {\n s = s._sourceSegment;\n }\n return s;\n }\n function getPathIndexShift(segmentGroup) {\n var s = segmentGroup;\n var res = (s._segmentIndexShift ? s._segmentIndexShift : 0);\n while (s._sourceSegment) {\n s = s._sourceSegment;\n res += (s._segmentIndexShift ? s._segmentIndexShift : 0);\n }\n return res - 1;\n }\n function split$1(segmentGroup, consumedSegments, slicedSegments, config) {\n if (slicedSegments.length > 0 &&\n containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {\n var s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(segmentGroup, consumedSegments, config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n return { segmentGroup: s, slicedSegments: [] };\n }\n else if (slicedSegments.length === 0 &&\n containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {\n var s = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n return { segmentGroup: s, slicedSegments: slicedSegments };\n }\n else {\n var s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n return { segmentGroup: s, slicedSegments: slicedSegments };\n }\n }\n function addEmptyPathsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {\n var res = {};\n for (var _i = 0, routes_1 = routes; _i < routes_1.length; _i++) {\n var r = routes_1[_i];\n if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet$2(r)]) {\n var s = new UrlSegmentGroup([], {});\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = segmentGroup.segments.length;\n res[getOutlet$2(r)] = s;\n }\n }\n return merge(children, res);\n }\n function createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {\n var res = {};\n res[PRIMARY_OUTLET] = primarySegment;\n primarySegment._sourceSegment = segmentGroup;\n primarySegment._segmentIndexShift = consumedSegments.length;\n for (var _i = 0, routes_2 = routes; _i < routes_2.length; _i++) {\n var r = routes_2[_i];\n if (r.path === '' && getOutlet$2(r) !== PRIMARY_OUTLET) {\n var s = new UrlSegmentGroup([], {});\n s._sourceSegment = segmentGroup;\n s._segmentIndexShift = consumedSegments.length;\n res[getOutlet$2(r)] = s;\n }\n }\n return res;\n }\n function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {\n return routes\n .filter(function (r) { return emptyPathMatch(segmentGroup, slicedSegments, r) &&\n getOutlet$2(r) !== PRIMARY_OUTLET; })\n .length > 0;\n }\n function containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {\n return routes.filter(function (r) { return emptyPathMatch(segmentGroup, slicedSegments, r); }).length > 0;\n }\n function emptyPathMatch(segmentGroup, slicedSegments, r) {\n if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full')\n return false;\n return r.path === '' && r.redirectTo === undefined;\n }\n function getOutlet$2(route) {\n return route.outlet ? route.outlet : PRIMARY_OUTLET;\n }\n function getData(route) {\n return route.data ? route.data : {};\n }\n function getResolve(route) {\n return route.resolve ? route.resolve : {};\n }\n\n /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n /**\n * @stable\n */\n var RouterOutletMap = (function () {\n function RouterOutletMap() {\n /** @internal */\n this._outlets = {};\n }\n RouterOutletMap.prototype.registerOutlet = function (name, outlet) { this._outlets[name] = outlet; };\n RouterOutletMap.prototype.removeOutlet = function (name) { this._outlets[name] = undefined; };\n return RouterOutletMap;\n }());\n\n /**\n * An event triggered when a navigation starts\n *\n * @stable\n */\n var NavigationStart = (function () {\n function NavigationStart(id, url) {\n this.id = id;\n this.url = url;\n }\n NavigationStart.prototype.toString = function () { return \"NavigationStart(id: \" + this.id + \", url: '\" + this.url + \"')\"; };\n return NavigationStart;\n }());\n /**\n * An event triggered when a navigation ends successfully\n *\n * @stable\n */\n var NavigationEnd = (function () {\n function NavigationEnd(id, url, urlAfterRedirects) {\n this.id = id;\n this.url = url;\n this.urlAfterRedirects = urlAfterRedirects;\n }\n NavigationEnd.prototype.toString = function () {\n return \"NavigationEnd(id: \" + this.id + \", url: '\" + this.url + \"', urlAfterRedirects: '\" + this.urlAfterRedirects + \"')\";\n };\n return NavigationEnd;\n }());\n /**\n * An event triggered when a navigation is canceled\n *\n * @stable\n */\n var NavigationCancel = (function () {\n function NavigationCancel(id, url, reason) {\n this.id = id;\n this.url = url;\n this.reason = reason;\n }\n NavigationCancel.prototype.toString = function () { return \"NavigationCancel(id: \" + this.id + \", url: '\" + this.url + \"')\"; };\n return NavigationCancel;\n }());\n /**\n * An event triggered when a navigation fails due to unexpected error\n *\n * @stable\n */\n var NavigationError = (function () {\n function NavigationError(id, url, error) {\n this.id = id;\n this.url = url;\n this.error = error;\n }\n NavigationError.prototype.toString = function () {\n return \"NavigationError(id: \" + this.id + \", url: '\" + this.url + \"', error: \" + this.error + \")\";\n };\n return NavigationError;\n }());\n /**\n * An event triggered when routes are recognized\n *\n * @stable\n */\n var RoutesRecognized = (function () {\n function RoutesRecognized(id, url, urlAfterRedirects, state) {\n this.id = id;\n this.url = url;\n this.urlAfterRedirects = urlAfterRedirects;\n this.state = state;\n }\n RoutesRecognized.prototype.toString = function () {\n return \"RoutesRecognized(id: \" + this.id + \", url: '\" + this.url + \"', urlAfterRedirects: '\" + this.urlAfterRedirects + \"', state: \" + this.state + \")\";\n };\n return RoutesRecognized;\n }());\n function defaultErrorHandler(error) {\n throw error;\n }\n /**\n * The `Router` is responsible for mapping URLs to components.\n *\n * See {@link Routes} for more details and examples.\n *\n * @stable\n */\n var Router = (function () {\n /**\n * Creates the router service.\n */\n function Router(rootComponentType, urlSerializer, outletMap, location, injector, loader, compiler, config) {\n this.rootComponentType = rootComponentType;\n this.urlSerializer = urlSerializer;\n this.outletMap = outletMap;\n this.location = location;\n this.injector = injector;\n this.config = config;\n this.navigationId = 0;\n this.errorHandler = defaultErrorHandler;\n /**\n * Indicates if at least one navigation happened.\n *\n * @stable\n */\n this.navigated = false;\n this.resetConfig(config);\n this.routerEvents = new rxjs_Subject.Subject();\n this.currentUrlTree = createEmptyUrlTree();\n this.configLoader = new RouterConfigLoader(loader, compiler);\n this.currentRouterState = createEmptyState(this.currentUrlTree, this.rootComponentType);\n }\n /**\n * Sets up the location change listener and performs the inital navigation\n */\n Router.prototype.initialNavigation = function () {\n this.setUpLocationChangeListener();\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\n };\n /**\n * Sets up the location change listener\n */\n Router.prototype.setUpLocationChangeListener = function () {\n var _this = this;\n // Zone.current.wrap is needed because of the issue with RxJS scheduler,\n // which does not work properly with zone.js in IE and Safari\n this.locationSubscription = this.location.subscribe(Zone.current.wrap(function (change) {\n var tree = _this.urlSerializer.parse(change['url']);\n // we fire multiple events for a single URL change\n // we should navigate only once\n return _this.currentUrlTree.toString() !== tree.toString() ?\n _this.scheduleNavigation(tree, { skipLocationChange: change['pop'], replaceUrl: true }) :\n null;\n }));\n };\n Object.defineProperty(Router.prototype, \"routerState\", {\n /**\n * Returns the current route state.\n */\n get: function () { return this.currentRouterState; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"url\", {\n /**\n * Returns the current url.\n */\n get: function () { return this.serializeUrl(this.currentUrlTree); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Router.prototype, \"events\", {\n /**\n * Returns an observable of route events\n */\n get: function () { return this.routerEvents; },\n enumerable: true,\n configurable: true\n });\n /**\n * Resets the configuration used for navigation and generating links.\n *\n * ### Usage\n *\n * ```\n * router.resetConfig([\n * { path: 'team/:id', component: TeamCmp, children: [\n * { path: 'simple', component: SimpleCmp },\n * { path: 'user/:name', component: UserCmp }\n * ] }\n * ]);\n * ```\n */\n Router.prototype.resetConfig = function (config) {\n validateConfig(config);\n this.config = config;\n };\n Router.prototype.ngOnDestroy = function () { this.dispose(); };\n /**\n * Disposes of the router.\n */\n Router.prototype.dispose = function () { this.locationSubscription.unsubscribe(); };\n /**\n * Applies an array of commands to the current url tree and creates\n * a new url tree.\n *\n * When given an activate route, applies the given commands starting from the route.\n * When not given a route, applies the given command starting from the root.\n *\n * ### Usage\n *\n * ```\n * // create /team/33/user/11\n * router.createUrlTree(['/team', 33, 'user', 11]);\n *\n * // create /team/33;expand=true/user/11\n * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);\n *\n * // you can collapse static segments like this (this works only with the first passed-in value):\n * router.createUrlTree(['/team/33/user', userId]);\n *\n * // If the first segment can contain slashes, and you do not want the router to split it, you\n * // can do the following:\n *\n * router.createUrlTree([{segmentPath: '/one/two'}]);\n *\n * // create /team/33/(user/11//right:chat)\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);\n *\n * // remove the right secondary node\n * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);\n *\n * // assuming the current url is `/team/33/user/11` and the route points to `user/11`\n *\n * // navigate to /team/33/user/11/details\n * router.createUrlTree(['details'], {relativeTo: route});\n *\n * // navigate to /team/33/user/22\n * router.createUrlTree(['../22'], {relativeTo: route});\n *\n * // navigate to /team/44/user/22\n * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});\n * ```\n */\n Router.prototype.createUrlTree = function (commands, _a) {\n var _b = _a === void 0 ? {} : _a, relativeTo = _b.relativeTo, queryParams = _b.queryParams, fragment = _b.fragment, preserveQueryParams = _b.preserveQueryParams, preserveFragment = _b.preserveFragment;\n var a = relativeTo ? relativeTo : this.routerState.root;\n var q = preserveQueryParams ? this.currentUrlTree.queryParams : queryParams;\n var f = preserveFragment ? this.currentUrlTree.fragment : fragment;\n return createUrlTree(a, this.currentUrlTree, commands, q, f);\n };\n /**\n * Navigate based on the provided url. This navigation is always absolute.\n *\n * Returns a promise that:\n * - is resolved with 'true' when navigation succeeds\n * - is resolved with 'false' when navigation fails\n * - is rejected when an error happens\n *\n * ### Usage\n *\n * ```\n * router.navigateByUrl(\"/team/33/user/11\");\n *\n * // Navigate without updating the URL\n * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });\n * ```\n *\n * In opposite to `navigate`, `navigateByUrl` takes a whole URL\n * and does not apply any delta to the current one.\n */\n Router.prototype.navigateByUrl = function (url, extras) {\n if (extras === void 0) { extras = { skipLocationChange: false }; }\n if (url instanceof UrlTree) {\n return this.scheduleNavigation(url, extras);\n }\n else {\n var urlTree = this.urlSerializer.parse(url);\n return this.scheduleNavigation(urlTree, extras);\n }\n };\n /**\n * Navigate based on the provided array of commands and a starting point.\n * If no starting route is provided, the navigation is absolute.\n *\n * Returns a promise that:\n * - is resolved with 'true' when navigation succeeds\n * - is resolved with 'false' when navigation fails\n * - is rejected when an error happens\n *\n * ### Usage\n *\n * ```\n * router.navigate(['team', 33, 'team', '11], {relativeTo: route});\n *\n * // Navigate without updating the URL\n * router.navigate(['team', 33, 'team', '11], {relativeTo: route, skipLocationChange: true });\n * ```\n *\n * In opposite to `navigateByUrl`, `navigate` always takes a delta\n * that is applied to the current URL.\n */\n Router.prototype.navigate = function (commands, extras) {\n if (extras === void 0) { extras = { skipLocationChange: false }; }\n return this.scheduleNavigation(this.createUrlTree(commands, extras), extras);\n };\n /**\n * Serializes a {@link UrlTree} into a string.\n */\n Router.prototype.serializeUrl = function (url) { return this.urlSerializer.serialize(url); };\n /**\n * Parse a string into a {@link UrlTree}.\n */\n Router.prototype.parseUrl = function (url) { return this.urlSerializer.parse(url); };\n /**\n * Returns if the url is activated or not.\n */\n Router.prototype.isActive = function (url, exact) {\n if (url instanceof UrlTree) {\n return containsTree(this.currentUrlTree, url, exact);\n }\n else {\n var urlTree = this.urlSerializer.parse(url);\n return containsTree(this.currentUrlTree, urlTree, exact);\n }\n };\n Router.prototype.scheduleNavigation = function (url, extras) {\n var _this = this;\n var id = ++this.navigationId;\n this.routerEvents.next(new NavigationStart(id, this.serializeUrl(url)));\n return Promise.resolve().then(function (_) { return _this.runNavigate(url, extras.skipLocationChange, extras.replaceUrl, id); });\n };\n Router.prototype.runNavigate = function (url, shouldPreventPushState, shouldReplaceUrl, id) {\n var _this = this;\n if (id !== this.navigationId) {\n this.location.go(this.urlSerializer.serialize(this.currentUrlTree));\n this.routerEvents.next(new NavigationCancel(id, this.serializeUrl(url), \"Navigation ID \" + id + \" is not equal to the current navigation id \" + this.navigationId));\n return Promise.resolve(false);\n }\n return new Promise(function (resolvePromise, rejectPromise) {\n var state;\n var navigationIsSuccessful;\n var preActivation;\n var appliedUrl;\n var storedState = _this.currentRouterState;\n var storedUrl = _this.currentUrlTree;\n var redirectsApplied$ = applyRedirects(_this.injector, _this.configLoader, url, _this.config);\n var snapshot$ = rxjs_operator_mergeMap.mergeMap.call(redirectsApplied$, function (u) {\n appliedUrl = u;\n return recognize(_this.rootComponentType, _this.config, appliedUrl, _this.serializeUrl(appliedUrl));\n });\n var emitRecognzied$ = rxjs_operator_map.map.call(snapshot$, function (newRouterStateSnapshot) {\n _this.routerEvents.next(new RoutesRecognized(id, _this.serializeUrl(url), _this.serializeUrl(appliedUrl), newRouterStateSnapshot));\n return newRouterStateSnapshot;\n });\n var routerState$ = rxjs_operator_map.map.call(emitRecognzied$, function (routerStateSnapshot) {\n return createRouterState(routerStateSnapshot, _this.currentRouterState);\n });\n var preactivation$ = rxjs_operator_map.map.call(routerState$, function (newState) {\n state = newState;\n preActivation =\n new PreActivation(state.snapshot, _this.currentRouterState.snapshot, _this.injector);\n preActivation.traverse(_this.outletMap);\n });\n var preactivation2$ = rxjs_operator_mergeMap.mergeMap.call(preactivation$, function () { return preActivation.checkGuards(); });\n var resolveData$ = rxjs_operator_mergeMap.mergeMap.call(preactivation2$, function (shouldActivate) {\n if (shouldActivate) {\n return rxjs_operator_map.map.call(preActivation.resolveData(), function () { return shouldActivate; });\n }\n else {\n return rxjs_observable_of.of(shouldActivate);\n }\n });\n resolveData$\n .forEach(function (shouldActivate) {\n if (!shouldActivate || id !== _this.navigationId) {\n navigationIsSuccessful = false;\n return;\n }\n _this.currentUrlTree = appliedUrl;\n _this.currentRouterState = state;\n if (!shouldPreventPushState) {\n var path = _this.urlSerializer.serialize(appliedUrl);\n if (_this.location.isCurrentPathEqualTo(path) || shouldReplaceUrl) {\n _this.location.replaceState(path);\n }\n else {\n _this.location.go(path);\n }\n }\n new ActivateRoutes(state, storedState).activate(_this.outletMap);\n navigationIsSuccessful = true;\n })\n .then(function () {\n _this.navigated = true;\n if (navigationIsSuccessful) {\n _this.routerEvents.next(new NavigationEnd(id, _this.serializeUrl(url), _this.serializeUrl(appliedUrl)));\n resolvePromise(true);\n }\n else {\n _this.routerEvents.next(new NavigationCancel(id, _this.serializeUrl(url), ''));\n resolvePromise(false);\n }\n }, function (e) {\n if (e instanceof NavigationCancelingError) {\n _this.navigated = true;\n _this.routerEvents.next(new NavigationCancel(id, _this.serializeUrl(url), e.message));\n resolvePromise(false);\n }\n else {\n _this.routerEvents.next(new NavigationError(id, _this.serializeUrl(url), e));\n try {\n resolvePromise(_this.errorHandler(e));\n }\n catch (ee) {\n rejectPromise(ee);\n }\n }\n if (id === _this.navigationId) {\n _this.currentRouterState = storedState;\n _this.currentUrlTree = storedUrl;\n _this.location.replaceState(_this.serializeUrl(storedUrl));\n }\n });\n });\n };\n return Router;\n }());\n var CanActivate = (function () {\n function CanActivate(path) {\n this.path = path;\n }\n Object.defineProperty(CanActivate.prototype, \"route\", {\n get: function () { return this.path[this.path.length - 1]; },\n enumerable: true,\n configurable: true\n });\n return CanActivate;\n }());\n var CanDeactivate = (function () {\n function CanDeactivate(component, route) {\n this.component = component;\n this.route = route;\n }\n return CanDeactivate;\n }());\n var PreActivation = (function () {\n function PreActivation(future, curr, injector) {\n this.future = future;\n this.curr = curr;\n this.injector = injector;\n this.checks = [];\n }\n PreActivation.prototype.traverse = function (parentOutletMap) {\n var futureRoot = this.future._root;\n var currRoot = this.curr ? this.curr._root : null;\n this.traverseChildRoutes(futureRoot, currRoot, parentOutletMap, [futureRoot.value]);\n };\n PreActivation.prototype.checkGuards = function () {\n var _this = this;\n if (this.checks.length === 0)\n return rxjs_observable_of.of(true);\n var checks$ = rxjs_observable_from.from(this.checks);\n var runningChecks$ = rxjs_operator_map.map.call(checks$, function (s) {\n if (s instanceof CanActivate) {\n return andObservables(rxjs_observable_from.from([_this.runCanActivateChild(s.path), _this.runCanActivate(s.route)]));\n }\n else if (s instanceof CanDeactivate) {\n // workaround https://github.com/Microsoft/TypeScript/issues/7271\n var s2 = s;\n return _this.runCanDeactivate(s2.component, s2.route);\n }\n else {\n throw new Error('Cannot be reached');\n }\n });\n var mergedChecks$ = rxjs_operator_mergeAll.mergeAll.call(runningChecks$);\n return rxjs_operator_every.every.call(mergedChecks$, function (result) { return result === true; });\n };\n PreActivation.prototype.resolveData = function () {\n var _this = this;\n if (this.checks.length === 0)\n return rxjs_observable_of.of(null);\n var checks$ = rxjs_observable_from.from(this.checks);\n var runningChecks$ = rxjs_operator_mergeMap.mergeMap.call(checks$, function (s) {\n if (s instanceof CanActivate) {\n return _this.runResolve(s.route);\n }\n else {\n return rxjs_observable_of.of(null);\n }\n });\n return rxjs_operator_reduce.reduce.call(runningChecks$, function (_, __) { return _; });\n };\n PreActivation.prototype.traverseChildRoutes = function (futureNode, currNode, outletMap, futurePath) {\n var _this = this;\n var prevChildren = nodeChildrenAsMap(currNode);\n futureNode.children.forEach(function (c) {\n _this.traverseRoutes(c, prevChildren[c.value.outlet], outletMap, futurePath.concat([c.value]));\n delete prevChildren[c.value.outlet];\n });\n forEach(prevChildren, function (v, k) { return _this.deactivateOutletAndItChildren(v, outletMap._outlets[k]); });\n };\n PreActivation.prototype.traverseRoutes = function (futureNode, currNode, parentOutletMap, futurePath) {\n var future = futureNode.value;\n var curr = currNode ? currNode.value : null;\n var outlet = parentOutletMap ? parentOutletMap._outlets[futureNode.value.outlet] : null;\n // reusing the node\n if (curr && future._routeConfig === curr._routeConfig) {\n if (!shallowEqual(future.params, curr.params)) {\n this.checks.push(new CanDeactivate(outlet.component, curr), new CanActivate(futurePath));\n }\n else {\n // we need to set the data\n future.data = curr.data;\n }\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n this.traverseChildRoutes(futureNode, currNode, outlet ? outlet.outletMap : null, futurePath);\n }\n else {\n this.traverseChildRoutes(futureNode, currNode, parentOutletMap, futurePath);\n }\n }\n else {\n if (curr) {\n // if we had a normal route, we need to deactivate only that outlet.\n if (curr.component) {\n this.deactivateOutletAndItChildren(curr, outlet);\n }\n else {\n this.deactivateOutletMap(parentOutletMap);\n }\n }\n this.checks.push(new CanActivate(futurePath));\n // If we have a component, we need to go through an outlet.\n if (future.component) {\n this.traverseChildRoutes(futureNode, null, outlet ? outlet.outletMap : null, futurePath);\n }\n else {\n this.traverseChildRoutes(futureNode, null, parentOutletMap, futurePath);\n }\n }\n };\n PreActivation.prototype.deactivateOutletAndItChildren = function (route, outlet) {\n if (outlet && outlet.isActivated) {\n this.deactivateOutletMap(outlet.outletMap);\n this.checks.push(new CanDeactivate(outlet.component, route));\n }\n };\n PreActivation.prototype.deactivateOutletMap = function (outletMap) {\n var _this = this;\n forEach(outletMap._outlets, function (v) {\n if (v.isActivated) {\n _this.deactivateOutletAndItChildren(v.activatedRoute.snapshot, v);\n }\n });\n };\n PreActivation.prototype.runCanActivate = function (future) {\n var _this = this;\n var canActivate = future._routeConfig ? future._routeConfig.canActivate : null;\n if (!canActivate || canActivate.length === 0)\n return rxjs_observable_of.of(true);\n var obs = rxjs_operator_map.map.call(rxjs_observable_from.from(canActivate), function (c) {\n var guard = _this.getToken(c, future);\n if (guard.canActivate) {\n return wrapIntoObservable(guard.canActivate(future, _this.future));\n }\n else {\n return wrapIntoObservable(guard(future, _this.future));\n }\n });\n return andObservables(obs);\n };\n PreActivation.prototype.runCanActivateChild = function (path) {\n var _this = this;\n var future = path[path.length - 1];\n var canActivateChildGuards = path.slice(0, path.length - 1)\n .reverse()\n .map(function (p) { return _this.extractCanActivateChild(p); })\n .filter(function (_) { return _ !== null; });\n return andObservables(rxjs_operator_map.map.call(rxjs_observable_from.from(canActivateChildGuards), function (d) {\n var obs = rxjs_operator_map.map.call(rxjs_observable_from.from(d.guards), function (c) {\n var guard = _this.getToken(c, c.node);\n if (guard.canActivateChild) {\n return wrapIntoObservable(guard.canActivateChild(future, _this.future));\n }\n else {\n return wrapIntoObservable(guard(future, _this.future));\n }\n });\n return andObservables(obs);\n }));\n };\n PreActivation.prototype.extractCanActivateChild = function (p) {\n var canActivateChild = p._routeConfig ? p._routeConfig.canActivateChild : null;\n if (!canActivateChild || canActivateChild.length === 0)\n return null;\n return { node: p, guards: canActivateChild };\n };\n PreActivation.prototype.runCanDeactivate = function (component, curr) {\n var _this = this;\n var canDeactivate = curr && curr._routeConfig ? curr._routeConfig.canDeactivate : null;\n if (!canDeactivate || canDeactivate.length === 0)\n return rxjs_observable_of.of(true);\n var canDeactivate$ = rxjs_operator_map.map.call(rxjs_observable_from.from(canDeactivate), function (c) {\n var guard = _this.getToken(c, curr);\n if (guard.canDeactivate) {\n return wrapIntoObservable(guard.canDeactivate(component, curr, _this.curr));\n }\n else {\n return wrapIntoObservable(guard(component, curr, _this.curr));\n }\n });\n var merged$ = rxjs_operator_mergeAll.mergeAll.call(canDeactivate$);\n return rxjs_operator_every.every.call(merged$, function (result) { return result === true; });\n };\n PreActivation.prototype.runResolve = function (future) {\n var resolve = future._resolve;\n return rxjs_operator_map.map.call(this.resolveNode(resolve.current, future), function (resolvedData) {\n resolve.resolvedData = resolvedData;\n future.data = merge(future.data, resolve.flattenedResolvedData);\n return null;\n });\n };\n PreActivation.prototype.resolveNode = function (resolve, future) {\n var _this = this;\n return waitForMap(resolve, function (k, v) {\n var resolver = _this.getToken(v, future);\n return resolver.resolve ? wrapIntoObservable(resolver.resolve(future, _this.future)) :\n wrapIntoObservable(resolver(future, _this.future));\n });\n };\n PreActivation.prototype.getToken = function (token, snapshot) {\n var config = closestLoadedConfig(snapshot);\n var injector = config ? config.injector : this.injector;\n return injector.get(token);\n };\n return PreActivation;\n }());\n var ActivateRoutes = (function () {\n function ActivateRoutes(futureState, currState) {\n this.futureState = futureState;\n this.currState = currState;\n }\n ActivateRoutes.prototype.activate = function (parentOutletMap) {\n var futureRoot = this.futureState._root;\n var currRoot = this.currState ? this.currState._root : null;\n advanceActivatedRoute(this.futureState.root);\n this.activateChildRoutes(futureRoot, currRoot, parentOutletMap);\n };\n ActivateRoutes.prototype.activateChildRoutes = function (futureNode, currNode, outletMap) {\n var _this = this;\n var prevChildren = nodeChildrenAsMap(currNode);\n futureNode.children.forEach(function (c) {\n _this.activateRoutes(c, prevChildren[c.value.outlet], outletMap);\n delete prevChildren[c.value.outlet];\n });\n forEach(prevChildren, function (v, k) { return _this.deactivateOutletAndItChildren(outletMap._outlets[k]); });\n };\n ActivateRoutes.prototype.activateRoutes = function (futureNode, currNode, parentOutletMap) {\n var future = futureNode.value;\n var curr = currNode ? currNode.value : null;\n // reusing the node\n if (future === curr) {\n // advance the route to push the parameters\n advanceActivatedRoute(future);\n // If we have a normal route, we need to go through an outlet.\n if (future.component) {\n var outlet = getOutlet(parentOutletMap, futureNode.value);\n this.activateChildRoutes(futureNode, currNode, outlet.outletMap);\n }\n else {\n this.activateChildRoutes(futureNode, currNode, parentOutletMap);\n }\n }\n else {\n if (curr) {\n // if we had a normal route, we need to deactivate only that outlet.\n if (curr.component) {\n var outlet = getOutlet(parentOutletMap, futureNode.value);\n this.deactivateOutletAndItChildren(outlet);\n }\n else {\n this.deactivateOutletMap(parentOutletMap);\n }\n }\n // if we have a normal route, we need to advance the route\n // and place the component into the outlet. After that recurse.\n if (future.component) {\n advanceActivatedRoute(future);\n var outlet = getOutlet(parentOutletMap, futureNode.value);\n var outletMap = new RouterOutletMap();\n this.placeComponentIntoOutlet(outletMap, future, outlet);\n this.activateChildRoutes(futureNode, null, outletMap);\n }\n else {\n advanceActivatedRoute(future);\n this.activateChildRoutes(futureNode, null, parentOutletMap);\n }\n }\n };\n ActivateRoutes.prototype.placeComponentIntoOutlet = function (outletMap, future, outlet) {\n var resolved = [{ provide: ActivatedRoute, useValue: future }, {\n provide: RouterOutletMap,\n useValue: outletMap\n }];\n var config = parentLoadedConfig(future.snapshot);\n var loadedFactoryResolver = null;\n var loadedInjector = null;\n if (config) {\n loadedFactoryResolver = config.factoryResolver;\n loadedInjector = config.injector;\n resolved.push({ provide: _angular_core.ComponentFactoryResolver, useValue: loadedFactoryResolver });\n }\n outlet.activate(future, loadedFactoryResolver, loadedInjector, _angular_core.ReflectiveInjector.resolve(resolved), outletMap);\n };\n ActivateRoutes.prototype.deactivateOutletAndItChildren = function (outlet) {\n if (outlet && outlet.isActivated) {\n this.deactivateOutletMap(outlet.outletMap);\n outlet.deactivate();\n }\n };\n ActivateRoutes.prototype.deactivateOutletMap = function (outletMap) {\n var _this = this;\n forEach(outletMap._outlets, function (v) { return _this.deactivateOutletAndItChildren(v); });\n };\n return ActivateRoutes;\n }());\n function parentLoadedConfig(snapshot) {\n var s = snapshot.parent;\n while (s) {\n var c = s._routeConfig;\n if (c && c._loadedConfig)\n return c._loadedConfig;\n if (c && c.component)\n return null;\n s = s.parent;\n }\n return null;\n }\n function closestLoadedConfig(snapshot) {\n if (!snapshot)\n return null;\n var s = snapshot.parent;\n while (s) {\n var c = s._routeConfig;\n if (c && c._loadedConfig)\n return c._loadedConfig;\n s = s.parent;\n }\n return null;\n }\n function nodeChildrenAsMap(node) {\n return node ? node.children.reduce(function (m, c) {\n m[c.value.outlet] = c;\n return m;\n }, {}) : {};\n }\n function getOutlet(outletMap, route) {\n var outlet = outletMap._outlets[route.outlet];\n if (!outlet) {\n var componentName = route.component.name;\n if (route.outlet === PRIMARY_OUTLET) {\n throw new Error(\"Cannot find primary outlet to load '\" + componentName + \"'\");\n }\n else {\n throw new Error(\"Cannot find the outlet \" + route.outlet + \" to load '\" + componentName + \"'\");\n }\n }\n return outlet;\n }\n\n /**\n * The RouterLink directive lets you link to specific parts of your app.\n *\n * Consider the following route configuration:\n\n * ```\n * [{ path: 'user/:name', component: UserCmp }]\n * ```\n *\n * When linking to this `User` route, you can write:\n *\n * ```\n * <a [routerLink]=\"/user/bob\">link to user component</a>\n * ```\n *\n * If you use dynamic values to generate the link, you can pass an array of path\n * segments, followed by the params for each segment.\n *\n * For instance `['/team', teamId, 'user', userName, {details: true}]`\n * means that we want to generate a link to `/team/11/user/bob;details=true`.\n * Multiple static segments can be merged into one (e.g., `['/team/11/user', userName, {details:\n true}]`).\n *\n * The first segment name can be prepended with `/`, `./`, or `../`:\n * * If the first segment begins with `/`, the router will look up the route from the root of the\n app.\n * * If the first segment begins with `./`, or doesn't begin with a slash, the router will\n * instead look in the children of the current activated route.\n * * And if the first segment begins with `../`, the router will go up one level.\n *\n * You can set query params and fragment as follows:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">link to user\n component</a>\n * ```\n * RouterLink will use these to generate this link: `/user/bob#education?debug=true`.\n *\n * You can also tell the directive to preserve the current query params and fragment:\n *\n * ```\n * <a [routerLink]=\"['/user/bob']\" preserveQueryParams preserveFragment>link to user\n component</a>\n * ```\n *\n * The router link directive always treats the provided input as a delta to the current url.\n *\n * For instance, if the current url is `/user/(box//aux:team)`.\n *\n * Then the following link `<a [routerLink]=\"['/user/jim']\">Jim</a>` will generate the link\n * `/user/(jim//aux:team)`. See {@link Router.createUrlTree} for more information.\n *\n * @stable\n */\n var RouterLink = (function () {\n function RouterLink(router, route, locationStrategy) {\n this.router = router;\n this.route = route;\n this.locationStrategy = locationStrategy;\n this.commands = [];\n }\n Object.defineProperty(RouterLink.prototype, \"routerLink\", {\n set: function (data) {\n if (Array.isArray(data)) {\n this.commands = data;\n }\n else {\n this.commands = [data];\n }\n },\n enumerable: true,\n configurable: true\n });\n RouterLink.prototype.onClick = function (button, ctrlKey, metaKey) {\n if (button !== 0 || ctrlKey || metaKey) {\n return true;\n }\n this.router.navigateByUrl(this.urlTree);\n return false;\n };\n Object.defineProperty(RouterLink.prototype, \"urlTree\", {\n get: function () {\n return this.router.createUrlTree(this.commands, {\n relativeTo: this.route,\n queryParams: this.queryParams,\n fragment: this.fragment,\n preserveQueryParams: toBool(this.preserveQueryParams),\n preserveFragment: toBool(this.preserveFragment)\n });\n },\n enumerable: true,\n configurable: true\n });\n RouterLink.decorators = [\n { type: _angular_core.Directive, args: [{ selector: ':not(a)[routerLink]' },] },\n ];\n /** @nocollapse */\n RouterLink.ctorParameters = [\n { type: Router, },\n { type: ActivatedRoute, },\n { type: _angular_common.LocationStrategy, },\n ];\n RouterLink.propDecorators = {\n 'queryParams': [{ type: _angular_core.Input },],\n 'fragment': [{ type: _angular_core.Input },],\n 'preserveQueryParams': [{ type: _angular_core.Input },],\n 'preserveFragment': [{ type: _angular_core.Input },],\n 'routerLink': [{ type: _angular_core.Input },],\n 'onClick': [{ type: _angular_core.HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey'],] },],\n };\n return RouterLink;\n }());\n /**\n * See {@link RouterLink} for more information.\n * @stable\n */\n var RouterLinkWithHref = (function () {\n function RouterLinkWithHref(router, route, locationStrategy) {\n var _this = this;\n this.router = router;\n this.route = route;\n this.locationStrategy = locationStrategy;\n this.commands = [];\n this.subscription = router.events.subscribe(function (s) {\n if (s instanceof NavigationEnd) {\n _this.updateTargetUrlAndHref();\n }\n });\n }\n Object.defineProperty(RouterLinkWithHref.prototype, \"routerLink\", {\n set: function (data) {\n if (Array.isArray(data)) {\n this.commands = data;\n }\n else {\n this.commands = [data];\n }\n },\n enumerable: true,\n configurable: true\n });\n RouterLinkWithHref.prototype.ngOnChanges = function (changes) { this.updateTargetUrlAndHref(); };\n RouterLinkWithHref.prototype.ngOnDestroy = function () { this.subscription.unsubscribe(); };\n RouterLinkWithHref.prototype.onClick = function (button, ctrlKey, metaKey) {\n if (button !== 0 || ctrlKey || metaKey) {\n return true;\n }\n if (typeof this.target === 'string' && this.target != '_self') {\n return true;\n }\n this.router.navigateByUrl(this.urlTree);\n return false;\n };\n RouterLinkWithHref.prototype.updateTargetUrlAndHref = function () {\n this.href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree));\n };\n Object.defineProperty(RouterLinkWithHref.prototype, \"urlTree\", {\n get: function () {\n return this.router.createUrlTree(this.commands, {\n relativeTo: this.route,\n queryParams: this.queryParams,\n fragment: this.fragment,\n preserveQueryParams: toBool(this.preserveQueryParams),\n preserveFragment: toBool(this.preserveFragment)\n });\n },\n enumerable: true,\n configurable: true\n });\n RouterLinkWithHref.decorators = [\n { type: _angular_core.Directive, args: [{ selector: 'a[routerLink]' },] },\n ];\n /** @nocollapse */\n RouterLinkWithHref.ctorParameters = [\n { type: Router, },\n { type: ActivatedRoute, },\n { type: _angular_common.LocationStrategy, },\n ];\n RouterLinkWithHref.propDecorators = {\n 'target': [{ type: _angular_core.Input },],\n 'queryParams': [{ type: _angular_core.Input },],\n 'fragment': [{ type: _angular_core.Input },],\n 'routerLinkOptions': [{ type: _angular_core.Input },],\n 'preserveQueryParams': [{ type: _angular_core.Input },],\n 'preserveFragment': [{ type: _angular_core.Input },],\n 'href': [{ type: _angular_core.HostBinding },],\n 'routerLink': [{ type: _angular_core.Input },],\n 'onClick': [{ type: _angular_core.HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey'],] },],\n };\n return RouterLinkWithHref;\n }());\n function toBool(s) {\n if (s === '')\n return true;\n return !!s;\n }\n\n /**\n * The RouterLinkActive directive lets you add a CSS class to an element when the link's route\n * becomes active.\n *\n * Consider the following example:\n *\n * ```\n * <a [routerLink]=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>\n * ```\n *\n * When the url is either '/user' or '/user/bob', the active-link class will\n * be added to the `a` tag. If the url changes, the class will be removed.\n *\n * You can set more than one class, as follows:\n *\n * ```\n * <a [routerLink]=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>\n * <a [routerLink]=\"/user/bob\" routerLinkActive=\"['class1', 'class2']\">Bob</a>\n * ```\n *\n * You can configure RouterLinkActive by passing `exact: true`. This will add the classes\n * only when the url matches the link exactly.\n *\n * ```\n * <a [routerLink]=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:\n * true}\">Bob</a>\n * ```\n *\n * Finally, you can apply the RouterLinkActive directive to an ancestor of a RouterLink.\n *\n * ```\n * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">\n * <a [routerLink]=\"/user/jim\">Jim</a>\n * <a [routerLink]=\"/user/bob\">Bob</a>\n * </div>\n * ```\n *\n * This will set the active-link class on the div tag if the url is either '/user/jim' or\n * '/user/bob'.\n *\n * @stable\n */\n var RouterLinkActive = (function () {\n function RouterLinkActive(router, element, renderer) {\n var _this = this;\n this.router = router;\n this.element = element;\n this.renderer = renderer;\n this.classes = [];\n this.routerLinkActiveOptions = { exact: false };\n this.subscription = router.events.subscribe(function (s) {\n if (s instanceof NavigationEnd) {\n _this.update();\n }\n });\n }\n RouterLinkActive.prototype.ngAfterContentInit = function () {\n var _this = this;\n this.links.changes.subscribe(function (s) { return _this.update(); });\n this.linksWithHrefs.changes.subscribe(function (s) { return _this.update(); });\n this.update();\n };\n Object.defineProperty(RouterLinkActive.prototype, \"routerLinkActive\", {\n set: function (data) {\n if (Array.isArray(data)) {\n this.classes = data;\n }\n else {\n this.classes = data.split(' ');\n }\n },\n enumerable: true,\n configurable: true\n });\n RouterLinkActive.prototype.ngOnChanges = function (changes) { this.update(); };\n RouterLinkActive.prototype.ngOnDestroy = function () { this.subscription.unsubscribe(); };\n RouterLinkActive.prototype.update = function () {\n var _this = this;\n if (!this.links || !this.linksWithHrefs || !this.router.navigated)\n return;\n var isActiveLinks = this.reduceList(this.links);\n var isActiveLinksWithHrefs = this.reduceList(this.linksWithHrefs);\n this.classes.forEach(function (c) { return _this.renderer.setElementClass(_this.element.nativeElement, c, isActiveLinks || isActiveLinksWithHrefs); });\n };\n RouterLinkActive.prototype.reduceList = function (q) {\n var _this = this;\n return q.reduce(function (res, link) {\n return res || _this.router.isActive(link.urlTree, _this.routerLinkActiveOptions.exact);\n }, false);\n };\n RouterLinkActive.decorators = [\n { type: _angular_core.Directive, args: [{ selector: '[routerLinkActive]' },] },\n ];\n /** @nocollapse */\n RouterLinkActive.ctorParameters = [\n { type: Router, },\n { type: _angular_core.ElementRef, },\n { type: _angular_core.Renderer, },\n ];\n RouterLinkActive.propDecorators = {\n 'links': [{ type: _angular_core.ContentChildren, args: [RouterLink, { descendants: true },] },],\n 'linksWithHrefs': [{ type: _angular_core.ContentChildren, args: [RouterLinkWithHref, { descendants: true },] },],\n 'routerLinkActiveOptions': [{ type: _angular_core.Input },],\n 'routerLinkActive': [{ type: _angular_core.Input },],\n };\n return RouterLinkActive;\n }());\n\n /**\n * A router outlet is a placeholder that Angular dynamically fills based on the application's route.\n *\n * ## Example\n *\n * ```\n * <router-outlet></router-outlet>\n * <router-outlet name=\"left\"></router-outlet>\n * <router-outlet name=\"right\"></router-outlet>\n * ```\n *\n * A router outlet will emit an activate event any time a new component is being instantiated,\n * and a deactivate event when it is being destroyed.\n *\n * ## Example\n *\n * ```\n * <router-outlet (activate)=\"onActivate($event)\"\n * (deactivate)=\"onDeactivate($event)\"></router-outlet>\n * ```\n *\n * @stable\n */\n var RouterOutlet = (function () {\n function RouterOutlet(parentOutletMap, location, resolver, name) {\n this.parentOutletMap = parentOutletMap;\n this.location = location;\n this.resolver = resolver;\n this.name = name;\n this.activateEvents = new _angular_core.EventEmitter();\n this.deactivateEvents = new _angular_core.EventEmitter();\n parentOutletMap.registerOutlet(name ? name : PRIMARY_OUTLET, this);\n }\n RouterOutlet.prototype.ngOnDestroy = function () { this.parentOutletMap.removeOutlet(this.name ? this.name : PRIMARY_OUTLET); };\n Object.defineProperty(RouterOutlet.prototype, \"isActivated\", {\n get: function () { return !!this.activated; },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RouterOutlet.prototype, \"component\", {\n get: function () {\n if (!this.activated)\n throw new Error('Outlet is not activated');\n return this.activated.instance;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RouterOutlet.prototype, \"activatedRoute\", {\n get: function () {\n if (!this.activated)\n throw new Error('Outlet is not activated');\n return this._activatedRoute;\n },\n enumerable: true,\n configurable: true\n });\n RouterOutlet.prototype.deactivate = function () {\n if (this.activated) {\n var c = this.component;\n this.activated.destroy();\n this.activated = null;\n this.deactivateEvents.emit(c);\n }\n };\n RouterOutlet.prototype.activate = function (activatedRoute, loadedResolver, loadedInjector, providers, outletMap) {\n this.outletMap = outletMap;\n this._activatedRoute = activatedRoute;\n var snapshot = activatedRoute._futureSnapshot;\n var component = snapshot._routeConfig.component;\n var factory;\n if (loadedResolver) {\n factory = loadedResolver.resolveComponentFactory(component);\n }\n else {\n factory = this.resolver.resolveComponentFactory(component);\n }\n var injector = loadedInjector ? loadedInjector : this.location.parentInjector;\n var inj = _angular_core.ReflectiveInjector.fromResolvedProviders(providers, injector);\n this.activated = this.location.createComponent(factory, this.location.length, inj, []);\n this.activated.changeDetectorRef.detectChanges();\n this.activateEvents.emit(this.activated.instance);\n };\n RouterOutlet.decorators = [\n { type: _angular_core.Directive, args: [{ selector: 'router-outlet' },] },\n ];\n /** @nocollapse */\n RouterOutlet.ctorParameters = [\n { type: RouterOutletMap, },\n { type: _angular_core.ViewContainerRef, },\n { type: _angular_core.ComponentFactoryResolver, },\n { type: undefined, decorators: [{ type: _angular_core.Attribute, args: ['name',] },] },\n ];\n RouterOutlet.propDecorators = {\n 'activateEvents': [{ type: _angular_core.Output, args: ['activate',] },],\n 'deactivateEvents': [{ type: _angular_core.Output, args: ['deactivate',] },],\n };\n return RouterOutlet;\n }());\n\n /**\n * @stable\n */\n var ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive];\n /**\n * @stable\n */\n var ROUTER_CONFIGURATION = new _angular_core.OpaqueToken('ROUTER_CONFIGURATION');\n var ROUTER_FORROOT_GUARD = new _angular_core.OpaqueToken('ROUTER_FORROOT_GUARD');\n var ROUTER_PROVIDERS = [\n _angular_common.Location, { provide: UrlSerializer, useClass: DefaultUrlSerializer }, {\n provide: Router,\n useFactory: setupRouter,\n deps: [\n _angular_core.ApplicationRef, UrlSerializer, RouterOutletMap, _angular_common.Location, _angular_core.Injector, _angular_core.NgModuleFactoryLoader,\n _angular_core.Compiler, ROUTES, ROUTER_CONFIGURATION\n ]\n },\n RouterOutletMap, { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },\n { provide: _angular_core.NgModuleFactoryLoader, useClass: _angular_core.SystemJsNgModuleLoader },\n { provide: ROUTER_CONFIGURATION, useValue: { enableTracing: false } }\n ];\n /**\n * Router module.\n *\n * When registered at the root, it should be used as follows:\n *\n * ### Example\n *\n * ```\n * bootstrap(AppCmp, {imports: [RouterModule.forRoot(ROUTES)]});\n * ```\n *\n * For submodules and lazy loaded submodules it should be used as follows:\n *\n * ### Example\n *\n * ```\n * @NgModule({\n * imports: [RouterModule.forChild(CHILD_ROUTES)]\n * })\n * class Lazy {}\n * ```\n *\n * @stable\n */\n var RouterModule = (function () {\n function RouterModule(guard) {\n }\n RouterModule.forRoot = function (routes, config) {\n return {\n ngModule: RouterModule,\n providers: [\n ROUTER_PROVIDERS, provideRoutes(routes), {\n provide: ROUTER_FORROOT_GUARD,\n useFactory: provideForRootGuard,\n deps: [[Router, new _angular_core.Optional(), new _angular_core.SkipSelf()]]\n },\n { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} }, {\n provide: _angular_common.LocationStrategy,\n useFactory: provideLocationStrategy,\n deps: [\n _angular_common.PlatformLocation, [new _angular_core.Inject(_angular_common.APP_BASE_HREF), new _angular_core.Optional()], ROUTER_CONFIGURATION\n ]\n },\n provideRouterInitializer()\n ]\n };\n };\n RouterModule.forChild = function (routes) {\n return { ngModule: RouterModule, providers: [provideRoutes(routes)] };\n };\n RouterModule.decorators = [\n { type: _angular_core.NgModule, args: [{ declarations: ROUTER_DIRECTIVES, exports: ROUTER_DIRECTIVES },] },\n ];\n /** @nocollapse */\n RouterModule.ctorParameters = [\n { type: undefined, decorators: [{ type: _angular_core.Optional }, { type: _angular_core.Inject, args: [ROUTER_FORROOT_GUARD,] },] },\n ];\n return RouterModule;\n }());\n function provideLocationStrategy(platformLocationStrategy, baseHref, options) {\n if (options === void 0) { options = {}; }\n return options.useHash ? new _angular_common.HashLocationStrategy(platformLocationStrategy, baseHref) :\n new _angular_common.PathLocationStrategy(platformLocationStrategy, baseHref);\n }\n function provideForRootGuard(router) {\n if (router) {\n throw new Error(\"RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.\");\n }\n return 'guarded';\n }\n /**\n * @stable\n */\n function provideRoutes(routes) {\n return [\n { provide: _angular_core.ANALYZE_FOR_ENTRY_COMPONENTS, multi: true, useValue: routes },\n { provide: ROUTES, multi: true, useValue: routes }\n ];\n }\n function setupRouter(ref, urlSerializer, outletMap, location, injector, loader, compiler, config, opts) {\n if (opts === void 0) { opts = {}; }\n if (ref.componentTypes.length == 0) {\n throw new Error('Bootstrap at least one component before injecting Router.');\n }\n var componentType = ref.componentTypes[0];\n var r = new Router(componentType, urlSerializer, outletMap, location, injector, loader, compiler, flatten(config));\n if (opts.errorHandler) {\n r.errorHandler = opts.errorHandler;\n }\n if (opts.enableTracing) {\n r.events.subscribe(function (e) {\n console.group(\"Router Event: \" + e.constructor.name);\n console.log(e.toString());\n console.log(e);\n console.groupEnd();\n });\n }\n return r;\n }\n function rootRoute(router) {\n return router.routerState.root;\n }\n function initialRouterNavigation(router, opts) {\n return function () {\n if (opts.initialNavigation === false) {\n router.setUpLocationChangeListener();\n }\n else {\n router.initialNavigation();\n }\n };\n }\n function provideRouterInitializer() {\n return {\n provide: _angular_core.APP_BOOTSTRAP_LISTENER,\n multi: true,\n useFactory: initialRouterNavigation,\n deps: [Router, ROUTER_CONFIGURATION]\n };\n }\n\n var __router_private__ = {\n ROUTER_PROVIDERS: ROUTER_PROVIDERS,\n ROUTES: ROUTES,\n flatten: flatten\n };\n\n exports.RouterLink = RouterLink;\n exports.RouterLinkWithHref = RouterLinkWithHref;\n exports.RouterLinkActive = RouterLinkActive;\n exports.RouterOutlet = RouterOutlet;\n exports.NavigationCancel = NavigationCancel;\n exports.NavigationEnd = NavigationEnd;\n exports.NavigationError = NavigationError;\n exports.NavigationStart = NavigationStart;\n exports.Router = Router;\n exports.RoutesRecognized = RoutesRecognized;\n exports.RouterModule = RouterModule;\n exports.provideRoutes = provideRoutes;\n exports.RouterOutletMap = RouterOutletMap;\n exports.ActivatedRoute = ActivatedRoute;\n exports.ActivatedRouteSnapshot = ActivatedRouteSnapshot;\n exports.RouterState = RouterState;\n exports.RouterStateSnapshot = RouterStateSnapshot;\n exports.PRIMARY_OUTLET = PRIMARY_OUTLET;\n exports.DefaultUrlSerializer = DefaultUrlSerializer;\n exports.UrlSegment = UrlSegment;\n exports.UrlSerializer = UrlSerializer;\n exports.UrlTree = UrlTree;\n exports.__router_private__ = __router_private__;\n\n}));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/@angular/router/bundles/router.umd.js\n ** module id = 345\n ** module chunks = 0\n **/","\"use strict\";\nvar FromObservable_1 = require('./FromObservable');\nexports.from = FromObservable_1.FromObservable.create;\n//# sourceMappingURL=from.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/from.js\n ** module id = 346\n ** module chunks = 0\n **/","\"use strict\";\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 isArray_1 = require('../util/isArray');\nvar isPromise_1 = require('../util/isPromise');\nvar PromiseObservable_1 = require('./PromiseObservable');\nvar IteratorObservable_1 = require('./IteratorObservable');\nvar ArrayObservable_1 = require('./ArrayObservable');\nvar ArrayLikeObservable_1 = require('./ArrayLikeObservable');\nvar iterator_1 = require('../symbol/iterator');\nvar Observable_1 = require('../Observable');\nvar observeOn_1 = require('../operator/observeOn');\nvar observable_1 = require('../symbol/observable');\nvar isArrayLike = (function (x) { return x && typeof x.length === 'number'; });\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar FromObservable = (function (_super) {\n __extends(FromObservable, _super);\n function FromObservable(ish, scheduler) {\n _super.call(this, null);\n this.ish = ish;\n this.scheduler = scheduler;\n }\n /**\n * Creates an Observable from an Array, an array-like object, a Promise, an\n * iterable object, or an Observable-like object.\n *\n * <span class=\"informal\">Converts almost anything to an Observable.</span>\n *\n * <img src=\"./img/from.png\" width=\"100%\">\n *\n * Convert various other objects and data types into Observables. `from`\n * converts a Promise or an array-like or an\n * [iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable)\n * object into an Observable that emits the items in that promise or array or\n * iterable. A String, in this context, is treated as an array of characters.\n * Observable-like objects (contains a function named with the ES2015 Symbol\n * for Observable) can also be converted through this operator.\n *\n * @example <caption>Converts an array to an Observable</caption>\n * var array = [10, 20, 30];\n * var result = Rx.Observable.from(array);\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Convert an infinite iterable (from a generator) to an Observable</caption>\n * function* generateDoubles(seed) {\n * var i = seed;\n * while (true) {\n * yield i;\n * i = 2 * i; // double it\n * }\n * }\n *\n * var iterator = generateDoubles(3);\n * var result = Rx.Observable.from(iterator).take(10);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link create}\n * @see {@link fromEvent}\n * @see {@link fromEventPattern}\n * @see {@link fromPromise}\n *\n * @param {ObservableInput<T>} ish A subscribable object, a Promise, an\n * Observable-like, an Array, an iterable or an array-like object to be\n * converted.\n * @param {Scheduler} [scheduler] The scheduler on which to schedule the\n * emissions of values.\n * @return {Observable<T>} The Observable whose values are originally from the\n * input object that was converted.\n * @static true\n * @name from\n * @owner Observable\n */\n FromObservable.create = function (ish, scheduler) {\n if (ish != null) {\n if (typeof ish[observable_1.$$observable] === 'function') {\n if (ish instanceof Observable_1.Observable && !scheduler) {\n return ish;\n }\n return new FromObservable(ish, scheduler);\n }\n else if (isArray_1.isArray(ish)) {\n return new ArrayObservable_1.ArrayObservable(ish, scheduler);\n }\n else if (isPromise_1.isPromise(ish)) {\n return new PromiseObservable_1.PromiseObservable(ish, scheduler);\n }\n else if (typeof ish[iterator_1.$$iterator] === 'function' || typeof ish === 'string') {\n return new IteratorObservable_1.IteratorObservable(ish, scheduler);\n }\n else if (isArrayLike(ish)) {\n return new ArrayLikeObservable_1.ArrayLikeObservable(ish, scheduler);\n }\n }\n throw new TypeError((ish !== null && typeof ish || ish) + ' is not observable');\n };\n FromObservable.prototype._subscribe = function (subscriber) {\n var ish = this.ish;\n var scheduler = this.scheduler;\n if (scheduler == null) {\n return ish[observable_1.$$observable]().subscribe(subscriber);\n }\n else {\n return ish[observable_1.$$observable]().subscribe(new observeOn_1.ObserveOnSubscriber(subscriber, scheduler, 0));\n }\n };\n return FromObservable;\n}(Observable_1.Observable));\nexports.FromObservable = FromObservable;\n//# sourceMappingURL=FromObservable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/FromObservable.js\n ** module id = 347\n ** module chunks = 0\n **/","\"use strict\";\nfunction isPromise(value) {\n return value && typeof value.subscribe !== 'function' && typeof value.then === 'function';\n}\nexports.isPromise = isPromise;\n//# sourceMappingURL=isPromise.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/isPromise.js\n ** module id = 348\n ** module chunks = 0\n **/","\"use strict\";\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 root_1 = require('../util/root');\nvar Observable_1 = require('../Observable');\nvar iterator_1 = require('../symbol/iterator');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar IteratorObservable = (function (_super) {\n __extends(IteratorObservable, _super);\n function IteratorObservable(iterator, scheduler) {\n _super.call(this);\n this.scheduler = scheduler;\n if (iterator == null) {\n throw new Error('iterator cannot be null.');\n }\n this.iterator = getIterator(iterator);\n }\n IteratorObservable.create = function (iterator, scheduler) {\n return new IteratorObservable(iterator, scheduler);\n };\n IteratorObservable.dispatch = function (state) {\n var index = state.index, hasError = state.hasError, iterator = state.iterator, subscriber = state.subscriber;\n if (hasError) {\n subscriber.error(state.error);\n return;\n }\n var result = iterator.next();\n if (result.done) {\n subscriber.complete();\n return;\n }\n subscriber.next(result.value);\n state.index = index + 1;\n if (subscriber.closed) {\n return;\n }\n this.schedule(state);\n };\n IteratorObservable.prototype._subscribe = function (subscriber) {\n var index = 0;\n var _a = this, iterator = _a.iterator, scheduler = _a.scheduler;\n if (scheduler) {\n return scheduler.schedule(IteratorObservable.dispatch, 0, {\n index: index, iterator: iterator, subscriber: subscriber\n });\n }\n else {\n do {\n var result = iterator.next();\n if (result.done) {\n subscriber.complete();\n break;\n }\n else {\n subscriber.next(result.value);\n }\n if (subscriber.closed) {\n break;\n }\n } while (true);\n }\n };\n return IteratorObservable;\n}(Observable_1.Observable));\nexports.IteratorObservable = IteratorObservable;\nvar StringIterator = (function () {\n function StringIterator(str, idx, len) {\n if (idx === void 0) { idx = 0; }\n if (len === void 0) { len = str.length; }\n this.str = str;\n this.idx = idx;\n this.len = len;\n }\n StringIterator.prototype[iterator_1.$$iterator] = function () { return (this); };\n StringIterator.prototype.next = function () {\n return this.idx < this.len ? {\n done: false,\n value: this.str.charAt(this.idx++)\n } : {\n done: true,\n value: undefined\n };\n };\n return StringIterator;\n}());\nvar ArrayIterator = (function () {\n function ArrayIterator(arr, idx, len) {\n if (idx === void 0) { idx = 0; }\n if (len === void 0) { len = toLength(arr); }\n this.arr = arr;\n this.idx = idx;\n this.len = len;\n }\n ArrayIterator.prototype[iterator_1.$$iterator] = function () { return this; };\n ArrayIterator.prototype.next = function () {\n return this.idx < this.len ? {\n done: false,\n value: this.arr[this.idx++]\n } : {\n done: true,\n value: undefined\n };\n };\n return ArrayIterator;\n}());\nfunction getIterator(obj) {\n var i = obj[iterator_1.$$iterator];\n if (!i && typeof obj === 'string') {\n return new StringIterator(obj);\n }\n if (!i && obj.length !== undefined) {\n return new ArrayIterator(obj);\n }\n if (!i) {\n throw new TypeError('object is not iterable');\n }\n return obj[iterator_1.$$iterator]();\n}\nvar maxSafeInteger = Math.pow(2, 53) - 1;\nfunction toLength(o) {\n var len = +o.length;\n if (isNaN(len)) {\n return 0;\n }\n if (len === 0 || !numberIsFinite(len)) {\n return len;\n }\n len = sign(len) * Math.floor(Math.abs(len));\n if (len <= 0) {\n return 0;\n }\n if (len > maxSafeInteger) {\n return maxSafeInteger;\n }\n return len;\n}\nfunction numberIsFinite(value) {\n return typeof value === 'number' && root_1.root.isFinite(value);\n}\nfunction sign(value) {\n var valueAsNumber = +value;\n if (valueAsNumber === 0) {\n return valueAsNumber;\n }\n if (isNaN(valueAsNumber)) {\n return valueAsNumber;\n }\n return valueAsNumber < 0 ? -1 : 1;\n}\n//# sourceMappingURL=IteratorObservable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/IteratorObservable.js\n ** module id = 349\n ** module chunks = 0\n **/","\"use strict\";\nvar root_1 = require('../util/root');\nvar Symbol = root_1.root.Symbol;\nif (typeof Symbol === 'function') {\n if (Symbol.iterator) {\n exports.$$iterator = Symbol.iterator;\n }\n else if (typeof Symbol.for === 'function') {\n exports.$$iterator = Symbol.for('iterator');\n }\n}\nelse {\n if (root_1.root.Set && typeof new root_1.root.Set()['@@iterator'] === 'function') {\n // Bug for mozilla version\n exports.$$iterator = '@@iterator';\n }\n else if (root_1.root.Map) {\n // es6-shim specific logic\n var keys = Object.getOwnPropertyNames(root_1.root.Map.prototype);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (key !== 'entries' && key !== 'size' && root_1.root.Map.prototype[key] === root_1.root.Map.prototype['entries']) {\n exports.$$iterator = key;\n break;\n }\n }\n }\n else {\n exports.$$iterator = '@@iterator';\n }\n}\n//# sourceMappingURL=iterator.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/symbol/iterator.js\n ** module id = 350\n ** module chunks = 0\n **/","\"use strict\";\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 Observable_1 = require('../Observable');\nvar ScalarObservable_1 = require('./ScalarObservable');\nvar EmptyObservable_1 = require('./EmptyObservable');\nvar isScheduler_1 = require('../util/isScheduler');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar ArrayObservable = (function (_super) {\n __extends(ArrayObservable, _super);\n function ArrayObservable(array, scheduler) {\n _super.call(this);\n this.array = array;\n this.scheduler = scheduler;\n if (!scheduler && array.length === 1) {\n this._isScalar = true;\n this.value = array[0];\n }\n }\n ArrayObservable.create = function (array, scheduler) {\n return new ArrayObservable(array, scheduler);\n };\n /**\n * Creates an Observable that emits some values you specify as arguments,\n * immediately one after the other, and then emits a complete notification.\n *\n * <span class=\"informal\">Emits the arguments you provide, then completes.\n * </span>\n *\n * <img src=\"./img/of.png\" width=\"100%\">\n *\n * This static operator is useful for creating a simple Observable that only\n * emits the arguments given, and the complete notification thereafter. It can\n * be used for composing with other Observables, such as with {@link concat}.\n * By default, it uses a `null` Scheduler, which means the `next`\n * notifications are sent synchronously, although with a different Scheduler\n * it is possible to determine when those notifications will be delivered.\n *\n * @example <caption>Emit 10, 20, 30, then 'a', 'b', 'c', then start ticking every second.</caption>\n * var numbers = Rx.Observable.of(10, 20, 30);\n * var letters = Rx.Observable.of('a', 'b', 'c');\n * var interval = Rx.Observable.interval(1000);\n * var result = numbers.concat(letters).concat(interval);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link create}\n * @see {@link empty}\n * @see {@link never}\n * @see {@link throw}\n *\n * @param {...T} values Arguments that represent `next` values to be emitted.\n * @param {Scheduler} [scheduler] A {@link Scheduler} to use for scheduling\n * the emissions of the `next` notifications.\n * @return {Observable<T>} An Observable that emits each given input value.\n * @static true\n * @name of\n * @owner Observable\n */\n ArrayObservable.of = function () {\n var array = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n array[_i - 0] = arguments[_i];\n }\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 new ArrayObservable(array, scheduler);\n }\n else if (len === 1) {\n return new ScalarObservable_1.ScalarObservable(array[0], scheduler);\n }\n else {\n return new EmptyObservable_1.EmptyObservable(scheduler);\n }\n };\n ArrayObservable.dispatch = function (state) {\n var array = state.array, index = state.index, count = state.count, subscriber = state.subscriber;\n if (index >= count) {\n subscriber.complete();\n return;\n }\n subscriber.next(array[index]);\n if (subscriber.closed) {\n return;\n }\n state.index = index + 1;\n this.schedule(state);\n };\n ArrayObservable.prototype._subscribe = function (subscriber) {\n var index = 0;\n var array = this.array;\n var count = array.length;\n var scheduler = this.scheduler;\n if (scheduler) {\n return scheduler.schedule(ArrayObservable.dispatch, 0, {\n array: array, index: index, count: count, subscriber: subscriber\n });\n }\n else {\n for (var i = 0; i < count && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n }\n };\n return ArrayObservable;\n}(Observable_1.Observable));\nexports.ArrayObservable = ArrayObservable;\n//# sourceMappingURL=ArrayObservable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/ArrayObservable.js\n ** module id = 351\n ** module chunks = 0\n **/","\"use strict\";\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 Observable_1 = require('../Observable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar ScalarObservable = (function (_super) {\n __extends(ScalarObservable, _super);\n function ScalarObservable(value, scheduler) {\n _super.call(this);\n this.value = value;\n this.scheduler = scheduler;\n this._isScalar = true;\n if (scheduler) {\n this._isScalar = false;\n }\n }\n ScalarObservable.create = function (value, scheduler) {\n return new ScalarObservable(value, scheduler);\n };\n ScalarObservable.dispatch = function (state) {\n var done = state.done, value = state.value, subscriber = state.subscriber;\n if (done) {\n subscriber.complete();\n return;\n }\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n state.done = true;\n this.schedule(state);\n };\n ScalarObservable.prototype._subscribe = function (subscriber) {\n var value = this.value;\n var scheduler = this.scheduler;\n if (scheduler) {\n return scheduler.schedule(ScalarObservable.dispatch, 0, {\n done: false, value: value, subscriber: subscriber\n });\n }\n else {\n subscriber.next(value);\n if (!subscriber.closed) {\n subscriber.complete();\n }\n }\n };\n return ScalarObservable;\n}(Observable_1.Observable));\nexports.ScalarObservable = ScalarObservable;\n//# sourceMappingURL=ScalarObservable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/ScalarObservable.js\n ** module id = 352\n ** module chunks = 0\n **/","\"use strict\";\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 Observable_1 = require('../Observable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar EmptyObservable = (function (_super) {\n __extends(EmptyObservable, _super);\n function EmptyObservable(scheduler) {\n _super.call(this);\n this.scheduler = scheduler;\n }\n /**\n * Creates an Observable that emits no items to the Observer and immediately\n * emits a complete notification.\n *\n * <span class=\"informal\">Just emits 'complete', and nothing else.\n * </span>\n *\n * <img src=\"./img/empty.png\" width=\"100%\">\n *\n * This static operator is useful for creating a simple Observable that only\n * emits the complete notification. It can be used for composing with other\n * Observables, such as in a {@link mergeMap}.\n *\n * @example <caption>Emit the number 7, then complete.</caption>\n * var result = Rx.Observable.empty().startWith(7);\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Map and flatten only odd numbers to the sequence 'a', 'b', 'c'</caption>\n * var interval = Rx.Observable.interval(1000);\n * var result = interval.mergeMap(x =>\n * x % 2 === 1 ? Rx.Observable.of('a', 'b', 'c') : Rx.Observable.empty()\n * );\n * result.subscribe(x => console.log(x));\n *\n * @see {@link create}\n * @see {@link never}\n * @see {@link of}\n * @see {@link throw}\n *\n * @param {Scheduler} [scheduler] A {@link Scheduler} to use for scheduling\n * the emission of the complete notification.\n * @return {Observable} An \"empty\" Observable: emits only the complete\n * notification.\n * @static true\n * @name empty\n * @owner Observable\n */\n EmptyObservable.create = function (scheduler) {\n return new EmptyObservable(scheduler);\n };\n EmptyObservable.dispatch = function (arg) {\n var subscriber = arg.subscriber;\n subscriber.complete();\n };\n EmptyObservable.prototype._subscribe = function (subscriber) {\n var scheduler = this.scheduler;\n if (scheduler) {\n return scheduler.schedule(EmptyObservable.dispatch, 0, { subscriber: subscriber });\n }\n else {\n subscriber.complete();\n }\n };\n return EmptyObservable;\n}(Observable_1.Observable));\nexports.EmptyObservable = EmptyObservable;\n//# sourceMappingURL=EmptyObservable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/EmptyObservable.js\n ** module id = 353\n ** module chunks = 0\n **/","\"use strict\";\nfunction isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}\nexports.isScheduler = isScheduler;\n//# sourceMappingURL=isScheduler.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/isScheduler.js\n ** module id = 354\n ** module chunks = 0\n **/","\"use strict\";\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 Observable_1 = require('../Observable');\nvar ScalarObservable_1 = require('./ScalarObservable');\nvar EmptyObservable_1 = require('./EmptyObservable');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @extends {Ignored}\n * @hide true\n */\nvar ArrayLikeObservable = (function (_super) {\n __extends(ArrayLikeObservable, _super);\n function ArrayLikeObservable(arrayLike, scheduler) {\n _super.call(this);\n this.arrayLike = arrayLike;\n this.scheduler = scheduler;\n if (!scheduler && arrayLike.length === 1) {\n this._isScalar = true;\n this.value = arrayLike[0];\n }\n }\n ArrayLikeObservable.create = function (arrayLike, scheduler) {\n var length = arrayLike.length;\n if (length === 0) {\n return new EmptyObservable_1.EmptyObservable();\n }\n else if (length === 1) {\n return new ScalarObservable_1.ScalarObservable(arrayLike[0], scheduler);\n }\n else {\n return new ArrayLikeObservable(arrayLike, scheduler);\n }\n };\n ArrayLikeObservable.dispatch = function (state) {\n var arrayLike = state.arrayLike, index = state.index, length = state.length, subscriber = state.subscriber;\n if (subscriber.closed) {\n return;\n }\n if (index >= length) {\n subscriber.complete();\n return;\n }\n subscriber.next(arrayLike[index]);\n state.index = index + 1;\n this.schedule(state);\n };\n ArrayLikeObservable.prototype._subscribe = function (subscriber) {\n var index = 0;\n var _a = this, arrayLike = _a.arrayLike, scheduler = _a.scheduler;\n var length = arrayLike.length;\n if (scheduler) {\n return scheduler.schedule(ArrayLikeObservable.dispatch, 0, {\n arrayLike: arrayLike, index: index, length: length, subscriber: subscriber\n });\n }\n else {\n for (var i = 0; i < length && !subscriber.closed; i++) {\n subscriber.next(arrayLike[i]);\n }\n subscriber.complete();\n }\n };\n return ArrayLikeObservable;\n}(Observable_1.Observable));\nexports.ArrayLikeObservable = ArrayLikeObservable;\n//# sourceMappingURL=ArrayLikeObservable.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/ArrayLikeObservable.js\n ** module id = 355\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../Subscriber');\nvar Notification_1 = require('../Notification');\n/**\n * @see {@link Notification}\n *\n * @param scheduler\n * @param delay\n * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}\n * @method observeOn\n * @owner Observable\n */\nfunction observeOn(scheduler, delay) {\n if (delay === void 0) { delay = 0; }\n return this.lift(new ObserveOnOperator(scheduler, delay));\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 };\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//# sourceMappingURL=observeOn.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/observeOn.js\n ** module id = 356\n ** module chunks = 0\n **/","\"use strict\";\nvar Observable_1 = require('./Observable');\n/**\n * Represents a push-based event or value that an {@link Observable} can emit.\n * This class is particularly useful for operators that manage notifications,\n * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and\n * others. Besides wrapping the actual delivered value, it also annotates it\n * with metadata of, for instance, what type of push message it is (`next`,\n * `error`, or `complete`).\n *\n * @see {@link materialize}\n * @see {@link dematerialize}\n * @see {@link observeOn}\n *\n * @class Notification<T>\n */\nvar Notification = (function () {\n function Notification(kind, value, exception) {\n this.kind = kind;\n this.value = value;\n this.exception = exception;\n this.hasValue = kind === 'N';\n }\n /**\n * Delivers to the given `observer` the value wrapped by this Notification.\n * @param {Observer} observer\n * @return\n */\n Notification.prototype.observe = function (observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n case 'E':\n return observer.error && observer.error(this.exception);\n case 'C':\n return observer.complete && observer.complete();\n }\n };\n /**\n * Given some {@link Observer} callbacks, deliver the value represented by the\n * current Notification to the correctly corresponding callback.\n * @param {function(value: T): void} next An Observer `next` callback.\n * @param {function(err: any): void} [error] An Observer `error` callback.\n * @param {function(): void} [complete] An Observer `complete` callback.\n * @return {any}\n */\n Notification.prototype.do = function (next, error, complete) {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return next && next(this.value);\n case 'E':\n return error && error(this.exception);\n case 'C':\n return complete && complete();\n }\n };\n /**\n * Takes an Observer or its individual callback functions, and calls `observe`\n * or `do` methods accordingly.\n * @param {Observer|function(value: T): void} nextOrObserver An Observer or\n * the `next` callback.\n * @param {function(err: any): void} [error] An Observer `error` callback.\n * @param {function(): void} [complete] An Observer `complete` callback.\n * @return {any}\n */\n Notification.prototype.accept = function (nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n }\n else {\n return this.do(nextOrObserver, error, complete);\n }\n };\n /**\n * Returns a simple Observable that just delivers the notification represented\n * by this Notification instance.\n * @return {any}\n */\n Notification.prototype.toObservable = function () {\n var kind = this.kind;\n switch (kind) {\n case 'N':\n return Observable_1.Observable.of(this.value);\n case 'E':\n return Observable_1.Observable.throw(this.exception);\n case 'C':\n return Observable_1.Observable.empty();\n }\n throw new Error('unexpected notification kind value');\n };\n /**\n * A shortcut to create a Notification instance of the type `next` from a\n * given value.\n * @param {T} value The `next` value.\n * @return {Notification<T>} The \"next\" Notification representing the\n * argument.\n */\n Notification.createNext = function (value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n return this.undefinedValueNotification;\n };\n /**\n * A shortcut to create a Notification instance of the type `error` from a\n * given error.\n * @param {any} [err] The `error` exception.\n * @return {Notification<T>} The \"error\" Notification representing the\n * argument.\n */\n Notification.createError = function (err) {\n return new Notification('E', undefined, err);\n };\n /**\n * A shortcut to create a Notification instance of the type `complete`.\n * @return {Notification<any>} The valueless \"complete\" Notification.\n */\n Notification.createComplete = function () {\n return this.completeNotification;\n };\n Notification.completeNotification = new Notification('C');\n Notification.undefinedValueNotification = new Notification('N', undefined);\n return Notification;\n}());\nexports.Notification = Notification;\n//# sourceMappingURL=Notification.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/Notification.js\n ** module id = 357\n ** module chunks = 0\n **/","\"use strict\";\nvar ArrayObservable_1 = require('./ArrayObservable');\nexports.of = ArrayObservable_1.ArrayObservable.of;\n//# sourceMappingURL=of.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/observable/of.js\n ** module id = 358\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../Subscriber');\n/**\n * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.\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 this.lift(new EveryOperator(predicate, thisArg, this));\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//# sourceMappingURL=every.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/every.js\n ** module id = 359\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\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 this.lift(new MergeAllOperator(concurrent));\n}\nexports.mergeAll = mergeAll;\nvar MergeAllOperator = (function () {\n function MergeAllOperator(concurrent) {\n this.concurrent = concurrent;\n }\n MergeAllOperator.prototype.call = function (observer, source) {\n return source._subscribe(new MergeAllSubscriber(observer, this.concurrent));\n };\n return MergeAllOperator;\n}());\nexports.MergeAllOperator = MergeAllOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MergeAllSubscriber = (function (_super) {\n __extends(MergeAllSubscriber, _super);\n function MergeAllSubscriber(destination, concurrent) {\n _super.call(this, destination);\n this.concurrent = concurrent;\n this.hasCompleted = false;\n this.buffer = [];\n this.active = 0;\n }\n MergeAllSubscriber.prototype._next = function (observable) {\n if (this.active < this.concurrent) {\n this.active++;\n this.add(subscribeToResult_1.subscribeToResult(this, observable));\n }\n else {\n this.buffer.push(observable);\n }\n };\n MergeAllSubscriber.prototype._complete = function () {\n this.hasCompleted = true;\n if (this.active === 0 && this.buffer.length === 0) {\n this.destination.complete();\n }\n };\n MergeAllSubscriber.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 MergeAllSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.MergeAllSubscriber = MergeAllSubscriber;\n//# sourceMappingURL=mergeAll.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/mergeAll.js\n ** module id = 360\n ** module chunks = 0\n **/","\"use strict\";\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 = require('./Subscriber');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar OuterSubscriber = (function (_super) {\n __extends(OuterSubscriber, _super);\n function OuterSubscriber() {\n _super.apply(this, arguments);\n }\n OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.destination.next(innerValue);\n };\n OuterSubscriber.prototype.notifyError = function (error, innerSub) {\n this.destination.error(error);\n };\n OuterSubscriber.prototype.notifyComplete = function (innerSub) {\n this.destination.complete();\n };\n return OuterSubscriber;\n}(Subscriber_1.Subscriber));\nexports.OuterSubscriber = OuterSubscriber;\n//# sourceMappingURL=OuterSubscriber.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/OuterSubscriber.js\n ** module id = 361\n ** module chunks = 0\n **/","\"use strict\";\nvar root_1 = require('./root');\nvar isArray_1 = require('./isArray');\nvar isPromise_1 = require('./isPromise');\nvar Observable_1 = require('../Observable');\nvar iterator_1 = require('../symbol/iterator');\nvar InnerSubscriber_1 = require('../InnerSubscriber');\nvar observable_1 = require('../symbol/observable');\nfunction subscribeToResult(outerSubscriber, result, outerValue, outerIndex) {\n var destination = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex);\n if (destination.closed) {\n return null;\n }\n if (result instanceof Observable_1.Observable) {\n if (result._isScalar) {\n destination.next(result.value);\n destination.complete();\n return null;\n }\n else {\n return result.subscribe(destination);\n }\n }\n if (isArray_1.isArray(result)) {\n for (var i = 0, len = result.length; i < len && !destination.closed; i++) {\n destination.next(result[i]);\n }\n if (!destination.closed) {\n destination.complete();\n }\n }\n else if (isPromise_1.isPromise(result)) {\n result.then(function (value) {\n if (!destination.closed) {\n destination.next(value);\n destination.complete();\n }\n }, function (err) { return destination.error(err); })\n .then(null, function (err) {\n // Escaping the Promise trap: globally throw unhandled errors\n root_1.root.setTimeout(function () { throw err; });\n });\n return destination;\n }\n else if (typeof result[iterator_1.$$iterator] === 'function') {\n var iterator = result[iterator_1.$$iterator]();\n do {\n var item = iterator.next();\n if (item.done) {\n destination.complete();\n break;\n }\n destination.next(item.value);\n if (destination.closed) {\n break;\n }\n } while (true);\n }\n else if (typeof result[observable_1.$$observable] === 'function') {\n var obs = result[observable_1.$$observable]();\n if (typeof obs.subscribe !== 'function') {\n destination.error(new Error('invalid observable'));\n }\n else {\n return obs.subscribe(new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex));\n }\n }\n else {\n destination.error(new TypeError('unknown type returned'));\n }\n return null;\n}\nexports.subscribeToResult = subscribeToResult;\n//# sourceMappingURL=subscribeToResult.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/subscribeToResult.js\n ** module id = 362\n ** module chunks = 0\n **/","\"use strict\";\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 = require('./Subscriber');\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar InnerSubscriber = (function (_super) {\n __extends(InnerSubscriber, _super);\n function InnerSubscriber(parent, outerValue, outerIndex) {\n _super.call(this);\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n this.index = 0;\n }\n InnerSubscriber.prototype._next = function (value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);\n };\n InnerSubscriber.prototype._error = function (error) {\n this.parent.notifyError(error, this);\n this.unsubscribe();\n };\n InnerSubscriber.prototype._complete = function () {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n };\n return InnerSubscriber;\n}(Subscriber_1.Subscriber));\nexports.InnerSubscriber = InnerSubscriber;\n//# sourceMappingURL=InnerSubscriber.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/InnerSubscriber.js\n ** module id = 363\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../util/subscribeToResult');\nvar OuterSubscriber_1 = require('../OuterSubscriber');\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 * @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): Observable} 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 if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n resultSelector = null;\n }\n return this.lift(new MergeMapOperator(project, resultSelector, concurrent));\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//# sourceMappingURL=mergeMap.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/mergeMap.js\n ** module id = 364\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../Subscriber');\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): 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 of the accumulated values.\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 return this.lift(new ReduceOperator(accumulator, seed));\n}\nexports.reduce = reduce;\nvar ReduceOperator = (function () {\n function ReduceOperator(accumulator, seed) {\n this.accumulator = accumulator;\n this.seed = seed;\n }\n ReduceOperator.prototype.call = function (subscriber, source) {\n return source._subscribe(new ReduceSubscriber(subscriber, this.accumulator, this.seed));\n };\n return ReduceOperator;\n}());\nexports.ReduceOperator = ReduceOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ReduceSubscriber = (function (_super) {\n __extends(ReduceSubscriber, _super);\n function ReduceSubscriber(destination, accumulator, seed) {\n _super.call(this, destination);\n this.accumulator = accumulator;\n this.hasValue = false;\n this.acc = seed;\n this.accumulator = accumulator;\n this.hasSeed = typeof seed !== 'undefined';\n }\n ReduceSubscriber.prototype._next = function (value) {\n if (this.hasValue || (this.hasValue = this.hasSeed)) {\n this._tryReduce(value);\n }\n else {\n this.acc = value;\n this.hasValue = true;\n }\n };\n ReduceSubscriber.prototype._tryReduce = function (value) {\n var result;\n try {\n result = this.accumulator(this.acc, value);\n }\n catch (err) {\n this.destination.error(err);\n return;\n }\n this.acc = result;\n };\n ReduceSubscriber.prototype._complete = function () {\n if (this.hasValue || this.hasSeed) {\n this.destination.next(this.acc);\n }\n this.destination.complete();\n };\n return ReduceSubscriber;\n}(Subscriber_1.Subscriber));\nexports.ReduceSubscriber = ReduceSubscriber;\n//# sourceMappingURL=reduce.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/reduce.js\n ** module id = 365\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../OuterSubscriber');\nvar subscribeToResult_1 = require('../util/subscribeToResult');\n/**\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\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 * @method catch\n * @owner Observable\n */\nfunction _catch(selector) {\n var operator = new CatchOperator(selector);\n var caught = this.lift(operator);\n return (operator.caught = caught);\n}\nexports._catch = _catch;\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`.\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 (err) {\n this.destination.error(err);\n return;\n }\n this.unsubscribe();\n this.destination.remove(this);\n subscribeToResult_1.subscribeToResult(this, result);\n }\n };\n return CatchSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n//# sourceMappingURL=catch.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/catch.js\n ** module id = 366\n ** module chunks = 0\n **/","\"use strict\";\nvar mergeAll_1 = require('./mergeAll');\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 * @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 this.lift(new mergeAll_1.MergeAllOperator(1));\n}\nexports.concatAll = concatAll;\n//# sourceMappingURL=concatAll.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/concatAll.js\n ** module id = 367\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../Subscriber');\nvar EmptyError_1 = require('../util/EmptyError');\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 this.lift(new FirstOperator(predicate, resultSelector, defaultValue, this));\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 }\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 destination.next(value);\n destination.complete();\n this.hasCompleted = true;\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//# sourceMappingURL=first.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/first.js\n ** module id = 368\n ** module chunks = 0\n **/","\"use strict\";\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};\n/**\n * An error thrown when an Observable or a sequence was queried but has no\n * elements.\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link single}\n *\n * @class EmptyError\n */\nvar EmptyError = (function (_super) {\n __extends(EmptyError, _super);\n function EmptyError() {\n var err = _super.call(this, 'no elements in sequence');\n this.name = err.name = 'EmptyError';\n this.stack = err.stack;\n this.message = err.message;\n }\n return EmptyError;\n}(Error));\nexports.EmptyError = EmptyError;\n//# sourceMappingURL=EmptyError.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/util/EmptyError.js\n ** module id = 369\n ** module chunks = 0\n **/","\"use strict\";\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 = require('../Subscriber');\nvar EmptyError_1 = require('../util/EmptyError');\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 this.lift(new LastOperator(predicate, resultSelector, defaultValue, this));\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//# sourceMappingURL=last.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/operator/last.js\n ** module id = 370\n ** module chunks = 0\n **/","\"use strict\";\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 = require('./Subject');\nvar ObjectUnsubscribedError_1 = require('./util/ObjectUnsubscribedError');\n/**\n * @class BehaviorSubject<T>\n */\nvar BehaviorSubject = (function (_super) {\n __extends(BehaviorSubject, _super);\n function BehaviorSubject(_value) {\n _super.call(this);\n this._value = _value;\n }\n Object.defineProperty(BehaviorSubject.prototype, \"value\", {\n get: function () {\n return this.getValue();\n },\n enumerable: true,\n configurable: true\n });\n BehaviorSubject.prototype._subscribe = function (subscriber) {\n var subscription = _super.prototype._subscribe.call(this, subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n };\n BehaviorSubject.prototype.getValue = function () {\n if (this.hasError) {\n throw this.thrownError;\n }\n else if (this.closed) {\n throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();\n }\n else {\n return this._value;\n }\n };\n BehaviorSubject.prototype.next = function (value) {\n _super.prototype.next.call(this, this._value = value);\n };\n return BehaviorSubject;\n}(Subject_1.Subject));\nexports.BehaviorSubject = BehaviorSubject;\n//# sourceMappingURL=BehaviorSubject.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/BehaviorSubject.js\n ** module id = 371\n ** module chunks = 0\n **/","export class ApiWebConfig {\r\n apiUrl: any = 'https://staging.contentraven.com/crwebapi/api/';\r\n // apiUrl: any = 'https://betatest1.contentraven.com/crwebapi/api/';\r\n //apiUrl: any = 'http://192.168.30.175:91/mainwebi/api/';\r\n //apiUrl:any = 'http://192.168.30.56:85/api/';\r\n //apiUrl:any = window.location.origin+\"/crwebapi/api/\";\r\n //advSearchapiUrl: any = 'http://192.168.30.56:84/api/';\r\n //advSearchapiUrl: any = 'https://support.contentraven.com/crwebapi/api/';\r\n //registerapiUrl: any = 'http://192.168.30.175:91/api/';\r\n //registerapiUrl: any = 'https://support.contentraven.com/crwebapi/api/';\r\n //apiUrl:any = window.location.origin+\"/crwebapi/api/\";\r\n //advSearchapiUrl: any = window.location.origin+\"/crwebapi/api/\";\r\n //registerapiUrl: any = window.location.origin+\"/crwebapi/api/\";\r\n imageUrl: any = '';\r\n encryptPass: any = '*CbKEx@e(ZuZKCr3dC9hHC';\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/config/app.config.ts\n **/","declare var $: any;\r\ndeclare var CryptoJS:any;\r\nexport class EncryptComponent {\r\n keySize:any = 256;\r\n ivSize:any = 128;\r\n iterations:any = 100;\r\n encryptPass (msg, pass) {\r\n var salt = CryptoJS.lib.WordArray.random(128/8);\r\n var key = CryptoJS.PBKDF2(pass, salt, {\r\n keySize: this.keySize/32,\r\n iterations: this.iterations\r\n });\r\n var iv = CryptoJS.lib.WordArray.random(128/8);\r\n var encrypted = CryptoJS.AES.encrypt(msg, key, { \r\n iv: iv, \r\n padding: CryptoJS.pad.Pkcs7,\r\n mode: CryptoJS.mode.CBC\r\n });\r\n var transitmessage = salt.toString()+ iv.toString() + encrypted.toString();\r\n return transitmessage;\r\n }\r\n decryptPass (transitmessage, pass) {\r\n if(transitmessage){\r\n var salt = CryptoJS.enc.Hex.parse(transitmessage.substr(0, 32));\r\n var iv = CryptoJS.enc.Hex.parse(transitmessage.substr(32, 32))\r\n var encrypted = transitmessage.substring(64);\r\n var key = CryptoJS.PBKDF2(pass, salt, {\r\n keySize: this.keySize/32,\r\n iterations: this.iterations\r\n });\r\n var decrypted = CryptoJS.AES.decrypt(encrypted, key, { \r\n iv: iv, \r\n padding: CryptoJS.pad.Pkcs7,\r\n mode: CryptoJS.mode.CBC\r\n })\r\n }\r\n return decrypted;\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/config/app.encrypt.ts\n **/","import { Component, Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { SaveUserData } from '../../core/components/app.user.data';\r\nimport { HttpService } from '../../core/services/common/http.service';\r\n\r\n@Injectable()\r\nexport class ApiServices {\r\n constructor(private _http: HttpService, private userData: SaveUserData) { }\r\n\r\n getHeaders(url) {\r\n return this._http.requestGet(url);\r\n }\r\n\r\n postHeaders(url, jsonData) {\r\n return this._http.requestPost(url, jsonData);\r\n }\r\n\r\n getApiData(url: any) {\r\n return this.getHeaders(url).map(res => res.json());\r\n }\r\n\r\n postApiData(url: any, jsonData: any) {\r\n return this.postHeaders(url, jsonData).map( res => res.json());\r\n }\r\n\r\n \r\n\r\n\r\n throwApiError(error: any) {\r\n console.log(error);\r\n }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/api.service.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { Http, XHRBackend, RequestOptions, Request, RequestOptionsArgs, Response, Headers } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport 'rxjs/add/operator/map';\r\nimport 'rxjs/add/operator/catch';\r\nimport 'rxjs/add/observable/of';\r\n\r\n\r\n@Injectable()\r\nexport class HttpService extends Http {\r\n\r\n constructor (backend: XHRBackend, options: RequestOptions, private router: Router ) {\r\n super(backend, options);\r\n }\r\n\r\n requestGet(url: string|Request, options?: RequestOptionsArgs): Observable<Response> {\r\n var token = localStorage.getItem('authHeadToken');\r\n if (typeof url === 'string') {\r\n if (!options) {\r\n var headers = new Headers();\r\n headers.append('Accept', 'application/json');\r\n options = {headers: new Headers()};\r\n }\r\n options.headers.set('Token', token);\r\n } else {\r\n url.headers.set('Token', token);\r\n }\r\n return super.request(url, options).catch(this.catchAuthError(this));\r\n }\r\n\r\n requestPost(url: any, json?: RequestOptionsArgs): Observable<Response> {\r\n var token = localStorage.getItem('authHeadToken');\r\n var headers = new Headers();\r\n headers.append('Content-Type', 'application/json; charset=utf-8');\r\n headers.append('Accept', 'application/json');\r\n headers.set('Token', token);\r\n return super.post(url, json, {headers:headers}).catch(this.catchAuthError(this));\r\n }\r\n\r\n private catchAuthError (self: HttpService) {\r\n return (res: Response) => {\r\n if (res.status === 401 || res.status === 403) {\r\n var setOrg = localStorage.getItem('auth_org');\r\n if(setOrg){\r\n var dedode_setOrg = setOrg;\r\n this.router.navigate(['login'], {queryParams: {orgid: dedode_setOrg}});\r\n }else{\r\n this.router.navigate(['login']);\r\n }\r\n }\r\n return Observable.throw(res);\r\n };\r\n }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/common/http.service.ts\n **/","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar catch_1 = require('../../operator/catch');\nObservable_1.Observable.prototype.catch = catch_1._catch;\n//# sourceMappingURL=catch.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/add/operator/catch.js\n ** module id = 376\n ** module chunks = 0\n **/","\"use strict\";\nvar Observable_1 = require('../../Observable');\nvar of_1 = require('../../observable/of');\nObservable_1.Observable.of = of_1.of;\n//# sourceMappingURL=of.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rxjs/add/observable/of.js\n ** module id = 377\n ** module chunks = 0\n **/","import { Injectable, EventEmitter } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { EncryptComponent } from '../../../core/config/app.encrypt';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\ndeclare var CryptoJS:any;\r\ndeclare var $:any;\r\n@Injectable()\r\nexport class AdminSwitchService {\r\n constructor(private _http: Http, private config: ApiWebConfig, private router: Router, private encrypt: EncryptComponent, private apiService: ApiServices) { }\r\n adminResult = new EventEmitter<any>();\r\n premiumInfo = new EventEmitter<any>();\r\n adminResultToken = new EventEmitter<any>();\r\n adminuserValid = new EventEmitter<any>();\r\n\r\n getIsTokenValid(tokenid, OrgId, useremail) {\r\n var url = this.config.apiUrl + 'dtcuser/istokenvalid?tokenid=' + tokenid + '&OrgId=' + OrgId + '&UserEmail=' + useremail;\r\n return this.apiService.getApiData(url);\r\n }\r\n\r\n resultHeaders:any=[];\r\n resultData:any=[];\r\n getAdminSwitchToken(orgid, dtcid,fexId, useremail, valiateToken:any=true, router:any='', landingChannelId:any='') {\r\n var url = this.config.apiUrl + 'dtcuser/getdtcdetails?DtcId=' + dtcid + '&OrgId=' + orgid + '&UserEmail=' + useremail + '&fexId=' + fexId;\r\n var adminResult = this.apiService.getApiData(url);\r\n this.apiService.getHeaders(url).subscribe((res)=> {\r\n this.resultHeaders = res.headers.toJSON();\r\n this.resultData = res.json();\r\n if(this.resultHeaders.token){\r\n localStorage.setItem('authHeadToken', this.resultHeaders.token[0]);\r\n }\r\n if(this.resultData){\r\n this.adminResultToken.emit(this.resultData.Result);\r\n var tokenId = this.resultData.Result['TokenId'];\r\n var IsActiveOrg = this.resultData.Result['IsActiveOrg'];\r\n var IsActiveUser = this.resultData.Result['IsActiveUser'];\r\n if(IsActiveOrg>0 && IsActiveUser>0){\r\n var userControls = this.encrypt.encryptPass(orgid + ',' + dtcid + ',' + useremail, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var loginStatus = '2';\r\n var PermissionId = this.resultData.Result['PermissionId'];\r\n //var AdminSettingId = this.resultData.Result['AdminSettingId'];\r\n var dtcId = this.resultData.Result['AdminSettingId'];\r\n var FontColor = this.resultData.Result['FontColor'];\r\n var FontStyle = this.resultData.Result['FontStyle'];\r\n var HomeBanner = this.resultData.Result['HomeBannerImage'];\r\n var ChannelBanner = this.resultData.Result['ChannelBannerImage'];\r\n // if(FontStyle){\r\n // $(\"head\").append(\"<link href='https://fonts.googleapis.com/css?family=\" + FontStyle + \"' rel='stylesheet' type='text/css'>\");\r\n // }\r\n var UserIdentityId = this.resultData.Result['UserIdentityId'];\r\n var userLearningpath = this.resultData.Result['Learningpath'];\r\n if(valiateToken==false){\r\n \r\n }\r\n var adminSettingId= '';\r\n var userControlsData = this.encrypt.encryptPass(loginStatus + ',' + PermissionId + ',' + adminSettingId + ',' + FontColor + ',' + FontStyle + ',' + dtcId, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var userInfo = this.encrypt.encryptPass(loginStatus + ',' + orgid + ',' + UserIdentityId + ',' + useremail+','+userLearningpath, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n\r\n if(!valiateToken) {\r\n this.getAdminSwitch(orgid, dtcid,fexId, useremail);\r\n localStorage.setItem('auth_controls_data', userControlsData);\r\n localStorage.setItem('auth_controls', userControls);\r\n if(HomeBanner){\r\n localStorage.setItem('custom_images', HomeBanner);\r\n }\r\n if(ChannelBanner){\r\n localStorage.setItem('channel_images', ChannelBanner);\r\n }\r\n this.doRedirection(router, this.resultData, landingChannelId);\r\n } else {\r\n this.getIsTokenValid(tokenId, orgid, useremail).subscribe(\r\n data => {\r\n var tokenResult = data.Result\r\n if (tokenResult == 1) {\r\n this.getAdminSwitch(orgid, dtcid,fexId, useremail);\r\n localStorage.setItem('auth_data', userInfo);\r\n localStorage.setItem('auth_controls', userControls);\r\n localStorage.setItem('auth_controls_data', userControlsData);\r\n if(HomeBanner){\r\n localStorage.setItem('custom_images', HomeBanner);\r\n }\r\n if(ChannelBanner){\r\n localStorage.setItem('channel_images', ChannelBanner);\r\n }\r\n this.doRedirection('', this.resultData, landingChannelId);\r\n }\r\n }\r\n );\r\n }\r\n }else{\r\n this.adminuserValid.emit(0);\r\n }\r\n }\r\n }\r\n \r\n\r\n );\r\n }\r\n\r\n //erroeMsg(data?){}\r\n getAdminSwitch(orgid, dtcid,fexId, useremail) {\r\n var url = this.config.apiUrl + 'dtcuser/getdtcdetails?DtcId=' + dtcid + '&OrgId=' + orgid + '&UserEmail=' + useremail + '&fexId=' + fexId;\r\n this.apiService.getApiData(url).subscribe(\r\n data => {\r\n this.adminResult.emit(data.Result);\r\n }\r\n );\r\n }\r\n\r\n getAvailableLandingPage(landingPage, activeHome, activeChannel, activeFavorite, activeAdvanceSearch, activeLearningPaths){\r\n var availablePages = [];\r\n if(activeHome == true) {\r\n availablePages.push('home');\r\n }\r\n if(activeChannel == true) {\r\n availablePages.push('channel');\r\n }\r\n if(activeFavorite == true) {\r\n availablePages.push('favorites');\r\n }\r\n if(activeAdvanceSearch == true) {\r\n availablePages.push('advancedSearch');\r\n }\r\n if(activeLearningPaths == true) {\r\n availablePages.push('learningPaths');\r\n }\r\n var availableLandingPage = '';\r\n if(availablePages.length == 0) {\r\n return availableLandingPage;\r\n }\r\n if(landingPage == '') {\r\n availableLandingPage = availablePages[0];\r\n } else {\r\n if(availablePages.findIndex((page: string) => page === landingPage) != -1) {\r\n availableLandingPage = landingPage; \r\n } else {\r\n availableLandingPage = availablePages[0];\r\n }\r\n }\r\n return availableLandingPage;\r\n }\r\n\r\n doRedirection(landingPage, resultData, landingChannelId) {\r\n var activeHome = this.resultData.Result['TopMenu'].IsHomeEnabled;\r\n var activeChannel = this.resultData.Result['TopMenu'].IsChannelEnabled;\r\n var activeFavorite = this.resultData.Result['TopMenu'].IsFavoriteEnabled;\r\n var activeAdvanceSearch = true;\r\n var activeLearningPaths = false;\r\n if(this.resultData.Result.Learningpath==1){\r\n activeLearningPaths=true;\r\n }\r\n var availableLandingPage = this.getAvailableLandingPage(landingPage, activeHome, activeChannel, activeFavorite, activeAdvanceSearch, activeLearningPaths);\r\n if(landingChannelId!='' && landingPage=='channel'){\r\n //this.router.navigate([availableLandingPage+'/'+landingChannelId]);\r\n\t\t\t\t\t\tthis.router.navigate(['/channel',1,landingChannelId]);\r\n }else{\r\n this.router.navigate([availableLandingPage]);\r\n }\r\n if(activeHome==true){\r\n localStorage.setItem('defaultPage', 'home'); \r\n }else{\r\n localStorage.setItem('defaultPage', availableLandingPage);\r\n }\r\n }\r\n\r\n // getPremiumDetail(orgid, fexid, useremail){\r\n // console.log('FunCall: '+orgid+', '+fexid+', '+useremail);\r\n // var url = this.config.apiUrl+'dynamicparams/getdynamicparamdetails?orgid='+orgid+'&fexid='+fexid+'&useremail='+useremail;\r\n // var jsonData = {};\r\n // this.apiService.postApiData(url, jsonData).subscribe(\r\n // data => {\r\n // console.log(data);\r\n // this.premiumInfo.emit(data.Result);\r\n // console.log('Emit Data: ', data.Result);\r\n // }\r\n // );\r\n // }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/adminSwitch/adminswitch.service.ts\n **/","import { Component, Input } from '@angular/core';\r\nimport { Router, ActivatedRoute,NavigationEnd } from '@angular/router';\r\n\r\nimport { FormBuilder, FormControl, Validators, FormArray, FormGroup } from '@angular/forms';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { LoginCheck } from '../../../core/components/app.login.component';\r\nimport { SaveUserData } from '../../../core/components/app.user.data';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { EncryptComponent } from '../../../core/config/app.encrypt';\r\nimport { AdminSwitchService } from '../../../core/services/adminSwitch/adminswitch.service';\r\nimport { ApiServices } from '../../../core/services/api.service';\r\nimport { FexIdService } from '../../../core/services/fexid/fexid.service';\r\n\r\ndeclare var $: any;\r\ndeclare var tinymce: any;\r\ndeclare var CryptoJS: any;\r\n@Component({\r\n selector: 'cr-header',\r\n templateUrl: './app/modules/common/header/header.component.html'\r\n})\r\n\r\nexport class HeaderComponent {\r\n\r\n hideLogo: any;\r\n feedBackForm: FormGroup;\r\n constructor(private _fb: FormBuilder, private login:LoginCheck, private config: ApiWebConfig, private adminSwitch : AdminSwitchService, private userData: SaveUserData, private decrypt: EncryptComponent, private apiService: ApiServices,private router:Router,private fexId:FexIdService,private ar:ActivatedRoute) { }\r\n\r\n // mainClickSearch(element) {\r\n // if($(element).hasClass('open')){\r\n // $(element).removeClass('open');\r\n // $('.search-slide').animate({'width':'0'}, 500);\r\n // }else{\r\n // $(element).addClass('open');\r\n // $('.search-slide').animate({'width':'100%'}, 500);\r\n // }\r\n // return false;\r\n // }\r\n\r\n validateEmail(email) {\r\n var emailReg = new RegExp(/^((\"[\\w-\\s]+\")|([\\w-]+(?:\\.[\\w-]+)*)|(\"[\\w-\\s]+\")([\\w-]+(?:\\.[\\w-]+)*))(@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$)|(@\\[?((25[0-5]\\.|2[0-4][0-9]\\.|1[0-9]{2}\\.|[0-9]{1,2}\\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\]?$)/i);\r\n var valid = emailReg.test(email);\r\n if (valid) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n feedBackFun(userEmail, FeedbackTxt) {\r\n var url = this.config.apiUrl + 'vmhome/sendfeedbackemail?loginUserEmail=' + this.userData.userEmail + '&feedBackEmail=' + userEmail + '&mailContent=' + FeedbackTxt;\r\n var json = {};\r\n this.apiService.postApiData(url, json).subscribe(\r\n data => {\r\n var feedbackResult = data.Result;\r\n if (feedbackResult == 1) {\r\n $('#modalFeedback').modal('hide');\r\n $('#feedbackSuccess').modal('show');\r\n $('.email-group .text-valid').html('');\r\n $('.feed-back-group .text-valid').html('');\r\n // $('.feedback-result').append('<p class=\"feedback-success\">Feedback submitted successfully!</p>');\r\n $('#feed_email').val('');\r\n (<FormControl>this.feedBackForm.controls['feed_txt']).setValue('');\r\n setTimeout(function () {\r\n $('.feedback-result .feedback-success').remove();\r\n }, 3000);\r\n }\r\n }\r\n );\r\n }\r\n\r\n submitForm(feedbackform_data) {\r\n var feed_email = $('#feed_email').val();\r\n var feed_txt = feedbackform_data.value.feed_txt;\r\n $('.email-group .text-valid').html('');\r\n $('.feed-back-group .text-valid').html('');\r\n // if(feed_email=='')\r\n // $('.email-group .text-valid').html('Please enter your email');\r\n if (feed_txt == '')\r\n $('.feed-back-group .text-valid').html('Please enter your Feedback');\r\n var emailResult = true;\r\n if (feed_email != '') {\r\n var emailResult = this.validateEmail(feed_email);\r\n if (emailResult == false)\r\n $('.email-group .text-valid').html('Invalid email');\r\n }\r\n if (feed_txt != '' && emailResult == true) {\r\n this.feedBackFun(feed_email, feed_txt);\r\n }\r\n }\r\n\r\n LogOut() {\r\n this.login.isLoggedOut();\r\n return false;\r\n }\r\n\r\n\r\n\r\n menuHome: any = '';\r\n menuChannel: any = '';\r\n menuFavorite: any = '';\r\n menuSubscription: any = '';\r\n manuLearningPath: any = '';\r\n adminSwitchData2: any;\r\n adminSwitchData = [''];\r\n adminResult = [''];\r\n homeShow: boolean = true;\r\n channelShow: boolean = true;\r\n favoriteShow: boolean = true;\r\n subscriptionShow: boolean = true;\r\n ddMyChannels: any;\r\n ddFeedback: any;\r\n ddRequestATopic: any;\r\n ddSupport: any;\r\n ddMyChannelsShow: boolean = true;\r\n ddFeedbackShow: boolean = true;\r\n ddRequestATopicShow: boolean = true;\r\n ddSupportShow: boolean = true;\r\n logoUrl: any = '';\r\n userLPMenu: any = 0;\r\n showBrowseDropdown: boolean = false;\r\n showLpTopMenu: boolean = false;\r\n showChannelsTopMenu: boolean = false;\r\n premiumURL: any = '';\r\n premiumText: any = '';\r\n showLogout: boolean = true;\r\n menuSearch: any = '';\r\n showSearch: boolean = false;\r\n showLearningPath: boolean = false;\r\n library:any='';\r\n setLpAndLogoutOptions() {\r\n var userInfo = localStorage.getItem('auth_data');\r\n if (userInfo) {\r\n var dedode = this.decrypt.decryptPass(userInfo, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var str_array = dedode.split(',');\r\n this.userLPMenu = str_array[4];\r\n if (str_array[0] != '0') {\r\n this.showLogout = false;\r\n }\r\n }\r\n }\r\n\r\n initializeBrowseOptions(showLP) {\r\n this.showBrowseDropdown = false;\r\n this.showChannelsTopMenu = false;\r\n this.showLpTopMenu = false;\r\n\r\n if (this.channelShow && this.userLPMenu == \"1\" && showLP == true) {\r\n this.showBrowseDropdown = true;\r\n } else if (this.channelShow) {\r\n this.showChannelsTopMenu = true;\r\n } else if (this.userLPMenu == \"1\" && showLP == true) {\r\n this.showLpTopMenu = true;\r\n }\r\n }\r\n\r\n setLogoUrl() {\r\n var userLogo = localStorage.getItem('auth_userLogo');\r\n if (userLogo) {\r\n this.logoUrl = userLogo;\r\n } else {\r\n this.logoUrl = this.config.imageUrl + 'app/assets/images/logo.png';\r\n }\r\n }\r\n\r\n\r\n /* Advanced Search Function */\r\n advSrchVal:any = '';\r\n advSrchSubmit(form: any) {\r\n var searchVal = form.value.advancedSearch;\r\n this.router.navigate(['/advancedSearch'], { queryParams: { search: searchVal } });\r\n }\r\n\r\n customImage: any = '';\r\n customVideo: any = '';\r\n customTitle: any = '';\r\n customMenu(url: any, title) {\r\n this.customVideo = '';\r\n this.customImage = '';\r\n this.customTitle = '';\r\n var extension = url.split('.').pop();\r\n extension = extension.toLowerCase();\r\n this.customTitle = title;\r\n if (extension == 'mp3' || extension == 'mp4') {\r\n this.customVideo = url;\r\n $('#preview-img-popup').modal('show');\r\n } else if (extension == 'png' || extension == 'jpg') {\r\n this.customImage = url;\r\n $('#preview-img-popup').modal('show');\r\n } else {\r\n window.open(url, '_blank');\r\n }\r\n }\r\n openFexIdModal(form:FormGroup) {\r\n form.reset();\r\n this.fexIdMessage = '';\r\n this.getUserDetails();\r\n return false; \r\n }\r\n\r\n /*Get User Details */\r\n userDetailsTbl:any = []\r\n getUserDetails() {\r\n var jsonData = {\r\n OrgId: this.userData.orgId,\r\n UserId: this.userData.userId\r\n };\r\n this.fexId.fexIDApi('fexId',jsonData).subscribe(\r\n data => {\r\n this.userDetailsTbl = data.Result;\r\n $('.usr_mdl_tblbdy').mCustomScrollbar();\r\n },\r\n error => {\r\n\r\n },\r\n () => {\r\n\r\n }\r\n )\r\n }\r\n\r\n\r\n packageEnabled:boolean = false;\r\n packageMenuName:string = '';\r\n fexIdSubmit:boolean = false;\r\n createFexID(form:any) {\r\n if(form.valid) {\r\n var extId= form.value.fexIdVal;\r\n $('.fexid-loader').show();\r\n this.createFexIDPost(extId);\r\n } else {\r\n this.fexIdSubmit = true;\r\n }\r\n }\r\n fexIdMessage:any = '';\r\n fexIdStatus:any;\r\n createFexIDPost(extId:any) {\r\n var jsonData = {\r\n OrgId: this.userData.orgId,\r\n UserId: this.userData.userId,\r\n ExternalId: extId,\r\n PublishMode: \"SR\"\r\n };\r\n this.fexId.fexIDApi('createfexId',jsonData).subscribe(\r\n data => {\r\n this.fexIdStatus = data.Result.ActionStatus;\r\n if(this.fexIdStatus == 0) {\r\n this.fexIdMessage = 'Entered Package Code is Invalid (or) Package Code is already Registered';\r\n } else {\r\n this.fexIdMessage = 'Package Code Added Successfully';\r\n setTimeout(function(){\r\n $('#fexIdBox').modal('hide');\r\n window.location.reload();\r\n },1000);\r\n }\r\n $('.fexid-loader').hide();\r\n },\r\n error => {\r\n\r\n },\r\n () => {\r\n\r\n }\r\n )\r\n }\r\n closeFexIdModal(form:FormGroup) {\r\n form.reset();\r\n this.fexIdMessage = '';\r\n }\r\n\r\n\r\n defaultPage: any = '';\r\n showDropDownMenu: boolean = true;\r\n dtcCustomMenus: any = [];\r\n\r\n previewModalClose() {\r\n //$('video').attr('src','');\r\n $('#preview-img-popup video')[0].pause();\r\n }\r\n\r\n\r\n /* Enable Disable Package Menu */\r\n registerStatus:any;\r\n getRegisterStatus() {\r\n this.registerStatus = localStorage.getItem('registerStatus');\r\n }\r\n \r\n\r\n\r\n ngOnInit() {\r\n this.userData.getUserlData();\r\n var seed = this;\r\n this.defaultPage = this.userData.defaultPage;\r\n\r\n /* FexId */\r\n this.getUserDetails();\r\n\r\n /* Register Status */\r\n this.getRegisterStatus() \r\n \r\n this.router.events.subscribe(val=> {\r\n if(val instanceof NavigationEnd) {\r\n let routerName:string = this.router.url;\r\n if( routerName.indexOf('?') > -1 ) {\r\n routerName = routerName.substr(1,routerName.indexOf('?') - 1 );\r\n } else {\r\n routerName = routerName.substr(1,routerName.length - 1 );\r\n }\r\n if(routerName != 'advancedSearch') this.advSrchVal = '';\r\n }\r\n });\r\n\r\n $('#modalFeedback').on('shown.bs.modal', function() {\r\n $('#feed_email').val('');\r\n (<FormControl>seed.feedBackForm.controls['feed_txt']).setValue('');\r\n });\r\n var userkey = localStorage.getItem('auth_controls');\r\n var auth_key = localStorage.getItem('auth_key');\r\n if (userkey) {\r\n var dedode_userkey = this.decrypt.decryptPass(userkey, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var userkey_array = dedode_userkey.split(',');\r\n var orgId = userkey_array[0];\r\n var dtcId = userkey_array[1];\r\n var userEmail = userkey_array[2];\r\n var fexId = localStorage.getItem('extId');\r\n fexId = fexId == null ? '' : fexId;\r\n this.adminSwitch.getAdminSwitch(orgId, dtcId,fexId, userEmail);\r\n }\r\n var premium_info = localStorage.getItem('premium_info');\r\n if (premium_info) {\r\n var upremium_info_array = premium_info.split(',');\r\n this.premiumText = upremium_info_array[0];\r\n this.premiumURL = upremium_info_array[1];\r\n }\r\n\r\n if (this.userData.FontColor) {\r\n $('*').css('color', this.userData.FontColor);\r\n }\r\n if (this.userData.FontStyle) {\r\n $(\"head\").append(\"<link href='https://fonts.googleapis.com/css?family=\" + this.userData.FontStyle + \"' rel='stylesheet' type='text/css'>\");\r\n $('*').css('font-family', this.userData.FontStyle);\r\n }\r\n\r\n this.feedBackForm = this._fb.group({\r\n feed_email: [''],\r\n feed_txt: ['']\r\n });\r\n\r\n this.setLpAndLogoutOptions();\r\n this.setLogoUrl();\r\n this.initializeBrowseOptions('');\r\n var seed = this;\r\n this.adminSwitch.adminResult.subscribe(\r\n data => {\r\n this.adminSwitchData = data;\r\n if (this.adminSwitchData) {\r\n if (this.adminSwitchData['Logo'] != '') {\r\n this.logoUrl = this.adminSwitchData['Logo'];\r\n }\r\n console.log('this.adminSwitchData',this.adminSwitchData)\r\n this.menuHome = this.adminSwitchData['TopMenu'].Home;\r\n this.menuChannel = this.adminSwitchData['TopMenu'].Channel;\r\n this.menuFavorite = this.adminSwitchData['TopMenu'].Favorite;\r\n this.menuSubscription = this.adminSwitchData['TopMenu'].Subscription;\r\n this.homeShow = this.adminSwitchData['TopMenu'].IsHomeEnabled;\r\n this.channelShow = this.adminSwitchData['TopMenu'].IsChannelEnabled;\r\n this.favoriteShow = this.adminSwitchData['TopMenu'].IsFavoriteEnabled;\r\n this.manuLearningPath = this.adminSwitchData['TopMenu'].LearningPath;\r\n this.subscriptionShow = this.adminSwitchData['TopMenu'].IsSubscriptionEnabled;\r\n this.ddMyChannels = this.adminSwitchData['DropDownMenu'].MyChannels;\r\n this.ddFeedback = this.adminSwitchData['DropDownMenu'].Feedback;\r\n this.ddRequestATopic = this.adminSwitchData['DropDownMenu'].RequestATopic;\r\n this.ddSupport = this.adminSwitchData['DropDownMenu'].Support;\r\n this.ddMyChannelsShow = this.adminSwitchData['DropDownMenu'].IsMyChannelsEnabled;\r\n this.ddFeedbackShow = this.adminSwitchData['DropDownMenu'].IsFeedbackEnabled;\r\n this.ddRequestATopicShow = this.adminSwitchData['DropDownMenu'].IsRequestATopicEnabled;\r\n this.ddSupportShow = this.adminSwitchData['DropDownMenu'].IsSupportEnabled;\r\n this.menuSearch = this.adminSwitchData['TopMenu'].AdvanceSearch;\r\n this.showSearch = this.adminSwitchData['TopMenu'].IsAdvanceSearchEnabled;\r\n this.packageEnabled = this.adminSwitchData['DropDownMenu'].IsPackagesEnabled;\r\n this.packageMenuName = this.adminSwitchData['DropDownMenu'].Packages;\r\n this.library = this.adminSwitchData['TopMenu'].Library;\r\n var showLP = this.adminSwitchData['TopMenu'].IsLearningPathEnabled;\r\n if (showLP == true && this.userLPMenu == \"1\") {\r\n this.showLearningPath = true;\r\n }\r\n if (this.ddFeedbackShow == false && this.ddRequestATopicShow == false && this.ddSupportShow == false) {\r\n this.showDropDownMenu = false;\r\n }\r\n this.dtcCustomMenus = this.adminSwitchData['DtcCustomMenus'];\r\n if (this.dtcCustomMenus != '') {\r\n this.showDropDownMenu = true;\r\n }\r\n this.subscriptionShow = false;\r\n this.initializeBrowseOptions(showLP);\r\n }\r\n }\r\n );\r\n this.subscriptionShow = false;\r\n\r\n $('#modalFeedback').on('hidden.bs.modal', function () {\r\n $('.email-group .text-valid').html('');\r\n $('.feed-back-group .text-valid').html('');\r\n $('.feedback-result').empty();\r\n });\r\n }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/common/header/header.component.ts\n **/","import { Component } from '@angular/core';\r\nimport { Injectable } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { SaveUserData } from '../../core/components/app.user.data';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { EncryptComponent } from '../../core/config/app.encrypt';\r\nimport { AdminSwitchService } from '../../core/services/adminSwitch/adminswitch.service';\r\nimport { HelperService } from '../../core/services/utility/utility.service';\r\n\r\ndeclare var CryptoJS:any;\r\n@Injectable()\r\nexport class LoginCheck {\r\n constructor(private router:Router, private adminSwitch : AdminSwitchService, private userData: SaveUserData, private config: ApiWebConfig, private decrypt: EncryptComponent, private helperService: HelperService ) { }\r\n canActivate() {\r\n this.helperService.myHeaderShowHide.emit(true);\r\n this.helperService.myFooterShowHide.emit(true);\r\n var userkey = localStorage.getItem('auth_controls');\r\n //var dedode_userkey = atob(userkey);\r\n if(userkey){\r\n var dedode_userkey = this.decrypt.decryptPass(userkey, this.config.encryptPass).toString(CryptoJS.enc.Utf8);\r\n var userkey_array = dedode_userkey.split(',');\r\n var orgId = userkey_array[0];\r\n var dtcId = userkey_array[1];\r\n var userEmail = userkey_array[2];\r\n var fexId = localStorage.getItem('extId');\r\n fexId = fexId == null ? '' : fexId;\r\n this.adminSwitch.getAdminSwitch(orgId, dtcId,fexId, userEmail);\r\n }\r\n var authKeyVal = localStorage.getItem('auth_data');\r\n if(!authKeyVal){\r\n this.router.navigate(['login']);\r\n }else{\r\n return true;\r\n }\r\n }\r\n adminSwitchData=[];\r\n adminResult=[];\r\n isLoggedOut(){\r\n this.userData.FontColor='';\r\n this.userData.FontStyle='';\r\n this.adminSwitch.adminResult.subscribe(\r\n data => {\r\n this.adminSwitchData=[''];\r\n this.adminSwitch.adminResult.emit('');\r\n }\r\n );\r\n localStorage.removeItem('auth_token');\r\n localStorage.removeItem('auth_data');\r\n localStorage.removeItem('auth_key');\r\n localStorage.removeItem('auth_controls');\r\n localStorage.removeItem('auth_controls_data');\r\n localStorage.removeItem('auth_userLogo');\r\n localStorage.removeItem('authHeadToken');\r\n localStorage.removeItem('premium_info');\r\n localStorage.removeItem('custom_images');\r\n localStorage.removeItem('channel_images');\r\n localStorage.removeItem('defaultPage');\r\n localStorage.removeItem('extId');\r\n var setOrg = localStorage.getItem('auth_org');\r\n if(setOrg){\r\n var dedode_setOrg = setOrg;\r\n this.router.navigate(['login'], {queryParams: {orgid: dedode_setOrg}});\r\n }else{\r\n this.router.navigate(['login']);\r\n }\r\n setTimeout(() => {\r\n location.reload();\r\n }, 50);\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/components/app.login.component.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n\r\n@Injectable()\r\nexport class FexIdService {\r\n constructor(private _http: Http, private config: ApiWebConfig, private apiService: ApiServices) { }\r\n\r\n fexIdUrl = this.config.apiUrl+'selfregistration/GetFexidDetailsByUserID';\r\n createfexIdUrl = this.config.apiUrl+'selfregistration/RegisterUserwithNewFexid';\r\n\r\n fexIDApi(service:any, jsonData:any={}) {\r\n var jsonData:any = JSON.stringify(jsonData);\r\n var url:any;\r\n switch (service) {\r\n case 'fexId':\r\n url = this.fexIdUrl;\r\n break;\r\n case 'createfexId':\r\n url = this.createfexIdUrl;\r\n break;\r\n default:\r\n break;\r\n }\r\n return this.apiService.postApiData(url, jsonData);\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/fexid/fexid.service.ts\n **/","import { Component } from '@angular/core';\r\nimport { SaveUserData } from '../../../core/components/app.user.data';\r\n\r\n@Component({\r\n selector: 'cr-footer',\r\n templateUrl: './app/modules/common/footer/footer.component.html'\r\n})\r\nexport class FooterComponent { \r\n constructor(private userData: SaveUserData){}\r\n defaultPage:any='';\r\n ngOnInit(){\r\n \r\n this.userData.getUserlData();\r\n this.defaultPage = this.userData.defaultPage;\r\n }\r\n} \n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/common/footer/footer.component.ts\n **/","import { Component } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormBuilder, Validators, FormArray, FormGroup } from '@angular/forms';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { LoginCheck } from '../../core/components/app.login.component';\r\nimport { SaveUserData } from '../../core/components/app.user.data';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { EncryptComponent } from '../../core/config/app.encrypt';\r\nimport { HelperService } from '../../core/services/utility/utility.service';\r\nimport { ApiServices } from '../../core/services/api.service';\r\nimport { AdminSwitchService } from '../../core/services/adminSwitch/adminswitch.service';\r\nimport { LoginService } from '../../core/services/loginReset/login.service';\r\n\r\n\r\ndeclare var $: any\r\n\r\n@Component({\r\n selector: 'cr-login-content',\r\n templateUrl: './app/modules/login/login.component.html'\r\n})\r\n\r\nexport class LoginComponent {\r\n loginForm: FormGroup;\r\n forgotPassForm: FormGroup;\r\n constructor(private _fb: FormBuilder, private router: Router, private _ar: ActivatedRoute, private login: LoginCheck, private userData: SaveUserData, private config: ApiWebConfig, private encrypt: EncryptComponent, private helperService: HelperService, private apiService: ApiServices, private adminswitch: AdminSwitchService, private _ls: LoginService) { }\r\n\r\n resultData: any = [];\r\n resultHeaders: any = [];\r\n dtcid: any = '';\r\n metaLoginFun(userOrgID, userEmail, UserPass) {\r\n if (userOrgID) {\r\n var userInfo = userOrgID;\r\n localStorage.setItem('auth_org', userInfo);\r\n }\r\n var url = this.config.apiUrl + 'dtclogin/loginuser?orgid=' + userOrgID + '&useremail=' + userEmail + '&password=' + UserPass;\r\n var jsonData = {};\r\n this.apiService.postHeaders(url, jsonData).subscribe((res) => {\r\n this.resultHeaders = res.headers.toJSON();\r\n this.resultData = res.json();\r\n if (this.resultHeaders.token) {\r\n localStorage.setItem('authHeadToken', this.resultHeaders.token[0]);\r\n }\r\n\r\n if (this.resultData) {\r\n $('.login-results .login-fail').remove();\r\n if (this.resultData.Result.length == 1) {\r\n localStorage.removeItem('auth_data_login');\r\n localStorage.removeItem('dynamicParam');\r\n if (this.resultData.Result[0].IsUserActive == 0) {\r\n $('.login-results').append('<p class=\"login-fail\">Your account is deactivated</p>');\r\n } else if (this.resultData.Result[0].IsOrgActive == 0) {\r\n $('.login-results').append('<p class=\"login-fail\">Your organization is deactivated</p>');\r\n } else {\r\n var loginStatus = '0';\r\n var orgId = this.resultData.Result[0].OrgId;\r\n var userId = this.resultData.Result[0].RegId;\r\n var userEmail = this.resultData.Result[0].UserEmail;\r\n var userLearningpath = this.resultData.Result[0].Learningpath;\r\n var dtcid = '';\r\n if (this.resultData.Result[0].DtcId) {\r\n dtcid = this.resultData.Result[0].DtcId;\r\n }\r\n var userLogo = this.resultData.Result[0].LogoUrl;\r\n if (userLogo) {\r\n localStorage.setItem('auth_userLogo', userLogo);\r\n }\r\n var userInfo = this.encrypt.encryptPass(loginStatus + ',' + orgId + ',' + userId + ',' + userEmail + ',' + userLearningpath, this.config.encryptPass);\r\n localStorage.setItem('auth_data', userInfo);\r\n var token = this.encrypt.encryptPass(userEmail + this.resultData.Result[0].RegId, this.config.encryptPass);\r\n localStorage.setItem('auth_token', token);\r\n var authKeyVal = localStorage.getItem('auth_data');\r\n if (dtcid != '') {\r\n this.adminswitch.getAdminSwitchToken(userOrgID, dtcid,'', userEmail, false, 'home', '');\r\n } else {\r\n this.router.navigate(['home']);\r\n }\r\n }\r\n } else {\r\n if (this.resultHeaders.token[0] == 1) {\r\n $('.login-results').append('<p class=\"login-fail\">User Not Activated</p>');\r\n } else {\r\n $('.login-results').append('<p class=\"login-fail\">Invalid Email ID or Password</p>');\r\n }\r\n }\r\n $('.reset-btn-loader .login-loader').fadeOut();\r\n }\r\n }\r\n );\r\n }\r\n\r\n metaForgotPass(userEmail) {\r\n var url = this.config.apiUrl + 'dtclogin/forgotpassword?useremail=' + userEmail + '&orgid=' + this.encrOrgId;\r\n var jsonData = {};\r\n this.apiService.postApiData(url, jsonData).subscribe(\r\n data => {\r\n var resetResult = data.Result;\r\n if (resetResult == 1) {\r\n $('.forgot-password .feedback-result').append('<p class=\"feedback-success\">Password sent Successfully!</p>');\r\n } else if (resetResult == 0) {\r\n $('.forgot-password .feedback-result').append('<p class=\"feedback-fail\">Invalid Email</p>');\r\n }\r\n $('.reset-btn-loader .login-loader').fadeOut();\r\n }\r\n );\r\n }\r\n\r\n emptyUserMail: any;\r\n emptyUserPass: any;\r\n userEmail: any;\r\n submitLoginForm(loginForm) {\r\n this.emptyUserMail = '';\r\n this.emptyUserPass = '';\r\n $('.login-results').empty();\r\n this.emptyUserMail = loginForm.controls.user_email.value;\r\n this.emptyUserPass = loginForm.controls.user_password.value;\r\n var emailValid = loginForm.controls.user_email.valid;\r\n var passValid = loginForm.controls.user_password.valid;\r\n if (emailValid == true && passValid == true) {\r\n $('.reset-btn-wrap .reset-btn-loader .login-loader').fadeIn();\r\n if (this.encrOrgId) {\r\n this.metaLoginFun(this.encrOrgId, this.emptyUserMail, this.emptyUserPass);\r\n } else {\r\n $('.login-results').append('<p class=\"login-fail\">Please login with valid orgid</p>');\r\n $('.reset-btn-loader .login-loader').fadeOut();\r\n }\r\n }\r\n }\r\n\r\n forgotMail: any;\r\n submitForgotPass(forgotPassForm) {\r\n $('.forgot-password .feedback-result').empty();\r\n $('.login-results').empty();\r\n this.forgotMail = '';\r\n this.forgotMail = forgotPassForm.controls.user_email.value;\r\n var emailValid = forgotPassForm.controls.user_email.valid;\r\n if (emailValid == true) {\r\n $('.forgot-btn-wrap .reset-btn-loader .login-loader').fadeIn();\r\n this.metaForgotPass(this.forgotMail);\r\n }\r\n }\r\n\r\n userDataClear() {\r\n this.userData.FontColor = '';\r\n this.userData.FontStyle = '';\r\n this.userData.ExternalId = '';\r\n this.userData.dtcId = '';\r\n this.userData.orgId = '';\r\n this.userData.userEmail = '';\r\n this.userData.userId = '';\r\n this.userData.loginStatus = '';\r\n this.userData.authHeadToken = '';\r\n localStorage.removeItem('auth_token');\r\n localStorage.removeItem('auth_data');\r\n localStorage.removeItem('auth_key');\r\n localStorage.removeItem('auth_controls');\r\n localStorage.removeItem('auth_controls_data');\r\n localStorage.removeItem('auth_userLogo');\r\n localStorage.removeItem('authHeadToken');\r\n localStorage.removeItem('premium_info');\r\n localStorage.removeItem('custom_images');\r\n localStorage.removeItem('channel_images');\r\n localStorage.removeItem('defaultPage');\r\n var setOrg = localStorage.getItem('auth_org');\r\n }\r\n\r\n encrOrgId: any;\r\n subscription: any;\r\n param: any;\r\n loginStatus: any = 0;\r\n domailUrl: any = '';\r\n\r\n loginBgImageUrl: any = this.config.imageUrl + 'app/assets/images/page-full-bg.jpg';\r\n loginLogo:any = '';\r\n\r\n euid: any;\r\n getEncryptOrgId(orgId) {\r\n localStorage.setItem('auth_org', orgId);\r\n }\r\n getLoginBgImage() {\r\n this._ls.getLoginBgUrlService(this.encrOrgId).subscribe(data => {\r\n console.log('getLoginBgUrlService',data);\r\n if( data.Result[0] != undefined ) { \r\n if(data.Result[0].LoginBannerImage != \"\") this.loginBgImageUrl = data.Result[0].LoginBannerImage;\r\n if(data.Result[0].Logo != \"\") this.loginLogo = data.Result[0].Logo;\r\n }\r\n })\r\n }\r\n getUserActivation(euid) {\r\n var jsonData = {\r\n UserId: euid,\r\n IsLocked: 0\r\n }\r\n this._ls.postJsonData('activeUser', jsonData).subscribe(\r\n data => {\r\n },\r\n error => {\r\n\r\n },\r\n () => {\r\n\r\n }\r\n )\r\n }\r\n\r\n /* Get Defualt Dynamic Parameter */\r\n defaultDynamicParam: any;\r\n getDefaultParam() {\r\n var jsonData = {\r\n \"EncryptedOrgId\": this.encrOrgId\r\n }\r\n this._ls.postJsonData('defaultDynaParam', jsonData).subscribe(\r\n data => {\r\n this.defaultDynamicParam = data.Result.ExternalId;\r\n if (this.defaultDynamicParam != null) {\r\n localStorage.setItem('dynamicParam', this.defaultDynamicParam)\r\n }\r\n },\r\n error => {\r\n\r\n },\r\n () => {\r\n\r\n }\r\n )\r\n }\r\n\r\n /* Get Register Status */\r\n registerStatus: any;\r\n getRegisterStatus() {\r\n var jsonData = {\r\n \"EncryptedOrgId\": this.encrOrgId\r\n }\r\n this._ls.postJsonData('registerStatus', jsonData).subscribe(\r\n data => {\r\n this.registerStatus = data.Result.ActionStatus;\r\n //console.log('this.registerStatus', data);\r\n localStorage.setItem('registerStatus', this.registerStatus);\r\n },\r\n error => {\r\n\r\n },\r\n () => {\r\n\r\n }\r\n )\r\n }\r\n\r\n\r\n ngOnInit() {\r\n var url = window.location.href\r\n var arr = url.split(\"/\");\r\n var result = arr[0] + \"//\" + arr[2]\r\n this.domailUrl = result;\r\n this.helperService.myHeaderShowHide.emit(false);\r\n this.helperService.myFooterShowHide.emit(false);\r\n\r\n\r\n /* Remove FexId From Local Storage */\r\n localStorage.removeItem('extId');\r\n\r\n this.subscription = this._ar.queryParams.subscribe(\r\n data => {\r\n \r\n this.encrOrgId = data['orgid'];\r\n this.loginStatus = data['status'];\r\n this.dtcid = data['dtcid'];\r\n this.euid = data['euid'];\r\n if (typeof this.euid != 'undefined') {\r\n this.getUserActivation(this.euid)\r\n }\r\n this.getLoginBgImage();\r\n this.getEncryptOrgId(this.encrOrgId);\r\n this.getDefaultParam();\r\n this.getRegisterStatus();\r\n },\r\n );\r\n\r\n if (this.encrOrgId) {\r\n this.userDataClear();\r\n }\r\n this.loginForm = this._fb.group({\r\n user_email: ['', [Validators.required, Validators.pattern(\"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$\")]],\r\n user_password: ['', [Validators.required]]\r\n });\r\n this.forgotPassForm = this._fb.group({\r\n user_email: ['', [Validators.required, Validators.pattern(\"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$\")]]\r\n });\r\n\r\n setTimeout(function () {\r\n $('.login-page-wrap .sec-loading').fadeOut(300);\r\n }, 800);\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/login/login.component.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n@Injectable()\r\nexport class LoginService {\r\n\r\n\r\n postLoginUrl = '';\r\n loginActivateUrl = this.config.apiUrl + 'selfregistration/UpdateUserLockStatus';\r\n defaultDynamicParamUrl = this.config.apiUrl + 'selfregistration/OrganizationDefaultParameter';\r\n\r\n registerStatusUrl = this.config.apiUrl + 'selfregistration/GetSelfResgistrationsEnableStatus';\r\n loginBgUrl = this.config.apiUrl + 'dtclogin/getbackgroundimagedetails?orgid=';\r\n\r\n constructor(private _http: Http, private apiService: ApiServices, private config: ApiWebConfig) { }\r\n\r\n postJsonData(serviceName, jsonData) {\r\n var url, jsonData;\r\n jsonData = JSON.stringify(jsonData);\r\n switch (serviceName) {\r\n case \"metaDataKeyWord\":\r\n url = this.postLoginUrl;\r\n break;\r\n case \"activeUser\":\r\n url = this.loginActivateUrl;\r\n break;\r\n case \"defaultDynaParam\":\r\n url = this.defaultDynamicParamUrl;\r\n break;\r\n case \"registerStatus\":\r\n url = this.registerStatusUrl;\r\n break;\r\n\r\n default:\r\n }\r\n return this.apiService.postApiData(url, jsonData);\r\n }\r\n\r\n getLoginBgUrlService(encryptOrg: any) { \r\n let headers = new Headers();\r\n headers.append('Content-Type', 'application/json; charset=utf-8');\r\n headers.append('Accept', 'application/json');\r\n return this._http.post(this.loginBgUrl + encryptOrg, \"\", { headers: headers }).map(res => res.json());\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/loginReset/login.service.ts\n **/","import { Component,Input } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormBuilder, Validators, FormArray, FormGroup } from '@angular/forms';\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { LoginCheck } from '../../core/components/app.login.component';\r\nimport { SaveUserData } from '../../core/components/app.user.data';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { LoginComponent } from '../../modules/login/login.component'; \r\nimport { EncryptComponent } from '../../core/config/app.encrypt';\r\nimport { HelperService } from '../../core/services/utility/utility.service';\r\nimport { ApiServices } from '../../core/services/api.service';\r\nimport { AdminSwitchService } from '../../core/services/adminSwitch/adminswitch.service';\r\n\r\nimport { LoginService } from '../../core/services/loginReset/login.service';\r\ndeclare var $:any\r\n\r\n@Component({\r\n selector: 'cr-login-section',\r\n templateUrl: './app/modules/login/loginrouter.component.html'\r\n})\r\n\r\nexport class LoginRouterComponent extends LoginComponent {\r\n constructor( _fb: FormBuilder, router:Router, _ar:ActivatedRoute, login: LoginCheck, userData: SaveUserData, config: ApiWebConfig, encrypt: EncryptComponent, helperService: HelperService, apiService: ApiServices, adminswitch: AdminSwitchService, _ls: LoginService) {\r\n super( _fb, router, _ar, login, userData,config, encrypt, helperService, apiService, adminswitch,_ls );\r\n }\r\n root = this;\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/login/loginrouter.component.ts\n **/","import { Component } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { FormBuilder, Validators, FormArray, FormGroup } from '@angular/forms';\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { AdminSwitchService } from '../../core/services/adminSwitch/adminswitch.service';\r\nimport { EncryptComponent } from '../../core/config/app.encrypt';\r\nimport { LoginComponent } from '../../modules/login/login.component';\r\nimport { LoginCheck } from '../../core/components/app.login.component';\r\nimport { SaveUserData } from '../../core/components/app.user.data';\r\nimport { HelperService } from '../../core/services/utility/utility.service';\r\nimport { ApiServices } from '../../core/services/api.service';\r\nimport { LoginService } from '../../core/services/loginReset/login.service';\r\n\r\n\r\n\r\ndeclare var $:any\r\n@Component({\r\n selector: 'cr-langing-section',\r\n templateUrl: './app/modules/landingPage/landing.component.html'\r\n})\r\n\r\nexport class LandingComponent {\r\n constructor(private _fb: FormBuilder, private router: Router, private _ar: ActivatedRoute, private login: LoginCheck, private userData: SaveUserData, private config: ApiWebConfig, private adminswitch: AdminSwitchService, private encrypt: EncryptComponent, private helperService: HelperService, private apiService: ApiServices ){}\r\n \r\n \r\n private _ls:LoginService;\r\n loginComp = new LoginComponent( this._fb,this.router,this._ar, this.login,this.userData, this.config, this.encrypt, this.helperService, this.apiService, this.adminswitch,this._ls );\r\n\r\n resultHeaders:any=[];\r\n resultData:any=[];\r\n metaLoginFun(userEmail, UserPass, LandingPage, landingChannelId) {\r\n var url = this.config.apiUrl+'dtclogin/loginuser?orgid='+this.encrOrgId+'&useremail='+userEmail+'&password='+UserPass;\r\n var jsonData = {};\r\n this.apiService.postHeaders(url, jsonData).subscribe((res)=> {\r\n this.resultHeaders = res.headers.toJSON();\r\n this.resultData = res.json();\r\n if(this.resultHeaders.token){\r\n localStorage.setItem('authHeadToken', this.resultHeaders.token[0]);\r\n }\r\n if(this.resultData){\r\n $('.login-results').empty();\r\n if(this.resultData.Result.length==0) {\r\n $('.login-results').append('<p class=\"login-fail\">Invalid Key</p>');\r\n } else {\r\n if(this.resultData.Result[0].RegId) {\r\n var loginStatus='1';\r\n var orgId=this.resultData.Result[0].OrgId;\r\n var userId=this.resultData.Result[0].RegId;\r\n var userEmail=this.resultData.Result[0].UserEmail;\r\n var userLearningpath = this.resultData.Result[0].Learningpath;\r\n //var dtcid = this.resultData.Result[0].DtcId;\r\n var userInfo = this.encrypt.encryptPass(loginStatus+','+orgId+','+userId+','+userEmail+','+userLearningpath, this.config.encryptPass);\r\n localStorage.setItem('auth_data', userInfo);\r\n var token = this.encrypt.encryptPass(userEmail + this.resultData.Result[0].RegId, this.config.encryptPass);\r\n localStorage.setItem('auth_token', token);\r\n }\r\n if(this.dtcid){\r\n this.adminswitch.getAdminSwitchToken(this.encrOrgId, this.dtcid,this.fexid, this.useremail, false, LandingPage, landingChannelId);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n isExpiredVal:any=1;\r\n metaDynamicParam(orgid, fexid, useremail) {\r\n var url = this.config.apiUrl+'dynamicparams/getdynamicparamdetails?orgid='+orgid+'&fexid='+fexid+'&useremail='+useremail;\r\n var jsonData = {};\r\n this.apiService.postHeaders(url, jsonData).subscribe((res)=> {\r\n this.resultHeaders = res.headers.toJSON();\r\n this.resultData = res.json();\r\n if(this.resultHeaders.token){\r\n localStorage.setItem('authHeadToken', this.resultHeaders.token[0]);\r\n }\r\n if(this.resultData){\r\n if(this.resultData.Result){\r\n if(this.resultData.Result[0].IsValid==0){\r\n this.isExpiredVal=0;\r\n }else if(this.isExpiredVal==1){\r\n var useremail = this.resultData.Result[0].UserEmail;\r\n var UserPass = this.resultData.Result[0].UserPassword;\r\n var LandingPage:string = this.resultData.Result[0].LandingPage;\r\n var userLogo = this.resultData.Result[0].LogoUrl;\r\n this.dtcid = this.resultData.Result[0].DtcId;\r\n var premiumurl = this.resultData.Result[0].PremiumUrl;\r\n var premiutext = this.resultData.Result[0].PremiumUrlLinkText;\r\n var landingChannelId ='';\r\n if(LandingPage.toLowerCase() =='selected channel'){\r\n LandingPage='channel';\r\n landingChannelId = this.resultData.Result[0].LandingPageChannelId;\r\n }\r\n if(LandingPage.toLowerCase() =='advanced search'){\r\n LandingPage='advancedSearch';\r\n }\r\n if(LandingPage.toLowerCase() =='learning paths'){\r\n LandingPage='learningPaths';\r\n }\r\n var saveFexId ='';\r\n var pipe = '';\r\n for(var i=0;i<this.resultData.Result.length;i++) {\r\n if(i>0){\r\n pipe='|';\r\n }\r\n saveFexId += pipe+this.resultData.Result[i].ExternalId;\r\n }\r\n if(userLogo){\r\n localStorage.setItem('auth_userLogo', userLogo);\r\n }\r\n if(premiumurl){\r\n var premiuminfo = premiutext+','+premiumurl;\r\n localStorage.setItem('premium_info', premiuminfo);\r\n }\r\n var userIds = this.encrypt.encryptPass(saveFexId+','+this.resultData.Result[0].PermissionId, this.config.encryptPass);\r\n localStorage.setItem('auth_key', userIds);\r\n this.metaLoginFun(useremail, UserPass, LandingPage, landingChannelId);\r\n }\r\n }else{\r\n this.isExpiredVal=2;\r\n this.errorMsg='Please enter valid login URL';\r\n }\r\n }\r\n });\r\n }\r\n \r\n userDataClear(){\r\n this.userData.FontColor='';\r\n this.userData.FontStyle='';\r\n this.userData.ExternalId='';\r\n this.userData.dtcId='';\r\n this.userData.orgId='';\r\n this.userData.userEmail='';\r\n this.userData.userId='';\r\n this.userData.loginStatus='';\r\n this.userData.authHeadToken='';\r\n this.userData.userLPOption.emit(0);\r\n localStorage.removeItem('auth_token');\r\n localStorage.removeItem('auth_data');\r\n localStorage.removeItem('auth_key');\r\n localStorage.removeItem('auth_controls');\r\n localStorage.removeItem('auth_controls_data');\r\n localStorage.removeItem('auth_userLogo');\r\n localStorage.removeItem('authHeadToken');\r\n localStorage.removeItem('premium_info');\r\n localStorage.removeItem('custom_images');\r\n localStorage.removeItem('channel_images');\r\n localStorage.removeItem('defaultPage');\r\n var setOrg = localStorage.getItem('auth_org');\r\n }\r\n\r\n validateEmail(email){\r\n var emailReg = new RegExp(/^((\"[\\w-\\s]+\")|([\\w-]+(?:\\.[\\w-]+)*)|(\"[\\w-\\s]+\")([\\w-]+(?:\\.[\\w-]+)*))(@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$)|(@\\[?((25[0-5]\\.|2[0-4][0-9]\\.|1[0-9]{2}\\.|[0-9]{1,2}\\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\\]?$)/i);\r\n var valid = emailReg.test(email);\r\n if(valid) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n validateUserPass(userid, orgid) {\r\n var url = this.config.apiUrl+'dtclogin/validateuserforresetpassword?userId='+userid+'&orgid='+orgid;\r\n var jsonData = {};\r\n this.apiService.postHeaders(url, jsonData).subscribe((res)=> {\r\n this.resultData = res.json();\r\n if(this.resultData.Result.IsResetPassword==0){\r\n var email = this.resultData.Result.EncryptEmailId;\r\n var orgid = this.resultData.Result.EncryptOrgid;\r\n this.router.navigate(['resetPassword'], {queryParams: {email: email, orgid: orgid}});\r\n //this.router.navigate(['resetPassword'], {queryParams: {email: '8mCIguwAkLZni81F1OkJFNUS8K+aCinT', orgid: 'yLKOIm17QD00QKweXFoEHQ=='}});\r\n }\r\n if(this.resultData.Result.IsResetPassword==1){\r\n var orgid = this.resultData.Result.EncryptOrgid;\r\n this.router.navigate(['login'], {queryParams: {orgid: orgid}});\r\n }\r\n });\r\n }\r\n\r\n encrOrgId:any='';\r\n fexid:any='';\r\n useremail:any='';\r\n dtcid:any='';\r\n subscription:any;\r\n password:any;\r\n adminSwitchData=[];\r\n loginValid:boolean;\r\n errorMsg:any='';\r\n crxver:any;\r\n ui:any;\r\n oi:any;\r\n ngOnInit(){\r\n this.helperService.myHeaderShowHide.emit(false);\r\n this.helperService.myFooterShowHide.emit(false);\r\n this.userDataClear();\r\n this.subscription = this._ar.queryParams.subscribe(\r\n data=>{\r\n this.encrOrgId = data['orgid'];\r\n this.useremail = data['useremail'];\r\n this.fexid = data['fexid'];\r\n this.dtcid = data['dtcid'];\r\n this.password = data['password'];\r\n this.crxver = data['crxver'];\r\n this.ui = data['ui'];\r\n this.oi = data['oi'];\r\n localStorage.setItem('extId',data['fexid']);\r\n }\r\n );\r\n if(this.crxver==2){\r\n this.validateUserPass(this.ui, this.oi);\r\n }\r\n if(this.fexid){\r\n localStorage.removeItem('auth_org');\r\n var emailResult = this.validateEmail(this.useremail);\r\n if(emailResult==false) {\r\n this.isExpiredVal=2;\r\n this.errorMsg='Please enter valid email ID';\r\n }else{\r\n this.metaDynamicParam(this.encrOrgId, this.fexid, this.useremail);\r\n }\r\n\r\n } else if(this.dtcid) {\r\n localStorage.removeItem('auth_org');\r\n var emailResult = this.validateEmail(this.useremail);\r\n if(emailResult==false) {\r\n this.isExpiredVal=2;\r\n this.errorMsg='Please enter valid email ID';\r\n }else{\r\n this.adminswitch.getAdminSwitchToken(this.encrOrgId, this.dtcid,this.fexid, this.useremail, true, '', '');\r\n this.adminswitch.adminResultToken.subscribe(\r\n data => {\r\n if(data.IsActiveOrg==0 || data.IsActiveUser==0){\r\n this.isExpiredVal=0;\r\n return false;\r\n }\r\n }\r\n ); \r\n }\r\n } else if(this.password) {\r\n this.loginComp.metaLoginFun(this.encrOrgId, this.useremail, this.password);\r\n }\r\n this.adminswitch.adminuserValid.subscribe(\r\n data => {\r\n var userResult = 0;\r\n if(userResult==0){\r\n this.isExpiredVal=0;\r\n }\r\n }\r\n );\r\n }\r\n \r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/landingPage/landing.component.ts\n **/","import { Component } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { FormBuilder, Validators, FormArray, FormGroup } from '@angular/forms';\r\nimport { LandingComponent } from '../../modules/landingPage/landing.component';\r\nimport { AdminSwitchService } from '../../core/services/adminSwitch/adminswitch.service';\r\nimport { EncryptComponent } from '../../core/config/app.encrypt';\r\nimport { LoginComponent } from '../../modules/login/login.component';\r\nimport { LoginCheck } from '../../core/components/app.login.component';\r\nimport { SaveUserData } from '../../core/components/app.user.data';\r\nimport { HelperService } from '../../core/services/utility/utility.service';\r\nimport { ApiServices } from '../../core/services/api.service';\r\n\r\ndeclare var $:any\r\n\r\n@Component({\r\n selector: 'cr-langing-content',\r\n templateUrl: './app/modules/landingPage/landingrouter.component.html'\r\n})\r\n\r\nexport class LandingRouterComponent extends LandingComponent {\r\n constructor( _fb: FormBuilder, router: Router, _ar: ActivatedRoute, login: LoginCheck, userData: SaveUserData, config: ApiWebConfig, adminswitch: AdminSwitchService, encrypt: EncryptComponent, helperService: HelperService, apiService: ApiServices ) {\r\n super(_fb, router, _ar, login, userData, config, adminswitch, encrypt, helperService, apiService);\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/landingPage/landingrouter.component.ts\n **/","import { Injectable, EventEmitter } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { EncryptComponent } from '../../core/config/app.encrypt';\r\nimport { AdminSwitchService } from '../../core/services/adminSwitch/adminswitch.service';\r\n\r\ndeclare var CryptoJS:any;\r\n\r\n@Injectable()\r\nexport class userMessage {\r\n constructor(private router: Router, private config: ApiWebConfig, private decrypt: EncryptComponent, private adminSwitch: AdminSwitchService){}\r\n\r\n demoMessage:any='Please Subscribe to this Channel for full access, or click \"View Demo\" for a preview';\r\n SubscriptionMessage:any='Please Subscribe Channel First';\r\n CustomMessageCode:any='Subscribe Channel';\r\n demoCustomMessageTitle='Subscribe Channel';\r\n alertMessage(){\r\n this.adminSwitch.adminResult.subscribe(\r\n data => {\r\n if(data.DtcMessageInformation){\r\n if(data.DtcMessageInformation[0].Message){\r\n this.demoMessage = data.DtcMessageInformation[0].Message;\r\n if(data.DtcMessageInformation[0].CustomMessageCode =='')\r\n {\r\n this.demoCustomMessageTitle = \"Subscribe Channel\";\r\n }\r\n else\r\n {\r\n this.demoCustomMessageTitle = data.DtcMessageInformation[0].CustomMessageCode;\r\n }\r\n }\r\n if(data.DtcMessageInformation[1].Message){\r\n this.SubscriptionMessage = data.DtcMessageInformation[1].Message;\r\n if(data.DtcMessageInformation[0].CustomMessageCode =='')\r\n {\r\n this.demoCustomMessageTitle = \"Subscribe Channel\";\r\n }\r\n else\r\n {\r\n this.demoCustomMessageTitle = data.DtcMessageInformation[0].CustomMessageCode;\r\n }\r\n }\r\n }else{\r\n this.demoMessage;\r\n this.SubscriptionMessage;\r\n }\r\n }\r\n );\r\n }\r\n \r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/components/app.user.message.ts\n **/","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'cr-error',\r\n templateUrl: './app/modules/errorPage/error.component.html'\r\n})\r\n\r\nexport class ErrorComponent {\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/errorPage/error.component.ts\n **/","import { Component, Input, ElementRef } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n/* Service */\r\nimport { AdvancedSearchService } from '../../core/services/advancedSearch/advancedSearch.service';\r\nimport { HelperService } from '../../core/services/utility/utility.service';\r\nimport { HomeService } from '../../core/services/home.service';\r\nimport { SaveUserData } from '../../core/components/app.user.data';\r\nimport { ApiWebConfig } from '../../core/config/app.config';\r\nimport { AdminSwitchService } from '../../core/services/adminSwitch/adminswitch.service';\r\n\r\nimport { MetaDataService } from '../../core/services/metadata/metadata.service';\r\n\r\n\r\ndeclare var $: any;\r\n\r\n@Component({\r\n selector: 'cr-metadata-menu',\r\n templateUrl: './app/modules/metadata-menu/metadatamenu.html'\r\n})\r\n\r\nexport class MetadataMenuComponent {\r\n @Input() library:string;\r\n\r\n constructor( private _as:AdvancedSearchService, private userData:SaveUserData, private _ms:MetaDataService,private router:Router,private element:ElementRef ) { }\r\n\r\n \r\n /* Get Meta Tags Details */\r\n \r\n metaDataDetails:any = [];\r\n localmetaDataDetails:any = [];\r\n getMetaTagsData() {\r\n var seed = this;\r\n var jsonData = {\r\n \"OrgId\" : this.userData.orgId,\r\n \"UserId\" : this.userData.userId,\r\n \"SearchText\" : \"\",\r\n \"IsSearchByContent\" : \"0\",\r\n \"ExternalId\" : this.userData.ExternalId,\r\n \"TagDetails\" : [],\r\n \"ContentDetails\" : []\r\n };\r\n if(this.userData.orgId){\r\n this._as.postJsonData('metaData',jsonData).subscribe(\r\n data => {\r\n this.metaDataDetails = data.Result;\r\n this.tagDetails = this.metaDataDetails[0].TagDetails;\r\n this.localmetaDataDetails = data.Result;\r\n this.localmetaDataDetails.forEach(function(el:any,i:any){\r\n (i == 0 ) ? el.iscurrentActive = true : el.iscurrentActive = false;\r\n el.TagDetails.forEach(function(ele:any){\r\n ele.iscurrentActive = false;\r\n ele.SubTagDetails.forEach(function(element:any){\r\n element.iscurrentActive = false;\r\n });\r\n });\r\n });\r\n }\r\n )\r\n }\r\n }\r\n\r\n /* Send Tag Details To Child Components */\r\n tagDetails:any=[];\r\n showTags(data:any,i:any) {\r\n this.tagDetails = this.metaDataDetails[i].TagDetails;\r\n this.localmetaDataDetails.forEach(function(el:any){\r\n el.iscurrentActive = false;\r\n });\r\n this.localmetaDataDetails[i].iscurrentActive = true;\r\n }\r\n\r\n\r\n /* Toggle Menu Section */\r\n closeMainMenu(evt) {\r\n this.toggleMenu = false;\r\n }\r\n\r\n\r\n toggleMenu:boolean = false;\r\n toggleMetaDataMenu(evt:any) {\r\n //this.toggleMenu = !this.toggleMenu;\r\n this.toggleMenu = true;\r\n if(this.toggleMenu) {\r\n setTimeout(function(){\r\n $(\".scroll-bar\").mCustomScrollbar({\r\n advanced: { updateOnContentResize: true }\r\n });\r\n },0);\r\n }\r\n }\r\n \r\n\r\n\r\n outsideClick(evt:any) {\r\n var target = this.element.nativeElement.contains(evt);\r\n if( target ) {\r\n this.toggleMenu = true\r\n } else {\r\n if( evt != null ) this.toggleMenu = false;\r\n }\r\n }\r\n\r\n\r\n ngOnInit() {\r\n this.userData.getUserlData();\r\n this.getMetaTagsData();\r\n }\r\n\r\n ngOnChanges() {\r\n if( this.library == '' || typeof this.library == 'undefined' ) this.library = 'Library';\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/metadata-menu/metadatamenu.component.ts\n **/","import { Injectable } from '@angular/core';\r\nimport {Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n@Injectable()\r\nexport class AdvancedSearchService {\r\n constructor(private _http: Http, private config: ApiWebConfig, private apiService: ApiServices) { }\r\n\r\n postAdvancedMeta= this.config.apiUrl+'search/advancesearchmetadata';\r\n postAdvancedContent= this.config.apiUrl+'search/advancesearchcontentbymetadata';\r\n //postAdvancedChannel = this.config.apiUrl+'search/advancesearchchannelbymetadata';\r\n postAdvancedChannel = this.config.apiUrl+'search/advancesearchcontentonlybymetadata';\r\n postChannelDetail = this.config.apiUrl+'vmchannel/getchannelcontentdetails';\r\n postChannelDemo = this.config.apiUrl+'vmchannel/getchannelcontentdetails';\r\n postEnrollAdd = this.config.apiUrl+'vmchannel/channelenrollment';\r\n postChannelEnroll = this.config.apiUrl+'vmchannel/subscribechannel';\r\n postDemoVideoClip = this.config.apiUrl+'vmhome/getvideoclipurl';\r\n matchedMetaData = this.config.apiUrl+'search/getmatchedmetadatainfo';\r\n advSrchMetaDataUrl = this.config.apiUrl+'search/AdvanceSearchMetaDataDetails';\r\n advSrchContentUrl = this.config.apiUrl+'search/AdvanceSearchShowContentByMetaData';\r\n saveSrchUrl = this.config.apiUrl+'search/SaveDtcSearchRecord';\r\n\r\n\r\n postJsonData( serviceName, jsonData ) {\r\n var url, jsonData;\r\n switch( serviceName ) {\r\n case \"AdvancedMeta\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postAdvancedMeta;\r\n break;\r\n case \"AdvancedContentMeta\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postAdvancedContent;\r\n break;\r\n case \"AdvancedChannel\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postAdvancedChannel;\r\n break;\r\n case \"channelDetail\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelDetail;\r\n break;\r\n case \"ChannelViewDemo\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelDemo;\r\n break;\r\n case \"ChannelEnroll\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelEnroll;\r\n break;\r\n case \"ChannelEnrollAdd\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postEnrollAdd;\r\n break;\r\n case \"DemoVideoClip\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postDemoVideoClip;\r\n break;\r\n case \"matchedMetaDataInfo\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.matchedMetaData;\r\n break;\r\n\r\n case \"metaData\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.advSrchMetaDataUrl;\r\n break;\r\n case \"metaContent\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.advSrchContentUrl;\r\n break;\r\n case \"saveSearch\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.saveSrchUrl;\r\n break;\r\n default:\r\n }\r\n return this.apiService.postApiData(url, jsonData);\r\n }\r\n}\r\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/advancedSearch/advancedSearch.service.ts\n **/","import { Injectable } from '@angular/core';\r\nimport {Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n@Injectable()\r\nexport class MetaDataService {\r\n\r\n constructor(private _http: Http, private apiService: ApiServices) { }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/metadata/metadata.service.ts\n **/","import { Component,Input,Output,EventEmitter } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n\r\ndeclare var $: any;\r\n\r\n@Component({\r\n selector: 'cr-metadata-tags',\r\n templateUrl: './app/modules/metadata-menu/metadata-tags/metadatatags.html'\r\n})\r\n\r\nexport class MetadataTagsComponent {\r\n @Input() metaTags:any = [];\r\n @Output() closeMenu = new EventEmitter();\r\n\r\n constructor(private router:Router) { }\r\n\r\n\r\n closeMainMenu(evt:any) {\r\n this.closeMenu.emit('close');\r\n }\r\n\r\n /* Navigate to Advanced Search */\r\n navToMetaTag(data:any,i:any) {\r\n this.closeMenu.emit('close');\r\n this.router.navigate(['/advancedSearch'], { queryParams: { tagId: data.TagId } });\r\n }\r\n\r\n ngOnInit() {\r\n \r\n }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/metadata-menu/metadata-tags/metadatatags.component.ts\n **/","import { Component, Input, Output, EventEmitter } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\n\r\n\r\ndeclare var $: any;\r\n\r\n@Component({\r\n selector: 'cr-metadata-subtags',\r\n templateUrl: './app/modules/metadata-menu/metadata-tags/metadata-subtags/metadatasubtags.html'\r\n})\r\n\r\nexport class MetadataSubTagsComponent {\r\n @Input() metasubtags:any=[]; \r\n @Input() tagId:any=[];\r\n @Output() closeMenu = new EventEmitter();\r\n constructor(private router:Router) { }\r\n\r\n\r\n /* Navigate to Advanced Search */\r\n navToMetaTag(data:any,i:any) {\r\n this.closeMenu.emit('close');\r\n this.router.navigate(['/advancedSearch'], { queryParams: { tagId:this.tagId , subtagId: data.TagId } });\r\n }\r\n \r\n ngOnInit() {\r\n \r\n }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/modules/metadata-menu/metadata-tags/metadata-subtags/metadatasubtags.component.ts\n **/","import { Injectable } from '@angular/core';\r\nimport {Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n@Injectable()\r\nexport class SubscriptionsService {\r\n constructor(private _http: Http, private conifg: ApiWebConfig, private apiService: ApiServices ) { }\r\n postGetSubsribedChannel = this.conifg.apiUrl+'vmchannel/getsubsribedchanneldetails';\r\n postRemoveSubsribedChannel = this.conifg.apiUrl+'vmchannel/channelenrollment';\r\n postChannelDetail = this.conifg.apiUrl+'vmchannel/getchannelcontentdetails';\r\n\r\n postJsonData( serviceName, jsonData ) {\r\n var url, jsonData;\r\n switch( serviceName ) {\r\n case \"GetSubsribedChannel\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postGetSubsribedChannel;\r\n break;\r\n case \"RemoveSubsribedChannel\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postRemoveSubsribedChannel;\r\n break;\r\n case \"channelDetail\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelDetail;\r\n break;\r\n default:\r\n }\r\n return this.apiService.postApiData(url, jsonData);\r\n }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/subscriptions/subscriptions.service.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport {Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport {Observable} from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n@Injectable()\r\nexport class VideoViewerService {\r\n postGetVideoDetailsUrl = this.config.apiUrl+\"videocontentdetails/videourldetails\";\r\n\tpostAddCommentsUrl = this.config.apiUrl+'comments/addcomments';\r\n\tpostGetCommentsUrl = this.config.apiUrl+'getcomments/comments';\r\n\tpostGetRelatedContentUrl = this.config.apiUrl+'vmviewer/getrelatedcontentdetails';\r\n constructor(private _http: Http,private config:ApiWebConfig, private apiService: ApiServices) { }\r\n\t\r\n postVideoUrlDataService(url) {\r\n\t\tvar JsonData={\"videoUrl\":url}\r\n\t\treturn this.apiService.postApiData(this.postGetVideoDetailsUrl, JsonData);\r\n }\r\n\t\r\n\tpostAddCommentsService(jsonData) {\r\n\t\treturn this.apiService.postApiData(this.postAddCommentsUrl, jsonData);\r\n }\r\n\t\r\n\tpostGetCommentsService(jsonData) {\r\n\t\treturn this.apiService.postApiData(this.postGetCommentsUrl, jsonData);\r\n }\r\n\t\r\n\tpostGetRelatedContentService(jsonData){\r\n\t\treturn this.apiService.postApiData(this.postGetRelatedContentUrl, jsonData);\r\n\t}\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/video/video.service.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n@Injectable()\r\nexport class AssessmentEndUserService {\r\n\r\n constructor(private config: ApiWebConfig, private http: Http, private apiService: ApiServices) {\r\n\r\n }\r\n\r\n saveAssessmentResultUrl = this.config.apiUrl + \"assessmentUser/saveAssessmentResult\";\r\n getEditQusetionDataUrl = this.config.apiUrl + \"assessments/getquestiondetailsbyquestionid\";\r\n getUserEndAssessmentUrl = this.config.apiUrl + \"assessmentUser/attenAssessment\";\r\n getQuestionByDisplayOrderUrl = this.config.apiUrl + \"assessmentUser/getQuestionByDisplayOrder\";\r\n getNextQuestionUrl = this.config.apiUrl + \"assessmentUser/getNextQuestionByDisplayOrder\";\r\n getPreviousQuestionUrl = this.config.apiUrl + \"assessmentUser/getPreviousQuestionByDisplayOrder\";\r\n getAssessmentResultUrl = this.config.apiUrl + \"assessmentUser/getAssessmentResult\";\r\n updateAssessmentResultUrl = this.config.apiUrl + \"assessmentUser/updateAssessmentResult\";\r\n sendAssessmentResultMailUrl = this.config.apiUrl + \"assessmentUser/sendAssessmentResultMail\";\r\n\r\n\r\n getAssessmentUserEndService(json) {\r\n\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // return this.http.post(this.getUserEndAssessmentUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.getUserEndAssessmentUrl, json);\r\n }\r\n\r\n getQuestionByDisplayOrderService(json) {\r\n // console.log(JSON.stringify(json));\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // headers.append('Content-Type', 'application/json; charset=utf-8');\r\n // return this.http.post(this.getQuestionByDisplayOrderUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.getQuestionByDisplayOrderUrl, json);\r\n }\r\n\r\n getNextQuestionByOrderService(json) {\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // headers.append('Content-Type', 'application/json; charset=utf-8');\r\n // return this.http.post(this.getNextQuestionUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.getNextQuestionUrl, json);\r\n }\r\n\r\n getPreviousQuestionByOrderService(json) {\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // headers.append('Content-Type', 'application/json; charset=utf-8');\r\n // return this.http.post(this.getPreviousQuestionUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.getPreviousQuestionUrl, json);\r\n }\r\n\r\n saveAssessmentResultService(json) {\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // headers.append('Content-Type', 'application/json; charset=utf-8');\r\n // return this.http.post(this.saveAssessmentResultUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.saveAssessmentResultUrl, json);\r\n }\r\n\r\n getAssessmentResultService(json) {\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // headers.append('Content-Type', 'application/json; charset=utf-8');\r\n // return this.http.post(this.getAssessmentResultUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.getAssessmentResultUrl, json);\r\n }\r\n updateAssessmentResultService(json) {\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // headers.append('Content-Type', 'application/json; charset=utf-8');\r\n // return this.http.post(this.updateAssessmentResultUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.updateAssessmentResultUrl, json);\r\n }\r\n sendEmailAssessmentResultService(json) {\r\n // let headers = new Headers();\r\n // headers.append('Accept', 'application/json');\r\n // headers.append('Content-Type', 'application/json; charset=utf-8');\r\n // return this.http.post(this.sendAssessmentResultMailUrl, json, { headers: headers }).map(res => res.json());\r\n return this.apiService.postApiData(this.sendAssessmentResultMailUrl, json);\r\n }\r\n\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/assessment/assessment.userend.service.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\nimport { ChannelService } from '../../../core/services/channel/channel.service';\r\n\r\n\r\n@Injectable()\r\nexport class ChannelcontentService {\r\n constructor(private _http: Http, private config: ApiWebConfig, private apiService: ApiServices,private _cs:ChannelService) { }\r\n\r\n \r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/channel-content/channelcontent.service.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n@Injectable()\r\nexport class ChannelService {\r\n constructor(private _http: Http, private config: ApiWebConfig, private apiService: ApiServices) { }\r\n\r\n postChannelCategory = this.config.apiUrl + 'vmchannel/getchanneldetails';\r\n postChannelDetail = this.config.apiUrl + 'vmchannel/getchannelcontentdetails';\r\n postChannelEnroll = this.config.apiUrl + 'vmchannel/subscribechannel';\r\n postEnrollAdd = this.config.apiUrl + 'vmchannel/channelenrollment';\r\n postChannelDemo = this.config.apiUrl + 'vmchannel/getchannelcontentdetails';\r\n postDemoVideoClip = this.config.apiUrl + 'vmhome/getvideoclipurl';\r\n\r\n postJsonData(serviceName, jsonData) {\r\n var url, jsonData;\r\n switch (serviceName) {\r\n case \"channelCategory\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelCategory;\r\n break;\r\n case \"channelDetail\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelDetail;\r\n break;\r\n case \"ChannelEnroll\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelEnroll;\r\n break;\r\n case \"ChannelEnrollAdd\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postEnrollAdd;\r\n break;\r\n case \"ChannelViewDemo\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postChannelDemo;\r\n break;\r\n case \"DemoVideoClip\":\r\n jsonData = JSON.stringify(jsonData);\r\n url = this.postDemoVideoClip;\r\n break;\r\n default:\r\n }\r\n return this.apiService.postApiData(url, jsonData);\r\n }\r\n\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/channel/channel.service.ts\n **/","import { Injectable } from '@angular/core';\r\nimport { Http, Response, Headers, RequestOptions } from '@angular/http';\r\nimport { Observable } from 'rxjs/Observable';\r\nimport 'rxjs/add/operator/map';\r\nimport { ApiWebConfig } from '../../../core/config/app.config';\r\nimport { ApiServices } from '../../services/api.service';\r\n\r\n\r\n@Injectable()\r\nexport class RegisterationService {\r\n constructor(private _http: Http, private config: ApiWebConfig, private apiService: ApiServices) { }\r\n\r\n getCountryUrl = this.config.apiUrl+'selfregistration/GetCountryList';\r\n SaveRegistrationUrl= this.config.apiUrl+'selfregistration/SaveRegistrationDetails';\r\n\r\n registerationApi(service:any, jsonData:any={}) {\r\n var jsonData:any = JSON.stringify(jsonData);\r\n var url:any;\r\n switch (service) {\r\n case 'country':\r\n url = this.getCountryUrl;\r\n break;\r\n case 'saveRegister':\r\n url = this.SaveRegistrationUrl;\r\n break;\r\n default:\r\n break;\r\n }\r\n return this.apiService.postApiData(url, jsonData);\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/services/registeration/registeration.service.ts\n **/","import { ModuleWithProviders } from '@angular/core';\r\nimport { CanActivate, Routes, RouterModule } from '@angular/router';\r\n\r\n// Component\r\nimport { LoginComponent } from '../../modules/login/login.component';\r\nimport { LoginRouterComponent } from '../../modules/login/loginrouter.component';\r\nimport { LandingRouterComponent } from '../../modules/landingPage/landingrouter.component';\r\n\r\n// import { HomeComponent } from '../../modules/home/home.component';\r\n// import { HeaderComponent } from '../../modules/common/header/header.component';\r\n// import { HomeRouterComponent } from '../../modules/home/homerouter.component';\r\n// import { ChannelComponent } from '../../modules/channels/channel.component';\r\n// import { FavoritesComponent } from '../../modules/favorites/favorites.component';\r\n// import { FavoritesRouterComponent } from '../../modules/favorites/favoritesrouter.component';\r\n// import { SubscriptionsComponent } from '../../modules/subscriptions/subscriptions.component';\r\n// import { AdvancedSearchComponent } from '../../modules/advancedSearch/advancedSearch.component';\r\n// import { AdvancedSearchRouterComponent } from '../../modules/advancedSearch/advancedSearchrouter.component'; \r\n// import { learningPathViewerRouterComponent } from '../../modules/learningPathViewer/learningPathViewerrouter.component';\r\n// import { LearningpathComponent } from '../../modules/learningPath/learningpath.component';\r\n// import { LearningpathRouterComponent } from '../../modules/learningPath/learningpathrouter.component';\r\n// import { LearningpathdetailComponent } from '../../modules/learningPath/learningPathDetail/learningpathdetail.component';\r\n// import { LearningpathdetailRouterComponent } from '../../modules/learningPath/learningPathDetail/learningpathdetailrouter.component';\r\n// import { RegistrationComponent } from '../../modules/registration/registration.component';\r\n// import { ResetComponent } from '../../modules/resetPassword/reset.component';\r\n// import { ResetRouterComponent } from '../../modules/resetPassword/resetrouter.component';\r\n// import { VideoviewerComponent } from '../../modules/video/videoviewer.components';\r\n// import { PdfviewerComponent } from '../../modules/pdfviewer/pdfviewer.component';\r\n// import { PresenterComponent } from '../../modules/featuredPresenter/presenter.component';\r\n\r\n// assessment user end\r\n// import { BeginSurveyComponent } from '../../modules/assessment/BeginSurvey/beginsurvey.component';\r\n// import { UserQuestionComponent } from '../../modules/assessment/UserQuestion/userquestion.component';\r\n// import { RetakeComponent } from '../../modules/assessment/Retake/retake.component';\r\n// import { UserQuestionResultComponent } from '../../modules/assessment/Result/result.component';\r\n// import { subChannelComponent } from '../../modules/channels/sub-channel/subchannel.component';\r\n// import { RegisterGaurd } from '../../core/router-guard/registration/register.guard';\r\n\r\n\r\nimport { ErrorComponent } from '../../modules/errorPage/error.component';\r\nimport { LoginCheck } from '../../core/components/app.login.component';\r\ndeclare var System:any;\r\n\r\nconst appRoutes: Routes = [\r\n {\r\n path: '',\r\n redirectTo: 'home',\r\n pathMatch: 'full',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'login',\r\n component: LoginRouterComponent\r\n },\r\n {\r\n path: 'landingPage',\r\n component: LandingRouterComponent\r\n },\r\n {\r\n path: 'home',\r\n loadChildren: './app/core/routes/home/home.module#HomeModule',\r\n // loadChildren: () => new Promise(function (resolve) {\r\n // (require as any).ensure([], function (require: any) {\r\n // resolve(require('./home/home.module')['HomeModule']);\r\n // });\r\n // }),\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'favorites',\r\n loadChildren: 'app/core/routes/favorites/favorites.module#FavoritesModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'channel',\r\n loadChildren: 'app/core/routes/channel/channel.module#ChannelModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'channel/:isChannel/:id',\r\n loadChildren: 'app/core/routes/channel/channel.module#ChannelModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'learningPaths',\r\n loadChildren: 'app/core/routes/learningPath/learningPath.module#LearnintPathModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'learningPathDetail',\r\n loadChildren: 'app/core/routes/learningPathDetail/learningPathDetail.module#LearningPathDetailModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'learningPathDetail/:id',\r\n loadChildren: 'app/core/routes/learningPathDetail/learningPathDetail.module#LearningPathDetailModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'advancedSearch',\r\n loadChildren: 'app/core/routes/advanceSearch/advanceSearch.module#AdvanceSearchModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'learningPathViewer',\r\n loadChildren: 'app/core/routes/learningPathViewer/learningPathViewer.module#LearningPathDetailModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'learningPathViewer/:id',\r\n loadChildren: 'app/core/routes/learningPathViewer/learningPathViewer.module#LearningPathDetailModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'learningPathViewer/:id',\r\n loadChildren: 'app/core/routes/learningPathViewer/learningPathViewer.module#LearningPathDetailModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'videoviewer',\r\n loadChildren: 'app/core/routes/videoViewer/videoViewer.module#VideoModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'videoviewer/:url',\r\n loadChildren: 'app/core/routes/videoViewer/videoViewer.module#VideoModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'pdfviewer',\r\n loadChildren: 'app/core/routes/pdfViewer/pdfViewer.module#PdfViewerModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'pdfviewer/:url',\r\n loadChildren: 'app/core/routes/pdfViewer/pdfViewer.module#PdfViewerModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'featurePresenter/:id',\r\n loadChildren: 'app/core/routes/featurePresenter/featurePresenter.module#FeaturePresenterModule',\r\n \r\n },\r\n {\r\n path: 'user-registration',\r\n loadChildren: 'app/core/routes/registration/registration.module#RegistrationModule'\r\n },\r\n {\r\n path: 'resetPassword',\r\n loadChildren: 'app/core/routes/resetPassword/resetPassword.module#ResetPasswordModule'\r\n },\r\n {\r\n path: 'beginsurvey/:assessid',\r\n loadChildren: 'app/core/routes/beginsurvey/beginsurvey.module#BeginSurveyModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'beginsurvey',\r\n loadChildren: 'app/core/routes/beginsurvey/beginsurvey.module#BeginSurveyModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'userquestion',\r\n loadChildren: 'app/core/routes/userQuestion/userQuestion.module#UserQuestionModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'retake',\r\n loadChildren: 'app/core/routes/retake/retake.module#RetakeModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: 'assessmentresult',\r\n loadChildren: 'app/core/routes/assessmentResult/assessmentResult.module#ResultModule',\r\n canActivate: [LoginCheck]\r\n },\r\n {\r\n path: '**',\r\n component: ErrorComponent\r\n }\r\n\r\n];\r\n\r\n// export const routing= RouterModule.forRoot(appRoutes);\r\nexport const routing = RouterModule.forRoot(appRoutes);\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/routes/app.routes.ts\n **/","import { Component } from '@angular/core';\r\nimport { Injectable } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { SaveUserData } from '../../../core/components/app.user.data';\r\n\r\n\r\n@Injectable()\r\nexport class RegisterGaurd {\r\n constructor(private router:Router, private userData: SaveUserData ) { }\r\n canActivate() {\r\n var userId = this.userData.userId;\r\n if(userId){\r\n this.router.navigate(['home']);\r\n }else{\r\n return true;\r\n }\r\n }\r\n \r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/router-guard/registration/register.guard.ts\n **/","import {\r\n Component,\r\n Directive,\r\n NgModule,\r\n Input,\r\n ViewContainerRef,\r\n Compiler,\r\n CUSTOM_ELEMENTS_SCHEMA\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Directive({\r\n selector: '[dynamicTemplate]' \r\n})\r\nexport class dynamicTemplate {\r\n @Input('dynamicTemplate') html: string;\r\n @Input() content: Object;\r\n @Input() text: any;\r\n \r\n\r\n constructor(private vcRef: ViewContainerRef, private compiler: Compiler) {}\r\n\r\n ngOnInit() {\r\n \r\n }\r\n ngOnChanges() {\r\n const html = this.html;\r\n const content = this.content;\r\n if (!html) return;\r\n if (typeof content != 'object') return;\r\n @Component({\r\n selector: 'cr-dynamic-template',\r\n templateUrl: html\r\n })\r\n class DynamicHtmlComponent { };\r\n DynamicHtmlComponent.prototype = this.content;\r\n\r\n @NgModule({\r\n imports: [CommonModule],\r\n declarations: [DynamicHtmlComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n })\r\n class DynamicHtmlModule { }\r\n this.compiler.compileModuleAndAllComponentsAsync(DynamicHtmlModule).then(factory => {\r\n const compFactory = factory.componentFactories.find(x => x.componentType === DynamicHtmlComponent);\r\n const cmpRef = this.vcRef.createComponent(compFactory, 0);\r\n });\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/directives/template.directives.ts\n **/","import {\r\n Component,\r\n Directive,\r\n NgModule,\r\n Input,\r\n ViewContainerRef,\r\n Compiler,\r\n CUSTOM_ELEMENTS_SCHEMA\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Directive({\r\n selector: '[switchViewTemplate]' \r\n})\r\nexport class switchViewTemplate {\r\n @Input('switchViewTemplate') html: string;\r\n @Input() content: Object;\r\n @Input() text: any;\r\n \r\n\r\n constructor(private vcRef: ViewContainerRef, private compiler: Compiler) {}\r\n\r\n ngOnInit() {\r\n \r\n }\r\n ngOnChanges() {\r\n const html = this.html;\r\n const content = this.content;\r\n if (!html) return;\r\n if (typeof content != 'object') return;\r\n @Component({\r\n selector: 'cr-switch-template',\r\n templateUrl: html\r\n })\r\n class DynamicHtmlComponent { };\r\n DynamicHtmlComponent.prototype = this.content;\r\n @NgModule({\r\n imports: [CommonModule],\r\n declarations: [DynamicHtmlComponent],\r\n schemas: [CUSTOM_ELEMENTS_SCHEMA]\r\n })\r\n class DynamicHtmlModule { }\r\n this.compiler.compileModuleAndAllComponentsAsync(DynamicHtmlModule).then(factory => {\r\n const compFactory = factory.componentFactories.find(x => x.componentType === DynamicHtmlComponent);\r\n const cmpRef = this.vcRef.createComponent(compFactory, 0);\r\n });\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/directives/switchTemplate/templateswitch.directive.ts\n **/","import {\r\n Component,\r\n Directive,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n HostListener,\r\n ElementRef\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n@Directive({\r\n selector: '[outClickDetect]' \r\n})\r\nexport class OutClickDetection {\r\n\r\n @Output() outClickDetect = new EventEmitter();\r\n constructor(private _elementRef : ElementRef) { }\r\n\r\n @HostListener('document:click', ['$event.target'])\r\n public onClick(targetElement) {\r\n const isClickedInside = this._elementRef.nativeElement.contains(targetElement);\r\n if (!isClickedInside) {\r\n this.outClickDetect.emit(targetElement);\r\n } else {\r\n this.outClickDetect.emit(null);\r\n }\r\n }\r\n}\n\n\n/** WEBPACK FOOTER **\n ** ./app/core/directives/clickDetection/clickdetection.directive.ts\n **/","\"use strict\";\nvar ckeditor_module_1 = require('./ckeditor.module');\nexports.CKEditorModule = ckeditor_module_1.CKEditorModule;\nvar ckeditor_component_1 = require('./ckeditor.component');\nexports.CKEditorComponent = ckeditor_component_1.CKEditorComponent;\n//# sourceMappingURL=index.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ng2-ckeditor/lib/index.js\n ** module id = 406\n ** module chunks = 0\n **/","\"use strict\";\nvar core_1 = require('@angular/core');\nvar common_1 = require('@angular/common');\nvar ckeditor_component_1 = require('./ckeditor.component');\n/**\n * CKEditorModule\n */\nvar CKEditorModule = (function () {\n function CKEditorModule() {\n }\n CKEditorModule.decorators = [\n { type: core_1.NgModule, args: [{\n imports: [\n common_1.CommonModule\n ],\n declarations: [\n ckeditor_component_1.CKEditorComponent,\n ],\n exports: [\n ckeditor_component_1.CKEditorComponent,\n ]\n },] },\n ];\n /** @nocollapse */\n CKEditorModule.ctorParameters = [];\n return CKEditorModule;\n}());\nexports.CKEditorModule = CKEditorModule;\n//# sourceMappingURL=ckeditor.module.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ng2-ckeditor/lib/ckeditor.module.js\n ** module id = 407\n ** module chunks = 0\n **/","\"use strict\";\n// Imports\nvar core_1 = require('@angular/core');\nvar forms_1 = require('@angular/forms');\n/**\n * CKEditor component\n * Usage :\n * <ckeditor [(ngModel)]=\"data\" [config]=\"{...}\" debounce=\"500\"></ckeditor>\n */\nvar CKEditorComponent = (function () {\n /**\n * Constructor\n */\n function CKEditorComponent(zone) {\n this.change = new core_1.EventEmitter();\n this.ready = new core_1.EventEmitter();\n this.blur = new core_1.EventEmitter();\n this.focus = new core_1.EventEmitter();\n this._value = '';\n this.zone = zone;\n }\n Object.defineProperty(CKEditorComponent.prototype, \"value\", {\n get: function () { return this._value; },\n set: function (v) {\n if (v !== this._value) {\n this._value = v;\n this.onChange(v);\n }\n },\n enumerable: true,\n configurable: true\n });\n ;\n /**\n * On component destroy\n */\n CKEditorComponent.prototype.ngOnDestroy = function () {\n var _this = this;\n if (this.instance) {\n setTimeout(function () {\n _this.instance.removeAllListeners();\n _this.instance.destroy();\n _this.instance = null;\n });\n }\n };\n /**\n * On component view init\n */\n CKEditorComponent.prototype.ngAfterViewInit = function () {\n // Configuration\n this.ckeditorInit(this.config || {});\n };\n /**\n * Value update process\n */\n CKEditorComponent.prototype.updateValue = function (value) {\n var _this = this;\n this.zone.run(function () {\n _this.value = value;\n _this.onChange(value);\n _this.onTouched();\n _this.change.emit(value);\n });\n };\n /**\n * CKEditor init\n */\n CKEditorComponent.prototype.ckeditorInit = function (config) {\n var _this = this;\n if (!CKEDITOR) {\n console.error('Please include CKEditor in your page');\n return;\n }\n // CKEditor replace textarea\n this.instance = CKEDITOR.replace(this.host.nativeElement, config);\n // Set initial value\n this.instance.setData(this.value);\n // listen for instanceReady event\n this.instance.on('instanceReady', function (evt) {\n // send the evt to the EventEmitter\n _this.ready.emit(evt);\n });\n // CKEditor change event\n this.instance.on('change', function () {\n _this.onTouched();\n var value = _this.instance.getData();\n // Debounce update\n if (_this.debounce) {\n if (_this.debounceTimeout)\n clearTimeout(_this.debounceTimeout);\n _this.debounceTimeout = setTimeout(function () {\n _this.updateValue(value);\n _this.debounceTimeout = null;\n }, parseInt(_this.debounce));\n }\n else {\n _this.updateValue(value);\n }\n });\n // CKEditor blur event\n this.instance.on('blur', function (evt) {\n _this.blur.emit(evt);\n });\n // CKEditor focus event\n this.instance.on('focus', function (evt) {\n _this.focus.emit(evt);\n });\n };\n /**\n * Implements ControlValueAccessor\n */\n CKEditorComponent.prototype.writeValue = function (value) {\n this._value = value;\n if (this.instance)\n this.instance.setData(value);\n };\n CKEditorComponent.prototype.onChange = function (_) { };\n CKEditorComponent.prototype.onTouched = function () { };\n CKEditorComponent.prototype.registerOnChange = function (fn) { this.onChange = fn; };\n CKEditorComponent.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\n CKEditorComponent.decorators = [\n { type: core_1.Component, args: [{\n selector: 'ckeditor',\n providers: [\n {\n provide: forms_1.NG_VALUE_ACCESSOR,\n useExisting: core_1.forwardRef(function () { return CKEditorComponent; }),\n multi: true\n }\n ],\n template: \"<textarea #host></textarea>\",\n },] },\n ];\n /** @nocollapse */\n CKEditorComponent.ctorParameters = [\n { type: core_1.NgZone, },\n ];\n CKEditorComponent.propDecorators = {\n 'config': [{ type: core_1.Input },],\n 'debounce': [{ type: core_1.Input },],\n 'change': [{ type: core_1.Output },],\n 'ready': [{ type: core_1.Output },],\n 'blur': [{ type: core_1.Output },],\n 'focus': [{ type: core_1.Output },],\n 'host': [{ type: core_1.ViewChild, args: ['host',] },],\n 'value': [{ type: core_1.Input },],\n };\n return CKEditorComponent;\n}());\nexports.CKEditorComponent = CKEditorComponent;\n//# sourceMappingURL=ckeditor.component.js.map\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ng2-ckeditor/lib/ckeditor.component.js\n ** module id = 408\n ** module chunks = 0\n **/"],"sourceRoot":""}