mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-30 20:43:42 +03:00
1 line
2.4 MiB
1 line
2.4 MiB
{"version":3,"sources":["browser-update.js","../../../lib/patch/file-reader.ts","Reflect.ts","polyfill.js","../jspm_packages/npm/scrollparent@0.1.0/scrollparent.js","../jspm_packages/npm/scrollparent@0.1.0.js","../.tmp/lib/components/ApiInfo/api-info.js","../.tmp/lib/components/ApiLogo/api-logo.js","../.tmp/lib/components/ParamsList/params-list.js","../.tmp/lib/components/RequestSamples/request-samples.js","../.tmp/lib/components/Method/method.js","../.tmp/lib/components/MethodsList/methods-list.js","../.tmp/lib/common/components/StickySidebar/sticky-sidebar.js","../.tmp/lib/components/Redoc/redoc.js","../.tmp/lib/components/JsonSchema/json-schema-lazy.js","../.tmp/lib/common/components/Zippy/zippy.js","../.tmp/lib/components/ResponsesList/responses-list.js","../.tmp/lib/utils/helpers.js","../.tmp/lib/components/ResponsesSamples/responses-samples.js","../jspm_packages/npm/json-schema-instantiator@0.3.0/src/instantiator.js","../jspm_packages/npm/json-schema-instantiator@0.3.0/index.js","../jspm_packages/npm/json-schema-instantiator@0.3.0.js","../.tmp/lib/utils/JsonFormatterPipe.js","../.tmp/lib/components/SchemaSample/schema-sample.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.is-iterable.js","../jspm_packages/npm/core-js@1.2.6/library/fn/is-iterable.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/is-iterable.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/sliced-to-array.js","../.tmp/lib/events.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/angular_entrypoint.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/events/key_events.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/events/hammer_common.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/events/hammer_gestures.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser/generic_browser_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser/browser_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser/testability.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/profile/wtf_init.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/events/dom_events.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/debug/by.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/animate/css_animation_options.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/animate/animation.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/animate/css_animation_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/math.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/animate/browser_details.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/animate/animation_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/shared_styles_host.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/events/event_manager.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/dom_tokens.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/dom_renderer.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/debug/debug_renderer.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/debug/ng_probe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/platform/common_dom.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser/title.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/browser.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser/tools/common_tools.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser/tools/tools.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser_common.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/runtime_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/template_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/template_parser.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/html_ast.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/html_lexer.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/parse_util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/html_parser.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/template_preparser.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/template_normalizer.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/selector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/directive_metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/directive_lifecycle_reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/runtime_metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/interfaces.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/change_definition_factory.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/transform/template_compiler/change_detector_codegen.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/change_detector_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/shadow_css.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/style_url_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/style_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/view_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/template_ast.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/source_module.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/proto_view_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/dom/dom_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/html_tags.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/schema/element_schema_registry.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/schema/dom_element_schema_registry.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/url_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/compiler/xhr.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/platform/browser/xhr_impl.js","../jspm_packages/npm/angular2@2.0.0-beta.6/platform/browser.js","../.tmp/lib/options.js","../.tmp/lib/components/SideMenu/side-menu.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.array.from.js","../jspm_packages/npm/core-js@1.2.6/library/fn/array/from.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/array/from.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/to-consumable-array.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.same-value.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.species-constructor.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.invoke.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.html.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.dom-create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.task.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.microtask.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-detect.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.promise.js","../jspm_packages/npm/core-js@1.2.6/library/fn/promise.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/promise.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.get-iterator.js","../jspm_packages/npm/core-js@1.2.6/library/fn/get-iterator.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/get-iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.map.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es7.map.to-json.js","../jspm_packages/npm/core-js@1.2.6/library/fn/map.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/map.js","../jspm_packages/npm/z-schema@3.16.1/src/Polyfills.js","../jspm_packages/npm/z-schema@3.16.1/src/SchemaCache.js","../jspm_packages/npm/z-schema@3.16.1/src/SchemaCompilation.js","../jspm_packages/npm/validator@4.5.0/validator.js","../jspm_packages/npm/validator@4.5.0.js","../jspm_packages/npm/z-schema@3.16.1/src/FormatValidators.js","../jspm_packages/npm/z-schema@3.16.1/src/JsonValidation.js","../jspm_packages/npm/lodash._baseget@3.7.2/index.js","../jspm_packages/npm/lodash._baseget@3.7.2.js","../jspm_packages/npm/lodash.isarray@3.0.4/index.js","../jspm_packages/npm/lodash.isarray@3.0.4.js","../jspm_packages/npm/lodash._topath@3.8.1/index.js","../jspm_packages/npm/lodash._topath@3.8.1.js","../jspm_packages/npm/lodash.get@3.7.0/index.js","../jspm_packages/npm/lodash.get@3.7.0.js","../jspm_packages/npm/z-schema@3.16.1/src/Errors.js","../jspm_packages/npm/z-schema@3.16.1/src/Report.js","../jspm_packages/npm/z-schema@3.16.1/src/SchemaValidation.js","../jspm_packages/npm/z-schema@3.16.1/src/Utils.js","../jspm_packages/npm/z-schema@3.16.1/src/schemas/schema.json","../jspm_packages/npm/z-schema@3.16.1/src/schemas/hyper-schema.json","../jspm_packages/npm/z-schema@3.16.1/src/ZSchema.js","../jspm_packages/npm/z-schema@3.16.1.js","../jspm_packages/npm/swagger-schema-official@2.0.0-bab6bed/schema.json","../jspm_packages/npm/swagger-parser@3.4.0/lib/validate-schema.js","../jspm_packages/npm/swagger-methods@1.0.0/lib/index.js","../jspm_packages/npm/swagger-methods@1.0.0.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/validate-spec.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/util.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/options.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/promise.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/options.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/refs.js","../jspm_packages/github/jspm/nodelibs-fs@0.1.2/index.js","../jspm_packages/github/jspm/nodelibs-fs@0.1.2.js","../jspm_packages/npm/readable-stream@1.1.13/readable.js","../jspm_packages/npm/readable-stream@1.1.13/writable.js","../jspm_packages/npm/readable-stream@1.1.13/duplex.js","../jspm_packages/npm/readable-stream@1.1.13/transform.js","../jspm_packages/npm/isarray@0.0.1/index.js","../jspm_packages/npm/isarray@0.0.1.js","../jspm_packages/npm/events@1.0.2/events.js","../jspm_packages/npm/events@1.0.2.js","../jspm_packages/github/jspm/nodelibs-events@0.1.1/index.js","../jspm_packages/github/jspm/nodelibs-events@0.1.1.js","../jspm_packages/npm/string_decoder@0.10.31/index.js","../jspm_packages/npm/string_decoder@0.10.31.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_readable.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_writable.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_duplex.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_transform.js","../jspm_packages/npm/core-util-is@1.0.2/lib/util.js","../jspm_packages/npm/core-util-is@1.0.2.js","../jspm_packages/npm/readable-stream@1.1.13/lib/_stream_passthrough.js","../jspm_packages/npm/readable-stream@1.1.13/passthrough.js","../jspm_packages/npm/stream-browserify@1.0.0/index.js","../jspm_packages/npm/stream-browserify@1.0.0.js","../jspm_packages/github/jspm/nodelibs-stream@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-stream@0.1.0.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/lib/response.js","../jspm_packages/npm/Base64@0.2.1/base64.js","../jspm_packages/npm/Base64@0.2.1.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/lib/request.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/index.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1.js","../jspm_packages/npm/https-browserify@0.0.0/index.js","../jspm_packages/npm/https-browserify@0.0.0.js","../jspm_packages/github/jspm/nodelibs-https@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-https@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/download.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/parse.js","../jspm_packages/npm/es6-promise@3.1.2/dist/es6-promise.js","../jspm_packages/npm/es6-promise@3.1.2.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/promise.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/read.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/resolve.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/bundle.js","../jspm_packages/npm/call-me-maybe@1.0.1/index.js","../jspm_packages/npm/call-me-maybe@1.0.1.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/mark.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/loader.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/dumper.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/str.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/seq.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/map.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/failsafe.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/null.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/bool.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/int.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/common.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/float.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/json.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/core.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/timestamp.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/merge.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/binary.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/omap.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/pairs.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/set.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/default_safe.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/js/undefined.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/js/regexp.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/type/js/function.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/schema/default_full.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml/exception.js","../jspm_packages/npm/js-yaml@3.5.2/lib/js-yaml.js","../jspm_packages/npm/js-yaml@3.5.2/index.js","../jspm_packages/npm/js-yaml@3.5.2.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/yaml.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/index.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/ref.js","../jspm_packages/npm/base64-js@0.0.8/lib/b64.js","../jspm_packages/npm/base64-js@0.0.8.js","../jspm_packages/npm/ieee754@1.1.6/index.js","../jspm_packages/npm/ieee754@1.1.6.js","../jspm_packages/npm/isarray@1.0.0/index.js","../jspm_packages/npm/isarray@1.0.0.js","../jspm_packages/npm/buffer@3.6.0/index.js","../jspm_packages/npm/buffer@3.6.0.js","../jspm_packages/github/jspm/nodelibs-buffer@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-buffer@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/pointer.js","../jspm_packages/npm/ms@0.7.1/index.js","../jspm_packages/npm/ms@0.7.1.js","../jspm_packages/npm/debug@2.2.0/debug.js","../jspm_packages/npm/debug@2.2.0/browser.js","../jspm_packages/npm/debug@2.2.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/path.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/util.js","../jspm_packages/npm/util@0.10.3/support/isBufferBrowser.js","../jspm_packages/npm/inherits@2.0.1/inherits_browser.js","../jspm_packages/npm/inherits@2.0.1.js","../jspm_packages/npm/util@0.10.3/util.js","../jspm_packages/npm/util@0.10.3.js","../jspm_packages/github/jspm/nodelibs-util@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-util@0.1.0.js","../jspm_packages/npm/ono@2.0.1/lib/index.js","../jspm_packages/npm/ono@2.0.1.js","../jspm_packages/npm/punycode@1.3.2/punycode.js","../jspm_packages/npm/punycode@1.3.2.js","../jspm_packages/npm/querystring@0.2.0/decode.js","../jspm_packages/npm/querystring@0.2.0/encode.js","../jspm_packages/npm/querystring@0.2.0/index.js","../jspm_packages/npm/querystring@0.2.0.js","../jspm_packages/npm/url@0.10.3/url.js","../jspm_packages/npm/url@0.10.3.js","../jspm_packages/github/jspm/nodelibs-url@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-url@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@2.2.0/lib/dereference.js","../jspm_packages/npm/swagger-parser@3.4.0/lib/index.js","../jspm_packages/npm/swagger-parser@3.4.0.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.to-string.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.string-at.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.string.iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.add-to-unscopables.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.array.iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/web.dom.iterable.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.library.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-define.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-step.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-species.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection-strong.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.property-desc.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.hide.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.redefine.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.redefine-all.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.strict-new.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.has.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-to-string-tag.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.descriptors.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.set.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-call.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.is-array-iter.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-integer.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-length.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iterators.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.get-iterator-method.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.for-of.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.shared.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.uid.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.wks.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.classof.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection-to-json.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es7.set.to-json.js","../jspm_packages/npm/core-js@1.2.6/library/fn/set.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/set.js","../.tmp/lib/utils/swagger-defs.js","../.tmp/lib/utils/SchemaManager.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.keys.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/keys.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/keys.js","../jspm_packages/npm/prismjs@1.3.0/prism.js","../jspm_packages/npm/prismjs@1.3.0.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-actionscript.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-c.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-cpp.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-csharp.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-php.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-coffeescript.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-go.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-haskell.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-java.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-lua.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-matlab.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-objectivec.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-perl.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-python.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-r.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-ruby.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-bash.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-swift.js","../jspm_packages/npm/prismjs@1.3.0/components/prism-vim.js","../jspm_packages/npm/marked@0.3.5/lib/marked.js","../jspm_packages/npm/marked@0.3.5.js","../.tmp/lib/utils/pipes.js","../.tmp/lib/components/base.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/async_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/uppercase_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/lowercase_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/json_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/slice_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/date_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/intl.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/invalid_pipe_argument_exception.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes/number_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_control_name.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_form_control.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_model.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_control_group.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_form_model.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/control_container.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/normalize_validator.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/shared.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_form.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/default_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/checkbox_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/number_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_control_status.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/select_control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/validators.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/validators.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/model.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/form_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/abstract_control_directive.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/ng_control.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms/directives/radio_control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/forms.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives/observable_list_diff.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives/ng_class.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives/ng_for.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives/ng_if.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives/ng_style.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/prod_mode.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/facade.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/application_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/zone.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/render.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/debug/debug_node.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/platform_directives_and_pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/console.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/zone/ng_zone.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/testability/testability.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/platform_common_providers.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/resolved_metadata_cache.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/view_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/directive_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/metadata/view.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/pipe_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/view_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/pipes/pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/render/util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/view.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/metadata/di.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/element_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/view_container_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/template_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/metadata/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/differs/iterable_differs.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/differs/default_iterable_differ.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/differs/keyvalue_differs.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/differs/default_keyvalue_differ.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/parser/lexer.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/parser/parser.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/interfaces.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/codegen_name_util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/codegen_logic_util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/codegen_facade.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/parser/ast.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/event_binding.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/coalesce.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/proto_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/change_detection_jit_generator.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/jit_proto_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/parser/locals.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/observable_facade.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/abstract_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/proto_record.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/dynamic_change_detector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/change_detector_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/pipe_lifecycle_reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/binding_record.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/constants.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/directive_record.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/change_detection_util.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/change_detection/change_detection.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/promise.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/subject/SubjectSubscription.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Subject.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/QueueAction.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/FutureAction.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/QueueScheduler.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/scheduler/queue.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/observable/fromPromise.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/operator/toPromise.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/throwError.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/tryOrOnError.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/noop.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Subscription.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Subscriber.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/root.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/util/SymbolShim.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/symbol/rxSubscriber.js","../jspm_packages/npm/rxjs@5.0.0-beta.0/Observable.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/async.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/query_list.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/pipes/pipe_provider.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/element.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/render/api.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/profile/wtf_impl.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/profile/profile.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/util/decorators.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/decorators.js","../jspm_packages/npm/process@0.11.2/browser.js","../jspm_packages/npm/process@0.11.2.js","../jspm_packages/github/jspm/nodelibs-process@0.1.2/index.js","../jspm_packages/github/jspm/nodelibs-process@0.1.2.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/injector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/provider.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/type_literal.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/forward_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/key.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di/opaque_token.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/di.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/application_tokens.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/view_type.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/view_manager.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/linker/dynamic_component_loader.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/application_common_providers.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/reflection/reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/exception_handler.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/reflection/reflection_capabilities.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/core/reflection/reflection.js","../jspm_packages/npm/angular2@2.0.0-beta.6/core.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/lang.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/facade/collection.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives/ng_switch.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives/core_directives.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.6/src/common/common_directives.js","../jspm_packages/npm/angular2@2.0.0-beta.6/common.js","../.tmp/lib/common/components/Tabs/tabs.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-iobject.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.object-sap.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.get-own-property-descriptor.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/get-own-property-descriptor.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/get-own-property-descriptor.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/get.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/create.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.is-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.an-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-proto.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.set-prototype-of.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/set-prototype-of.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/set-prototype-of.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/inherits.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/define-property.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/define-property.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/create-class.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/class-call-check.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.global.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.a-function.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.ctx.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.export.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.defined.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.cof.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iobject.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.fails.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.object-assign.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.assign.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.core.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/assign.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/assign.js","../jspm_packages/npm/foreach@2.0.5/index.js","../jspm_packages/npm/foreach@2.0.5.js","../jspm_packages/npm/json-pointer@0.3.0/index.js","../jspm_packages/npm/json-pointer@0.3.0.js","../.tmp/lib/utils/JsonPointer.js","../.tmp/lib/components/JsonSchema/json-schema.js","../.tmp/lib/components/index.js","../.tmp/lib/index.js"],"names":["apply","Reflect","Reflect.decorate","Reflect.metadata","Reflect.metadata.decorator","Reflect.defineMetadata","Reflect.hasMetadata","Reflect.hasOwnMetadata","Reflect.getMetadata","Reflect.getOwnMetadata","Reflect.getMetadataKeys","Reflect.getOwnMetadataKeys","Reflect.deleteMetadata","Reflect.DecorateConstructor","Reflect.DecoratePropertyWithDescriptor","Reflect.DecoratePropertyWithoutDescriptor","Reflect.GetOrCreateMetadataMap","Reflect.OrdinaryHasMetadata","Reflect.OrdinaryHasOwnMetadata","Reflect.OrdinaryGetMetadata","Reflect.OrdinaryGetOwnMetadata","Reflect.OrdinaryDefineOwnMetadata","Reflect.OrdinaryMetadataKeys","Reflect.OrdinaryOwnMetadataKeys","Reflect.IsUndefined","Reflect.IsArray","Reflect.IsObject","Reflect.IsConstructor","Reflect.IsSymbol","Reflect.ToPropertyKey","Reflect.GetPrototypeOf","Reflect.CreateMapPolyfill","Reflect.CreateMapPolyfill.Map","Reflect.CreateMapPolyfill.size","Reflect.CreateMapPolyfill.has","Reflect.CreateMapPolyfill.get","Reflect.CreateMapPolyfill.set","Reflect.CreateMapPolyfill.delete","Reflect.CreateMapPolyfill.clear","Reflect.CreateMapPolyfill.forEach","Reflect.CreateMapPolyfill._find","Reflect.CreateSetPolyfill","Reflect.CreateSetPolyfill.Set","Reflect.CreateSetPolyfill.size","Reflect.CreateSetPolyfill.has","Reflect.CreateSetPolyfill.add","Reflect.CreateSetPolyfill.delete","Reflect.CreateSetPolyfill.clear","Reflect.CreateSetPolyfill.forEach","Reflect.CreateWeakMapPolyfill","Reflect.CreateWeakMapPolyfill.WeakMap","Reflect.CreateWeakMapPolyfill.has","Reflect.CreateWeakMapPolyfill.get","Reflect.CreateWeakMapPolyfill.set","Reflect.CreateWeakMapPolyfill.delete","Reflect.CreateWeakMapPolyfill.clear","Reflect.CreateWeakMapPolyfill.FillRandomBytes","Reflect.CreateWeakMapPolyfill.GenRandomBytes","Reflect.CreateWeakMapPolyfill.CreateUUID","Reflect.CreateWeakMapPolyfill.CreateUniqueKey","Reflect.CreateWeakMapPolyfill.GetOrCreateWeakMapTable"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA,IAAY,KAAK,WAAM,UAAU,CAAC,CAAA;AAElC;IACEA,KAAKA,CAACA,UAAUA,CAACA,YAAYA,CAACA,CAACA;AACjCA,CAACA;AAFe,aAAK,QAEpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAC,CAAC;gBAC/B,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAS,OAAQ,CAAC,CAAC,CAAC,CAAC;gBAC5C,CAAC;YACL,CAAC;QACL,CAAC;QACD,IAAI,CAAC,CAAC;YACF,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;QAC/B,CAAC;IACL,CAAC,CAACA,CACEA,OAAOA,MAAMA,KAAKA,WAAWA,GAAGA,MAAMA;QAClCA,OAAOA,iBAAiBA,KAAKA,WAAWA,GAAGA,IAAIA;YAC3CA,OAAOA,MAAMA,KAAKA,WAAWA,GAAGA,MAAMA;gBAClCA,QAAQA,CAACA,cAAcA,CAACA,EAAEA,CAACA,CAACA;AAChDA,CAACA,EAn/CS,OAAO,KAAP,OAAO,QAm/ChB;;ACjgDD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AC/zIA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAC;AACC;AACE;AAAgC;MAAW;AAAA;IAG7C;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACC;IACD;AAEA;AACE;AACE;MACF;AAAA;AAIA;AACE;AACE;QACF;AAAA;AACF;IAGF;AAGA;AACE;IACF;AACE;IACF;AAAA;AAzCF;AACI;AAAa;AA0CjB;AC3CA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADiD;;qFC2B7C,OAAO;;;;0BAzBpB,cAAc;yB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AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AACA;AACE;AACA;AACA;AACE;QACF;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACE;AACA;UACF;AAAA;AAEF;AACA;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AAEE;AACE;AACA;AACE;YACF;AAAA;AACF;AAEF;AACA;MACF;AACA;AACE;AACE;AACE;AACE;YACF;UACF;AAAA;MAEJ;AACA;AACE;AACE;AACE;AAAe;AAEf;AADK;MAGX;AACA;AACA;IACF;AACA;EACF;AA/HA;AACI;AAAa;AA+HjB;AChIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAU;AAEZ;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AACA;EACF;AACA;AAvDA;AACI;AAAa;AAuDjB;ACxDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;AAAY;AAEZ;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;UACF;QACF;AACA;AACA;AACE;QACF;MACF;IACF;AACA;AACA;EACF;AACA;AAjEA;AACI;AAAa;AAiEjB;AClEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;AACE;AACE;AACA;YACF;AAAA;AACF;AACF;AAEE;AACA;AACA;AACA;AAA0B;AAE5B;AACE;AACE;UACF;AAAA;MAEJ;AACE;AACA;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA7EA;AACI;AAAa;AA6EjB;AC9EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AAAqB;AAEvB;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAU;AAEZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAgB;AAElB;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAAQ;MAEZ;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;AACA;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAvgBI;AAAa;AAwgBjB;ACzgBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AAAkC;AAEhC;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;MACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEF;AACE;QACF;MACF;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;EACF;AACA;AAnFA;AACI;AAAa;AAmFjB;ACpFA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAAqB;AAJrB;AACI;AAAa;AAK4b;ACN7c;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;MACF;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;MACF;AACA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AAhEA;AACI;AAAa;AAgEjB;ACjEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AAAe;AAEb;AACE;MACF;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;AACE;MACF;IACF;AACA;EACF;AACA;AAvBA;AACI;AAAa;AAuBjB;ACxBA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AAEI;AAEA;AAEA;IACJ;AAAA;EAEJ;AACA;AAZA;AACI;AAAa;AAYw8C;ACbz9C;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;AAAsC;AAEtC;AAA8E;AAE9E;AAAwE;AAE5E;AACE;AACA;AACA;AACA;AACE;AAAoC;AAEtC;AACA;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;IAEJ;AACA;AACE;AACI;AACF;AAAoD;AAExD;AACE;AACI;AACF;AAAuD;AAE3D;AACE;AACA;AACE;AACE;QACF;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AAAiC;AAEnC;AACE;AAA+B;AAEnC;AACE;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;AACE;AAAgB;AAElB;AACA;AACA;AACE;AAAgB;AACpB;IAEF;AACA;AACE;IACF;AACA;EACF;AACA;AAvIA;AACI;AAAa;AAuIjB;ACxIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA7CA;AACI;AAAa;AA6CjB;AC9CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;AACA;AACA;QACF;AACA;MACF;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;EACF;AA7EA;AACI;AAAa;AA6EjB;AC9EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AA/BA;AACI;AAAa;AA+BjB;AChCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACE;AACA;AACA;QACF;AAAA;AAEF;IACF;AACA;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AA1FA;AACI;AAAa;AA0FjB;AC3FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;MACF;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AAA+B;AAE7B;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA5EA;AACI;AAAa;AA4EjB;AC7EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;EACF;AAAA;AAfA;AACI;AAAa;AAgBjB;ACjBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAkC;AAEpC;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAM;IAEV;AACA;AACE;AACA;AACE;AAAuC;AAE3C;AACE;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;AACE;QACF;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;QACF;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AACF;AACF;AAEE;AACE;IACF;AAAA;AACF;AAEE;AACE;AACA;AACE;MACF;AAAA;EAEJ;AAAA;AAEA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AA9SI;AAAa;AA+SjB;AChTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACE;UACF;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACE;MACF;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAtIA;AACI;AAAa;AAsIjB;ACvIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;EACF;AAAA;AAEE;AACA;AAAqC;AAEvC;AACE;AACA;AAAqC;AA9BvC;AACI;AAAa;AA+BjB;AChCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAzBA;AACI;AAAa;AAyBjB;AC1BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AAAkB;AAEhB;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAbA;AACI;AAAa;AAajB;ACdA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AACA;AACA;AACA;AACA;AAA0C;EAAuB;AAAkB;EAAa;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA;AACI;AAAa;AAgB46D;ACjB77D;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;EACF;AACA;AAxCA;AACI;AAAa;AAwCjB;ACzCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAXA;AACI;AAAa;AAYjB;ACbA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAU;AAEZ;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AAAU;AAEV;AACA;AAAU;AAEV;AACA;AAAO;AAEP;AACA;AAAO;AAEP;AACA;AAAU;AAEV;AACA;AAAU;AAEV;AACA;AAAU;AAEZ;AACE;AACA;AACA;EACF;AAAA;AAxEA;AACI;AAAa;AAyEjB;AC1EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACA;EACF;AACA;AAzDA;AACI;AAAa;AAyDjB;AC1DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA2B;MAE/B;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;QACF;AAAA;AAEF;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AACE;AACA;AACA;AACA;AACA;AACA;AACE;UACF;AACA;AACE;AACA;AACA;UACF;QACF;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;AACE;QACF;MACF;AACE;AACA;AACA;AACE;AACA;AACA;AAAmD;AAErD;AACE;AACA;AACE;UACF;AAAA;AAEF;AACE;QACF;AACA;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACE;AACE;IACF;AAAA;AACF;AAEE;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACE;AACE;MACF;IACF;AACA;EACF;AAAA;AAEE;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAEE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AACA;AACA;AACE;IACF;EACF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;EACF;AA7XA;AACI;AAAa;AA6XjB;AC9XA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACE;AAAW;AAEb;MACF;AAAA;IAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;IAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;MACF;IACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEE;AACE;UACF;QACF;AAAA;MAEF;AACA;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACA;AACA;AACE;QACF;MACF;AAAA;AAEE;MACF;AACA;AACE;AACA;AACE;AACA;AACA;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACE;AACE;YACF;AAAA;AAEF;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;AACE;AACE;YACF;AAAA;QAEJ;AAAA;AAEF;AACE;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;UACF;AAAA;AAEE;UACF;AAAA;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;UACF;AAAA;QAEF;AACE;AACA;AACA;QACF;AACE;AACA;AACE;UACF;AACA;QACF;AAAA;AAEE;AACA;AACA;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;YACF;AACE;YACF;AACE;AACA;YACF;AAAA;AACF;QAEF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AACE;AACA;UACF;AACE;UACF;AACE;AACA;UACF;AACE;AACA;UACF;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AACA;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;YACF;AAAA;AAEF;QACF;AACA;AACE;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACE;AACE;AACA;UACF;QACF;AAAA;AAEF;AACE;AACA;AACE;AACE;UACF;QACF;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;AACE;YACF;AAAA;AAEF;AACE;AACA;AACE;YACF;AAAA;QAEJ;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACE;UACF;QACF;AACA;AACE;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEA;AACE;AACA;UACF;AACE;AACA;UACF;AACE;AACA;AACA;UACF;AACE;AACA;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AAEF;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;MACF;AACA;AACE;AACA;AACA;AACE;AACE;UACF;QACF;AACA;AACE;AACE;UACF;AAAA;MAEJ;AACA;IACF;AACA;AACE;AAA+B;AAE7B;AACA;AACE;QACF;AAAA;AAEE;QACF;AACA;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;MACF;AACA;IACF;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAEA;AACE;AACE;AACA;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACE;QACF;AACA;AACA;AACE;QACF;AAAA;MAEF;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;QACF;AAAA;AACF;IAEF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;MACF;AACA;IACF;AACA;EACF;AAhnBA;AACI;AAAa;AAgnBjB;ACjnBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAnDA;AACI;AAAa;AAoDjB;ACrDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACE;AAAW;AAEb;MACF;AAAA;IAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;IACF;AAAA;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;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;AACE;AACA;AACE;AACE;AACE;AACE;gBACF;AACE;gBACF;AACE;gBACF;AAAA;AAEA;cACF;AACE;cACF;AAAA;AAEA;YACF;AAAA;AAEA;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AAEA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;MACF;AACA;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACE;QACF;AAAA;AAEE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AACA;AACE;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;AACE;AACE;AACE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACE;AACE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACE;AACA;AACA;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;AACA;UACF;AACE;AACA;UACF;AAAA;AAEA;AACA;AACA;AACE;AACA;UACF;AAAA;AAEA;AACA;AACA;AACE;UACF;AAAA;QAEF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AAEA;AACA;MACF;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;YACF;AAAA;UAEF;AAAA;QAEF;AACE;AACE;AACA;AACA;AACA;UACF;AAAA;QAEF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACE;AACE;AAAY;AAEd;AACE;AAAY;AAEd;AACE;AAAY;QAEhB;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;UACF;AAAA;AAEA;QACF;AACE;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AACF;IAEF;AAAA;AA7hBF;AACI;AAAa;AA8hBjB;AC/hBA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;AACA;AACA;IACJ;AAAA;AACiD;IAAyD;AAC1G;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACI;AACA;AACA;AACI;AACI;UACJ;AAAA;AACJ;AACJ;AAEA;AACA;AACI;AACA;AACA;AACI;AACI;UACJ;AAAA;AACJ;AACJ;AAGA;IACJ;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAvEA;AACI;AAAa;AAuE48L;ACxE79L;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AAAuB;AAErB;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACE;QACF;AACE;QACF;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACE;EACF;AAAA;AAEE;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AA7OI;AAAa;AA8OjB;AC/OA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACA;AACA;AACA;AACE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAnEI;AAAa;AAoEjB;ACrEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AACE;AACA;AACE;QACF;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AACA;MACF;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AAA6C;IAEjD;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;AACE;UACF;AAAA;AACK;AAEL;AACA;AACE;AACE;YACF;AAAA;AAEF;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADK;AAGT;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAtIA;AACI;AAAa;AAsIjB;ACvIA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACE;AACE;UACF;AAAA;QAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;YACF;AAAA;AAEA;AACA;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;AACA;UACF;AAAA;AAEE;AACE;YACF;AAAA;AAEA;UACF;AAAA;AACF;AAEA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AACE;YACF;AAAA;UAEF;AAAA;AACF;AAEE;QACF;AACA;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AAEE;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;cACF;AAAA;YAEF;AACE;AACA;AACA;AACE;AACA;cACF;AAAA;YAEF;AAAA;AACF;AACF;AAEF;AACE;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;UACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;UAEF;AAAA;AACF;MAEF;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACE;AACA;QACF;AAAA;MAEF;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACE;AACA;QACF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AACA;IACF;AACA;EACF;AA5TA;AACI;AAAa;AA4TjB;AC7TA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAoC;AAElC;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AAAqB;IAEzB;AACA;AACE;AACE;AACA;AACA;AAAoB;IAExB;AACA;EACF;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AAA6C;IAEjD;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAA4C;IAEhD;AACA;EACF;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACE;AACE;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;MAEJ;AAAA;AAEA;AACE;AACE;AACA;QACF;MACF;AAAA;AAEA;AACE;AACE;AACA;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;IAErB;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AAAmH;IAEvH;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AACA;AAAmF;IAEvF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;AACA;AACA;AAAW;AAEb;AACE;AACA;AACA;AACA;AACA;AAAqB;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;EAEhB;AAAA;AAEA;AACE;AACE;AACI;AACA;AACA;AACJ;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AAAiB;IAErB;AACA;AACE;AACE;AACA;AACA;AACA;AAAgB;IAEpB;AACA;EACF;AACA;AACA;AACE;AACA;AAAmC;AAzRrC;AACI;AAAa;AA0RjB;AC3RA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AAAY;AAEd;AACE;AACE;AAAiC;AAEjC;AAAoC;AAEpC;AAA8B;AAE9B;AAAiC;AAEjC;AAA0B;AAE1B;AAAwB;AAExB;AAA0B;AAE1B;AAAuB;AAEvB;AADK;EAGX;AAAA;AA5BA;AACI;AAAa;AA6BjB;AC9BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AAA4B;AAE9B;QACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AAAqB;AAEvB;AACA;AACA;AACA;AACA;AACA;AACE;UACF;AAAC;AAEH;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACE;AACA;AACA;AAAgB;AAElB;AACA;AAAkB;AAEpB;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;QACF;AAAA;AACF;AAEE;MACF;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;QACF;AAAA;AACF;AAEE;MACF;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AAEE;EACF;AAAA;AAEE;AACA;AACE;AACA;IACF;AACE;IACF;AAAA;AACF;AAnLI;AAAa;AAoLjB;ACrLA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AAIA;AAfA;AACI;AAAa;AAwB40nB;ACzB71nB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;EACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAoB;AAEtB;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;EACF;AACA;AACE;AACA;AACE;AACA;IACF;EACF;AAAA;AAEE;AACA;AACE;AACA;IACF;AACA;EACF;AAAA;AAxJI;AAAa;AAyJjB;AC1JA;;AAAA;AACI;AAAmB;AACnB;AAGJ;AACI;AACA;AAEI;IACJ;AACA;AAA2C;IAA+B;AAC1E;EACJ;AACA;AAdA;AACI;AAAa;AAcglD;ACfjmD;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AAAqD;AAEvD;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;QACF;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;AACA;IACF;AACA;AACA;EACF;AACA;AArFA;AACI;AAAa;AAqFjB;ACtFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACE;QACF;MACF;AACA;AACE;AACE;AACA;AACA;AACA;QACF;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;MACF;AACA;AACE;AACI;AACJ;AACA;AACE;AACA;AACA;AACA;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AACE;AACI;AACJ;AACE;AACA;AACE;AAAK;AAEP;YACF;AAAA;UAEF;AACE;UACF;AAAA;MAEJ;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;QAEF;MACF;AACA;AACE;AACI;AACJ;AACE;AACA;AACA;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACA;AACI;AACA;AACJ;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACE;cACF;AAAA;AACF;UAEF;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;MACF;AACA;IACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;IACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;IACF;AAAA;AAEA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACE;AACA;AACA;UACF;AAAA;QAEF;AAAA;AAEE;QACF;AAAA;AACF;AAEE;AACA;MACF;AAAA;IAEF;AAAA;AA5QF;AACI;AAAa;AA6QjB;AC9QA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AAAY;AAEd;EACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;EACF;AAAA;AAEA;AACA;AAhCA;AACI;AAAa;AAgCjB;ACjCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACE;AACA;UACF;AACA;QACF;AAAA;MAEF;AACA;AACE;AACE;QACF;AACA;AACE;QACF;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;AACE;AACA;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AAxGA;AACI;AAAa;AAwGjB;ACzGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AAAsC;AAExC;AACE;AAAyB;AAEvB;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACE;MACF;AACA;AACA;IACF;AACA;EACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACE;AACE;UACF;AAAA;QAEF;AACE;QACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;MACF;IACF;AACA;EACF;AACA;AACE;AACE;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;IACF;AACA;EACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AA1ZI;AAAa;AA2ZjB;AC5ZA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AA5LA;AACI;AAAa;AA6LjB;AC9LA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AACE;AACA;UACF;AAAA;QAEF;AAAA;MAEF;AACA;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AAhEA;AACI;AAAa;AAgEjB;ACjEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;EAEJ;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACA;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AACF;AAEA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEA;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;AACF;EAEF;AAAA;AAvLA;AACI;AAAa;AAwLjB;ACzLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AAA+B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAA8B;AAE5B;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;MACF;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;EACF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;EACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AACA;EACF;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;EACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;AACA;QACF;MACF;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACE;QACF;MACF;AAAA;AAEA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;AACE;IACF;AACA;EACF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AACA;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;EACF;AAAA;AAEE;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AACF;AAtVI;AAAa;AAuVjB;ACxVA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AACF;AAEA;AACE;AAAuB;AAErB;AACE;MACF;AACA;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACA;EACF;AACA;AA1BA;AACI;AAAa;AA0BjB;AC3BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAe;AAEjB;AACE;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;QACF;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAmB;AAErB;AACA;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAW;AAEb;AACA;AACA;AACE;AACA;AAAmB;AAErB;AACA;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACE;AACA;AAAmB;AAErB;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAkB;AACnB;AAEH;AACA;AACE;AACA;EACF;AAAA;AAEA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEA;AACE;EACF;AAAA;AA9ZA;AACI;AAAa;AA+ZjB;AChaA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AAC6E;IAAa;AAC1F;AAA0E;IAAiB;AAC3F;EACJ;AACA;AARA;AACI;AAAa;AAQwgC;ACTzhC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAkC;AAEpC;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACA;EACF;AACA;AAnEA;AACI;AAAa;AAmEjB;ACpEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACA;AACE;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AACF;AAEE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;EACF;AAAA;AAEA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AACA;AACE;EACF;AAAA;AAEE;AACE;AAAU;AAEZ;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAK;AAEL;AACE;UACF;AACE;UACF;AAAA;AACK;AAEL;AADK;IAGX;AAAA;AAEE;AACE;MACF;AAAA;AAEE;AAAa;AACjB;EAEF;AAAA;AAEE;AACA;AACA;AACA;EACF;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACE;AAAU;AAEZ;AACA;AACA;EACF;AAAA;AAlKI;AAAa;AAmKjB;ACpKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;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;AACE;EACF;AAAA;AAEE;AACA;AAAO;AA9CT;AACI;AAAa;AA+CjB;AChDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AATA;AACI;AAAa;AASjB;ACVA;;AAAA;AACI;AAAmB;AACnB;AAIJ;AACI;AACA;AACqC;IAAa;AAClD;EACJ;AACA;AAZA;AACI;AAAa;AAYw2B;ACbz3B;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;QACF;AAAA;AAEF;AACE;MACF;AACA;AACA;IACF;AACA;EACF;AACA;AA5CA;AACI;AAAa;AA4CjB;AC7CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AAAA;EAEF;AA/BA;AACI;AAAa;AA+BjB;;yHC1BI,QAAQ,EAMR,YAAY,E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AAC,CAGmB,QAAQ,KAAR,QAAQ;eAAR,QAAQ;SAAS,aAAa;;yBAA9B,QAAQ;;;;ACxD7B;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;EACF;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AAAoD;AAEpD;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AACF;AAEA;IACF;AAtCF;AACI;AAAa;AAsCjB;ACvCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAqD;AAAe;AADvF;AACI;AAAa;AAAyE;ACD1F;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACI;AACF;AAAgB;IAEpB;AACE;IACF;AAAA;AAEF;AAbA;AACI;AAAa;AAajB;ACdA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AAHA;AACI;AAAa;AAEhB;ACHD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACI;AACJ;EACF;AARA;AACI;AAAa;AAQjB;ACTA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AAAQ;AACyB;AACzB;AACkC;AAClC;AAC2C;AAC3C;AACoD;AACpD;AAC6D;AACrE;EACJ;AAfA;AACI;AAAa;AAchB;ACfD;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;EACF;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AACI;AACJ;AACE;AAAyB;AAEzB;QACF;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;MACF;AACE;AACA;AACA;AACA;MACF;AACE;AACE;QACF;AACA;MACF;AACE;AACE;AACE;AACA;UACF;QACF;MACF;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AAAe;EAEnB;AA1EA;AACI;AAAa;AA0EjB;AC3EA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACJ;AACE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;AAAc;AAEhB;AACE;AAAa;MAEjB;AAAA;AAEA;AACE;AAAc;AAElB;AACE;AACE;MACF;IACF;AACE;AACI;AACJ;AACA;AACE;MACF;IACF;AACE;AACE;MACF;IACF;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;AAA+B;AAEjC;AACE;AAAgB;AAEhB;AACA;MACF;AAAA;IAEF;EACF;AAnEA;AACI;AAAa;AAmEjB;ACpEA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;AACA;AACE;IACF;AACA;AACE;IACF;EACF;AAAa;AAEX;AACE;AAAY;AAEd;AACE;AACI;AACJ;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AAAa;EAEf;AA5BA;AACI;AAAa;AA4BjB;AC7BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AAAyB;IAE7B;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;AACA;AACI;YACF;AACF;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAW;IAEf;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACI;AACJ;AACE;AACE;AAA0C;AAE5C;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAM;AAER;AACA;AACE;AACI;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AACE;AAAe;AAEjB;AACE;cACF;AACE;cACF;AACE;AAAe;AAEjB;AAAa;AAEf;UACF;AAAA;AAEF;AACE;AAAe;AAEjB;AACA;AACE;AACE;AACI;AACA;AACJ;AACE;AACE;cACF;AACE;AACE;AACA;AAAY;cAEhB;AACE;cACF;AAAA;AACF;UAEF;AAAK;IAEX;AACA;AACE;AACI;AACA;AACA;AACJ;AACE;AAAY;AAEZ;AACA;AACE;AAAY;AAChB;IAEF;AACA;AACE;AACA;AACE;AAAM;AAER;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACI;AACJ;AACE;AAAM;AAER;AACA;AACE;AACE;AAAmD;AAEnD;AACE;AACE;AACA;AAAO;AAET;AACE;YACF;AACE;YACF;AAAA;QAEJ;AACE;AACA;AACA;QACF;AAAA;AAEA;AACE;AACA;AAAO;MAEX;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAO;AAET;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACE;AACI;AACA;AACJ;AACA;AACA;AACA;AACE;AAAuB;AAEvB;AAAqB;QAEzB;AACA;AACE;QACF;AAAA;IAEJ;AAAA;AAEA;AACA;AACA;AACA;AACI;AACI;AACJ;AACA;MACF;AACF;AACI;AACE;AAAQ;AAEN;AACJ;AACA;MACF;AACF;AACE;IACF;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACI;AACJ;AACE;AACE;AACA;AACE;AACE;AAAM;AAER;AACA;cACF;YACF;;AAEA;AAAgB;AAEpB;AACE;AAAoB;MAExB;AACA;AACE;AACI;AACA;AACJ;AACE;AACE;UACF;QACF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E;AACA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AACF;AACF;AACF;AAEE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEA;AACA;IACF;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AACF;AACF;AAEE;AACA;AACI;AACF;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;EACF;AAnIA;AACI;AAAa;AAmIjB;ACpIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AAAkB;IAEtB;AAAA;AAEE;AACE;AACA;AACA;AACA;AAAkB;IAEtB;AAAA;AAEA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACJ;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACA;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AACF;AAEF;EACF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;IACF;AAAA;AAEA;AACA;AACI;AACJ;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AACF;AAEE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;UACF;AAAA;AACF;AACF;IAEF;AAAA;AAEA;AACE;IACF;AACE;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AA1NA;AACI;AAAa;AA0NjB;AC3NA;AAAA;AACI;AAAmB;AACnB;AADJ;AAwBA;AACI;AACI;IACJ;AACI;IACJ;AACI;IACJ;AACI;IACJ;AAAA;AAGA;AAEA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AAEA;AAEA;AACI;AAEJ;AAEA;AACI;AAEJ;AACI;AACA;AACA;AACA;AAAqE;AAGzE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AAEJ;AACI;AACA;AACA;AAEJ;AAEA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAgC;AAIlC;AAEA;AACI;AACI;AACA;AACA;MACJ;IACJ;AAIA;AACI;AACI;AAEI;QACJ;AAAA;MAEJ;AAAA;AAGJ;AACI;AACI;MACJ;AACI;MACJ;AAAA;IAEJ;AAEA;AACI;AACI;MACJ;AAAA;AAEA;IACJ;AAEA;AACI;IACJ;AAEA;AACI;IACJ;AAEA;AACI;AACI;MACJ;AAAA;IAEJ;AAEA;AACI;IACJ;AAEA;AACI;IACJ;AAEA;AACI;AACI;MACJ;AAAA;IAEJ;AAEA;AACI;AACA;AACA;AAAgB;AAGpB;AACI;AAEA;AACI;AACA;AACI;QACJ;AAAA;AACJ;AAGI;AACA;AAEJ;AACA;AACI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AAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;AAiCA;AAEI;AAA6B;QAAc;AAAA;AAG3C;AAA0C;AAA6B;UAAc;AAAA;AAAE;AAC3F;IAEJ;AACA;AACI;IACJ;AACA;AACI;AAAgC;MAAa;AAAA;IAEjD;AACA;AACI;AAAgC;MAAa;AAAA;IAEjD;AACA;AACI;AACI;AACA;MACJ;AACI;MACJ;AAAA;AAEJ;AACI;AACI;MACJ;AAAA;IAIJ;AACA;AACI;IACJ;AAAA;AAGJ;AAhIA;AACI;AAAa;AAgIjB;ACjIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACJ;AACE;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AACF;AAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACI;AACJ;AACE;AACE;YACF;AAAA;AACF;AACF;AAEE;AACA;AACE;AACE;AACA;AACE;cACF;AAAA;AACF;AACF;AAEE;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEI;AACJ;AACE;AACA;AACE;AACA;AACE;UACF;AACE;AACA;AACE;AACA;AACE;cACF;AAAA;AACF;AACF;AACF;AACF;AAEF;AACE;AACI;AACJ;AACE;AACE;AACA;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACE;AACE;AACE;AACE;YACF;AAAA;QAEJ;AACE;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;AACE;AACA;AACA;QACF;AACE;AACE;AACA;AACA;UACF;AAAA;AACF;AACF;AAEA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACE;IACF;AAAA;AAEA;AACA;AACI;AACJ;AACE;AACI;AACJ;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACA;AACE;AACA;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;AACA;QACF;AACE;QACF;AACE;AACA;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AACF;AAEA;AACE;AACE;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;AACA;AACE;UACF;AAAA;AACF;AACF;AACF;AAEA;AACE;AACE;AACA;AACE;QAC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GA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0F;AAzD9F;AACI;AAAa;AA2DjB;AC5DA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AACI;AACJ;QACF;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;MAEJ;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;AACA;AACA;QACF;AAAA;IAEJ;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;AACE;UACF;AAAA;QAEF;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;AACA;AACA;AACE;AACE;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACI;AACJ;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAA2B;AAE7B;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACE;AACI;AACJ;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;IAEF;AACA;EACF;AAnKA;AACI;AAAa;AAmKjB;ACpKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEI;AACJ;AACE;AACI;AACJ;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACI;AACJ;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;UACF;AACE;AACA;AACE;YACF;AAAA;AAEE;AACE;cACF;AAAA;AACF;AAEE;YACF;AAAA;AAEA;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AAAuB;AAEzB;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;AACE;UACF;AAAA;MAEJ;AAAA;AAEE;MACF;AAAA;AACF;AAEI;AACJ;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AACE;AACE;QACF;AA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a;AAyNjB;AC1NA;AAAA;AACI;AAAmB;AACnB;AAFJ;AACI;AACA;AACA;AACA;AACI;AACI;AACA;AACA;AAAuB;AAE3B;AACI;AACA;AAAW;AAEf;AAGA;AAGA;AACI;AACA;AACA;AACA;AAAkB;AACtB;AAEJ;AACA;AACI;AACI;AACA;AAAc;AAElB;AACI;AACA;AAAc;AAElB;AAGA;AAGA;AACA;AACI;AACA;AACA;AAAuB;AAE3B;AAGA;AACI;AACA;AAAe;AAEnB;AAGA;AACI;AACA;AAAe;AAEnB;AACA;AACA;AACI;AACA;AAAgB;AAEpB;AACI;AAIA;AAAY;AAEhB;AACI;AAIA;AAAY;AAEhB;AACA;AACA;AACI;AACA;AAAe;AAEnB;AACA;AACA;AACA;AACI;AAIA;AAAY;AAEhB;AACI;AACA;AACA;AAAY;AAEhB;AACI;AACA;AACA;AAAY;AAEhB;AACI;AACA;AACA;AAAY;AAEhB;AACI;AACA;AAKA;AAEJ;AACI;AACA;AACA;AAAkB;AAEtB;AAIY;AACA;AACA;AACA;AAAkB;AAI9B;AACA;AACA;AACA;AACA;AAAqB;AAEzB;AACI;AACA;AAAgC;AAEpC;AAAY;AArJhB;AACI;AAAa;AAsJjB;ACvJA;AAAA;AACI;AAAmB;AACnB;AAFJ;AACI;AACA;AACA;AACA;AAKA;AACI;AAUA;AAUA;AAYA;AAUA;AAKA;AAKA;AAKA;AAGA;AAGA;AAGA;AAIA;AACI;AACA;AAEA;AAEJ;AAGA;AACI;AACA;AACI;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAe;AACnB;AACJ;AAEJ;AACI;AACA;AACA;AAAc;AAClB;AAEJ;AACI;AACI;AACA;AAEA;AAEJ;AACI;AACA;AACA;AACA;AACI;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAU;AAEd;AACI;AACA;AAAe;AAEnB;AACI;AACA;AAAe;AAEnB;AACI;AACA;AACA;AAA4B;AAEhC;AACI;AACA;AAAU;AACd;AACJ;AACJ;AACJ;AA3JJ;AACI;AAAa;AA6JjB;AC9JA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0B;AAE5B;AACE;AACA;AACA;AACA;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;MAEF;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACE;AACE;UACF;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACA;MACF;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACI;AACJ;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACI;AACJ;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;YACF;AAAA;AACF;AACF;AAEE;AACE;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AAEF;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAxRA;AACI;AAAa;AAwRjB;ACzRA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD6C;ACA9D;AAAA;AACI;AAAmB;AACnB;AAFJ;AACE;AACA;AACA;AACA;AACA;AAKA;AACA;AAKA;AACE;AACE;AACA;AAGA;AAAqD;AAEvD;AAGA;AACE;AACA;AACA;AAAuE;AAEzE;AACE;AACA;AACA;AAA0D;AAE5D;AAGA;AACE;AACA;AAAoC;AAEtC;AACE;AACA;AAAoC;AAEtC;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AACE;AACA;AAGA;AAAkB;AAEpB;AAEA;AAEF;AACE;AACE;AACA;AACA;AAIA;AACA;AAKA;AACE;AACE;AACA;AAAsD;AAExD;AACE;AACA;AAAqD;AAEvD;AACE;AACA;AAA0H;AAE5H;AACE;AACA;AAAiD;AAEnD;AAGA;AAEA;AACF;AAEF;AACE;AACA;AACA;AACA;AACE;AACE;AACA;AAAwE;AAE1E;AACE;AACA;AACA;AAAc;AAEhB;AACE;AACA;AACA;AAAgB;AAClB;AAEF;AAIA;AAEF;AACE;AACA;AAGA;AACA;AACE;AACE;AACA;AAA+F;AAEjG;AACE;AACA;AACA;AAAc;AAChB;AAEF;AAIA;AAEF;AACE;AACA;AACA;AACE;AAGA;AAEA;AAEF;AAA4B;AAE9B;AACE;AACA;AAGA;AAAuG;AAEzG;AACE;AACA;AAGA;AAA+D;AAEjE;AACE;AACA;AAGA;AAA+D;AAEjE;AACE;AACA;AACA;AACA;AAGA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A;AACA;AACA;AAUA;AAAkB;AAEpB;AACE;AACA;AACA;AACE;AACA;AAKA;AAEF;AAAkB;AAEpB;AACE;AACA;AAMA;AAAe;AAEjB;AACE;AACA;AAOA;AAAe;AAEjB;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AAGA;AACE;AACA;AAGA;AACA;AAIA;AACF;AACF;AArjDF;AACI;AAAa;AAqjDjB;ACtjDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACA;AACA;AACE;AACA;AACA;AACE;IACF;AACE;AACA;AACA;IACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AAAsB;EAE1B;AAAA;AAEE;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AApCI;AAAa;AAqCjB;ACtCA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADiD;ACAlE;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAEE;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;QACF;MACF;AAAA;EAEJ;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;AACA;EACF;AAAA;AAEE;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;AAEE;IACF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AACF;AAEE;AACE;AACA;AACI;AACJ;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;EAEJ;AAAA;AAEE;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AACF;AAEE;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AACF;AACF;AAEE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AACF;AAhKI;AAAa;AAiKjB;AClKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACJ;AACA;AACA;AACA;AAPA;AACI;AAAa;AAOjB;ACRA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACJ;AACA;AACE;AACE;AACA;AAAS;AAEX;EACF;AAAA;AAXA;AACI;AAAa;AAYjB;ACbA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AAAY;AAEd;AACE;AACA;AACA;AAAa;AAEf;AACE;AACA;AACA;AAAY;AAEd;AACE;AACA;AACA;AACA;AAAqB;AAEvB;IACF;AAAA;AAEE;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AACE;AACA;AACE;AACA;AACA;AACE;cACF;AAAA;AACF;AACF;AACF;AACF;AACF;AAjDF;AACI;AAAa;AAkDjB;ACnDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;IACF;EACF;AACA;AACE;AACA;AACA;AACE;AACA;IACF;EACF;AACA;AACA;AACE;AACA;EACF;AACA;AACE;AACA;AACE;IACF;AAAA;AAEF;AACE;AACE;AACA;IACF;AACE;IACF;AAAA;AAEF;AACE;EACF;AACA;AACE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEA;EACF;AACA;AACE;AACA;A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;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;AACA;QACF;AAAA;AAEE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AAAwB;AAExB;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AArIF;AACI;AAAa;AAsIjB;ACvIA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD8C;ACA/D;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAC;AAEH;AACA;AACA;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAAuD;AAEzD;MACF;AAAA;AACF;AAEE;AACA;AACE;AAA4B;AAE9B;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;AACE;AAAyB;AAE3B;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACE;AAAkC;AAElC;AAAqB;AAErB;AACA;UACF;AACE;AACA;AACE;;AAEA;AAAwB;AAExB;AAAoB;AACxB;QAEF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;AAAuD;AAEzD;AACA;IACF;AACA;AACA;AACE;AACE;MACF;AACE;AACA;AACE;AAAW;MAEf;AAAA;IAEF;AAAA;AAEE;AACE;AAAQ;AAER;AAAsB;AAEtB;AACE;;AAEA;AAAmB;AACvB;AAEE;AAAQ;AAER;AAA8C;AAE9C;AACE;AACA;QACF;AACE;AAAmB;AACvB;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAA6B;AAE7B;AACA;AACE;;AAEA;AAAkB;MAEtB;AAAA;AAEA;AACE;AACE;AAAiB;MAErB;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAyB;AAE3B;MACF;AAAA;AAEE;AAA+B;AAEjC;AACE;;AAEA;AAAU;AAEV;AACA;MACF;AAAA;AAEA;AACE;AAAyB;AAEzB;AAAiB;AAEjB;AAAsB;IAE1B;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACA;AACE;AACE;UACF;;AAEA;AAAqB;AACzB;AACF;AAEE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACA;AACE;;AAEA;AAAkB;AACtB;IAEF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACA;AACA;AACA;AACE;;AAEA;AAAsB;AAExB;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAS;AACb;AAEA;AACE;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AAAsB;AAC1B;AAEE;SACG;AACH;;AAEA;AAAkD;AAElD;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;AACE;AAAkB;AAElB;AACA;QACF;AAAA;IAEJ;AAAA;AAEE;AACA;AACE;AAAW;AAEX;AACE;AAAW;AAEX;AAAkB;AAEpB;AACA;AACA;AACE;AAAyB;MAE7B;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACE;AAA6B;MAEjC;AAAA;AAEA;AACE;AAAW;AAEb;AACA;AACE;AAA4B;AAE9B;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;YACF;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACA;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AAAc;AAClB;AAEE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAgB;AACpB;MAEF;AACA;AACE;AACA;AACE;AAAkC;AAElC;AAAM;AAER;AACE;AACA;QACF;AAAA;AAEF;AACE;AACE;AACE;AACE;YACF;UACF;QACF;AAAA;AACF;AAEA;AACE;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEF;IACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AAAW;AAEX;SACG;AACH;SACG;AACH;AACE;;AAEA;AAAiC;MAErC;AACE;AACE;AACA;AACA;QACF;AACE;QACF;AACE;AACE;;AAEA;AAAmB;AAErB;AACI;AACF;AACA;AACA;AACE;;AAEA;AAAwB;AAExB;;AAEA;AAAY;UAEhB;AAAA;AACF;AACF;IAEF;AAAA;AAEE;AACA;AACE;AAAyD;AAEzD;AACA;AACE;AACE;AACA;AACA;UACF;AAAA;MAEJ;AAAA;AACF;AAEE;AACI;AACF;MACF;AAAA;AACF;AAEE;AACI;AACF;AACE;AAAQ;AACZ;IAEF;AAAA;AA7mBF;AACI;AAAa;AA8mBjB;AC/mBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AAA4B;AAE9B;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACE;QACF;AACA;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;SACG;AACH;AAAgC;AAEhC;AAAkB;AAElB;SACG;AACH;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AAAwB;AAC5B;AAEF;AACE;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;AAAmB;AAErB;AACA;AACA;AACE;AAAsB;AAEtB;;AAEA;AAAuD;IAE3D;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;;AAEA;AAA6C;IAEjD;AAAA;AAEE;AACE;AACE;AACA;QACF;SACG;AACH;AACA;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;SACG;AACH;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;QACF;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AAA2B;AAE7B;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACE;AAAkC;AAEpC;AACE;AACE;AACA;UACF;AAAA;AAEF;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;UACF;AAAA;AACF;AAEE;;AAEA;AAAuB;AAC3B;IAEF;AAAA;AAEE;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AAEE;AAA2B;AAE3B;AACA;MACF;AAAA;AAEE;AAA4B;AAEhC;AACE;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACA;AACA;QACF;AACE;AAAwB;AAC5B;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACE;;AAEA;AAAyB;AAC7B;IAEF;AAAA;AA1RF;AACI;AAAa;AA2RjB;AC5RA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACA;AACE;AAAc;IAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAAqD;AAEzD;AACE;AACE;AAA0B;AAE5B;AACA;AACE;AAAqB;AAErB;AAAqB;AAEvB;AACE;AAA0B;IAE9B;AAAA;AAEE;AACE;AAAM;IAEV;AAAA;AAEE;AACI;AACF;MACF;AAAA;AACF;AA1CF;AACI;AAAa;AA2CjB;AC5CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAuE;AAEzE;AACA;AACE;AAAiB;AAEjB;AAAM;AAER;AACA;AACE;MACF;AAAA;AACF;AAEE;AACE;AAA6B;AAE/B;AACA;AACA;AACA;AACA;AACE;AACE;AACE;UACF;;AAEA;AAAY;IAElB;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AAA4B;AAChC;AAEF;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAA+B;AAEjC;AACA;AACE;AAA6D;AAE7D;AAAiE;IAErE;AAAA;AAxFF;AACI;AAAa;AAyFjB;AC1FA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;MACF;AAAA;IAEF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAhEF;AACI;AAAa;AAiEjB;AClEA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD6C;ACA9D;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAA+B;EAEnC;AAAA;AAEE;EACF;AAbA;AACI;AAAa;AAajB;ACdA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;AAEA;AACE;AACE;MACF;AAAA;AACF;AAEA;AACE;AACA;IACF;AAAA;AAEA;AACE;AACE;AAAM;AAER;IACF;AAAA;AAEE;AACE;AAAM;AAER;AACE;AAAc;AAClB;AAEE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEA;AACA;AACA;AACA;EACF;AAxEA;AACI;AAAa;AAwEjB;ACzEA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD+C;ACAhE;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAkF;ACDnG;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkD;ACAnE;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;AACA;EACF;AACA;AACA;AACE;AACA;AAAY;AAEd;AACE;AACA;AACA;AACE;AACA;AACE;AAAQ;AAEV;AACE;AACI;AACJ;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACE;AAAuC;AAEvC;AAAmB;EAEvB;AACA;AACE;EACF;AACA;AACE;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;AACA;AACA;QACF;AAAA;AACa;AAEb;MACF;AACE;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AACE;AAAgB;IAEpB;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEF;AACE;EACF;AApGA;AACI;AAAa;AAoGjB;ACrGA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAAC;AAEC;AACA;AAEA;AACE;IACF;AAAA;AAEA;AAIA;AAEE;AAEa;AAAU;AAAS;AAAa;AAQ3C;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AAIA;AAEE;AACA;AACE;MACF;AAAA;AAGc;AAAI;AAAQ;AAAS;AAUjC;MACF;AAAA;IAEF;EAEF;AA7DA;AACI;AAAa;AA6DjB;AC9DA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADqC;ACAtD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAa;AAEX;AACE;MACF;AAAa;AAEf;AACE;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAQ;AAEV;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AAAM;IAEV;EACF;AACA;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;AACA;AACA;EACF;AACA;AACE;AACE;AAAiB;AAEnB;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AAAqC;AACzC;AAEE;IACF;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEF;AACA;AACE;AACE;AAAY;EAEhB;AACA;AACE;AACA;AACE;AAAc;EAElB;AACA;AACE;EACF;AACA;AACE;AACE;AAAoB;AAEpB;AACE;AAAQ;AACZ;EAEF;AACA;AACE;AACE;AAAW;AAEX;AAAW;AAEX;AAAW;AAxJf;AACI;AAAa;AAyJjB;AC1JA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AACE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAW;AAEX;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AAAoD;AAEtD;AACE;AAAsB;IAE1B;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACE;AACA;AACE;AACE;AACA;AACA;cACF;AACE;cACF;AAAA;UAEJ;AAAa;AACf;MAEF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAqC;EAEzC;AAAA;AAtII;AAAa;AAuIjB;ACxIA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADmD;ACApE;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;AACE;AAAsB;AAC1B;AAEA;AACE;AACE;AAAW;AAEb;EACF;AAbA;AACI;AAAa;AAajB;ACdA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD8C;ACA/D;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAgF;ACDjG;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADiD;ACAlE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;AACE;YACF;AACE;YACF;AACE;AACA;AACA;YACF;AAAA;AAEA;UACF;AACE;UACF;AAAA;AAEA;QACF;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAA4C;AAE9C;AACE;QACF;AAAA;AAEE;QACF;AACA;AACA;AACE;AACA;AACE;UACF;AACA;AACA;AACE;UACF;QACF;MACF;IACF;AAAA;AApEF;AACI;AAAa;AAqEjB;ACtEA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACJ;AACA;AACE;AACA;AACE;AACE;AACA;AACA;QACF;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AAEA;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AArCF;AACI;AAAa;AAsCjB;ACvCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;QACF;MACF;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEE;AACE;AACA;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;AAEA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACE;UACF;QACF;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;AAA4C;AAE5C;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;AACA;AACE;AACE;YACF;AAAA;AAEA;AACE;YACF;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;AAEA;UACF;AACA;AACE;AACA;UACF;AAAA;MAEJ;AAAA;AAEE;AACE;QACF;AACE;QACF;AACE;AACE;UACF;AACE;UACF;QACF;AAAA;AACF;AAEE;AACE;QACF;AACE;AACE;UACF;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEI;AACA;AACJ;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;UACF;AACE;UACF;AAAA;AAEE;AACA;UACF;AAAA;AAEA;AACA;QACF;AAAA;AAEE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;AACE;UACF;AACE;UACF;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;UACF;AACE;AACA;AACA;AACE;YACF;AAAA;AACF;AAEA;QACF;AAAA;AACF;AAEE;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACE;UACF;AACE;AACA;UACF;AACE;AACA;AACA;UACF;AACE;AACE;YACF;UACF;AAAA;AAEA;QACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;QACF;MACF;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AAA4C;AAE9C;AACE;AACE;QACF;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;EACF;AArgBA;AACI;AAAa;AAqgBjB;ACtgBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADoD;ACArE;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AAAW;QAEf;AAAA;AAEA;MACF;AACE;MACF;AAAA;AACF;AAEE;AACE;AACA;AACE;AACE;AACA;AACA;AACE;AACA;AAAY;UAEhB;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;AACE;AACE;YACF;AACE;YACF;AAAA;QAEJ;AACE;QACF;AAAA;IAEJ;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;AAvFF;AACI;AAAa;AAwFjB;ACzFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACA;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;IAEJ;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AAAA;EAEJ;AAAA;AA9CI;AAAa;AA+CjB;AChDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;AACA;EACF;AAAA;AAEE;AACE;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;IAEJ;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AAAA;AAEE;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACI;AACA;AACJ;AACE;AACA;AACE;MACF;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;EACF;AAAA;AA/FI;AAAa;AAgGjB;ACjGA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;IACF;AACA;AACE;AACE;AACE;AACE;UACF;QACF;AACE;AACE;UACF;QACF;AACA;MACF;AACE;MACF;AAAA;EAEJ;AAtBA;AACI;AAAa;AAsBjB;ACvBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD2C;ACA5D;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEA;EACF;AACA;AACE;AACI;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACA;AACE;AACA;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AACF;AAEE;AACE;AACI;AACA;AACJ;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACI;AACJ;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEF;AACE;AACI;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;IAEF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;AACA;MACF;AAAA;AACF;AACF;AAEE;AACI;AACJ;AACA;AACE;IACF;AAAA;AAEE;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACJ;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AAEA;MACF;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AACE;AACA;AACA;AACE;QACF;AACE;AACA;QACF;AACE;AACA;AACA;AACE;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AAEA;QACF;AACE;QACF;AAAA;MAEF;AACE;AACA;AACA;MACF;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;IACF;AACE;AACA;AACA;IACF;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;AACE;MACF;AACA;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;QACF;AACE;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEE;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEA;MACF;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACE;AACE;AACA;UACF;AAAA;AAEA;AACA;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AACE;AACE;AACA;AACE;UACF;AAAA;AAEE;AACA;AACE;YACF;AAAA;AAEE;AACA;YACF;AAAA;AAEA;AACA;AACA;AACA;UACF;AACE;UACF;AACE;AACA;AACA;UACF;AAAA;AAEA;QACF;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;IACF;AACE;AACA;AACA;IACF;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEA;AACE;AACE;AACE;AACA;AACE;YACF;AAAA;AAEA;UACF;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEA;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AACF;AACF;AAEE;IACF;AAAA;AAEE;AACE;MACF;AACE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;AACE;UACF;AACE;AACA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AAEE;AACE;AACE;AACA;AACE;AACA;AACA;AACE;YACF;AAAA;UAEF;AAAA;AACF;AAEA;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEE;AACE;UACF;AACA;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AACF;AAEA;AACE;AACA;IACF;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEA;AACE;AACE;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEA;AACA;AACA;AAhoCA;AACI;AAAa;AAgoCjB;ACjoCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;AACA;IACF;AACE;AACA;IACF;AACE;AACA;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEA;AACA;EACF;AACA;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;EACF;AACA;AACE;AACE;IACF;AAAA;AAEF;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEA;AACA;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;IACF;AACE;AACA;IACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AACE;AACA;AACA;AACE;AACA;AACE;AACA;UACF;AAAA;AACF;AAEE;AACA;AACA;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;AACA;IACF;AACE;AACE;MACF;AAAA;IAEF;AACE;AACA;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AAAA;AAEA;MACF;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEI;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AACE;AACE;MACF;AAAA;AAEE;AACE;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACE;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;AACE;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AACF;AACF;AACF;AAEE;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEA;AA1pBA;AACI;AAAa;AA0pBjB;AC3pBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;IACF;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEF;AACA;AACA;EACF;AAAA;AAEA;AACE;AACI;AACJ;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AADK;AAGT;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACA;AAAc;EAElB;AACA;AAhFA;AACI;AAAa;AAgFjB;ACjFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AAAwB;AAnC1B;AACI;AAAa;AAoCjB;ACrCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AAAwB;AAhC1B;AACI;AAAa;AAiCjB;AClCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AAEE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;AACA;AACE;UACF;AAAA;AAEE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;AACE;MACF;AACA;AACA;AACA;AACE;AACA;MACF;AACA;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACA;AAAuB;AACzB;AArKF;AACI;AAAa;AAsKjB;ACvKA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AACE;EACF;AAAA;AAIE;EACF;AAAA;AAIE;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAIE;AAAW;AAAQ;AAAK;AAExB;AACE;AAEA;AACE;AACA;MACF;AAAA;AACF;EAGF;AAAA;AAIE;AAAiB;AAEjB;AACE;IACF;AAAA;EAGF;AAAA;AAIE;EACF;AAAA;AAIA;AACA;AACA;AACA;AACA;AA7DA;AACI;AAAa;AA6DjB;AC9DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;AACE;MACF;AACA;AACA;AACA;AACE;AACA;MACF;AACA;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACA;AACE;AACE;AACE;AAAa;AAEb;AAAa;AAEb;AAAa;IAEnB;AACE;AACE;AACE;AAAa;AAEb;AAAa;AAEb;AAAa;IAEnB;AACE;AACE;AACE;AAAc;AAEd;AAAc;AAEd;AAAc;IAEpB;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AAAwB;AAxF1B;AACI;AAAa;AAyFjB;AC1FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AAA6G;AAL/G;AACI;AAAa;AAMjB;ACPA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;MACF;AAAA;AACF;AAEA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAgC;AApElC;AACI;AAAa;AAqEjB;ACtEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAwB;AAR1B;AACI;AAAa;AASjB;ACVA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;IAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AACA;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAA6B;EAEjC;AAxGA;AACI;AAAa;AAwGjB;ACzGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACE;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AAA2B;AAhD7B;AACI;AAAa;AAiDjB;AClDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AAA4B;AAjD9B;AACI;AAAa;AAkDjB;ACnDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACJ;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AAA0B;AAzB5B;AACI;AAAa;AA0BjB;AC3BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;AAA+G;AANjH;AACI;AAAa;AAOjB;ACRA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAsC;AApBxC;AACI;AAAa;AAqBjB;ACtBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEI;AACA;AACJ;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACJ;AACE;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAmC;AAhErC;AACI;AAAa;AAiEjB;AClEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACE;AACE;AACE;QACF;MACF;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACE;AACE;MACF;AAAA;AAEF;AACA;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AACF;AAvCA;AACI;AAAa;AAwCjB;ACzCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;EACF;AACE;AACE;IACF;AAAA;AACF;AAEA;AACE;AACE;IACF;AAAA;AAEE;AACI;AACJ;AACE;MACF;AAAA;IAEF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAqC;AApDvC;AACI;AAAa;AAqDjB;ACtDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AAAwG;AAL1G;AACI;AAAa;AAMjB;ACPA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AAEE;AAGA;AAEE;IACF;AAEE;IACF;AAAA;AAGA;AACA;AACA;EACF;AAAA;AAKA;AAGA;AACE;AAEA;AAEA;AACE;IACF;AAAA;EAGF;AAGA;AA1CA;AACI;AAAa;AA0CjB;AC3CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7BA;AACI;AAAa;AA6BjB;AC9BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;;AAAA;AACI;AAAmB;AACnB;AACJ;AACI;AAKJ;AAQE;AACE;AACE;MACF;AAEE;AACE;QACF;AAGE;QACF;AAAA;AACF;AAWF;AACE;AACE;AACA;MACF;AAEE;AACE;QACF;AAGE;QACF;AAAA;AACF;AACF;AAtDF;AACI;AAAa;AAuDjB;ACxDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;QACF;AAAA;AAEA;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AACE;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;IACF;AACA;AACE;AACI;AACJ;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;AACA;AAAiB;IAErB;AAAA;AAhHF;AACI;AAAa;AAiHjB;AClHA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADwD;ACAzE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACI;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACE;AACE;UACF;AAAA;AAEA;QACF;AAAA;AACF;EAEJ;AAjEA;AACI;AAAa;AAiEjB;AClEA;AAAA;AACI;AAAmB;AACnB;AADJ;AAEA;AAAC;AACA;AAEC;AAID;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACC;AACA;AAEC;AAAQ;AAGR;AAAQ;AAER;AAAQ;AAER;AAA6B;AAE7B;AAAkB;AAElB;AAAuB;AACzB;AAGC;AAAO;AAAG;AAAG;AAAK;AAAc;AAEhC;AACC;MACD;AAAA;AAQA;AAGA;AAGA;AAEA;AAEA;AACC;MACD;AAAA;AAGC;AACA;AACA;AACA;MACD;AAAA;AAGC;AACA;MACD;AACC;AACA;AACA;MACD;AAAA;IAGD;AAAA;AAGC;AACC;AACA;AACA;AAAM;AAEP;AACC;MACD;AAAA;AAGC;MACD;AAAA;AAIC;AACA;MACD;AAAA;AAIC;AACC;AACA;AACA;AACA;AACA;AAAI;AAEJ;AACA;AACA;AACA;AACA;AACA;AAAI;AAGN;IACD;AAAA;AAGA;EACD;A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ACF;AAAA;EAGF;AAEA;AACE;AACA;AACA;AAAe;AAA4C;AAC1B;AAAwB;AAC1C;AAAuB;AAEtC;EACF;AAEA;AACE;AACA;AACA;AAAe;AAAgD;AAE7D;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAAgD;AAE7D;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAAwD;AAErE;AACA;AACA;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AACA;AACA;AAAe;AAAwD;AACxD;AAA6B;AAE1C;AACA;AACA;AACA;IACF;AACE;IACF;AAAA;EAEF;AAEA;AACE;AAAgC;AAA6C;AAC9C;AAAyC;AACxD;AAAyC;AAC3D;AAGE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAGE;EACF;AAEA;AACE;EACF;AAEA;AACE;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAGE;EACF;AAEA;AACE;EACF;AAGA;AACE;AAAY;AAAQ;AACG;AAAgB;AACL;AAA0B;AAC1C;AAAc;AACJ;AAAU;AAGnB;AAAO;AACoB;AAAO;AAInD;IACF;AAAA;AACuC;AAAgD;AAC1E;AAA8C;AAGpC;AAAgB;AAErC;IACF;AAAA;AAGA;AAEA;AAEE;AACE;MACF;AAAA;AAGA;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAGF;AAGA;AACE;AAAY;AAAQ;AACR;AAAQ;AACV;AAAgB;AAET;AAAkC;AAGhC;AAAK;AACD;AAAK;AAEW;AAA0C;AAC/C;AAAwC;AAG1E;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AACF;EAGF;AAMA;AACE;AACE;AACE;MACF;AACE;AACA;AAAgB;AACd;QACF;AAAA;MAEF;AAAA;AAEA;IACF;AAAA;AAMF;AAKA;AACE;AACA;AAGA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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ACF;AAAA;AACF;AAEA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;AACE;AACA;AACE;AACA;AACA;UACF;AACE;UACF;AAAA;QAEF;AAAA;AACF;AACF;AAEE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;AA/GF;AACI;AAAa;AAgHjB;ACjHA;AAAA;AACI;AAAmB;AACnB;AAEJ;AACA;AACA;AACA;AACA;AAeA;AACE;AACA;AAA4B;AAAiB;EAI/C;AAUA;AACE;AACA;AAAwB;AAAM;AAE9B;AAAY;AAAM;AAElB;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAQ;EAEd;AAAA;AAWE;AAAa;AAA+B;AAC/B;AAA+B;AAC/B;AAA+B;AAC/B;AAA+B;EAE9C;AAAA;AAWE;EAKF;AAAA;AAOE;AAAY;AAAM;AACA;AAAsC;EAE1D;AAAA;AA3HI;AAAa;AA4HjB;AC7HA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD6B;ACA9C;AAAA;AACI;AAAmB;AACnB;AAMJ;AACA;AACA;AACA;AACA;AACA;AAMA;AACA;AAQA;AAMA;AAMA;AASA;AACE;EACF;AAAA;AAaE;AACA;AAIA;AAEE;AAGA;AACA;AACA;AACA;AACA;AACA;AAGA;AAA4B;AAAoC;AACtB;AAA0B;AAIpE;AAEA;AAEE;MACF;AAAA;AAIA;AAEE;AAAoB;AAAY;AAEhC;AACA;AACE;AACA;AAGA;AACA;QACF;AAAA;MAEF;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAGA;AAEA;AAEA;EACF;AAAA;AAWE;AAEA;AACA;AAEA;AACE;AAAe;AAAQ;AAEvB;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AASE;EACF;AAAA;AAWE;AAAO;AACP;AACE;AACE;MACF;AAAA;AACF;AAEE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAWE;AAA0B;AAA+B;EAE3D;AAAA;AAnMI;AAAa;AAoMjB;ACrMA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AACA;AACE;AACA;AACA;AACA;AACE;AAAW;AAEb;AACA;AACA;AACA;AACE;AACE;AAAM;AAER;AACE;MACF;AAAA;AAEF;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACE;MACF;AACE;MACF;AAAA;AACW;AACf;AAEE;AACA;AACE;IACF;AAAa;EAEf;AAAA;AAEA;AACE;AACE;IACF;AAAa;AACf;AA3DI;AAAa;AA4DjB;AC7DA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADqC;ACAtD;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACI;AACA;AACJ;AACA;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;EACF;AAzEA;AACI;AAAa;AAyEjB;AC1EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACJ;AACA;AACA;AACE;AACE;AACA;AACE;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEF;IACF;AACE;IACF;AAAA;AAtBF;AACI;AAAa;AAuBjB;ACxBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EAIF;AANA;AACI;AAAa;AAKjB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AAEE;AACE;AACA;AAEI;AACA;AACA;AACA;AAAiB;IAGvB;EACF;AAEE;AACE;AACA;AACA;AACA;AACA;IACF;EACF;AAAA;AAtBI;AAAa;AAuBjB;ACxBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADiD;ACAlE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACA;AACE;AACE;AAAU;AAEV;AAAQ;AAER;AACE;AAAwB;AAExB;AAAwB;AAExB;AACE;YACF;AACE;YACF;AAAA;AAEA;AADK;MAGX;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACE;QACF;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;IAEF;AACA;AACA;AACA;AACE;AACE;AAA2C;AAE7C;AACE;AACE;AACA;AACE;AACA;UACF;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACA;AAAsB;AAExB;AACE;AAAwB;AAExB;AAAyB;AAEzB;MACF;AACE;MACF;AAAA;AAEE;AAAsB;AAEtB;AAAa;AAEb;AAAkB;AAElB;AAAwB;AAExB;AAA8B;IAElC;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAc;AAEhB;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;AACA;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEI;AACA;AACJ;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACE;MACF;AACE;AACE;QACF;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACE;AAA4C;AAE5C;AACA;MACF;AAAA;AAEE;AAAwC;AAExC;AAAyC;AAEzC;AAAkC;AACtC;AAEE;IACF;AAAA;AAEE;AACA;AACI;AACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEF;IACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AAEE;AACE;AACE;cACF;YACF;AACE;AACE;cACF;YACF;AAAA;AACF;AAEA;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEA;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AACF;IAEF;AAAA;AAEE;AACA;AACE;AACA;AACE;AAAa;MAEjB;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;AACE;AACE;AAAa;AAEf;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAtaF;AACI;AAAa;AAuajB;ACxaA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkC;ACAnD;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAmE;ACDpF;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADgD;ACAjE;;AAAA;AACI;AAAmB;AACnB;AAMJ;AACI;AACA;AAKJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AAQE;AACE;AAAsB;AACtB;AAEA;AACE;AACA;MACF;AAEE;MACF;AAEE;MACF;AAAA;AAGE;AACA;MACF;AAAA;AAIE;MACF;AAAA;AAOA;AACA;AACA;AAEA;IACF;EACF;AAAA;AASE;AACE;AACA;AACE;MACF;AAAA;IAGF;AAAA;AACF;AAQE;AAGA;EACF;AAAA;AAUE;AACE;AACA;AACE;AAGA;AACE;QACF;AAAA;AAGE;QACF;AAGA;AACF;AACF;AACF;AAUE;AAGA;AAGA;AAEA;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;EAGF;AAAA;AA9JI;AAAa;AA+JjB;AChKA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADqC;ACAtD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AAA+B;AAEjC;AACA;AACA;AACA;AACJ;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACE;YACF;AACE;AACA;YACF;AAAA;AAEA;UACF;AAAA;AACF;MAEF;AAAA;AAEE;AACE;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;QACF;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;UAEF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AAEA;AACA;QACF;AAAA;MAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;AAEE;AACE;AACA;AACE;YACF;AAAA;AACF;AAEA;AACE;UACF;AAAA;AAEA;AACA;AACE;AACA;AACE;YACF;AAAA;AAEE;AACE;AACA;AACE;gBACF;AAAA;AAEA;AACA;AACA;cACF;AAAA;AAEA;AACA;AACA;YACF;AAAA;AACF;AAEA;QACF;AAAA;MAEF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACE;AACA;AAAmB;AAErB;AACA;AACA;AACA;AAAqB;AAEvB;AACE;AACE;QACF;MACF;AACE;AACE;QACF;AACE;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;EAEJ;AAxRA;AACI;AAAa;AAwRjB;ACzRA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADyC;ACA1D;;AAAA;AACI;AAAmB;AACnB;AAwBJ;AACE;EACF;AAAA;AAGE;AACA;AACA;AAEA;AACE;IACF;AAAA;AAGA;AAEA;AACA;AACE;IACF;AAAA;AAIA;AACE;IACF;AAAA;AAGE;AACI;AACA;AAAM;AAAM;AAAG;AAEnB;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AAGA;AAEA;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AACF;EAGF;AA/EA;AACI;AAAa;AA+EjB;AChFA;;AAAA;AACI;AAAmB;AACnB;AAqBJ;AACE;AACE;AACE;AAAQ;AAGR;AAA2B;AAG3B;AAA2B;AAG3B;AADK;EAGX;AAEA;AACE;AACA;AACA;AACE;IACF;AAAA;AAGE;AACE;AACA;AACE;AACE;UACF;QACF;AACE;QACF;AAAA;IAGJ;AAAA;AAEW;AAAS;EAGtB;AA/DA;AACI;AAAa;AA+DjB;AChEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADsC;ACAvD;AAAA;AACI;AAAmB;AACnB;AAmBJ;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAOI;AAIA;AAGA;AAGA;AAKA;AACA;AACA;AACA;AACA;AAEA;AACE;AACA;AAAkB;AAGpB;AACE;AACA;AAAkB;AAGpB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;AAEd;AAEJ;AACE;AAAgD;AAAU;AAG1D;AACA;EACF;AAAA;AAGE;AACE;IACF;AAAA;AAMA;AAEA;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAOE;AACA;AACE;AACA;MACF;AAAA;AACF;AAqBE;AACA;AACE;AACA;AACE;AAAa;AACjB;AAIU;AACV;AAEE;MACF;AAGE;MACF;AAAA;AAKE;AACA;AACA;MACF;AAAA;AAIA;AACE;AACA;AACE;AAAa;AACjB;AAGE;AAAqB;AAGvB;AAGA;AAIA;AAIA;AAIA;AACE;AACA;AAAgB;AACd;AACA;AAAW;AAAQ;AAEjB;AACA;AAAgB;AACd;AAIE;cACF;AACE;cACF;AAAA;AACF;AAGE;AACA;AACA;AACA;AACE;AACA;cACF;AAAA;AAEE;cACF;AAAA;AAEA;YACF;AAAA;AACF;AACF;AACF;AAGE;MACF;AAEE;MACF;AAAA;AAOE;AACA;AACA;AACE;AACA;QAEF;AAAA;MAEF;AAAA;AAGA;AACA;AACA;AAIA;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AASE;AAAgB;AACd;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAKA;AAEE;AACA;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AAEE;AACA;IACF;AAAA;AACU;AAAoB;AAG5B;IACF;AAAA;AAIE;AACA;AACA;IACF;AAAA;AAIA;EACF;AAGA;AAKE;AAAmB;AAAmB;AACX;AAAqC;EAElE;AAAA;AAGE;AACA;AACE;AACA;AACA;IACF;AAAA;AAGI;AACA;AACA;AACA;AAEJ;AACE;IACF;AACE;AAGA;AACE;MACF;AAAA;AACF;AAKE;IACF;AAAA;AAIA;AAA6C;AAAe;AAM1D;AACA;AAA4C;AAAyB;AAErE;IACF;AAAA;AAEoC;AAAiB;AACb;AAAqB;AAG3D;IACF;AACA;AAEA;EACF;AAEA;AACE;EACF;AAAA;AAGE;EACF;AAEA;AACE;AAAa;AAAe;EAE9B;AAAA;AAGE;AACE;AACA;AACA;IACF;AAAA;AAGA;AACE;IACF;AAIA;AAGA;AACE;AACA;IACF;AAAA;AAKE;AACE;AACE;AAAuB;AAI3B;AAEE;MACF;AAAA;AAGA;IACF;AAAA;AAWE;AACE;AACE;QACF;AACA;AACA;MACF;AAAA;AAGA;AACE;AACA;AAA4D;AAAA;AACxC;AAAkB;AACd;AAAsB;AACvB;AAAmB;AAClB;AAAmB;MAE7C;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAGI;AAIA;AAEA;AACA;AACA;AACA;AAOJ;AACE;AACA;AACA;AACE;AAAuB;;AAClB;AAA4B;AACnC;AAEA;AACE;AACA;AACA;AACE;AAAuB;;AAClB;AAA8B;AACrC;MAEF;AAAA;IAEF;AAAA;AAIE;AAEA;AAEA;AACA;AACA;IAEF;AAGE;AAAc;AAAY;AAE1B;AACA;AACA;IACF;AAIE;AACE;AAIA;AAEA;AACE;AACA;QACF;AAAA;AACF;AAEA;AAEA;AACE;MAEF;AAAA;AAEA;IACF;AAAA;AAKE;AAEA;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAMA;AAMA;AACA;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;AAIE;AACE;MACF;AAAA;AACF;AAIE;IACF;AAAA;AAGE;IACF;AAAA;AAMA;AACE;AAKA;AAEA;AACE;AACA;MACF;AAAA;AACF;AAIA;AACE;IACF;AAAA;AAGE;AACA;IACF;AACE;IACF;AAAA;AAIE;IAEF;AAAA;AAEA;AACA;AACA;EACF;AAEA;AACE;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AACU;AAAoB;AAGhC;AACE;EACF;AAAA;AAGE;EACF;AAAA;AAGE;EACF;AAAA;AAEE;EACF;AAAA;AAjsBI;AAAa;AAksBjB;ACnsBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADgC;ACAjD;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAiE;ACDlF;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AAD+C;ACAhE;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;MAEF;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AAAuB;EAE3B;AAAA;AAEE;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAlEI;AAAa;AAmEjB;ACpEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;EACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;IACF;AAAA;AAEF;AACE;AACE;AACA;IACF;AAAA;AAEA;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;AACE;IACF;EACF;AACA;AACE;AACA;EACF;AACA;AACE;AACE;AACA;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;IAEF;AACE;IACF;EACF;AAnFA;AACI;AAAa;AAmFjB;ACpFA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADgD;ACAjE;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AAAiC;AAEnC;IACF;EACF;AAfA;AACI;AAAa;AAejB;AChBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;EACF;AACE;AACI;AACA;AACJ;AACE;AACE;AACA;AAAS;AACV;AAEH;AACA;AACE;AACA;AAAU;EAEd;AArBA;AACI;AAAa;AAqBjB;ACtBA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAyB;ACD1C;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;AACA;AACA;EACF;AACE;AACI;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;AAAqB;AAErB;AAAwB;EAE5B;AACA;AACA;AACA;AACA;AA3BA;AACI;AAAa;AA2BjB;AC5BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAAI;ACDrB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;EACF;AACA;AACE;AACA;EACF;AAZA;AACI;AAAa;AAYjB;ACbA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;EACF;AACA;AACE;AACA;AACE;AACE;AAAkB;AAElB;AACE;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAEL;AACE;MACF;IACF;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACE;AAA6C;AAE7C;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;AAAqD;AAEvD;AACE;AACE;AACE;AAAkC;AACtC;AAEA;AAAqE;AACzE;EAEF;AA9EA;AACI;AAAa;AA8EjB;AC/EA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AAAQ;AAAc;AAAW;EACnC;AAHA;AACI;AAAa;AAEhB;ACHD;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AACA;AAdN;AACI;AAAa;AAejB;AChBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AAA4E;AAE5E;AACE;AAAU;AAEV;AAAU;IAEd;AAAA;EAEF;AACA;AACE;AACI;AACJ;AACE;AAAqB;AAErB;AACE;AAAY;AAChB;AAEF;AACE;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AAA0C;AAE9C;AACE;AACE;AACI;AACA;AACF;AACA;AACE;AAA+B;UAEnC;AAAA;AAEA;QACF;AACA;AACE;AACI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACE;AAAa;AAEb;AAAa;AAEb;AAAc;AAEd;AAAc;UAElB;AAAA;QAEF;AACA;AACE;AACI;AACJ;AACE;AACA;AACE;AAAe;AACnB;AAEF;AACE;QACF;AAAA;AAEF;AACE;AACI;UACF;AAAG;IAET;AACA;AACE;AACI;AACA;AACJ;AACE;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAAO;AAET;AACE;AAAe;AAEf;AAAc;AAEhB;AACE;AAAsB;AAC1B;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AACE;AACI;AACA;AACJ;AACE;AAAe;AAEf;AACA;QACF;AAAA;AAEE;AAAuB;AAEvB;AAAuB;MAE3B;AACA;IACF;AAAA;AAxJF;AACI;AAAa;AAyJjB;AC1JA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACA;AACA;AACA;AAAkB;EAEtB;AARA;AACI;AAAa;AAOhB;ACRD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;EACF;AACE;AACA;EACF;AARA;AACI;AAAa;AAQjB;ACTA;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AACjB;ACFA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AAA+B;EAEnC;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AAAgC;AAAmD;EAErF;AAJA;AACI;AAAa;AAGhB;ACJD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;EACF;AAJA;AACI;AAAa;AAGhB;ACJD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACE;AACE;AACA;AAAS;AACT;AATN;AACI;AAAa;AAUjB;ACXA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACI;MACF;EACJ;AALA;AACI;AAAa;AAKjB;ACNA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AACE;AACA;IACF;AACE;AACE;AACA;AACA;AACE;AAA8C;AAElD;AACE;AACA;AACE;AACE;AACE;AAAuC;AAEzC;UACF;AAAE;AAEN;AACE;AACI;UACF;AAAG;AACT;AAEA;AACA;AACA;AACE;AAAiC;EAErC;AApDA;AACI;AAAa;AAoDjB;ACrDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;IACF;EACF;AACI;IACF;AATF;AACI;AAAa;AASjB;ACVA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;IACF;AACE;AACA;AACE;AAA4B;IAEhC;AAAA;AAVF;AACI;AAAa;AAWjB;ACZA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;EACF;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;EACF;AALA;AACI;AAAa;AAIhB;ACLD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;EACF;AALA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C;AAEA;AAEA;AAEA;AACA;AACA;UACD;AAEA;AACC;AACA;AACA;AAAmB;QAErB;AAEC;AAEA;AAEA;AAEA;AAEA;AACA;QACD;AAAA;AAGD;AACC;AACA;MACD;AAEA;AACC;AAEA;AAEA;AAEA;AACC;AACC;UACD;AAAA;QAGD;AAAA;AAGC;AACC;UACD;AAAA;AAGA;AAEA;AACC;AACC;AACA;AACA;AACA;AAED;AAEA;AAEC;AAEA;AAEC;cACD;AAAA;AAGC;cACD;AAAA;AAIA;AAEA;AACC;AACC;gBACD;AAAA;AAGC;AACA;AACA;AACA;AACA;AAED;AAEA;AACC;gBACD;AAAA;AAIA;AAEA;AACC;gBACD;AAAA;cAGD;AAAA;AACD;AACD;AACD;MAGD;AAEA;AACC;AAEA;AACC;AAEA;AAEA;QACD;AAEA;AACC;AAEA;AACC;UACD;AAAA;AAEc;AACb;UACD;AAAA;AACD;AACD;AAGD;AACC;AACA;AACA;IACD;AAEA;AACC;AACC;MACD;AAAA;AAGC;AACC;QACD;MACD;AAAA;AAGC;AACA;AACA;AACA;AACA;AACA;AACA;AAAa;AAGd;AACC;MACD;AAAA;AAGC;AACA;MACD;AAAA;AAIA;AAEA;AACC;MACD;AAAA;IAID;AAEA;AACC;AAEC;MACD;AAAA;AAGC;AACI;AACA;AACA;AAEJ;AACA;AACC;QACD;AAAA;AAGD;IACD;AAAA;AAKA;AAEA;AACC;AAEA;AACC;MACD;AAAA;AACD;EAIA;AAEA;AACC;EACD;AAAA;AAIC;EACD;AAAA;AAQC;AACA;AACA;AACA;AACA;AACC;AACA;AACC;AACC;AACA;AACC;AACA;AAA0B;AAC3B;AAED;AACC;AACA;AAEA;AAED;AACA;AACC;AACA;AAEA;AACD;AAED;AAED;AAA4B;AAI7B;AAEC;AACC;IACD;AAAA;AAGD;AACA;AACA;AACA;AAOA;AACC;AACA;AACC;AACA;AAGA;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AAAwB;AAGzB;AAEA;AACC;AAEE;AACA;AACA;AACA;AAAoB;AAItB;AAEE;AACA;AACC;AACC;AACA;AAAwC;AAEzC;AACA;AACC;AACA;AAA0B;AAC3B;AAED;AAAoB;EAGvB;AAAA;AAOC;AAEE;AACA;AAAe;AAGf;AACA;AAAe;AAGjB;AACA;AACC;AACA;AACA;AAEA;AAED;AACA;AACA;AACA;AACA;AACA;AAA6B;AAQ9B;AACC;AACA;AAEA;AAAkE;AAGnE;AAEE;AACA;AAAe;AAIjB;AAEE;AACA;AACC;AACC;AACA;AACC;AACC;AACA;AAAmB;AAEpB;AAA+B;AAChC;AAED;AAAkB;AACnB;AAIF;AACC;AAEE;AACA;AACA;AACA;AAA2B;EAG9B;AAAA;AAQA;AACC;AACC;IACD;AAAA;AAIC;AACC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAmB;AAGpB;AACC;AACC;AAEA;AAAc;AACd;AACA;AACC;UACD;AAAA;AAGC;UACD;AAAA;AAGC;AACA;UACD;AAAA;AAGA;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AACC;AAEC;AACC;AAEA;cACD;AAEC;cACD;AAEC;cACD;AAAA;AACD;AAGD;QACD;MACD;AAAA;AAID;EAED;AAnsBA;AACI;AAAa;AAmsBjB;ACpsBA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADqC;ACAtD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AAAsE;AAEvE;AAEA;AACC;AAEE;AACA;AACA;AAEA;EAGH;AAAA;AAjBI;AAAa;AAiBjB;AClBA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AAA8D;AAG/D;AACC;AAGC;AACA;AACA;AACA;AAEC;AACC;AACA;AAAe;AAGhB;AACC;AACA;AACA;AAAe;AAChB;AACD;AAGD;AAA0G;AAG3G;AACA;AAlCA;AACI;AAAa;AAkCjB;ACnCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AAAwJ;AAGzJ;AAEE;AACA;AAAe;AAXjB;AACI;AAAa;AAYf;ACbF;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AAIA;AAA0C;AAG3C;AAEE;AACA;AACA;AACA;AAGE;AACA;AACA;AAAe;AAEjB;AAvBF;AACI;AAAa;AAyBjB;AC1BA;AAAA;AACI;AAAmB;AACnB;AADJ;AAcA;AACC;AACA;AACA;AACC;AACA;AAAe;AAChB;AAKD;AAEE;AACA;AACA;AAAe;AAIjB;AACC;AACA;AACA;AACC;AACA;AACA;AAEA;AACD;AAID;AAEE;AACA;AAAe;AAKjB;AAIC;AACC;AACC;MACD;AAAA;AAIA;AACA;AACC;AAEA;MACD;IACD;AAGA;AACC;AACC;AACA;MACD;AAAA;AAID;AACC;AACC;MACD;AAAA;AAEgB;AAEf;MACD;AAAA;IAGD;AAGA;AACC;AACC;MACD;AAAA;AAID;AACC;AACC;AACA;AAA6B;AAE9B;AAA6B;EAE/B;AAAA;AA9GI;AAAa;AA+GjB;AChHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAGA;AACI;AACC;AACA;AAAgB;AAGrB;AACC;AACA;AAOE;AACA;AAEA;AAGF;AACA;AACC;AACA;AAAgB;AACjB;AAGD;AACC;AACC;AACA;AAAe;AAIhB;AACC;AACA;AACA;AACC;AACA;AAA6B;AAC9B;AACD;AAGD;AACC;AACC;AACA;AACC;AACC;AACA;AAAmB;AAEpB;AAA+B;AAChC;AAID;AAEE;AACA;AAAc;AAGd;AACA;AACA;AAEA;AAEF;AAID;EAKA;AApFA;AACI;AAAa;AAmFR;ACpFT;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACA;AACA;AACA;AACA;AACA;AAAkC;AAEnC;AAVA;AACI;AAAa;AAUjB;ACXA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACC;AACC;AACA;AAAe;AAEhB;AACA;AACA;AACA;AAIC;AACA;AAEA;AAGD;AAEA;AAMA;AAEA;AACA;AACA;AAA8B;AAhC/B;A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AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AACF;AAYA;AACE;AACA;IACF;AAMA;AACE;AAMA;IACF;AAMA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEJ;AAEE;AACE;AACA;AACE;UAGF;AAAA;AACF;AAIE;AACA;AACA;AACE;AACA;AAEM;AAER;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAiB;AAEnB;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAW;AAEb;QACF;AAAA;AAIE;AAEA;AACE;AACA;AACA;AACA;AAA2C;AAG7C;AACE;AACE;YACF;AACE;YACF;AACE;YACF;AACE;YACF;AAAA;AACF;AAGE;UACF;AAAA;AAIA;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAW;AAEb;QACF;AAAA;AAIE;AACA;AAGA;QACF;AAAA;AAIE;AAEA;AAIA;AAKA;AAEA;AAIA;QACF;AAAA;AAIE;AACA;AAEA;AACE;AACA;AAAuB;AAIzB;AAEA;AACA;AACA;AAEA;AACE;AAIA;AACA;AAIA;AACE;AACA;YAGF;AAAA;AAKE;AACA;AACE;AACA;cACF;AAAA;AACF;AAMA;AACE;AACA;AAAY;AAAY;AAC1B;AASA;AAEA;UAGF;AAAA;AAMA;QACF;AAAA;AAIE;AACA;AACE;AAGA;AAEA;AAAW;AAEb;QACF;AAAA;AAIE;AACA;AACE;AACA;AAAY;AAEd;QACF;AAAA;AAIE;AAEA;AACE;AACA;AACA;AACA;AAAsD;AAGxD;AACE;AACE;YACF;AACE;YACF;AACE;YACF;AACE;YACF;AAAA;AACF;AAGE;UAGF;AAAA;AAIA;QACF;AAAA;AAIE;AACA;AACE;AACA;AAES;AAEX;QACF;AAAA;AAKE;AACA;AACE;AACA;AAAW;AAEb;QACF;AAAA;AAGE;QAEF;AAAA;AACF;IAGF;AAMA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAyC;AAG3C;AACA;AAEA;AAKA;AAQA;AAMA;AACE;AACA;AAA6D;AAO/D;AACE;AACA;AACA;AACA;AAGG;AAOL;AACE;AACA;AAA4C;AAO9C;AACE;AACA;AACA;AACA;AACA;AAEA;AACE;MAEF;AAAA;AAGE;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAYA;AACE;AACA;IACF;AAMA;AACE;AACI;AACA;AACA;AACA;AAEJ;AAEE;AACE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACE;AAGA;UACF;AACE;AACA;UACF;AAAA;AAEA;QACF;AAAA;AAIE;AACA;AACA;AACA;AACA;QACF;AAAA;AAIE;AACE;UACF;AACE;UACF;AAAA;AAEA;AAKA;QACF;AAAA;AAIE;AACA;AACA;AACE;AACA;AAAY;AAEd;AACA;QACF;AAAA;AAKE;AACA;AACA;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAGE;QAEF;AAAA;AACF;IAGF;AAMA;AACE;AACI;AAEJ;IAGF;AAMA;AACE;AAA+B;AAAW;IAgB5C;AAMA;AACE;AAA0B;AAAW;AAEjC;AACA;AACA;AAEJ;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAGF;AAMA;AACE;IACF;AAAA;AAGE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;AAGE;MAGF;AAAA;IAQF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IAUF;AAEA;AACE;IACF;AAEA;AACE;AACA;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IAQF;AAEA;AACE;IACF;AAEA;AACE;AACA;AAGA;IACF;AAGA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;AACE;AACE;QAGF;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAEA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AAEA;AACE;IACF;AAMA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAOE;AACA;IACF;AAMA;AACE;AACA;AAEA;AACA;AACE;MACF;AAAA;IAGF;AAMA;AACE;IACF;AAMA;AACE;IACF;AAMA;AACE;AAEA;AACE;MACF;AAAA;IAGF;AAMA;AACE;AACE;AAAc;AACZ;UACF;AAAA;AACW;AACT;UACF;AAAA;AACgB;AACd;UAIF;AAAA;AACa;AACX;UAGF;AAAA;AACc;AACZ;AACI;AACA;AACA;AACA;AACA;AACA;AAGJ;AACA;AACE;AAAU;AAAc;AAAyB;AACjD;AAEI;AAAc;AAAyB;YAE7C;AAAA;AAGA;AACE;AAEA;AACA;AACE;AAEI;AAAe;AAAyB;cAE9C;AAAA;YAGF;AAAA;UAEF;AAAA;AACyB;AACvB;AAEA;AACE;YACF;AAAA;UAGF;AAAA;AACmB;AACjB;AACI;AAEJ;AACE;YACF;AAAA;UAGF;AAAA;AACwB;AACtB;AAEA;AACE;YAGF;AAAA;UAGF;AAAA;AACyB;AACvB;AAEA;AACE;YACF;AAAA;UAGF;AAAA;AACa;AACX;AAGA;UACF;AAAA;AACkB;AAChB;UACF;AAAA;AACa;AACX;UACF;AAAA;IAEJ;AAMA;AACE;IAMF;AAAA;AAGE;AACE;AACA;AAAmB;AAAU;AAE3B;QAGF;AAAA;MAEF;IACF;AAAA;AAGE;AACA;AACA;AACE;AAAW;AAA6B;AAExC;AACA;AACA;MACF;IACF;AAAA;AAEiB;AAGjB;AACE;AACI;AACA;AAEJ;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AACF;IAGF;AAAA;AAQE;AACE;AACE;AACA;QACF;AAAA;AAIA;AACI;AACA;AACA;AAEJ;AACE;QACF;AACE;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,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;aAC7B;WACF;;;;;;;;iBAMW,wBAAG,EAAE;;;;;;;;iBAMb,gBAAG,EAAE;;;;;;;;iBAMF,mBAAG,EAAE;;;6BAjID,aAAa;AAAb,qBAAa,GADzB,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CACrC,aAAa,KAAb,aAAa;eAAb,aAAa;;;;;;;AClF1B;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AAA+B;AAE7B;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACE;AAA4B;AAE1B;IACF;AACA;AACA;AACA;EACF;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;MACF;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AAAU;AAEZ;EACF;AACA;AArHA;AACI;AAAa;AAqHjB;ACtHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AAA0B;AAExB;AACE;MACF;AAAA;AAEE;AAAY;AAEZ;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AArCA;AACI;AAAa;AAqCjB;ACtCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AAA0B;AAExB;AACE;MACF;AAAA;AAEE;AAAY;AAEZ;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AArCA;AACI;AAAa;AAqCjB;ACtCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AAAqB;AAEnB;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AAAU;AAEZ;EACF;AACA;AAlCA;AACI;AAAa;AAkCjB;ACnCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACE;AAAsB;AAEpB;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AAAY;AAEd;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AAAU;AAEZ;EACF;AACA;AArDA;AACI;AAAa;AAqDjB;ACtDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAqB;AAEnB;AACE;AAAW;AAEX;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAgB;AAElB;AACE;AACA;AAAS;AAEX;EACF;AACA;AA5DA;AACI;AAAa;AA4DjB;AC7DA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AACA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A;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AAvHA;AACI;AAAa;AAuHjB;ACxHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3BA;AACI;AAAa;AA2BjB;AC5BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAnHA;AACI;AAAa;AAmHjB;ACpHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AA1GA;AACI;AAAa;AA0GjB;AC3GA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AA1GA;AACI;AAAa;AA0GjB;AC3GA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAjGA;AACI;AAAa;AAiGjB;AClGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AAAe;MAEnB;AAAA;IAEF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AApIA;AACI;AAAa;AAoIjB;ACrIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAjCA;AACI;AAAa;AAiCjB;AClCA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AAAsB;MAA8B;IACxD;AAEI;IACJ;AAAA;AACJ;AARA;AACI;AAAa;AASokC;ACVrlC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;EACF;AAAA;AAEA;AACE;AACE;AAAuC;AAEvC;AAAyC;AAE3C;AACA;AACA;AACE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;AAAuC;AAEzC;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;AACE;AAAY;AAEd;AACE;AAAW;EAEf;AAAA;AAEA;AACE;AACE;AAAW;AAEb;AACA;AACA;AACE;AACE;MACF;AACE;AACE;AAAiE;MAErE;AACE;AACE;AAA+D;MAEnE;AAAA;AAEF;AACE;AAAqB;AAErB;AAAsB;AAEtB;AAAsB;AAExB;EACF;AAAA;AA9FA;AACI;AAAa;AA+FjB;AChGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;IACF;AACF;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;IAEJ;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;IAEJ;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;MACF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AApJA;AACI;AAAa;AAoJjB;ACrJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AAAsB;AAExB;AAAiC;AAEnC;EACF;AACA;AAtDA;AACI;AAAa;AAsDjB;ACvDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AAAsB;AAExB;AAAmC;AAErC;EACF;AACA;AArDA;AACI;AAAa;AAqDjB;ACtDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AAAsB;AAExB;AAAgC;AAElC;EACF;AACA;AAxDA;AACI;AAAa;AAwDjB;ACzDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAAqC;AACvC;AAEF;EACF;AACA;AArFA;AACI;AAAa;AAqFjB;ACtFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AAA2B;AAE3B;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;AACA;AAAsB;AAExB;AAAgC;AAElC;EACF;AACA;AAzEA;AACI;AAAa;AAyEjB;AC1EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhDA;AACI;AAAa;AAgDjB;ACjDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAuB;AAErB;MACF;AACA;AACE;AACE;AACE;AAAW;AAEb;AACI;AACA;AAAuB;QAE7B;MACF;AACA;AACE;AACE;AACE;AAAW;AAEb;AACI;AACA;AAAuB;QAE7B;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AAAW;AAEb;AACE;AAAW;AAEX;QACF;MACF;AACA;AACE;AACE;AAAW;AAEb;AACE;AAAW;AAEX;AACA;QACF;MACF;AACA;IACF;AACA;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;IACF;AAAA;AAEE;AACE;MACF;AACA;IACF;AAAA;AA7EF;AACI;AAAa;AA8EjB;AC/EA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AAAU;AAEZ;AACE;AAA8B;AAE5B;AACA;AAA8B;AAEhC;EACF;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AAAgC;AAElC;EACF;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AAAgC;AAElC;EACF;AACA;AA/EA;AACI;AAAa;AA+EjB;AChFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;AAAW;AAEX;IACF;AAAA;AAEE;AAAW;AAEX;AACE;MACF;AACE;AACA;MACF;AACE;MACF;AAAA;EAEJ;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACI;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;AACA;AAAmB;MAEvB;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;AACE;AAAsB;AAEtB;AAAsB;AAEtB;AAAsB;IAE1B;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACE;AACA;AAAe;AAEjB;IACF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACA;AACE;AAA2B;AAE3B;AACA;AAAmB;IAEvB;AACA;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACA;AAAe;IAEnB;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACE;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AAAe;IAEnB;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;IACF;AACA;AACE;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;EACF;AACA;AA1bA;AACI;AAAa;AA0bjB;AC3bA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AAAwB;AAEtB;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AACE;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACA;EACF;AACA;AA/EA;AACI;AAAa;AA+EjB;AChFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AAAqC;AAEnC;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAvEA;AACI;AAAa;AAuEjB;ACxEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AApCA;AACI;AAAa;AAoCjB;ACrCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AACA;AAAU;AAEZ;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACE;QACF;AAAA;IAEJ;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AAAsB;AAExB;AAAgC;AAElC;EACF;AACA;AA/GA;AACI;AAAa;AA+GjB;AChHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArDA;AACI;AAAa;AAqDjB;ACtDA;;AAAA;AACI;AAAmB;AACnB;AADJ;AADA;AACI;AAAa;AAEovB;ACHrwB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;QACF;AAAA;AAEA;AACE;AACE;AACA;UACF;AACE;AACA;UACF;AAAA;AAEA;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;IAEJ;AACA;AACE;AACA;AACE;MACF;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;AACE;AACE;UACF;QACF;AACE;AACE;UACF;QACF;AACE;AACE;AACE;AAAyC;QAE/C;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;AACA;AACI;AACF;UACF;AAAA;AAEA;QACF;AAAA;AACF;AAEF;AACE;AACA;AAAqD;AAEvD;EACF;AACA;AApJA;AACI;AAAa;AAoJjB;ACrJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;AAA2B;AAC/B;AAEF;AACE;AACA;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AAAA;AAEI;AACF;AACA;MACF;AAAA;AAEE;AACA;MACF;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AACE;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AAAmD;AAErD;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AAxIA;AACI;AAAa;AAwIjB;ACzIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACA;AAAe;AAEjB;EACF;AACA;AA7CA;AACI;AAAa;AA6CjB;AC9CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AAA4B;AAE9B;EACF;AACA;AAjEA;AACI;AAAa;AAiEjB;AClEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAHA;AACI;AAAa;AAGjB;ACJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AACI;AAAa;AASjB;ACVA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;AACA;AACE;QACF;AACE;AACA;AACA;AACE;UACF;AAAA;QAEF;MACF;AACA;AAAuF;AAEvF;AACE;AACE;QACF;MACF;AACA;AAAqD;EAEzD;AAAA;AAEE;EACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AACF;AAEA;AACE;AACE;AACA;IACF;AAAA;AACF;AAEA;AACE;AACA;AACA;AACE;AACA;IACF;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;AACE;MACF;AAAE;AACN;AAEE;AAAwB;AAEtB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AACE;AACE;AACE;AACE;YACF;AAAA;AAEA;UACF;QACF;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACE;UACF;AACA;AAAO;AAET;AACA;AACE;AACA;AACA;AACE;UACF;QACF;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEF;AACA;AACA;AACA;AACE;AACE;QACF;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;IAEJ;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEE;AAA2B;AAEzB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;UACF;QACF;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;AACA;UACF;AACA;AACA;AACE;UACF;AAAA;AAEE;UACF;QACF;AACE;AACA;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AAAA;MAEF;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;MACF;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AACA;AACE;AACE;UACF;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AArYA;AACI;AAAa;AAqYjB;ACtYA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AAJA;AACI;AAAa;AAIjB;ACLA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AALA;AACI;AAAa;AAKjB;ACNA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA1BA;AACI;AAAa;AA0BjB;AC3BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;QAEF;AAAA;AACF;AAEF;AACE;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AACA;AACE;AACE;UACF;AAAA;AAEF;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACE;QACF;AAAA;IAEJ;AACA;EACF;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;EAEJ;AAAA;AAEE;AACE;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;IAEJ;AAAA;AACF;AAEA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AArKA;AACI;AAAa;AAsKjB;ACvKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AALA;AACI;AAAa;AAKjB;ACNA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACE;AAAoB;AAElB;IACF;AACA;AACA;EACF;AACA;AA5BA;AACI;AAAa;AA4BjB;AC7BA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACE;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;QACF;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;QACF;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACE;AACE;AACE;YACF;AAAA;QAEJ;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;QACF;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AAEF;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACI;YACF;QACJ;AACE;AACI;YACF;QACJ;AAAA;AAEE;AACE;AACE;AACE;AACA;AACE;AACA;AACA;AACE;kBACF;AAAA;AACF;cAEF;AACE;AACA;AACE;AACE;AACE;AACA;AACA;AACE;sBACF;AAAA;AAEA;AACA;oBACF;AAAA;AACF;AAEE;AACA;AACE;oBACF;AAAA;AACF;AACF;AACF;UAEJ;AACA;AACE;AACE;AACA;AACE;AACA;AACE;gBACF;AACE;AACA;gBACF;AAAA;AAEF;YACF;UACF;AACA;AACE;AACE;AACA;AACE;cACF;AAAA;AAEA;AACE;AACA;cACF;AACA;AACA;AACA;YACF;UACF;AACA;AACE;AACE;AACA;YACF;UACF;AACA;AAAe;MAEnB;AACA;AACE;AACE;AACA;AACE;AACA;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEA;AACA;AACA;QACF;AAAA;AAEF;IACF;AACA;EACF;AAtQA;AACI;AAAa;AAsQjB;ACvQA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;MACF;AACA;AACE;AACE;AACE;AACA;UACF;AAAA;MAEJ;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;AACE;QACF;AAAA;MAEF;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AAAgC;AAEhC;AACE;IACF;AACA;AACA;EACF;AACA;AACE;EACF;AAAA;AAEA;AArIA;AACI;AAAa;AAqIjB;ACtIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAO;AAZT;AACI;AAAa;AAajB;ACdA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AAnDA;AACI;AAAa;AAmDjB;ACpDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AAA4B;QAEhC;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AA7FA;AACI;AAAa;AA6FjB;AC9FA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AAA8B;AAE5B;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;AACE;AACE;YACF;AACE;YACF;AAAA;AACF;AAEE;AACE;YACF;AACE;YACF;AAAA;AACF;AAEE;AACE;YACF;AACE;YACF;AAAA;AACF;AAEE;AACA;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;AAEE;UACF;AAAA;MAEJ;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACE;UACF;AAAA;AAEF;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA8B;MAElC;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AAAsB;MAE1B;AAAA;AAEF;AACA;EACF;AACA;AACA;AApIA;AACI;AAAa;AAoIjB;ACrIA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;IAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AACA;AACA;IACF;AACA;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEA;IACF;AACA;EACF;AAjDA;AACI;AAAa;AAiDjB;AClDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AACA;AACA;AACE;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3CA;AACI;AAAa;AA2CjB;AC5CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AAAyB;AAEvB;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACA;EACF;AACA;AACA;AA1CA;AACI;AAAa;AA0CjB;AC3CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAqB;EAEvB;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;AACA;EACF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AAAoB;AAElB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AAA+B;EAEjC;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AA5HA;AACI;AAAa;AA4HjB;AC7HA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AARA;AACI;AAAa;AAQ4xB;ACT7yB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AAAwE;IAE5E;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AAAa;AAEf;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AA/CA;AACI;AAAa;AA+CjB;AChDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;EACF;AAAA;AAfA;AACI;AAAa;AAgBjB;ACjBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAET;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;AACF;AAEE;AACE;UACF;AACE;UACF;AAAA;AAEF;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;QACF;AAAA;AAEA;AACA;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AACF;AAjRA;AACI;AAAa;AAkRjB;ACnRA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACJ;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;AAAU;IAEd;AAAA;AAEA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AAAW;IAEf;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;AAAU;IAEd;AAAA;AAEA;EACF;AACA;AAxKA;AACI;AAAa;AAwKjB;ACzKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AAAuB;AAErB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AAnCA;AACI;AAAa;AAmCjB;ACpCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AAA6B;AAE3B;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AAAA;AAEE;AAAmB;AAErB;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AAAmB;AAErB;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAmB;AAErB;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAuB;AAEzB;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAuB;AAEzB;IACF;AACA;EACF;AACA;AAvHA;AACI;AAAa;AAuHjB;ACxHA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AAaA;AACI;AACA;AAcI;AAAmB;MAAa;AAChC;AACA;AAAiB;AAErB;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;AAAmB;MAAyB;AAC5C;AACA;AAAiB;AAErB;EACJ;AACA;AAtDA;AACI;AAAa;AAsDoiG;ACvDrjG;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA;AACI;AAAa;AAUjB;ACXA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAe;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACJ;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEA;EACF;AACA;AA9NA;AACI;AAAa;AA8NjB;AC/NA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;AACE;UACF;AAAA;QAEF;AACA;AAAkF;IAEtF;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACA;EACF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AAAyC;AAEvC;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;EACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAe;AAEf;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACA;UACF;AACE;AACE;YACF;AAAA;AAEE;AAAqC;AACzC;QAEF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACA;UACF;AACE;AACE;YACF;AAAA;AAEE;AAAsC;AAC1C;AAEA;QACF;AACA;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AACA;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACE;AACA;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;AAEA;AACE;AACE;AAAqC;MAEzC;AACE;AACA;AACE;AACE;AAAqC;QAEzC;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACA;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAzfA;AACI;AAAa;AAyfjB;AC1fA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;AACE;UACF;AAAA;QAEF;AACA;AAAkF;IAEtF;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACA;EACF;AACA;AA3DA;AACI;AAAa;AA2DjB;AC5DA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACE;AAAyC;AAEvC;IACF;AACA;AACE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAiD;AAEjD;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;AACA;AACE;AACA;AACA;UACF;AAAA;AAEE;UACF;AACE;AACA;AACA;AACA;UACF;AAAA;AACF;AAEE;AACE;UACF;AAAA;AAEE;UACF;AACE;UACF;AAAA;AACF;AAEA;AACA;MACF;AACA;AACA;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEF;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AA1RA;AACI;AAAa;AA0RjB;AC3RA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;EACF;AACA;AACA;AACE;AAAkB;AAEhB;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACE;AAAoB;AAEpB;AAA+B;AAE/B;AADK;IAGX;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;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;AACI;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACI;AACA;AACA;AACJ;AACE;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACE;MACF;AAAA;AAEE;AAA4B;AAE5B;AAA6B;AAE/B;AACE;AACE;AACA;AAA8F;AAEhG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAsC;AAExC;AACE;AAAwB;AAE1B;AACA;AACA;AACA;AACA;AACA;AACE;AAAwE;AAExE;AAAiE;AAEnE;AACE;AAAiG;AAEnG;AACE;AAAmH;AAEnH;AAAoE;AAEpE;AAA8D;AAE9D;AACE;AAAc;AACO;AAE3B;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AAAc;AAEhB;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACE;QACF;AACE;AACA;AACE;AAAc;AAEd;AAAkC;QAEtC;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;AAAkC;AAEpC;AACA;AACA;AACE;AACA;AACE;YACF;AACE;YACF;AAAA;AAEE;YACF;AAAA;AAEA;AACA;UACF;AAAA;AAEA;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AAAY;AAEd;AACE;AAAY;AAEd;AACE;AACE;AAAY;IAEhB;AAAA;EAEF;AAAA;AAEA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACE;AAAkB;AAElB;AAAkB;AAElB;AAAkB;AAElB;AAAmB;AAEnB;AAAoB;AAEpB;AADK;EAGX;AAAA;AAEA;AAjbA;AACI;AAAa;AAibjB;AClbA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACE;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;AAAW;AAEb;AACE;AAAW;AAEb;AACE;AAAW;AAEb;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AAAM;IAEV;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAM;IAEV;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;AACoD;AAEpD;QACF;AAAA;AACF;AAEE;AAA4B;AAE5B;AAAe;IAEnB;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AAEE;AACA;AACA;AACE;UACF;AAAA;QAEF;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;AACA;AACA;AACE;AACA;UACF;AACE;UACF;AAAA;AAEA;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AACE;AACA;AACA;MACF;AACE;MACF;AACE;MACF;AACE;AACA;AACA;MACF;AACE;AACA;AACA;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;QACF;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AACE;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;AACE;AACE;YACF;AAAA;AAEA;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACE;AAAS;AAEX;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AAAoD;AACtD;AACF;AAEE;AAA4B;AAE5B;AAAe;IAEnB;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AAEA;AACA;AACA;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAkB;AAEpB;IACF;AACA;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACA;AACE;IACF;AACA;AACA;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAnnBA;AACI;AAAa;AAmnBjB;ACpnBA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AAlCA;AACI;AAAa;AAkCgrJ;ACnCjsJ;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACF;MACF;AAAA;AAEE;AACA;AACA;AACI;AACF;QACF;AAAA;MAEF;AAAA;AACF;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACI;AACF;AACE;QACF;AACE;AACA;AACE;AACA;AACA;UACF;AACE;UACF;AAAA;AACF;AACF;AAEA;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACE;UACF;AAAA;AACF;AAEF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACI;AACF;AACE;QACF;AAAA;AACF;AAEI;AACF;AACA;AACE;QACF;AAAA;AACF;AAEI;AACF;AACA;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;AAAS;AAEX;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AA9KA;AACI;AAAa;AA8KjB;AC/KA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACA;AACE;MACF;AACA;AACA;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADK;AAGT;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACE;AAAa;AAEf;MACF;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;YACF;AACE;YACF;AAAA;QAEJ;AAAA;AACF;AAEE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AAtNA;AACI;AAAa;AAsNjB;ACvNA;;AAAA;AACI;AAAmB;AACnB;AAEJ;AACI;EACJ;AAAA;AAEA;AACI;EACJ;AAAA;AAOA;AACI;EACJ;AAAA;AAnBA;AACI;AAAa;AAoBw+C;ACrBz/C;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACE;AACE;AACE;AAAW;AAEb;MACF;AAAA;IAEF;AACA;AACA;AACE;AAAgB;AAEd;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACA;AACE;AAAgC;AAE9B;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACE;QACF;AACA;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AAA2B;AAEzB;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AACA;EACF;AA5dA;AACI;AAAa;AA4djB;AC7dA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AAVA;AACI;AAAa;AAUggC;ACXjhC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACE;AACE;AACA;MACF;AACE;AACE;QACF;AAAA;AACF;IAEF;AAAA;AAEE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACE;IACF;EACF;AAAA;AAEE;AACE;IACF;AACA;AACA;AACA;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;EACF;AAAA;AAxGI;AAAa;AAyGjB;AC1GA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACE;MACF;AACA;AACE;MACF;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AACA;EACF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACA;IACF;EACF;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;AACE;UACF;QACF;AAAA;AAEE;AACE;UACF;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AAAqJ;AAErJ;AACA;AACA;AACA;AACA;AAAqJ;AAErJ;AACA;AAFK;IAIX;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACE;AACE;AACE;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AAA2D;AAE3D;AADK;EAGX;AAAA;AAEE;AACE;IACF;AACA;EACF;AAAA;AAEE;AACE;AACE;AAAsB;AAEtB;AAA2B;AAE3B;AAA2B;AAE3B;AAAyB;AAEzB;AAA4B;AAE5B;AAAyB;AAEzB;AAA6B;AAE7B;AAA4B;AAE5B;AAAgC;AAEhC;AAA4B;AAE5B;AAA+B;AAE/B;AAAsC;AAEtC;AAAyC;AAEzC;AADK;EAGX;AAAA;AAEE;AACE;AACE;AAAgE;AAEhE;AAAqE;AAErE;AAAqE;AAErE;AAAmE;AAEnE;AAAsE;AAEtE;AAAmE;AAEnE;AAAuE;AAEvE;AAAsE;AAEtE;AAA0E;AAE1E;AAAsE;AAEtE;AAAyE;AAEzE;AAAgF;AAEhF;AAAmF;AAEnF;AADK;EAGX;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AACE;QACF;AAAC;AAED;AADK;EAGX;AAAA;AA7YI;AAAa;AA8YjB;AC/YA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AACA;IACF;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AAAS;IAEb;AACA;AACE;AACA;AACA;AACE;AAAS;IAEb;AACA;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;QACF;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AAAS;AAEX;AACA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AAAS;IAEb;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AAAS;IAEb;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AAAS;AAEX;IACF;AACA;EACF;AACA;AAtSA;AACI;AAAa;AAsSjB;ACvSA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAnBA;AACI;AAAa;AAmBjB;ACpBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AAvDA;AACI;AAAa;AAuDjB;ACxDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;EACF;AACA;AAxCA;AACI;AAAa;AAwCjB;ACzCA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;EACJ;AAAA;AAHA;AACI;AAAa;AAIwe;ACLzf;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAM;AAER;AACA;AACA;AACE;AAAqC;AAEvC;AACE;AAAkC;AAElC;AAAuD;AAEzD;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AACE;AACE;QACF;AAAA;MAEF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACA;AACE;AACA;IACF;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;AACE;AACE;AAAsD;MAE1D;AAAA;AAEF;AACE;AACE;AACE;AACA;AACE;AACA;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;AACE;AACA;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACA;AACE;AACA;AACE;UACF;QACF;AACE;AACA;AACA;AACE;UACF;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAvSA;AACI;AAAa;AAuSjB;ACxSA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AAA0D;IAAqD;AAC/G;AACI;IAEJ;AACA;AAAmD;IAAsC;AACzF;AACI;IACJ;AACA;AAAgE;IAA6C;AAC7G;AACI;IACJ;AACA;AAAwD;IAAoD;AAC5G;EACJ;AACA;AA5DA;AACI;AAAa;AA4DwpM;AC7DzqM;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AACE;AACA;AACE;AACA;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACA;QACF;AAAA;AACF;AAEA;AACE;AACA;AACE;AACE;AACA;AACA;AACA;UACF;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AACE;AACA;AACE;AACA;AACA;UACF;AAAA;AACF;AAEE;AACA;AACE;UACF;AAAA;QAEF;AAAA;AACF;AAEF;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;AACE;AACA;AACE;AAA6C;AAE/C;AACA;UACF;AACE;AACA;AACA;UACF;AAAA;AAEA;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;AACE;AAAuC;AAEvC;AAAwB;AAExB;AACA;AAAiC;AAEjC;AACA;AAAkE;AAElE;AACA;AACA;AACA;AAAY;AAEZ;AACA;AACA;AACA;AACA;AAAY;AAEZ;AAA6B;AAE7B;AACA;AACA;AAAuC;AAEvC;AACA;AACE;UACF;AAAA;AAEA;AAAuC;AAEvC;AACA;AAA4C;AAE5C;AACA;AAA4B;AAE5B;AAAoG;AAEtG;AACA;AACE;AAAqF;AAErF;AADK;IAGX;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAA6C;AAE/C;AACA;YACF;AACE;AACA;AACA;YACF;AAAA;AAEA;AACA;UACF;AAAA;AAEA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AAAiB;AAEnB;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AAAqC;AAEzC;AACE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AAraA;AACI;AAAa;AAqajB;ACtaA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AAA8B;EAEhC;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;EACF;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;EACJ;AAAA;AAHA;AACI;AAAa;AAIgnB;ACLjoB;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;EACF;AACA;AA1HA;AACI;AAAa;AA0HjB;AC3HA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAvBA;AACI;AAAa;AAwBjB;ACzBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AAlDA;AACI;AAAa;AAkDjB;ACnDA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;EACF;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AAAgC;AAE9B;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACE;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AADK;IAGX;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACA;EACF;AACA;AAhOA;AACI;AAAa;AAgOjB;ACjOA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvDA;AACI;AAAa;AAuDjB;ACxDA;;AAAA;AACI;AAAmB;AACnB;AACJ;AACI;AACA;AAC0C;IAA6B;AACvE;AAA4C;IAA4B;AAGxE;AACI;IACJ;AACA;AACI;AACI;AAA0B;IAElC;AACA;AACI;IACJ;AACA;AACI;AACI;AACI;QACJ;AAEI;QACJ;AAAA;IAER;AACA;AACI;IACJ;AACA;AAA4C;IAA+B;AAC3E;AACI;AACA;AACA;AACI;AACA;MACJ;AACA;AAAS;AAAY;AAAkB;AAAa;IACxD;AACA;EACJ;AACA;AA9CA;AACI;AAAa;AA8C4xK;AC/C7yK;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;EACF;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAzKA;AACI;AAAa;AAyKjB;AC1KA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;EACF;AACA;AAhDA;AACI;AAAa;AAgDjB;ACjDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AACA;IACF;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;EACF;AACA;AAnDA;AACI;AAAa;AAmDjB;ACpDA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AArCA;AACI;AAAa;AAqCjB;ACtCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACA;QACF;AACE;AACE;AACA;AACA;AACA;UACF;AACE;UACF;AACE;AACE;YACF;UACF;QACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACA;AAAqB;QAEzB;AACE;AACE;AACA;AACA;AACE;AACA;AAAqB;UAEzB;AACE;AACE;AACA;AAAqB;UAEzB;AACE;AACE;YACF;UACF;QACF;AAAA;MAEF;AAAA;AAEF;EACF;AACA;AACA;AACE;AACI;AACJ;AACA;EACF;AAAA;AAEE;AACI;AACJ;EACF;AAAA;AA9FI;AAAa;AA+FjB;AChGA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;IACF;EACF;AAAA;AAxBA;AACI;AAAa;AAyBjB;AC1BA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAyB;EAAS;AAAA;AADlC;AACI;AAAa;AAEoB;ACHrC;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACI;AACI;MACJ;AAEI;MACJ;AAAA;AACJ;AAEA;EACJ;AAAA;AAZA;AACI;AAAa;AAasB;ACdvC;AAAA;AACI;AAAmB;AACnB;AADJ;AAAkB;AADlB;AACI;AAAa;AAEc;ACH/B;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;AACE;AAAoC;AAEpC;AACE;UACF;AACE;UACF;AACE;AACA;UACF;AAAA;AACK;AAEL;AADK;IAGX;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;IACF;AACA;EACF;AACA;AAvEA;AACI;AAAa;AAuEjB;ACxEA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;EACF;AACA;AA1HA;AACI;AAAa;AA0HjB;AC3HA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACA;AACA;AACA;AACA;AAAiB;AAErB;AAEA;AACA;AACA;AACA;AACI;EACJ;AAAA;AAfI;AAAa;AAgBc;ACjB/B;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEA;AACE;AACE;IACF;AAAA;AACF;AAEA;AACA;AACE;AACE;AACE;MACF;IACF;AAAA;EAEF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACE;AACA;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AACF;AAEA;AACE;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AAEA;AA7DA;AACI;AAAa;AA6DjB;AC9DA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACE;AACE;AACI;AACA;AACJ;QACF;AACA;AACA;MACF;AACE;MACF;AAAA;AAEE;AACI;AACA;AACJ;MACF;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAhFA;AACI;AAAa;AAgFjB;ACjFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAyB;AAEvB;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AAA8B;AAE5B;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AAAmB;IAEvB;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;AACE;UACF;QACF;AACE;QACF;AACA;AACE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AAEE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AAEA;AACE;AACE;UACF;QACF;AACE;QACF;AACA;AACE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AAEE;AACE;AACE;YACF;UACF;AACE;UACF;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AAnKA;AACI;AAAa;AAmKjB;ACpKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAhEA;AACI;AAAa;AAgEjB;ACjEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;EACF;AACA;AA3BA;AACI;AAAa;AA2BjB;AC5BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AAA8B;IAElC;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AAAO;AAEP;AAAO;AAEP;AAA0H;AAE9H;AACE;IACF;AACA;AACE;AACE;MACF;AACA;IACF;AACA;AACE;AACE;MACF;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;QACF;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEF;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;IACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AACE;AACE;AACA;UACF;AAAA;AACF;AAEE;AACA;QACF;AAAA;AAEE;AACA;QACF;AAAA;AACF;AAEE;AACA;MACF;AAAA;AAEE;MACF;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;EAEF;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AACA;AACA;AACA;MACF;AACE;AACA;AACA;MACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACE;AACA;AACE;AACE;cACF;AACA;AACA;YACF;AACE;YACF;AAAA;AAEA;AACA;UACF;AAAA;AACK;AAET;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;AAAmC;AAEnC;AAAgE;AAEhE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;AACA;AACE;UACF;AAAA;QAEF;AAAA;AAEE;QACF;AAAA;AAEA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AAAuC;AAE3C;AACE;AACE;AAA0C;AAE9C;AACE;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;EACF;AACA;AACA;AACE;AAAgC;AAEhC;AACA;AACA;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACE;AAA4C;AAE5C;AAA4C;AAE5C;AAA4C;AAChD;AAEE;AACE;AAAwB;AAExB;AAAwB;AAExB;AAAwB;AAE5B;AACE;AACE;AAAwB;AAExB;AAAwB;AAExB;AAAwB;AAE5B;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACA;EACF;AACA;AACE;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACE;AAAc;AAClB;AAEF;AACE;AACE;AACA;AACE;AAAc;AAClB;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE1D;AAA0D;AAE9D;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEE;AACE;AAA0D;MAE9D;AAAA;AAEF;EACF;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACE;UACF;AAAA;QAEF;AAAA;AACF;AAEF;EACF;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;AAAM;AAER;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AACA;AACE;AAAuC;AAEzC;MACF;AAAA;IAEF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;AAAQ;AAEV;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAxxBA;AACI;AAAa;AAwxBjB;ACzxBA;;AAAA;AACI;AAAmB;AACnB;AADS;AACT;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;EAEJ;AACA;AAaA;AACI;AACA;EAEJ;AACA;AA3CA;AACI;AAAa;AA2CwtK;AC5CzuK;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AAnCA;AACI;AAAa;AAoCjB;ACrCA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AAlBA;AACI;AAAa;AAkBjB;ACnBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;IACF;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACI;AACF;AACA;AACA;AACA;AACE;AACE;UACF;AAAA;AAEA;QACF;AACE;QACF;AAAA;AACF;AAEA;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEA;AACA;AACE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AACA;AACA;AACA;AACE;AAAsB;MAE1B;AAAA;AACF;AAEA;EACF;AAAA;AAEA;AACE;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AAAA;AACF;AAEA;EACF;AAAA;AAEA;AACE;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AACE;AACE;AACA;AACA;AACA;AACA;QACF;MACF;AAAA;AACF;AAEA;EACF;AAAA;AA9JA;AACI;AAAa;AA+JjB;AChKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA;AACI;AAAa;AASjB;ACVA;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AAEA;AACI;AACA;AACI;IACJ;AACI;IACJ;AAAA;AAEI;IACJ;AAAA;AACJ;AAGI;AACI;IACJ;AAAA;AAEA;AAEA;AACA;AACI;AACA;AACA;AACI;AACI;QACJ;AAAA;AACJ;AAEA;IACJ;AAAA;AAEA;AACA;EACJ;AAAA;AAGI;AACA;AACI;AACI;MACJ;AAAA;AACJ;AAEA;AACI;IACJ;AAAA;AAIJ;AACI;AACA;EACJ;AAAA;AAEI;EACJ;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAiB;AAGjB;AACA;AACA;AACA;AACA;AACA;AAEA;AACI;EACJ;AAEA;AAA4B;EAAW;AACvC;AACI;EACJ;AACA;AAA6B;EAAU;AA1FvC;AACI;AAAa;AA0FjB;AC3FA;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADwC;ACAzD;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADkD;ACAnE;AAAA;AACI;AAAmB;AACnB;AAFJ;AAAA;AACI;AAAa;AADmD;ACApE;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AACA;AACA;AACE;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AAEE;AACA;AACA;QACF;AAAA;AACF;AAEE;AACE;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;AAErB;AAAqB;MAEzB;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;AAEE;AACE;QACF;AACA;MACF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACA;AACE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AACA;AACE;AACE;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;AAEhB;AAAgB;MAEpB;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;MACF;AACA;AACE;AACA;AACE;AACE;AACE;YACF;AAAA;UAEF;AAAA;AACF;MAEF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACA;MACF;AAAA;AAEA;AACE;MACF;AACA;IACF;AACA;AACA;AACE;AACE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACA;AACE;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;QACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;MACF;AACA;AACE;AACE;QACF;AACA;AACA;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;AAAA;MAEF;AACA;AACE;AACE;AACA;AACE;UACF;AAAA;QAEF;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;QACF;AACE;AACE;UACF;AAAA;QAEF;AAAA;AAEA;AACE;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADK;QAGX;AACE;QACF;AAAA;MAEF;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACA;MACF;AACA;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACA;AACE;AAAU;AAEV;UACF;AACE;UACF;AAAA;AACF;MAEF;AACA;AACE;AACA;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;AACA;AACE;AAAU;AAEZ;QACF;AAAA;MAEF;AACA;AACE;AACE;AACE;UACF;QACF;AACA;AACA;AAAiB;AAEnB;AACE;MACF;AACA;IACF;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AArpBF;AACI;AAAa;AAspBjB;ACvpBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA6B;AAE3B;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA+B;AAE7B;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AAA+B;AAE/B;EACF;AACA;AACA;AACE;AAAyB;AAEvB;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAA6B;AAE3B;IACF;AACA;AACA;EACF;AACA;AACA;AACE;AAAyB;AAEvB;IACF;AACA;AACA;EACF;AACA;AApFA;AACI;AAAa;AAoFjB;ACrFA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACA;AACE;AACE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AAAW;IAEf;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AAAW;EAEf;AAAA;AAEA;AACE;AACE;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACA;AAAiB;IAErB;AACA;EACF;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;IACF;AACE;AACE;MACF;AACA;IACF;AACE;AACA;IACF;AACE;AACE;MACF;AACA;IACF;AAAA;EAEF;AAAA;AAEA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACA;EACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEE;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEA;AACA;AACE;QACF;AACE;QACF;AAAA;MAEF;AAAA;AACF;EAEF;AAAA;AAEA;AACE;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAEE;AACE;IACF;AACE;AACE;MACF;AACA;AACE;MACF;IACF;AAAA;AACF;AAEE;AACA;AACE;AAAS;AAET;IACF;AAAA;AAEE;IACF;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEA;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;EACF;AAAA;AA1VI;AAAa;AA2VjB;AC5VA;;AAAA;AACI;AAAmB;AACnB;AAGJ;AACI;AACA;AAEI;AAAmB;MAA6D;AAChF;AACA;AAAiB;AAErB;EACJ;AACA;AAfA;AACI;AAAa;AAe42B;AChB73B;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;IACF;AACA;EACF;AAAA;AAEA;AACE;AACE;IACF;AACE;IACF;AAAA;AACF;AAjBA;AACI;AAAa;AAkBjB;ACnBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;AACE;AAAY;AAEd;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AAjEA;AACI;AAAa;AAiEjB;AClEA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACE;AACA;AACE;MACF;AACA;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;AACE;AACA;MACF;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACE;MACF;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;IACF;AACA;AACE;AACE;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACA;AACI;AACF;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AAlKA;AACI;AAAa;AAkKjB;ACnKA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AACA;AA7BA;AACI;AAAa;AA6BjB;AC9BA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;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;AAzCA;AACI;AAAa;AAyCjB;AC1CA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAO;AAET;AACE;EACF;AAAA;AAEA;AACA;AAnBA;AACI;AAAa;AAmBjB;ACpBA;;AAAA;AACI;AAAmB;AACnB;AADS;AAGT;AAGA;AAGA;EACJ;AACA;AAZA;AACI;AAAa;AAY4/B;ACb7gC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAA2B;EAE7B;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACA;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEE;AACA;AACE;QACF;AACE;QACF;AAAA;MAEF;AAAA;AAEA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACA;EACF;AACA;AA1LA;AACI;AAAa;AA0LjB;AC3LA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACA;AACA;AACA;AACA;AACE;AAAyB;AAEvB;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AAAmC;EAErC;AACA;AACA;AACE;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AAAA;QAEF;AACA;MACF;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AAEF;MACF;IACF;AACA;AACA;EACF;AACA;AAtIA;AACI;AAAa;AAsIjB;ACvIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA;AACI;AAAa;AAgBjB;ACjBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AACA;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAvII;AAAa;AAwIjB;ACzIA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACA;AACA;EACF;AACA;AACE;AACE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACE;AAAe;AAEnB;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACE;AAAW;MAEf;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAW;AAEb;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAW;AAEb;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AAlHA;AACI;AAAa;AAkHjB;ACnHA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAEE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACE;MACF;AACA;AACA;AAAiB;AAEnB;AACE;IACF;AACA;EACF;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;EACF;AAAA;AA9FA;AACI;AAAa;AA+FjB;AChGA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACE;AACE;IACF;AAAA;AAEE;IACF;AACA;AACE;AACE;AACE;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAEL;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEA;AACA;IACF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;AAAkB;AACtB;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACE;AAAmB;AACvB;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAzLA;AACI;AAAa;AAyLjB;AC1LA;;AA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AwB;MAAW;AAAA;AACb;MAAS;AAAA;AACR;MAAU;AAAA;AACP;MAAa;AAAA;AACb;MAAa;AAAA;AACR;MAAkB;AAAA;IAErD;AACA;AAA6C;IAA8B;AAC3E;AAAyC;IAA6B;AACtE;AAAyC;IAAuB;AAChE;AAAgC;IAA2B;AAC3D;AAAuC;IAAsB;AAC7D;EACJ;AACA;AACA;AACI;AACA;AACA;AACI;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AACJ;AAEI;IACJ;AAAA;EAEJ;AAAA;AAEA;AACA;AACI;AACI;AACI;MACJ;AAGI;AACA;AACI;AACA;AAEI;UACJ;AAAA;AACJ;AACJ;AACJ;EAEJ;AAAA;AAEA;AACI;AACA;AACA;AACA;AACI;AACA;IACJ;AAAA;EAEJ;AAAA;AAEA;AACI;EACJ;AAAA;AAEA;AACI;EACJ;AAAA;AAnbA;AACI;AAAa;AAob4+uC;ACrb7/uC;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACE;AACE;AACE;AACE;QACF;MACF;AAAA;AACW;AAEX;AACA;AACE;AACA;MACF;AAAA;IAEF;EACF;AACA;AACE;AACE;AACE;AACE;QACF;MACF;AAAA;AACW;AAEX;AACA;AACE;MACF;AACA;IACF;EACF;AACA;AACE;AACE;AACE;AACA;AACA;AACE;QACF;AAAA;IAEJ;AACE;AACE;AACE;QACF;MACF;IACF;AAAA;AAEF;AACE;AACE;AACE;AACE;QACF;MACF;AAAA;AACW;AAEX;AACI;AACJ;AACE;AACA;MACF;AACA;IACF;EACF;AACA;AACE;AAAuB;AAErB;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AAA6B;AAE3B;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACA;AACE;AAAwB;AAEtB;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAW;IAEf;AACA;AACE;AACE;AAAW;IAEf;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAY;AAEZ;AACE;AAAY;AAChB;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;EACF;AACA;AACA;AACE;AACE;AAAY;EAEhB;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AAAW;AAEX;AAAY;AAEZ;AAAY;AAChB;AACF;AAEA;AACE;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AACF;AACF;AAEA;AACE;AACA;AACE;AACE;MACF;IACF;AACE;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;MAEF;IACF;AAAA;AAEF;AACE;AAAuB;AAErB;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AAxXA;AACI;AAAa;AAwXjB;ACzXA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACI;AACA;AACJ;AACE;;AAEA;AACE;AACE;AAAoE;EAE5E;AACA;AACE;AACE;AAA6B;AAEjC;AACE;AACE;IACF;EACF;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACE;AACA;MACF;AACE;AACE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AAEF;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAM;AAER;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AAAmB;AAErB;EACF;AACA;AACA;AACE;AACE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AAAuB;AAEzB;EACF;AACA;AACA;AACE;AACE;IACF;AAAA;AAEA;EACF;AACA;AArJA;AACI;AAAa;AAqJjB;ACtJA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AACA;AACA;AACA;AARA;AACI;AAAa;AAQjB;ACTA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACE;AACE;AACE;AAAiB;AACvB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AArBA;AACI;AAAa;AAqBjB;ACtBA;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACA;AACA;AALA;AACI;AAA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;ACrFhB;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACJ;AACE;EACF;AALA;AACI;AAAa;AAKjB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACI;AACJ;AACA;AACE;IACF;EACF;AAXA;AACI;AAAa;AAWjB;ACZA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;IACF;EACF;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACA;AACE;EACF;AALA;AACI;AAAa;AAKjB;ACNA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAA6E;AAAe;AAD/G;AACI;AAAa;AAAiG;ACDlH;;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AACE;AACA;AACE;AACI;AACA;AACJ;AACA;AACE;AAA2B;AAE7B;AACE;AACA;AACE;QACF;AACE;AACA;AACA;AACA;AACA;AACA;QACF;AAAA;AAEA;MACF;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEF;AApCA;AACI;AAAa;AAoCjB;ACrCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;EACF;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAwD;AAAe;AAD1F;AACI;AAAa;AAA4E;ACD7F;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;EACF;AAHA;AACI;AAAa;AAEhB;ACHD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACE;AAA0C;EAE9C;AANA;AACI;AAAa;AAMjB;ACPA;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACA;AACE;AAAoD;AAExD;AACE;AACE;AACE;AACA;AACA;MACF;AACE;MACF;AAAA;AAEE;AACA;AACE;;AAEA;AAAa;MAEjB;IACF;AACA;AAAW;AA3Bb;AACI;AAAa;AA4BjB;AC7BA;AAAA;AACI;AAAmB;AACnB;AAD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AAQ;AAEV;AACE;AACE;QACF;AACA;AACA;MACF;AACA;AACE;AAA4D;AAChE;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AAzCA;AACI;AAAa;AAyCjB;AC1CA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAqB;AAZvB;AACI;AAAa;AAYhB;ACbD;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AAAmB;AAA8C;EAEnE;AAJA;AACI;AAAa;AAGhB;ACJD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;EACF;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AAEA;AACE;EACF;AALA;AACI;AAAa;AAIhB;ACLD;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AACE;EACF;AAJA;AACI;AAAa;AAIjB;ACLA;AAAA;AACI;AAAmB;AACnB;AADJ;AACE;AACE;IACF;AACE;IACF;AAAA;AANF;AACI;AAAa;AAMhB;ACPD;AAAA;AACI;AAAmB;AACnB;AADJ;AACI;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AACA;EACF;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AAAe;AACrB;EAEF;AAlCA;AACI;AAAa;AAkCjB;ACnCA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAA0B;AAAU;AADhC;AAAa;AACmD;ACFpE;AAAA;AACI;AAAmB;AACnB;AADJ;AACA;AAFA;AACI;AAAa;AAEjB;ACHA;AAAA;AACI;AAAmB;AACnB;AADJ;AAAmB;AAAwD;AAAe;AAD1F;AACI;AAAa;AAA4E;ACD7F;AAAA;AACI;AAAmB;AACnB;AAAJ;AACA;AAEA;AACI;AACI;IACJ;AAA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C;AACnC,gBAAM,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;SAC7B,CAAC,CAEmB,UAAU,KAAV,UAAU;eAAV,UAAU;SAAS,aAAa;;yBAAhC,UAAU;;;;;ACxD/B,cAAY,CAAC;;qIAcP,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;AAAhB,sBAAgB,GAAG,CACvB,OAAO,EACP,OAAO,EACP,UAAU,EACV,MAAM,EACN,WAAW,EACX,UAAU,EACV,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,QAAQ,CACT;;yBAGC,OAAO;;yBACP,OAAO;;4BACP,UAAU;;wBACV,MAAM;;6BACN,WAAW;;4BACX,UAAU;;uBACV,KAAK;;+BACL,aAAa;;kCACb,gBAAgB;;8BAChB,YAAY;;0BACZ,QAAQ;;kCACR,gBAAgB;;;;;ACxClB,cAAY,CAAC;;aAGF,IAAI;;;gBADP,KAAK;;;AACF,UAAI,GAAG,KAAK,CAAC,IAAI;;;;AAE5B,YAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,WAAK,CAAC,QAAQ,EAAE,CAAC","file":"dist/redoc.js","sourcesContent":["/*eslint no-unused-vars: 0*/\n/*eslint strict: 0*/\nvar $buoop = { vs: {i:9, f:25, o:12.1, s:7}, c:2 };\nfunction $buo_f(){\n var e = document.createElement('script');\n e.src = '//browser-update.org/update.min.js';\n document.body.appendChild(e);\n}\ntry {document.addEventListener('DOMContentLoaded', $buo_f, false);}\ncatch(e){window.attachEvent('onload', $buo_f);}\n","import * as utils from '../utils';\n\nexport function apply() {\n utils.patchClass('FileReader');\n}\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\nnamespace Reflect {\r\n \"use strict\";\r\n\r\n interface Map<K, V> {\r\n clear(): void;\r\n delete(key:K): boolean;\r\n forEach(callbackfn:(value:V, index:K, map:Map<K, V>) => void, thisArg?:any): void;\r\n get(key:K): V;\r\n has(key:K): boolean;\r\n set(key:K, value?:V): Map<K, V>;\r\n size: number;\r\n }\r\n interface MapConstructor {\r\n new (): Map<any, any>;\r\n new <K, V>(): Map<K, V>;\r\n prototype: Map<any, any>;\r\n }\r\n\r\n interface WeakMap<K, V> {\r\n clear(): void;\r\n delete(key: K): boolean;\r\n get(key: K): V;\r\n has(key: K): boolean;\r\n set(key: K, value?: V): WeakMap<K, V>;\r\n }\r\n\r\n interface WeakMapConstructor {\r\n new (): WeakMap<any, any>;\r\n new <K, V>(): WeakMap<K, V>;\r\n prototype: WeakMap<any, any>;\r\n }\r\n\r\n interface Set<T> {\r\n add(value: T): Set<T>;\r\n clear(): void;\r\n delete(value: T): boolean;\r\n forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;\r\n has(value: T): boolean;\r\n size: number;\r\n }\r\n\r\n interface SetConstructor {\r\n new (): Set<any>;\r\n new <T>(): Set<T>;\r\n prototype: Set<any>;\r\n }\r\n\r\n\r\n declare var Set: SetConstructor;\r\n declare var WeakMap: WeakMapConstructor;\r\n declare var Map:MapConstructor;\r\n declare var global: any;\r\n declare var WorkerGlobalScope: any;\r\n declare var module: any;\r\n declare var crypto: Crypto;\r\n declare var msCrypto: Crypto;\r\n declare var require: Function;\r\n\r\n // Load global or shim versions of Map, Set, and WeakMap\r\n const functionPrototype = Object.getPrototypeOf(Function);\r\n const _Map: typeof Map = typeof Map === \"function\" ? Map : CreateMapPolyfill();\r\n const _Set: typeof Set = typeof Set === \"function\" ? Set : CreateSetPolyfill();\r\n const _WeakMap: typeof WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\r\n \r\n // [[Metadata]] internal slot\r\n const __Metadata__ = new _WeakMap<Object, Map<string | symbol, Map<any, any>>>();\r\n\r\n /**\r\n * Applies a set of decorators to a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @returns The result of applying the provided decorators.\r\n * @remarks Decorators are applied in reverse order of their positions in the array.\r\n * @example\r\n *\r\n * class C { }\r\n *\r\n * // constructor\r\n * C = Reflect.decorate(decoratorsArray, C);\r\n *\r\n */\r\n export function decorate(decorators: ClassDecorator[], target: Function): Function;\r\n\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 The property key to decorate.\r\n * @param descriptor A property descriptor \r\n * @remarks Decorators are applied in reverse order.\r\n * @example\r\n *\r\n * class C {\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 * static staticMethod() { }\r\n * method() { }\r\n * }\r\n *\r\n * // property (on constructor)\r\n * Reflect.decorate(decoratorsArray, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.decorate(decoratorsArray, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Object.defineProperty(C, \"staticMethod\", \r\n * Reflect.decorate(decoratorsArray, C, \"staticMethod\", \r\n * Object.getOwnPropertyDescriptor(C, \"staticMethod\")));\r\n *\r\n * // method (on prototype)\r\n * Object.defineProperty(C.prototype, \"method\", \r\n * Reflect.decorate(decoratorsArray, C.prototype, \"method\", \r\n * Object.getOwnPropertyDescriptor(C.prototype, \"method\")));\r\n *\r\n */\r\n export function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, targetKey: string | symbol, descriptor?: PropertyDescriptor): PropertyDescriptor;\r\n\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 C {\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 * C = Reflect.decorate(decoratorsArray, C);\r\n *\r\n * // property (on constructor)\r\n * Reflect.decorate(decoratorsArray, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.decorate(decoratorsArray, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Object.defineProperty(C, \"staticMethod\", \r\n * Reflect.decorate(decoratorsArray, C, \"staticMethod\", \r\n * Object.getOwnPropertyDescriptor(C, \"staticMethod\")));\r\n *\r\n * // method (on prototype)\r\n * Object.defineProperty(C.prototype, \"method\", \r\n * Reflect.decorate(decoratorsArray, C.prototype, \"method\", \r\n * Object.getOwnPropertyDescriptor(C.prototype, \"method\")));\r\n *\r\n */\r\n export function decorate(decorators: (ClassDecorator | MethodDecorator | PropertyDecorator)[], target: Object, targetKey?: string | symbol, targetDescriptor?: PropertyDescriptor): any {\r\n if (!IsUndefined(targetDescriptor)) {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (IsUndefined(targetKey)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(targetDescriptor)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n return DecoratePropertyWithDescriptor(<MethodDecorator[]>decorators, target, targetKey, targetDescriptor);\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n return DecoratePropertyWithoutDescriptor(<PropertyDecorator[]>decorators, target, targetKey);\r\n }\r\n else {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsConstructor(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n return DecorateConstructor(<ClassDecorator[]>decorators, <Function>target);\r\n }\r\n }\r\n\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 C {\r\n * }\r\n *\r\n * // property (on constructor, TypeScript only)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * static staticProperty;\r\n * }\r\n *\r\n * // property (on prototype, TypeScript only)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * property;\r\n * }\r\n *\r\n * // method (on constructor)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * static staticMethod() { }\r\n * }\r\n *\r\n * // method (on prototype)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * method() { }\r\n * }\r\n *\r\n */\r\n export function metadata(metadataKey: any, metadataValue: any) {\r\n function decorator(target: Function): void;\r\n function decorator(target: Object, targetKey: string | symbol): void;\r\n function decorator(target: Object, targetKey?: string | symbol): void {\r\n if (!IsUndefined(targetKey)) {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n\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 }\r\n\r\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);\r\n }\r\n }\r\n\r\n return decorator;\r\n }\r\n \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 * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C);\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): ClassDecorator {\r\n * return target => Reflect.defineMetadata(\"custom:annotation\", options, target);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object): void;\r\n\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 The property key for the target.\r\n * @example\r\n *\r\n * class C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C.prototype, \"method\");\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): PropertyDecorator {\r\n * return (target, key) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object, targetKey: string | symbol): void;\r\n\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 C {\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, C);\r\n *\r\n * // property (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C.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 export function defineMetadata(metadataKey: any, metadataValue: any, target: Object, targetKey?: string | symbol): void {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);\r\n }\r\n \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 * @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 C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object): boolean;\r\n\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 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 C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\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 C {\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\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryHasMetadata(metadataKey, target, targetKey);\r\n }\r\n\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 * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object): boolean;\r\n\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 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 C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\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 C {\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\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n\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 * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object): any;\r\n\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 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 C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any;\r\n\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 C {\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\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): any {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryGetMetadata(metadataKey, target, targetKey);\r\n }\r\n\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 * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object): any;\r\n\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 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 C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any;\r\n\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 C {\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\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): any {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n\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 * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadataKeys(C);\r\n *\r\n */\r\n export function getMetadataKeys(target: Object): any[];\r\n\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 The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadataKeys(target: Object, targetKey: string | symbol): any[];\r\n\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 C {\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(C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadataKeys(target: Object, targetKey?: string | symbol): any[] {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryMetadataKeys(target, targetKey);\r\n }\r\n\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 * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadataKeys(C);\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object): any[];\r\n\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 The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object, targetKey: string | symbol): any[];\r\n\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 C {\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(C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object, targetKey?: string | symbol): any[] {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryOwnMetadataKeys(target, targetKey);\r\n }\r\n\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 * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object): boolean;\r\n\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 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 C {\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 * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\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 C {\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\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-\r\n let metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);\r\n if (IsUndefined(metadataMap)) {\r\n return false;\r\n }\r\n\r\n if (!metadataMap.delete(metadataKey)) {\r\n return false;\r\n }\r\n\r\n if (metadataMap.size > 0) {\r\n return true;\r\n }\r\n\r\n let targetMetadata = __Metadata__.get(target);\r\n targetMetadata.delete(targetKey);\r\n if (targetMetadata.size > 0) {\r\n return true;\r\n }\r\n\r\n __Metadata__.delete(target);\r\n return true;\r\n }\r\n\r\n function DecorateConstructor(decorators: ClassDecorator[], target: Function): Function {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n let decorated = decorator(target);\r\n if (!IsUndefined(decorated)) {\r\n if (!IsConstructor(decorated)) {\r\n throw new TypeError();\r\n }\r\n target = <Function>decorated;\r\n }\r\n }\r\n return target;\r\n }\r\n\r\n function DecoratePropertyWithDescriptor(decorators: MethodDecorator[], target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n let decorated = decorator(target, propertyKey, descriptor);\r\n if (!IsUndefined(decorated)) {\r\n if (!IsObject(decorated)) {\r\n throw new TypeError();\r\n }\r\n descriptor = <PropertyDescriptor>decorated;\r\n }\r\n }\r\n return descriptor;\r\n }\r\n\r\n function DecoratePropertyWithoutDescriptor(decorators: PropertyDecorator[], target: Object, propertyKey: string | symbol): void {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n decorator(target, propertyKey);\r\n }\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-\r\n function GetOrCreateMetadataMap(target: Object, targetKey: string | symbol, create: boolean): Map<any, any> {\r\n let targetMetadata = __Metadata__.get(target);\r\n if (!targetMetadata) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n targetMetadata = new _Map<string | symbol, Map<any, any>>();\r\n __Metadata__.set(target, targetMetadata);\r\n }\r\n\r\n let keyMetadata = targetMetadata.get(targetKey);\r\n if (!keyMetadata) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n keyMetadata = new _Map<any, any>();\r\n targetMetadata.set(targetKey, keyMetadata);\r\n }\r\n\r\n return keyMetadata;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-\r\n function OrdinaryHasMetadata(MetadataKey: any, O: Object, P: string | symbol): boolean {\r\n let hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn) {\r\n return true;\r\n }\r\n\r\n let parent = GetPrototypeOf(O);\r\n if (parent !== null) {\r\n return OrdinaryHasMetadata(MetadataKey, parent, P);\r\n }\r\n\r\n return false;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-\r\n function OrdinaryHasOwnMetadata(MetadataKey: any, O: Object, P: string | symbol): boolean {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (metadataMap === undefined) {\r\n return false;\r\n }\r\n\r\n return Boolean(metadataMap.has(MetadataKey));\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-\r\n function OrdinaryGetMetadata(MetadataKey: any, O: Object, P: string | symbol): any {\r\n let hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn) {\r\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\r\n }\r\n\r\n let parent = GetPrototypeOf(O);\r\n if (parent !== null) {\r\n return OrdinaryGetMetadata(MetadataKey, parent, P);\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-\r\n function OrdinaryGetOwnMetadata(MetadataKey: any, O: Object, P: string | symbol): any {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (metadataMap === undefined) {\r\n return undefined;\r\n }\r\n\r\n return metadataMap.get(MetadataKey);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-\r\n function OrdinaryDefineOwnMetadata(MetadataKey: any, MetadataValue: any, O: Object, P: string | symbol): void {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);\r\n metadataMap.set(MetadataKey, MetadataValue);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-\r\n function OrdinaryMetadataKeys(O: Object, P: string | symbol): any[] {\r\n let ownKeys = OrdinaryOwnMetadataKeys(O, P);\r\n let parent = GetPrototypeOf(O);\r\n if (parent === null) {\r\n return ownKeys;\r\n }\r\n\r\n let parentKeys = OrdinaryMetadataKeys(parent, P);\r\n if (parentKeys.length <= 0) {\r\n return ownKeys;\r\n }\r\n if (ownKeys.length <= 0) {\r\n return parentKeys;\r\n }\r\n\r\n let set = new _Set<any>();\r\n let keys: any[] = [];\r\n\r\n for (let key of ownKeys) {\r\n let hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n\r\n for (let key of parentKeys) {\r\n let hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n\r\n return keys;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-\r\n function OrdinaryOwnMetadataKeys(target: Object, targetKey: string | symbol): any[] {\r\n let metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);\r\n let keys: any[] = [];\r\n if (metadataMap) {\r\n metadataMap.forEach((_, key) => keys.push(key));\r\n }\r\n\r\n return keys;\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type\r\n function IsUndefined(x: any): boolean {\r\n return x === undefined;\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray\r\n function IsArray(x: any): boolean {\r\n return Array.isArray(x);\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type\r\n function IsObject(x: any): boolean {\r\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor\r\n function IsConstructor(x: any): boolean {\r\n return typeof x === \"function\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type\r\n function IsSymbol(x: any): boolean {\r\n return typeof x === \"symbol\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey\r\n function ToPropertyKey(value: any): string | symbol {\r\n if (IsSymbol(value)) {\r\n return <symbol>value;\r\n }\r\n return String(value);\r\n }\r\n\r\n function GetPrototypeOf(O: any): Object {\r\n let proto = Object.getPrototypeOf(O);\r\n if (typeof O !== \"function\" || O === functionPrototype) {\r\n return proto;\r\n }\r\n\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\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 }\r\n\r\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\r\n let prototype = O.prototype;\r\n let prototypeProto = Object.getPrototypeOf(prototype);\r\n if (prototypeProto == null || prototypeProto === Object.prototype) {\r\n return proto;\r\n }\r\n\r\n // if the constructor was not a function, then we cannot determine the heritage.\r\n let constructor = prototypeProto.constructor;\r\n if (typeof constructor !== \"function\") {\r\n return proto;\r\n }\r\n\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 }\r\n\r\n // we have a pretty good guess at the heritage.\r\n return constructor;\r\n }\r\n\r\n // naive Map shim\r\n function CreateMapPolyfill() {\r\n const cacheSentinel = {};\r\n function Map() {\r\n this._keys = [];\r\n this._values = [];\r\n this._cache = cacheSentinel;\r\n }\r\n Map.prototype = {\r\n get size() {\r\n return this._keys.length;\r\n },\r\n has(key: any): boolean {\r\n if (key === this._cache) {\r\n return true;\r\n }\r\n if (this._find(key) >= 0) {\r\n this._cache = key;\r\n return true;\r\n }\r\n return false;\r\n },\r\n get(key: any): any {\r\n let index = this._find(key);\r\n if (index >= 0) {\r\n this._cache = key;\r\n return this._values[index];\r\n }\r\n return undefined;\r\n },\r\n set(key: any, value: any): Map<any, any> {\r\n this.delete(key);\r\n this._keys.push(key);\r\n this._values.push(value);\r\n this._cache = key;\r\n return this;\r\n },\r\n delete(key: any): boolean {\r\n let index = this._find(key);\r\n if (index >= 0) {\r\n this._keys.splice(index, 1);\r\n this._values.splice(index, 1);\r\n this._cache = cacheSentinel;\r\n return true;\r\n }\r\n return false;\r\n },\r\n clear(): void {\r\n this._keys.length = 0;\r\n this._values.length = 0;\r\n this._cache = cacheSentinel;\r\n },\r\n forEach(callback: (value: any, key: any, map: Map<any, any>) => void, thisArg?: any): void {\r\n let size = this.size;\r\n for (let i = 0; i < size; ++i) {\r\n let key = this._keys[i];\r\n let value = this._values[i];\r\n this._cache = key;\r\n callback.call(this, value, key, this);\r\n }\r\n },\r\n _find(key: any): number {\r\n const keys = this._keys;\r\n const size = keys.length;\r\n for (let i = 0; i < size; ++i) {\r\n if (keys[i] === key) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n };\r\n return <any>Map;\r\n }\r\n\r\n // naive Set shim\r\n function CreateSetPolyfill() {\r\n const cacheSentinel = {};\r\n function Set() {\r\n this._map = new _Map<any, any>();\r\n }\r\n Set.prototype = {\r\n get size() {\r\n return this._map.length;\r\n },\r\n has(value: any): boolean {\r\n return this._map.has(value);\r\n },\r\n add(value: any): Set<any> {\r\n this._map.set(value, value);\r\n return this;\r\n },\r\n delete(value: any): boolean {\r\n return this._map.delete(value);\r\n },\r\n clear(): void {\r\n this._map.clear();\r\n },\r\n forEach(callback: (value: any, key: any, set: Set<any>) => void, thisArg?: any): void {\r\n this._map.forEach(callback, thisArg);\r\n }\r\n };\r\n return <any>Set;\r\n }\r\n\r\n // naive WeakMap shim\r\n function CreateWeakMapPolyfill() {\r\n const UUID_SIZE = 16;\r\n const isNode = typeof global !== \"undefined\" && Object.prototype.toString.call(global.process) === '[object process]';\r\n const nodeCrypto = isNode && require(\"crypto\");\r\n const hasOwn = Object.prototype.hasOwnProperty;\r\n const keys: { [key: string]: boolean; } = {};\r\n const rootKey = CreateUniqueKey();\r\n\r\n function WeakMap() {\r\n this._key = CreateUniqueKey();\r\n }\r\n WeakMap.prototype = {\r\n has(target: Object): boolean {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table) {\r\n return this._key in table;\r\n }\r\n return false;\r\n },\r\n get(target: Object): any {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table) {\r\n return table[this._key];\r\n }\r\n return undefined;\r\n },\r\n set(target: Object, value: any): WeakMap<any, any> {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ true);\r\n table[this._key] = value;\r\n return this;\r\n },\r\n delete(target: Object): boolean {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table && this._key in table) {\r\n return delete table[this._key];\r\n }\r\n return false;\r\n },\r\n clear(): void {\r\n // NOTE: not a real clear, just makes the previous data unreachable\r\n this._key = CreateUniqueKey();\r\n }\r\n }\r\n\r\n function FillRandomBytes(buffer: BufferLike, size: number): void {\r\n for (var i = 0; i < size; ++i) {\r\n buffer[i] = Math.random() * 255 | 0;\r\n }\r\n }\r\n\r\n function GenRandomBytes(size: number): BufferLike {\r\n if (nodeCrypto) {\r\n let data = nodeCrypto.randomBytes(size);\r\n return data;\r\n }\r\n else if (typeof Uint8Array === \"function\") {\r\n let data = new Uint8Array(size);\r\n if (typeof crypto !== \"undefined\") {\r\n crypto.getRandomValues(<Uint8Array>data);\r\n }\r\n else if (typeof msCrypto !== \"undefined\") {\r\n msCrypto.getRandomValues(<Uint8Array>data);\r\n }\r\n else {\r\n FillRandomBytes(data, size);\r\n }\r\n return data;\r\n }\r\n else {\r\n let data = new Array(size);\r\n FillRandomBytes(data, size);\r\n return data;\r\n }\r\n }\r\n\r\n function CreateUUID() {\r\n let data = GenRandomBytes(UUID_SIZE);\r\n\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\r\n let result = \"\";\r\n for (let offset = 0; offset < UUID_SIZE; ++offset) {\r\n let byte = data[offset];\r\n if (offset === 4 || offset === 6 || offset === 8) {\r\n result += \"-\";\r\n }\r\n if (byte < 16) {\r\n result += \"0\";\r\n }\r\n result += byte.toString(16).toLowerCase();\r\n }\r\n\r\n return result;\r\n }\r\n\r\n function CreateUniqueKey(): string {\r\n let key: string;\r\n do {\r\n key = \"@@WeakMap@@\" + CreateUUID();\r\n }\r\n while (hasOwn.call(keys, key));\r\n keys[key] = true;\r\n return key;\r\n }\r\n\r\n function GetOrCreateWeakMapTable(target: Object, create: boolean): { [key: string]: any; } {\r\n if (!hasOwn.call(target, rootKey)) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n Object.defineProperty(target, rootKey, { value: Object.create(null) });\r\n }\r\n return (<any>target)[rootKey];\r\n }\r\n\r\n return <any>WeakMap;\r\n }\r\n\r\n interface BufferLike {\r\n [offset: number]: number;\r\n length: number;\r\n }\r\n\r\n\r\n // hook global Reflect\r\n (function(__global: any) {\r\n if (typeof __global.Reflect !== \"undefined\") {\r\n if (__global.Reflect !== Reflect) {\r\n for (var p in Reflect) {\r\n __global.Reflect[p] = (<any>Reflect)[p];\r\n }\r\n }\r\n }\r\n else {\r\n __global.Reflect = Reflect;\r\n }\r\n })(\r\n typeof window !== \"undefined\" ? window :\r\n typeof WorkerGlobalScope !== \"undefined\" ? self :\r\n typeof global !== \"undefined\" ? global :\r\n Function(\"return this;\")());\r\n}","(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){\n(function (global){\n\"use strict\";\n\n_dereq_(189);\n\n_dereq_(2);\n\nif (global._babelPolyfill) {\n throw new Error(\"only one instance of babel-polyfill is allowed\");\n}\nglobal._babelPolyfill = true;\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"189\":189,\"2\":2}],2:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(190);\n},{\"190\":190}],3:[function(_dereq_,module,exports){\nmodule.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n},{}],4:[function(_dereq_,module,exports){\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = _dereq_(84)('unscopables')\n , ArrayProto = Array.prototype;\nif(ArrayProto[UNSCOPABLES] == undefined)_dereq_(32)(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function(key){\n ArrayProto[UNSCOPABLES][key] = true;\n};\n},{\"32\":32,\"84\":84}],5:[function(_dereq_,module,exports){\nvar isObject = _dereq_(39);\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n},{\"39\":39}],6:[function(_dereq_,module,exports){\n// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\n'use strict';\nvar toObject = _dereq_(81)\n , toIndex = _dereq_(77)\n , toLength = _dereq_(80);\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 , $$ = arguments\n , end = $$.length > 2 ? $$[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},{\"77\":77,\"80\":80,\"81\":81}],7:[function(_dereq_,module,exports){\n// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\n'use strict';\nvar toObject = _dereq_(81)\n , toIndex = _dereq_(77)\n , toLength = _dereq_(80);\nmodule.exports = [].fill || function fill(value /*, start = 0, end = @length */){\n var O = toObject(this)\n , length = toLength(O.length)\n , $$ = arguments\n , $$len = $$.length\n , index = toIndex($$len > 1 ? $$[1] : undefined, length)\n , end = $$len > 2 ? $$[2] : undefined\n , endPos = end === undefined ? length : toIndex(end, length);\n while(endPos > index)O[index++] = value;\n return O;\n};\n},{\"77\":77,\"80\":80,\"81\":81}],8:[function(_dereq_,module,exports){\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = _dereq_(79)\n , toLength = _dereq_(80)\n , toIndex = _dereq_(77);\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;\n } return !IS_INCLUDES && -1;\n };\n};\n},{\"77\":77,\"79\":79,\"80\":80}],9:[function(_dereq_,module,exports){\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 = _dereq_(18)\n , IObject = _dereq_(35)\n , toObject = _dereq_(81)\n , toLength = _dereq_(80)\n , asc = _dereq_(10);\nmodule.exports = function(TYPE){\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 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 ? asc($this, length) : IS_FILTER ? asc($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},{\"10\":10,\"18\":18,\"35\":35,\"80\":80,\"81\":81}],10:[function(_dereq_,module,exports){\n// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar isObject = _dereq_(39)\n , isArray = _dereq_(37)\n , SPECIES = _dereq_(84)('species');\nmodule.exports = function(original, length){\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 new (C === undefined ? Array : C)(length);\n};\n},{\"37\":37,\"39\":39,\"84\":84}],11:[function(_dereq_,module,exports){\n// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = _dereq_(12)\n , TAG = _dereq_(84)('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (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},{\"12\":12,\"84\":84}],12:[function(_dereq_,module,exports){\nvar toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n},{}],13:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , hide = _dereq_(32)\n , redefineAll = _dereq_(61)\n , ctx = _dereq_(18)\n , strictNew = _dereq_(70)\n , defined = _dereq_(19)\n , forOf = _dereq_(28)\n , $iterDefine = _dereq_(43)\n , step = _dereq_(45)\n , ID = _dereq_(83)('id')\n , $has = _dereq_(31)\n , isObject = _dereq_(39)\n , setSpecies = _dereq_(66)\n , DESCRIPTORS = _dereq_(20)\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\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, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\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 strictNew(that, C, NAME);\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 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)$.setDesc(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},{\"18\":18,\"19\":19,\"20\":20,\"28\":28,\"31\":31,\"32\":32,\"39\":39,\"43\":43,\"45\":45,\"47\":47,\"61\":61,\"66\":66,\"70\":70,\"83\":83}],14:[function(_dereq_,module,exports){\n// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = _dereq_(28)\n , classof = _dereq_(11);\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n},{\"11\":11,\"28\":28}],15:[function(_dereq_,module,exports){\n'use strict';\nvar hide = _dereq_(32)\n , redefineAll = _dereq_(61)\n , anObject = _dereq_(5)\n , isObject = _dereq_(39)\n , strictNew = _dereq_(70)\n , forOf = _dereq_(28)\n , createArrayMethod = _dereq_(9)\n , $has = _dereq_(31)\n , WEAK = _dereq_(83)('weak')\n , isExtensible = Object.isExtensible || isObject\n , arrayFind = createArrayMethod(5)\n , arrayFindIndex = createArrayMethod(6)\n , id = 0;\n\n// fallback for frozen keys\nvar frozenStore = function(that){\n return that._l || (that._l = new FrozenStore);\n};\nvar FrozenStore = function(){\n this.a = [];\n};\nvar findFrozen = function(store, key){\n return arrayFind(store.a, function(it){\n return it[0] === key;\n });\n};\nFrozenStore.prototype = {\n get: function(key){\n var entry = findFrozen(this, key);\n if(entry)return entry[1];\n },\n has: function(key){\n return !!findFrozen(this, key);\n },\n set: function(key, value){\n var entry = findFrozen(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 strictNew(that, C, NAME);\n that._i = id++; // collection id\n that._l = undefined; // leak store for 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 if(!isExtensible(key))return frozenStore(this)['delete'](key);\n return $has(key, WEAK) && $has(key[WEAK], this._i) && delete key[WEAK][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 if(!isExtensible(key))return frozenStore(this).has(key);\n return $has(key, WEAK) && $has(key[WEAK], this._i);\n }\n });\n return C;\n },\n def: function(that, key, value){\n if(!isExtensible(anObject(key))){\n frozenStore(that).set(key, value);\n } else {\n $has(key, WEAK) || hide(key, WEAK, {});\n key[WEAK][that._i] = value;\n } return that;\n },\n frozenStore: frozenStore,\n WEAK: WEAK\n};\n},{\"28\":28,\"31\":31,\"32\":32,\"39\":39,\"5\":5,\"61\":61,\"70\":70,\"83\":83,\"9\":9}],16:[function(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(30)\n , $export = _dereq_(23)\n , redefine = _dereq_(62)\n , redefineAll = _dereq_(61)\n , forOf = _dereq_(28)\n , strictNew = _dereq_(70)\n , isObject = _dereq_(39)\n , fails = _dereq_(25)\n , $iterDetect = _dereq_(44)\n , setToStringTag = _dereq_(67);\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 } 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;\n if(!ACCEPT_ITERABLES){ \n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n var that = new Base;\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 IS_WEAK || instance.forEach(function(val, key){\n BUGGY_ZERO = 1 / key === -Infinity;\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},{\"23\":23,\"25\":25,\"28\":28,\"30\":30,\"39\":39,\"44\":44,\"61\":61,\"62\":62,\"67\":67,\"70\":70}],17:[function(_dereq_,module,exports){\nvar core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n},{}],18:[function(_dereq_,module,exports){\n// optional / simple context binding\nvar aFunction = _dereq_(3);\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},{\"3\":3}],19:[function(_dereq_,module,exports){\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},{}],20:[function(_dereq_,module,exports){\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !_dereq_(25)(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n},{\"25\":25}],21:[function(_dereq_,module,exports){\nvar isObject = _dereq_(39)\n , document = _dereq_(30).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},{\"30\":30,\"39\":39}],22:[function(_dereq_,module,exports){\n// all enumerable object keys, includes symbols\nvar $ = _dereq_(47);\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n},{\"47\":47}],23:[function(_dereq_,module,exports){\nvar global = _dereq_(30)\n , core = _dereq_(17)\n , hide = _dereq_(32)\n , redefine = _dereq_(62)\n , ctx = _dereq_(18)\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 && key in target;\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 && !own)redefine(target, key, out);\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\nmodule.exports = $export;\n},{\"17\":17,\"18\":18,\"30\":30,\"32\":32,\"62\":62}],24:[function(_dereq_,module,exports){\nvar MATCH = _dereq_(84)('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},{\"84\":84}],25:[function(_dereq_,module,exports){\nmodule.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n},{}],26:[function(_dereq_,module,exports){\n'use strict';\nvar hide = _dereq_(32)\n , redefine = _dereq_(62)\n , fails = _dereq_(25)\n , defined = _dereq_(19)\n , wks = _dereq_(84);\n\nmodule.exports = function(KEY, length, exec){\n var SYMBOL = wks(KEY)\n , original = ''[KEY];\n if(fails(function(){\n var O = {};\n O[SYMBOL] = function(){ return 7; };\n return ''[KEY](O) != 7;\n })){\n redefine(String.prototype, KEY, exec(defined, SYMBOL, original));\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 original.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 original.call(string, this); }\n );\n }\n};\n},{\"19\":19,\"25\":25,\"32\":32,\"62\":62,\"84\":84}],27:[function(_dereq_,module,exports){\n'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = _dereq_(5);\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},{\"5\":5}],28:[function(_dereq_,module,exports){\nvar ctx = _dereq_(18)\n , call = _dereq_(41)\n , isArrayIter = _dereq_(36)\n , anObject = _dereq_(5)\n , toLength = _dereq_(80)\n , getIterFn = _dereq_(85);\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\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 entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n},{\"18\":18,\"36\":36,\"41\":41,\"5\":5,\"80\":80,\"85\":85}],29:[function(_dereq_,module,exports){\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = _dereq_(79)\n , getNames = _dereq_(47).getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n},{\"47\":47,\"79\":79}],30:[function(_dereq_,module,exports){\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},{}],31:[function(_dereq_,module,exports){\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n},{}],32:[function(_dereq_,module,exports){\nvar $ = _dereq_(47)\n , createDesc = _dereq_(60);\nmodule.exports = _dereq_(20) ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n},{\"20\":20,\"47\":47,\"60\":60}],33:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(30).document && document.documentElement;\n},{\"30\":30}],34:[function(_dereq_,module,exports){\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},{}],35:[function(_dereq_,module,exports){\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = _dereq_(12);\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n},{\"12\":12}],36:[function(_dereq_,module,exports){\n// check on default Array iterator\nvar Iterators = _dereq_(46)\n , ITERATOR = _dereq_(84)('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n},{\"46\":46,\"84\":84}],37:[function(_dereq_,module,exports){\n// 7.2.2 IsArray(argument)\nvar cof = _dereq_(12);\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n},{\"12\":12}],38:[function(_dereq_,module,exports){\n// 20.1.2.3 Number.isInteger(number)\nvar isObject = _dereq_(39)\n , floor = Math.floor;\nmodule.exports = function isInteger(it){\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n},{\"39\":39}],39:[function(_dereq_,module,exports){\nmodule.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n},{}],40:[function(_dereq_,module,exports){\n// 7.2.8 IsRegExp(argument)\nvar isObject = _dereq_(39)\n , cof = _dereq_(12)\n , MATCH = _dereq_(84)('match');\nmodule.exports = function(it){\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n},{\"12\":12,\"39\":39,\"84\":84}],41:[function(_dereq_,module,exports){\n// call something on iterator step with safe closing on error\nvar anObject = _dereq_(5);\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},{\"5\":5}],42:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , descriptor = _dereq_(60)\n , setToStringTag = _dereq_(67)\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n_dereq_(32)(IteratorPrototype, _dereq_(84)('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},{\"32\":32,\"47\":47,\"60\":60,\"67\":67,\"84\":84}],43:[function(_dereq_,module,exports){\n'use strict';\nvar LIBRARY = _dereq_(49)\n , $export = _dereq_(23)\n , redefine = _dereq_(62)\n , hide = _dereq_(32)\n , has = _dereq_(31)\n , Iterators = _dereq_(46)\n , $iterCreate = _dereq_(42)\n , setToStringTag = _dereq_(67)\n , getProto = _dereq_(47).getProto\n , ITERATOR = _dereq_(84)('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 , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\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: !DEF_VALUES ? $default : getMethod('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},{\"23\":23,\"31\":31,\"32\":32,\"42\":42,\"46\":46,\"47\":47,\"49\":49,\"62\":62,\"67\":67,\"84\":84}],44:[function(_dereq_,module,exports){\nvar ITERATOR = _dereq_(84)('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(){ safe = true; };\n arr[ITERATOR] = function(){ return iter; };\n exec(arr);\n } catch(e){ /* empty */ }\n return safe;\n};\n},{\"84\":84}],45:[function(_dereq_,module,exports){\nmodule.exports = function(done, value){\n return {value: value, done: !!done};\n};\n},{}],46:[function(_dereq_,module,exports){\nmodule.exports = {};\n},{}],47:[function(_dereq_,module,exports){\nvar $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n},{}],48:[function(_dereq_,module,exports){\nvar $ = _dereq_(47)\n , toIObject = _dereq_(79);\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},{\"47\":47,\"79\":79}],49:[function(_dereq_,module,exports){\nmodule.exports = false;\n},{}],50:[function(_dereq_,module,exports){\n// 20.2.2.14 Math.expm1(x)\nmodule.exports = Math.expm1 || function expm1(x){\n return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;\n};\n},{}],51:[function(_dereq_,module,exports){\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},{}],52:[function(_dereq_,module,exports){\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},{}],53:[function(_dereq_,module,exports){\nvar global = _dereq_(30)\n , macrotask = _dereq_(76).set\n , Observer = global.MutationObserver || global.WebKitMutationObserver\n , process = global.process\n , Promise = global.Promise\n , isNode = _dereq_(12)(process) == 'process'\n , head, last, notify;\n\nvar flush = function(){\n var parent, domain, fn;\n if(isNode && (parent = process.domain)){\n process.domain = null;\n parent.exit();\n }\n while(head){\n domain = head.domain;\n fn = head.fn;\n if(domain)domain.enter();\n fn(); // <- currently we use it only for Promise - try / catch not required\n if(domain)domain.exit();\n head = head.next;\n } last = undefined;\n if(parent)parent.enter();\n};\n\n// Node.js\nif(isNode){\n notify = function(){\n process.nextTick(flush);\n };\n// browsers with MutationObserver\n} else if(Observer){\n var toggle = 1\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 notify = function(){\n Promise.resolve().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\nmodule.exports = function asap(fn){\n var task = {fn: fn, next: undefined, domain: isNode && process.domain};\n if(last)last.next = task;\n if(!head){\n head = task;\n notify();\n } last = task;\n};\n},{\"12\":12,\"30\":30,\"76\":76}],54:[function(_dereq_,module,exports){\n// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = _dereq_(47)\n , toObject = _dereq_(81)\n , IObject = _dereq_(35);\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = _dereq_(25)(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[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 }\n return T;\n} : Object.assign;\n},{\"25\":25,\"35\":35,\"47\":47,\"81\":81}],55:[function(_dereq_,module,exports){\n// most Object methods by ES6 should accept primitives\nvar $export = _dereq_(23)\n , core = _dereq_(17)\n , fails = _dereq_(25);\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},{\"17\":17,\"23\":23,\"25\":25}],56:[function(_dereq_,module,exports){\nvar $ = _dereq_(47)\n , toIObject = _dereq_(79)\n , isEnum = $.isEnum;\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},{\"47\":47,\"79\":79}],57:[function(_dereq_,module,exports){\n// all object keys, includes non-enumerable and symbols\nvar $ = _dereq_(47)\n , anObject = _dereq_(5)\n , Reflect = _dereq_(30).Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it){\n var keys = $.getNames(anObject(it))\n , getSymbols = $.getSymbols;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n},{\"30\":30,\"47\":47,\"5\":5}],58:[function(_dereq_,module,exports){\n'use strict';\nvar path = _dereq_(59)\n , invoke = _dereq_(34)\n , aFunction = _dereq_(3);\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 , $$ = arguments\n , $$len = $$.length\n , j = 0, k = 0, args;\n if(!holder && !$$len)return invoke(fn, pargs, that);\n args = pargs.slice();\n if(holder)for(;length > j; j++)if(args[j] === _)args[j] = $$[k++];\n while($$len > k)args.push($$[k++]);\n return invoke(fn, args, that);\n };\n};\n},{\"3\":3,\"34\":34,\"59\":59}],59:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(30);\n},{\"30\":30}],60:[function(_dereq_,module,exports){\nmodule.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};\n},{}],61:[function(_dereq_,module,exports){\nvar redefine = _dereq_(62);\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n},{\"62\":62}],62:[function(_dereq_,module,exports){\n// add fake Function#toString\n// for correct work wrapped methods / constructors with methods like LoDash isNative\nvar global = _dereq_(30)\n , hide = _dereq_(32)\n , SRC = _dereq_(83)('src')\n , TO_STRING = 'toString'\n , $toString = Function[TO_STRING]\n , TPL = ('' + $toString).split(TO_STRING);\n\n_dereq_(17).inspectSource = function(it){\n return $toString.call(it);\n};\n\n(module.exports = function(O, key, val, safe){\n if(typeof val == 'function'){\n val.hasOwnProperty(SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n val.hasOwnProperty('name') || hide(val, 'name', key);\n }\n if(O === global){\n O[key] = val;\n } else {\n if(!safe)delete O[key];\n hide(O, key, val);\n }\n})(Function.prototype, TO_STRING, function toString(){\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n},{\"17\":17,\"30\":30,\"32\":32,\"83\":83}],63:[function(_dereq_,module,exports){\nmodule.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},{}],64:[function(_dereq_,module,exports){\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},{}],65:[function(_dereq_,module,exports){\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = _dereq_(47).getDesc\n , isObject = _dereq_(39)\n , anObject = _dereq_(5);\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 = _dereq_(18)(Function.call, getDesc(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},{\"18\":18,\"39\":39,\"47\":47,\"5\":5}],66:[function(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(30)\n , $ = _dereq_(47)\n , DESCRIPTORS = _dereq_(20)\n , SPECIES = _dereq_(84)('species');\n\nmodule.exports = function(KEY){\n var C = global[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n},{\"20\":20,\"30\":30,\"47\":47,\"84\":84}],67:[function(_dereq_,module,exports){\nvar def = _dereq_(47).setDesc\n , has = _dereq_(31)\n , TAG = _dereq_(84)('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},{\"31\":31,\"47\":47,\"84\":84}],68:[function(_dereq_,module,exports){\nvar global = _dereq_(30)\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n},{\"30\":30}],69:[function(_dereq_,module,exports){\n// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = _dereq_(5)\n , aFunction = _dereq_(3)\n , SPECIES = _dereq_(84)('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},{\"3\":3,\"5\":5,\"84\":84}],70:[function(_dereq_,module,exports){\nmodule.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n},{}],71:[function(_dereq_,module,exports){\nvar toInteger = _dereq_(78)\n , defined = _dereq_(19);\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},{\"19\":19,\"78\":78}],72:[function(_dereq_,module,exports){\n// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = _dereq_(40)\n , defined = _dereq_(19);\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},{\"19\":19,\"40\":40}],73:[function(_dereq_,module,exports){\n// https://github.com/ljharb/proposal-string-pad-left-right\nvar toLength = _dereq_(80)\n , repeat = _dereq_(74)\n , defined = _dereq_(19);\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)return S;\n if(fillStr == '')fillStr = ' ';\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},{\"19\":19,\"74\":74,\"80\":80}],74:[function(_dereq_,module,exports){\n'use strict';\nvar toInteger = _dereq_(78)\n , defined = _dereq_(19);\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},{\"19\":19,\"78\":78}],75:[function(_dereq_,module,exports){\nvar $export = _dereq_(23)\n , defined = _dereq_(19)\n , fails = _dereq_(25)\n , spaces = '\\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 , space = '[' + spaces + ']'\n , non = '\\u200b\\u0085'\n , ltrim = RegExp('^' + space + space + '*')\n , rtrim = RegExp(space + space + '*$');\n\nvar exporter = function(KEY, exec){\n var exp = {};\n exp[KEY] = exec(trim);\n $export($export.P + $export.F * fails(function(){\n return !!spaces[KEY]() || non[KEY]() != non;\n }), '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},{\"19\":19,\"23\":23,\"25\":25}],76:[function(_dereq_,module,exports){\nvar ctx = _dereq_(18)\n , invoke = _dereq_(34)\n , html = _dereq_(33)\n , cel = _dereq_(21)\n , global = _dereq_(30)\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 listner = 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(_dereq_(12)(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 = listner;\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', listner, 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},{\"12\":12,\"18\":18,\"21\":21,\"30\":30,\"33\":33,\"34\":34}],77:[function(_dereq_,module,exports){\nvar toInteger = _dereq_(78)\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},{\"78\":78}],78:[function(_dereq_,module,exports){\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},{}],79:[function(_dereq_,module,exports){\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = _dereq_(35)\n , defined = _dereq_(19);\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n},{\"19\":19,\"35\":35}],80:[function(_dereq_,module,exports){\n// 7.1.15 ToLength\nvar toInteger = _dereq_(78)\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n},{\"78\":78}],81:[function(_dereq_,module,exports){\n// 7.1.13 ToObject(argument)\nvar defined = _dereq_(19);\nmodule.exports = function(it){\n return Object(defined(it));\n};\n},{\"19\":19}],82:[function(_dereq_,module,exports){\n// 7.1.1 ToPrimitive(input [, PreferredType])\r\nvar isObject = _dereq_(39);\r\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\r\n// and the second argument - flag - preferred type is a string\r\nmodule.exports = function(it, S){\r\n if(!isObject(it))return it;\r\n var fn, val;\r\n if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\r\n if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;\r\n if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\r\n throw TypeError(\"Can't convert object to primitive value\");\r\n};\n},{\"39\":39}],83:[function(_dereq_,module,exports){\nvar id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n},{}],84:[function(_dereq_,module,exports){\nvar store = _dereq_(68)('wks')\n , uid = _dereq_(83)\n , Symbol = _dereq_(30).Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n},{\"30\":30,\"68\":68,\"83\":83}],85:[function(_dereq_,module,exports){\nvar classof = _dereq_(11)\n , ITERATOR = _dereq_(84)('iterator')\n , Iterators = _dereq_(46);\nmodule.exports = _dereq_(17).getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n},{\"11\":11,\"17\":17,\"46\":46,\"84\":84}],86:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , $export = _dereq_(23)\n , DESCRIPTORS = _dereq_(20)\n , createDesc = _dereq_(60)\n , html = _dereq_(33)\n , cel = _dereq_(21)\n , has = _dereq_(31)\n , cof = _dereq_(12)\n , invoke = _dereq_(34)\n , fails = _dereq_(25)\n , anObject = _dereq_(5)\n , aFunction = _dereq_(3)\n , isObject = _dereq_(39)\n , toObject = _dereq_(81)\n , toIObject = _dereq_(79)\n , toInteger = _dereq_(78)\n , toIndex = _dereq_(77)\n , toLength = _dereq_(80)\n , IObject = _dereq_(35)\n , IE_PROTO = _dereq_(83)('__proto__')\n , createArrayMethod = _dereq_(9)\n , arrayIndexOf = _dereq_(8)(false)\n , ObjectProto = Object.prototype\n , ArrayProto = Array.prototype\n , arraySlice = ArrayProto.slice\n , arrayJoin = ArrayProto.join\n , defineProperty = $.setDesc\n , getOwnDescriptor = $.getDesc\n , defineProperties = $.setDescs\n , factories = {}\n , IE8_DOM_DEFINE;\n\nif(!DESCRIPTORS){\n IE8_DOM_DEFINE = !fails(function(){\n return defineProperty(cel('div'), 'a', {get: function(){ return 7; }}).a != 7;\n });\n $.setDesc = function(O, P, Attributes){\n if(IE8_DOM_DEFINE)try {\n return defineProperty(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)anObject(O)[P] = Attributes.value;\n return O;\n };\n $.getDesc = function(O, P){\n if(IE8_DOM_DEFINE)try {\n return getOwnDescriptor(O, P);\n } catch(e){ /* empty */ }\n if(has(O, P))return createDesc(!ObjectProto.propertyIsEnumerable.call(O, P), O[P]);\n };\n $.setDescs = defineProperties = function(O, Properties){\n anObject(O);\n var keys = $.getKeys(Properties)\n , length = keys.length\n , i = 0\n , P;\n while(length > i)$.setDesc(O, P = keys[i++], Properties[P]);\n return O;\n };\n}\n$export($export.S + $export.F * !DESCRIPTORS, 'Object', {\n // 19.1.2.6 / 15.2.3.3 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $.getDesc,\n // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n defineProperty: $.setDesc,\n // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n defineProperties: defineProperties\n});\n\n // IE 8- don't enum bug keys\nvar keys1 = ('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,' +\n 'toLocaleString,toString,valueOf').split(',')\n // Additional keys for getOwnPropertyNames\n , keys2 = keys1.concat('length', 'prototype')\n , keysLen1 = keys1.length;\n\n// Create object with `null` prototype: use iframe Object with cleared prototype\nvar createDict = function(){\n // Thrash, waste and sodomy: IE GC bug\n var iframe = cel('iframe')\n , i = keysLen1\n , gt = '>'\n , iframeDocument;\n iframe.style.display = 'none';\n 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('<script>document.F=Object</script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while(i--)delete createDict.prototype[keys1[i]];\n return createDict();\n};\nvar createGetKeys = function(names, length){\n return function(object){\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(length > i)if(has(O, key = names[i++])){\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n };\n};\nvar Empty = function(){};\n$export($export.S, 'Object', {\n // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\n getPrototypeOf: $.getProto = $.getProto || 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 // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $.getNames = $.getNames || createGetKeys(keys2, keys2.length, true),\n // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n create: $.create = $.create || function(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 shim\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : defineProperties(result, Properties);\n },\n // 19.1.2.14 / 15.2.3.14 Object.keys(O)\n keys: $.getKeys = $.getKeys || createGetKeys(keys1, keysLen1, false)\n});\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 }\n return factories[len](F, args);\n};\n\n// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\n$export($export.P, 'Function', {\n 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// fallback for not array-like ES3 strings and DOM objects\n$export($export.P + $export.F * fails(function(){\n if(html)arraySlice.call(html);\n}), 'Array', {\n slice: function(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$export($export.P + $export.F * (IObject != Object), 'Array', {\n join: function join(separator){\n return arrayJoin.call(IObject(this), separator === undefined ? ',' : separator);\n }\n});\n\n// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\n$export($export.S, 'Array', {isArray: _dereq_(37)});\n\nvar createArrayReduce = function(isRight){\n return function(callbackfn, memo){\n aFunction(callbackfn);\n var O = IObject(this)\n , length = toLength(O.length)\n , index = isRight ? length - 1 : 0\n , i = isRight ? -1 : 1;\n if(arguments.length < 2)for(;;){\n if(index in O){\n memo = O[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 O){\n memo = callbackfn(memo, O[index], index, this);\n }\n return memo;\n };\n};\n\nvar methodize = function($fn){\n return function(arg1/*, arg2 = undefined */){\n return $fn(this, arg1, arguments[1]);\n };\n};\n\n$export($export.P, 'Array', {\n // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])\n forEach: $.each = $.each || methodize(createArrayMethod(0)),\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: methodize(createArrayMethod(1)),\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: methodize(createArrayMethod(2)),\n // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])\n some: methodize(createArrayMethod(3)),\n // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])\n every: methodize(createArrayMethod(4)),\n // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])\n reduce: createArrayReduce(false),\n // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])\n reduceRight: createArrayReduce(true),\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: methodize(arrayIndexOf),\n // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])\n lastIndexOf: function(el, fromIndex /* = @[*-1] */){\n var O = toIObject(this)\n , length = toLength(O.length)\n , index = length - 1;\n if(arguments.length > 1)index = Math.min(index, toInteger(fromIndex));\n if(index < 0)index = toLength(length + index);\n for(;index >= 0; index--)if(index in O)if(O[index] === el)return index;\n return -1;\n }\n});\n\n// 20.3.3.1 / 15.9.4.4 Date.now()\n$export($export.S, 'Date', {now: function(){ return +new Date; }});\n\nvar lz = function(num){\n return num > 9 ? num : '0' + num;\n};\n\n// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()\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(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},{\"12\":12,\"20\":20,\"21\":21,\"23\":23,\"25\":25,\"3\":3,\"31\":31,\"33\":33,\"34\":34,\"35\":35,\"37\":37,\"39\":39,\"47\":47,\"5\":5,\"60\":60,\"77\":77,\"78\":78,\"79\":79,\"8\":8,\"80\":80,\"81\":81,\"83\":83,\"9\":9}],87:[function(_dereq_,module,exports){\n// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\nvar $export = _dereq_(23);\n\n$export($export.P, 'Array', {copyWithin: _dereq_(6)});\n\n_dereq_(4)('copyWithin');\n},{\"23\":23,\"4\":4,\"6\":6}],88:[function(_dereq_,module,exports){\n// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\nvar $export = _dereq_(23);\n\n$export($export.P, 'Array', {fill: _dereq_(7)});\n\n_dereq_(4)('fill');\n},{\"23\":23,\"4\":4,\"7\":7}],89:[function(_dereq_,module,exports){\n'use strict';\n// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)\nvar $export = _dereq_(23)\n , $find = _dereq_(9)(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});\n_dereq_(4)(KEY);\n},{\"23\":23,\"4\":4,\"9\":9}],90:[function(_dereq_,module,exports){\n'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = _dereq_(23)\n , $find = _dereq_(9)(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});\n_dereq_(4)(KEY);\n},{\"23\":23,\"4\":4,\"9\":9}],91:[function(_dereq_,module,exports){\n'use strict';\nvar ctx = _dereq_(18)\n , $export = _dereq_(23)\n , toObject = _dereq_(81)\n , call = _dereq_(41)\n , isArrayIter = _dereq_(36)\n , toLength = _dereq_(80)\n , getIterFn = _dereq_(85);\n$export($export.S + $export.F * !_dereq_(44)(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 , $$ = arguments\n , $$len = $$.length\n , mapfn = $$len > 1 ? $$[1] : undefined\n , mapping = mapfn !== undefined\n , index = 0\n , iterFn = getIterFn(O)\n , length, result, step, iterator;\n if(mapping)mapfn = ctx(mapfn, $$len > 2 ? $$[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 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 result[index] = mapping ? mapfn(O[index], index) : O[index];\n }\n }\n result.length = index;\n return result;\n }\n});\n\n},{\"18\":18,\"23\":23,\"36\":36,\"41\":41,\"44\":44,\"80\":80,\"81\":81,\"85\":85}],92:[function(_dereq_,module,exports){\n'use strict';\nvar addToUnscopables = _dereq_(4)\n , step = _dereq_(45)\n , Iterators = _dereq_(46)\n , toIObject = _dereq_(79);\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 = _dereq_(43)(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},{\"4\":4,\"43\":43,\"45\":45,\"46\":46,\"79\":79}],93:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(23);\n\n// WebKit Array.of isn't generic\n$export($export.S + $export.F * _dereq_(25)(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 , $$ = arguments\n , $$len = $$.length\n , result = new (typeof this == 'function' ? this : Array)($$len);\n while($$len > index)result[index] = $$[index++];\n result.length = $$len;\n return result;\n }\n});\n},{\"23\":23,\"25\":25}],94:[function(_dereq_,module,exports){\n_dereq_(66)('Array');\n},{\"66\":66}],95:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , isObject = _dereq_(39)\n , HAS_INSTANCE = _dereq_(84)('hasInstance')\n , FunctionProto = Function.prototype;\n// 19.2.3.6 Function.prototype[@@hasInstance](V)\nif(!(HAS_INSTANCE in FunctionProto))$.setDesc(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 = $.getProto(O))if(this.prototype === O)return true;\n return false;\n}});\n},{\"39\":39,\"47\":47,\"84\":84}],96:[function(_dereq_,module,exports){\nvar setDesc = _dereq_(47).setDesc\n , createDesc = _dereq_(60)\n , has = _dereq_(31)\n , FProto = Function.prototype\n , nameRE = /^\\s*function ([^ (]*)/\n , NAME = 'name';\n// 19.2.4.2 name\nNAME in FProto || _dereq_(20) && setDesc(FProto, NAME, {\n configurable: true,\n get: function(){\n var match = ('' + this).match(nameRE)\n , name = match ? match[1] : '';\n has(this, NAME) || setDesc(this, NAME, createDesc(5, name));\n return name;\n }\n});\n},{\"20\":20,\"31\":31,\"47\":47,\"60\":60}],97:[function(_dereq_,module,exports){\n'use strict';\nvar strong = _dereq_(13);\n\n// 23.1 Map Objects\n_dereq_(16)('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},{\"13\":13,\"16\":16}],98:[function(_dereq_,module,exports){\n// 20.2.2.3 Math.acosh(x)\nvar $export = _dereq_(23)\n , log1p = _dereq_(51)\n , sqrt = Math.sqrt\n , $acosh = Math.acosh;\n\n// V8 bug https://code.google.com/p/v8/issues/detail?id=3509\n$export($export.S + $export.F * !($acosh && Math.floor($acosh(Number.MAX_VALUE)) == 710), '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},{\"23\":23,\"51\":51}],99:[function(_dereq_,module,exports){\n// 20.2.2.5 Math.asinh(x)\nvar $export = _dereq_(23);\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$export($export.S, 'Math', {asinh: asinh});\n},{\"23\":23}],100:[function(_dereq_,module,exports){\n// 20.2.2.7 Math.atanh(x)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Math', {\n atanh: function atanh(x){\n return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;\n }\n});\n},{\"23\":23}],101:[function(_dereq_,module,exports){\n// 20.2.2.9 Math.cbrt(x)\nvar $export = _dereq_(23)\n , sign = _dereq_(52);\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},{\"23\":23,\"52\":52}],102:[function(_dereq_,module,exports){\n// 20.2.2.11 Math.clz32(x)\nvar $export = _dereq_(23);\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},{\"23\":23}],103:[function(_dereq_,module,exports){\n// 20.2.2.12 Math.cosh(x)\nvar $export = _dereq_(23)\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},{\"23\":23}],104:[function(_dereq_,module,exports){\n// 20.2.2.14 Math.expm1(x)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Math', {expm1: _dereq_(50)});\n},{\"23\":23,\"50\":50}],105:[function(_dereq_,module,exports){\n// 20.2.2.16 Math.fround(x)\nvar $export = _dereq_(23)\n , sign = _dereq_(52)\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},{\"23\":23,\"52\":52}],106:[function(_dereq_,module,exports){\n// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])\nvar $export = _dereq_(23)\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 , $$ = arguments\n , $$len = $$.length\n , larg = 0\n , arg, div;\n while(i < $$len){\n arg = abs($$[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},{\"23\":23}],107:[function(_dereq_,module,exports){\n// 20.2.2.18 Math.imul(x, y)\nvar $export = _dereq_(23)\n , $imul = Math.imul;\n\n// some WebKit versions fails with big numbers, some has wrong arity\n$export($export.S + $export.F * _dereq_(25)(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},{\"23\":23,\"25\":25}],108:[function(_dereq_,module,exports){\n// 20.2.2.21 Math.log10(x)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Math', {\n log10: function log10(x){\n return Math.log(x) / Math.LN10;\n }\n});\n},{\"23\":23}],109:[function(_dereq_,module,exports){\n// 20.2.2.20 Math.log1p(x)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Math', {log1p: _dereq_(51)});\n},{\"23\":23,\"51\":51}],110:[function(_dereq_,module,exports){\n// 20.2.2.22 Math.log2(x)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Math', {\n log2: function log2(x){\n return Math.log(x) / Math.LN2;\n }\n});\n},{\"23\":23}],111:[function(_dereq_,module,exports){\n// 20.2.2.28 Math.sign(x)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Math', {sign: _dereq_(52)});\n},{\"23\":23,\"52\":52}],112:[function(_dereq_,module,exports){\n// 20.2.2.30 Math.sinh(x)\nvar $export = _dereq_(23)\n , expm1 = _dereq_(50)\n , exp = Math.exp;\n\n// V8 near Chromium 38 has a problem with very small numbers\n$export($export.S + $export.F * _dereq_(25)(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},{\"23\":23,\"25\":25,\"50\":50}],113:[function(_dereq_,module,exports){\n// 20.2.2.33 Math.tanh(x)\nvar $export = _dereq_(23)\n , expm1 = _dereq_(50)\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},{\"23\":23,\"50\":50}],114:[function(_dereq_,module,exports){\n// 20.2.2.34 Math.trunc(x)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Math', {\n trunc: function trunc(it){\n return (it > 0 ? Math.floor : Math.ceil)(it);\n }\n});\n},{\"23\":23}],115:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , global = _dereq_(30)\n , has = _dereq_(31)\n , cof = _dereq_(12)\n , toPrimitive = _dereq_(82)\n , fails = _dereq_(25)\n , $trim = _dereq_(75).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($.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 ? new Base(toNumber(it)) : toNumber(it);\n };\n $.each.call(_dereq_(20) ? $.getNames(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(','), function(key){\n if(has(Base, key) && !has($Number, key)){\n $.setDesc($Number, key, $.getDesc(Base, key));\n }\n });\n $Number.prototype = proto;\n proto.constructor = $Number;\n _dereq_(62)(global, NUMBER, $Number);\n}\n},{\"12\":12,\"20\":20,\"25\":25,\"30\":30,\"31\":31,\"47\":47,\"62\":62,\"75\":75,\"82\":82}],116:[function(_dereq_,module,exports){\n// 20.1.2.1 Number.EPSILON\nvar $export = _dereq_(23);\n\n$export($export.S, 'Number', {EPSILON: Math.pow(2, -52)});\n},{\"23\":23}],117:[function(_dereq_,module,exports){\n// 20.1.2.2 Number.isFinite(number)\nvar $export = _dereq_(23)\n , _isFinite = _dereq_(30).isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it){\n return typeof it == 'number' && _isFinite(it);\n }\n});\n},{\"23\":23,\"30\":30}],118:[function(_dereq_,module,exports){\n// 20.1.2.3 Number.isInteger(number)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Number', {isInteger: _dereq_(38)});\n},{\"23\":23,\"38\":38}],119:[function(_dereq_,module,exports){\n// 20.1.2.4 Number.isNaN(number)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Number', {\n isNaN: function isNaN(number){\n return number != number;\n }\n});\n},{\"23\":23}],120:[function(_dereq_,module,exports){\n// 20.1.2.5 Number.isSafeInteger(number)\nvar $export = _dereq_(23)\n , isInteger = _dereq_(38)\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},{\"23\":23,\"38\":38}],121:[function(_dereq_,module,exports){\n// 20.1.2.6 Number.MAX_SAFE_INTEGER\nvar $export = _dereq_(23);\n\n$export($export.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff});\n},{\"23\":23}],122:[function(_dereq_,module,exports){\n// 20.1.2.10 Number.MIN_SAFE_INTEGER\nvar $export = _dereq_(23);\n\n$export($export.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff});\n},{\"23\":23}],123:[function(_dereq_,module,exports){\n// 20.1.2.12 Number.parseFloat(string)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Number', {parseFloat: parseFloat});\n},{\"23\":23}],124:[function(_dereq_,module,exports){\n// 20.1.2.13 Number.parseInt(string, radix)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Number', {parseInt: parseInt});\n},{\"23\":23}],125:[function(_dereq_,module,exports){\n// 19.1.3.1 Object.assign(target, source)\nvar $export = _dereq_(23);\n\n$export($export.S + $export.F, 'Object', {assign: _dereq_(54)});\n},{\"23\":23,\"54\":54}],126:[function(_dereq_,module,exports){\n// 19.1.2.5 Object.freeze(O)\nvar isObject = _dereq_(39);\n\n_dereq_(55)('freeze', function($freeze){\n return function freeze(it){\n return $freeze && isObject(it) ? $freeze(it) : it;\n };\n});\n},{\"39\":39,\"55\":55}],127:[function(_dereq_,module,exports){\n// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = _dereq_(79);\n\n_dereq_(55)('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor){\n return function getOwnPropertyDescriptor(it, key){\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n},{\"55\":55,\"79\":79}],128:[function(_dereq_,module,exports){\n// 19.1.2.7 Object.getOwnPropertyNames(O)\n_dereq_(55)('getOwnPropertyNames', function(){\n return _dereq_(29).get;\n});\n},{\"29\":29,\"55\":55}],129:[function(_dereq_,module,exports){\n// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = _dereq_(81);\n\n_dereq_(55)('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n},{\"55\":55,\"81\":81}],130:[function(_dereq_,module,exports){\n// 19.1.2.11 Object.isExtensible(O)\nvar isObject = _dereq_(39);\n\n_dereq_(55)('isExtensible', function($isExtensible){\n return function isExtensible(it){\n return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;\n };\n});\n},{\"39\":39,\"55\":55}],131:[function(_dereq_,module,exports){\n// 19.1.2.12 Object.isFrozen(O)\nvar isObject = _dereq_(39);\n\n_dereq_(55)('isFrozen', function($isFrozen){\n return function isFrozen(it){\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n };\n});\n},{\"39\":39,\"55\":55}],132:[function(_dereq_,module,exports){\n// 19.1.2.13 Object.isSealed(O)\nvar isObject = _dereq_(39);\n\n_dereq_(55)('isSealed', function($isSealed){\n return function isSealed(it){\n return isObject(it) ? $isSealed ? $isSealed(it) : false : true;\n };\n});\n},{\"39\":39,\"55\":55}],133:[function(_dereq_,module,exports){\n// 19.1.3.10 Object.is(value1, value2)\nvar $export = _dereq_(23);\n$export($export.S, 'Object', {is: _dereq_(64)});\n},{\"23\":23,\"64\":64}],134:[function(_dereq_,module,exports){\n// 19.1.2.14 Object.keys(O)\nvar toObject = _dereq_(81);\n\n_dereq_(55)('keys', function($keys){\n return function keys(it){\n return $keys(toObject(it));\n };\n});\n},{\"55\":55,\"81\":81}],135:[function(_dereq_,module,exports){\n// 19.1.2.15 Object.preventExtensions(O)\nvar isObject = _dereq_(39);\n\n_dereq_(55)('preventExtensions', function($preventExtensions){\n return function preventExtensions(it){\n return $preventExtensions && isObject(it) ? $preventExtensions(it) : it;\n };\n});\n},{\"39\":39,\"55\":55}],136:[function(_dereq_,module,exports){\n// 19.1.2.17 Object.seal(O)\nvar isObject = _dereq_(39);\n\n_dereq_(55)('seal', function($seal){\n return function seal(it){\n return $seal && isObject(it) ? $seal(it) : it;\n };\n});\n},{\"39\":39,\"55\":55}],137:[function(_dereq_,module,exports){\n// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = _dereq_(23);\n$export($export.S, 'Object', {setPrototypeOf: _dereq_(65).set});\n},{\"23\":23,\"65\":65}],138:[function(_dereq_,module,exports){\n'use strict';\n// 19.1.3.6 Object.prototype.toString()\nvar classof = _dereq_(11)\n , test = {};\ntest[_dereq_(84)('toStringTag')] = 'z';\nif(test + '' != '[object z]'){\n _dereq_(62)(Object.prototype, 'toString', function toString(){\n return '[object ' + classof(this) + ']';\n }, true);\n}\n},{\"11\":11,\"62\":62,\"84\":84}],139:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , LIBRARY = _dereq_(49)\n , global = _dereq_(30)\n , ctx = _dereq_(18)\n , classof = _dereq_(11)\n , $export = _dereq_(23)\n , isObject = _dereq_(39)\n , anObject = _dereq_(5)\n , aFunction = _dereq_(3)\n , strictNew = _dereq_(70)\n , forOf = _dereq_(28)\n , setProto = _dereq_(65).set\n , same = _dereq_(64)\n , SPECIES = _dereq_(84)('species')\n , speciesConstructor = _dereq_(69)\n , asap = _dereq_(53)\n , PROMISE = 'Promise'\n , process = global.process\n , isNode = classof(process) == 'process'\n , P = global[PROMISE]\n , Wrapper;\n\nvar testResolve = function(sub){\n var test = new P(function(){});\n if(sub)test.constructor = Object;\n return P.resolve(test) === test;\n};\n\nvar USE_NATIVE = function(){\n var works = false;\n function P2(x){\n var self = new P(x);\n setProto(self, P2.prototype);\n return self;\n }\n try {\n works = P && P.resolve && testResolve();\n setProto(P2, P);\n P2.prototype = $.create(P.prototype, {constructor: {value: P2}});\n // actual Firefox has broken subclass support, test that\n if(!(P2.resolve(5).then(function(){}) instanceof P2)){\n works = false;\n }\n // actual V8 bug, https://code.google.com/p/v8/issues/detail?id=4162\n if(works && _dereq_(20)){\n var thenableThenGotten = false;\n P.resolve($.setDesc({}, 'then', {\n get: function(){ thenableThenGotten = true; }\n }));\n works = thenableThenGotten;\n }\n } catch(e){ works = false; }\n return works;\n}();\n\n// helpers\nvar sameConstructor = function(a, b){\n // library wrapper special case\n if(LIBRARY && a === P && b === Wrapper)return true;\n return same(a, b);\n};\nvar getConstructor = function(C){\n var S = anObject(C)[SPECIES];\n return S != undefined ? S : C;\n};\nvar isThenable = function(it){\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar PromiseCapability = 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(record, isReject){\n if(record.n)return;\n record.n = true;\n var chain = record.c;\n asap(function(){\n var value = record.v\n , ok = record.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 , result, then;\n try {\n if(handler){\n if(!ok)record.h = true;\n result = handler === true ? value : handler(value);\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 chain.length = 0;\n record.n = false;\n if(isReject)setTimeout(function(){\n var promise = record.p\n , handler, console;\n if(isUnhandled(promise)){\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 } record.a = undefined;\n }, 1);\n });\n};\nvar isUnhandled = function(promise){\n var record = promise._d\n , chain = record.a || record.c\n , i = 0\n , reaction;\n if(record.h)return false;\n while(chain.length > i){\n reaction = chain[i++];\n if(reaction.fail || !isUnhandled(reaction.promise))return false;\n } return true;\n};\nvar $reject = function(value){\n var record = this;\n if(record.d)return;\n record.d = true;\n record = record.r || record; // unwrap\n record.v = value;\n record.s = 2;\n record.a = record.c.slice();\n notify(record, true);\n};\nvar $resolve = function(value){\n var record = this\n , then;\n if(record.d)return;\n record.d = true;\n record = record.r || record; // unwrap\n try {\n if(record.p === value)throw TypeError(\"Promise can't be resolved itself\");\n if(then = isThenable(value)){\n asap(function(){\n var wrapper = {r: record, 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 record.v = value;\n record.s = 1;\n notify(record, false);\n }\n } catch(e){\n $reject.call({r: record, d: false}, e); // wrap\n }\n};\n\n// constructor polyfill\nif(!USE_NATIVE){\n // 25.4.3.1 Promise(executor)\n P = function Promise(executor){\n aFunction(executor);\n var record = this._d = {\n p: strictNew(this, P, PROMISE), // <- promise\n c: [], // <- awaiting reactions\n a: undefined, // <- checked in isUnhandled reactions\n s: 0, // <- state\n d: false, // <- done\n v: undefined, // <- value\n h: false, // <- handled rejection\n n: false // <- notify\n };\n try {\n executor(ctx($resolve, record, 1), ctx($reject, record, 1));\n } catch(err){\n $reject.call(record, err);\n }\n };\n _dereq_(61)(P.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected){\n var reaction = new PromiseCapability(speciesConstructor(this, P))\n , promise = reaction.promise\n , record = this._d;\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n record.c.push(reaction);\n if(record.a)record.a.push(reaction);\n if(record.s)notify(record, false);\n return promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function(onRejected){\n return this.then(undefined, onRejected);\n }\n });\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: P});\n_dereq_(67)(P, PROMISE);\n_dereq_(66)(PROMISE);\nWrapper = _dereq_(17)[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 = new PromiseCapability(this)\n , $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (!USE_NATIVE || testResolve(true)), 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 P && sameConstructor(x.constructor, this))return x;\n var capability = new PromiseCapability(this)\n , $$resolve = capability.resolve;\n $$resolve(x);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && _dereq_(44)(function(iter){\n P.all(iter)['catch'](function(){});\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable){\n var C = getConstructor(this)\n , capability = new PromiseCapability(C)\n , resolve = capability.resolve\n , reject = capability.reject\n , values = [];\n var abrupt = perform(function(){\n forOf(iterable, false, values.push, values);\n var remaining = values.length\n , results = Array(remaining);\n if(remaining)$.each.call(values, function(promise, index){\n var alreadyCalled = false;\n C.resolve(promise).then(function(value){\n if(alreadyCalled)return;\n alreadyCalled = true;\n results[index] = value;\n --remaining || resolve(results);\n }, reject);\n });\n else resolve(results);\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 = getConstructor(this)\n , capability = new PromiseCapability(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},{\"11\":11,\"17\":17,\"18\":18,\"20\":20,\"23\":23,\"28\":28,\"3\":3,\"30\":30,\"39\":39,\"44\":44,\"47\":47,\"49\":49,\"5\":5,\"53\":53,\"61\":61,\"64\":64,\"65\":65,\"66\":66,\"67\":67,\"69\":69,\"70\":70,\"84\":84}],140:[function(_dereq_,module,exports){\n// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)\nvar $export = _dereq_(23)\n , _apply = Function.apply;\n\n$export($export.S, 'Reflect', {\n apply: function apply(target, thisArgument, argumentsList){\n return _apply.call(target, thisArgument, argumentsList);\n }\n});\n},{\"23\":23}],141:[function(_dereq_,module,exports){\n// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])\nvar $ = _dereq_(47)\n , $export = _dereq_(23)\n , aFunction = _dereq_(3)\n , anObject = _dereq_(5)\n , isObject = _dereq_(39)\n , bind = Function.bind || _dereq_(17).Function.prototype.bind;\n\n// MS Edge supports only 2 arguments\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\n$export($export.S + $export.F * _dereq_(25)(function(){\n function F(){}\n return !(Reflect.construct(function(){}, [], F) instanceof F);\n}), 'Reflect', {\n construct: function construct(Target, args /*, newTarget*/){\n aFunction(Target);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if(Target == newTarget){\n // w/o altered newTarget, optimization for 0-4 arguments\n if(args != undefined)switch(anObject(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},{\"17\":17,\"23\":23,\"25\":25,\"3\":3,\"39\":39,\"47\":47,\"5\":5}],142:[function(_dereq_,module,exports){\n// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)\nvar $ = _dereq_(47)\n , $export = _dereq_(23)\n , anObject = _dereq_(5);\n\n// MS Edge has broken Reflect.defineProperty - throwing instead of returning false\n$export($export.S + $export.F * _dereq_(25)(function(){\n Reflect.defineProperty($.setDesc({}, 1, {value: 1}), 1, {value: 2});\n}), 'Reflect', {\n defineProperty: function defineProperty(target, propertyKey, attributes){\n anObject(target);\n try {\n $.setDesc(target, propertyKey, attributes);\n return true;\n } catch(e){\n return false;\n }\n }\n});\n},{\"23\":23,\"25\":25,\"47\":47,\"5\":5}],143:[function(_dereq_,module,exports){\n// 26.1.4 Reflect.deleteProperty(target, propertyKey)\nvar $export = _dereq_(23)\n , getDesc = _dereq_(47).getDesc\n , anObject = _dereq_(5);\n\n$export($export.S, 'Reflect', {\n deleteProperty: function deleteProperty(target, propertyKey){\n var desc = getDesc(anObject(target), propertyKey);\n return desc && !desc.configurable ? false : delete target[propertyKey];\n }\n});\n},{\"23\":23,\"47\":47,\"5\":5}],144:[function(_dereq_,module,exports){\n'use strict';\n// 26.1.5 Reflect.enumerate(target)\nvar $export = _dereq_(23)\n , anObject = _dereq_(5);\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};\n_dereq_(42)(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},{\"23\":23,\"42\":42,\"5\":5}],145:[function(_dereq_,module,exports){\n// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)\nvar $ = _dereq_(47)\n , $export = _dereq_(23)\n , anObject = _dereq_(5);\n\n$export($export.S, 'Reflect', {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){\n return $.getDesc(anObject(target), propertyKey);\n }\n});\n},{\"23\":23,\"47\":47,\"5\":5}],146:[function(_dereq_,module,exports){\n// 26.1.8 Reflect.getPrototypeOf(target)\nvar $export = _dereq_(23)\n , getProto = _dereq_(47).getProto\n , anObject = _dereq_(5);\n\n$export($export.S, 'Reflect', {\n getPrototypeOf: function getPrototypeOf(target){\n return getProto(anObject(target));\n }\n});\n},{\"23\":23,\"47\":47,\"5\":5}],147:[function(_dereq_,module,exports){\n// 26.1.6 Reflect.get(target, propertyKey [, receiver])\nvar $ = _dereq_(47)\n , has = _dereq_(31)\n , $export = _dereq_(23)\n , isObject = _dereq_(39)\n , anObject = _dereq_(5);\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 = $.getDesc(target, propertyKey))return has(desc, 'value')\n ? desc.value\n : desc.get !== undefined\n ? desc.get.call(receiver)\n : undefined;\n if(isObject(proto = $.getProto(target)))return get(proto, propertyKey, receiver);\n}\n\n$export($export.S, 'Reflect', {get: get});\n},{\"23\":23,\"31\":31,\"39\":39,\"47\":47,\"5\":5}],148:[function(_dereq_,module,exports){\n// 26.1.9 Reflect.has(target, propertyKey)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Reflect', {\n has: function has(target, propertyKey){\n return propertyKey in target;\n }\n});\n},{\"23\":23}],149:[function(_dereq_,module,exports){\n// 26.1.10 Reflect.isExtensible(target)\nvar $export = _dereq_(23)\n , anObject = _dereq_(5)\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},{\"23\":23,\"5\":5}],150:[function(_dereq_,module,exports){\n// 26.1.11 Reflect.ownKeys(target)\nvar $export = _dereq_(23);\n\n$export($export.S, 'Reflect', {ownKeys: _dereq_(57)});\n},{\"23\":23,\"57\":57}],151:[function(_dereq_,module,exports){\n// 26.1.12 Reflect.preventExtensions(target)\nvar $export = _dereq_(23)\n , anObject = _dereq_(5)\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},{\"23\":23,\"5\":5}],152:[function(_dereq_,module,exports){\n// 26.1.14 Reflect.setPrototypeOf(target, proto)\nvar $export = _dereq_(23)\n , setProto = _dereq_(65);\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},{\"23\":23,\"65\":65}],153:[function(_dereq_,module,exports){\n// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])\nvar $ = _dereq_(47)\n , has = _dereq_(31)\n , $export = _dereq_(23)\n , createDesc = _dereq_(60)\n , anObject = _dereq_(5)\n , isObject = _dereq_(39);\n\nfunction set(target, propertyKey, V/*, receiver*/){\n var receiver = arguments.length < 4 ? target : arguments[3]\n , ownDesc = $.getDesc(anObject(target), propertyKey)\n , existingDescriptor, proto;\n if(!ownDesc){\n if(isObject(proto = $.getProto(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 = $.getDesc(receiver, propertyKey) || createDesc(0);\n existingDescriptor.value = V;\n $.setDesc(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},{\"23\":23,\"31\":31,\"39\":39,\"47\":47,\"5\":5,\"60\":60}],154:[function(_dereq_,module,exports){\nvar $ = _dereq_(47)\n , global = _dereq_(30)\n , isRegExp = _dereq_(40)\n , $flags = _dereq_(27)\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(_dereq_(20) && (!CORRECT_NEW || _dereq_(25)(function(){\n re2[_dereq_(84)('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 piRE = isRegExp(p)\n , fiU = f === undefined;\n return !(this instanceof $RegExp) && piRE && p.constructor === $RegExp && fiU ? p\n : 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 };\n $.each.call($.getNames(Base), function(key){\n key in $RegExp || $.setDesc($RegExp, key, {\n configurable: true,\n get: function(){ return Base[key]; },\n set: function(it){ Base[key] = it; }\n });\n });\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n _dereq_(62)(global, 'RegExp', $RegExp);\n}\n\n_dereq_(66)('RegExp');\n},{\"20\":20,\"25\":25,\"27\":27,\"30\":30,\"40\":40,\"47\":47,\"62\":62,\"66\":66,\"84\":84}],155:[function(_dereq_,module,exports){\n// 21.2.5.3 get RegExp.prototype.flags()\nvar $ = _dereq_(47);\nif(_dereq_(20) && /./g.flags != 'g')$.setDesc(RegExp.prototype, 'flags', {\n configurable: true,\n get: _dereq_(27)\n});\n},{\"20\":20,\"27\":27,\"47\":47}],156:[function(_dereq_,module,exports){\n// @@match logic\n_dereq_(26)('match', 1, function(defined, 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 };\n});\n},{\"26\":26}],157:[function(_dereq_,module,exports){\n// @@replace logic\n_dereq_(26)('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 };\n});\n},{\"26\":26}],158:[function(_dereq_,module,exports){\n// @@search logic\n_dereq_(26)('search', 1, function(defined, 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 };\n});\n},{\"26\":26}],159:[function(_dereq_,module,exports){\n// @@split logic\n_dereq_(26)('split', 2, function(defined, SPLIT, $split){\n // 21.1.3.17 String.prototype.split(separator, limit)\n return function split(separator, limit){\n 'use strict';\n var O = defined(this)\n , fn = separator == undefined ? undefined : separator[SPLIT];\n return fn !== undefined\n ? fn.call(separator, O, limit)\n : $split.call(String(O), separator, limit);\n };\n});\n},{\"26\":26}],160:[function(_dereq_,module,exports){\n'use strict';\nvar strong = _dereq_(13);\n\n// 23.2 Set Objects\n_dereq_(16)('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},{\"13\":13,\"16\":16}],161:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(23)\n , $at = _dereq_(71)(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},{\"23\":23,\"71\":71}],162:[function(_dereq_,module,exports){\n// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])\n'use strict';\nvar $export = _dereq_(23)\n , toLength = _dereq_(80)\n , context = _dereq_(72)\n , ENDS_WITH = 'endsWith'\n , $endsWith = ''[ENDS_WITH];\n\n$export($export.P + $export.F * _dereq_(24)(ENDS_WITH), 'String', {\n endsWith: function endsWith(searchString /*, endPosition = @length */){\n var that = context(this, searchString, ENDS_WITH)\n , $$ = arguments\n , endPosition = $$.length > 1 ? $$[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},{\"23\":23,\"24\":24,\"72\":72,\"80\":80}],163:[function(_dereq_,module,exports){\nvar $export = _dereq_(23)\n , toIndex = _dereq_(77)\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 , $$ = arguments\n , $$len = $$.length\n , i = 0\n , code;\n while($$len > i){\n code = +$$[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},{\"23\":23,\"77\":77}],164:[function(_dereq_,module,exports){\n// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n'use strict';\nvar $export = _dereq_(23)\n , context = _dereq_(72)\n , INCLUDES = 'includes';\n\n$export($export.P + $export.F * _dereq_(24)(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},{\"23\":23,\"24\":24,\"72\":72}],165:[function(_dereq_,module,exports){\n'use strict';\nvar $at = _dereq_(71)(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\n_dereq_(43)(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},{\"43\":43,\"71\":71}],166:[function(_dereq_,module,exports){\nvar $export = _dereq_(23)\n , toIObject = _dereq_(79)\n , toLength = _dereq_(80);\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 , $$ = arguments\n , $$len = $$.length\n , res = []\n , i = 0;\n while(len > i){\n res.push(String(tpl[i++]));\n if(i < $$len)res.push(String($$[i]));\n } return res.join('');\n }\n});\n},{\"23\":23,\"79\":79,\"80\":80}],167:[function(_dereq_,module,exports){\nvar $export = _dereq_(23);\n\n$export($export.P, 'String', {\n // 21.1.3.13 String.prototype.repeat(count)\n repeat: _dereq_(74)\n});\n},{\"23\":23,\"74\":74}],168:[function(_dereq_,module,exports){\n// 21.1.3.18 String.prototype.startsWith(searchString [, position ])\n'use strict';\nvar $export = _dereq_(23)\n , toLength = _dereq_(80)\n , context = _dereq_(72)\n , STARTS_WITH = 'startsWith'\n , $startsWith = ''[STARTS_WITH];\n\n$export($export.P + $export.F * _dereq_(24)(STARTS_WITH), 'String', {\n startsWith: function startsWith(searchString /*, position = 0 */){\n var that = context(this, searchString, STARTS_WITH)\n , $$ = arguments\n , index = toLength(Math.min($$.length > 1 ? $$[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},{\"23\":23,\"24\":24,\"72\":72,\"80\":80}],169:[function(_dereq_,module,exports){\n'use strict';\n// 21.1.3.25 String.prototype.trim()\n_dereq_(75)('trim', function($trim){\n return function trim(){\n return $trim(this, 3);\n };\n});\n},{\"75\":75}],170:[function(_dereq_,module,exports){\n'use strict';\n// ECMAScript 6 symbols shim\nvar $ = _dereq_(47)\n , global = _dereq_(30)\n , has = _dereq_(31)\n , DESCRIPTORS = _dereq_(20)\n , $export = _dereq_(23)\n , redefine = _dereq_(62)\n , $fails = _dereq_(25)\n , shared = _dereq_(68)\n , setToStringTag = _dereq_(67)\n , uid = _dereq_(83)\n , wks = _dereq_(84)\n , keyOf = _dereq_(48)\n , $names = _dereq_(29)\n , enumKeys = _dereq_(22)\n , isArray = _dereq_(37)\n , anObject = _dereq_(5)\n , toIObject = _dereq_(79)\n , createDesc = _dereq_(60)\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(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 setDesc(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);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(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 = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[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};\nvar buggyJSON = $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});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !_dereq_(49)){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\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 return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, '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 * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\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},{\"20\":20,\"22\":22,\"23\":23,\"25\":25,\"29\":29,\"30\":30,\"31\":31,\"37\":37,\"47\":47,\"48\":48,\"49\":49,\"5\":5,\"60\":60,\"62\":62,\"67\":67,\"68\":68,\"79\":79,\"83\":83,\"84\":84}],171:[function(_dereq_,module,exports){\n'use strict';\nvar $ = _dereq_(47)\n , redefine = _dereq_(62)\n , weak = _dereq_(15)\n , isObject = _dereq_(39)\n , has = _dereq_(31)\n , frozenStore = weak.frozenStore\n , WEAK = weak.WEAK\n , isExtensible = Object.isExtensible || isObject\n , tmp = {};\n\n// 23.3 WeakMap Objects\nvar $WeakMap = _dereq_(16)('WeakMap', function(get){\n return function WeakMap(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.3.3.3 WeakMap.prototype.get(key)\n get: function get(key){\n if(isObject(key)){\n if(!isExtensible(key))return frozenStore(this).get(key);\n if(has(key, WEAK))return key[WEAK][this._i];\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}, weak, true, true);\n\n// IE11 WeakMap frozen keys fix\nif(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){\n $.each.call(['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 leaky map\n if(isObject(a) && !isExtensible(a)){\n var result = frozenStore(this)[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},{\"15\":15,\"16\":16,\"31\":31,\"39\":39,\"47\":47,\"62\":62}],172:[function(_dereq_,module,exports){\n'use strict';\nvar weak = _dereq_(15);\n\n// 23.4 WeakSet Objects\n_dereq_(16)('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},{\"15\":15,\"16\":16}],173:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(23)\n , $includes = _dereq_(8)(true);\n\n$export($export.P, 'Array', {\n // https://github.com/domenic/Array.prototype.includes\n includes: function includes(el /*, fromIndex = 0 */){\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n_dereq_(4)('includes');\n},{\"23\":23,\"4\":4,\"8\":8}],174:[function(_dereq_,module,exports){\n// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = _dereq_(23);\n\n$export($export.P, 'Map', {toJSON: _dereq_(14)('Map')});\n},{\"14\":14,\"23\":23}],175:[function(_dereq_,module,exports){\n// http://goo.gl/XkBrjD\nvar $export = _dereq_(23)\n , $entries = _dereq_(56)(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it){\n return $entries(it);\n }\n});\n},{\"23\":23,\"56\":56}],176:[function(_dereq_,module,exports){\n// https://gist.github.com/WebReflection/9353781\nvar $ = _dereq_(47)\n , $export = _dereq_(23)\n , ownKeys = _dereq_(57)\n , toIObject = _dereq_(79)\n , createDesc = _dereq_(60);\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){\n var O = toIObject(object)\n , setDesc = $.setDesc\n , getDesc = $.getDesc\n , keys = ownKeys(O)\n , result = {}\n , i = 0\n , key, D;\n while(keys.length > i){\n D = getDesc(O, key = keys[i++]);\n if(key in result)setDesc(result, key, createDesc(0, D));\n else result[key] = D;\n } return result;\n }\n});\n},{\"23\":23,\"47\":47,\"57\":57,\"60\":60,\"79\":79}],177:[function(_dereq_,module,exports){\n// http://goo.gl/XkBrjD\nvar $export = _dereq_(23)\n , $values = _dereq_(56)(false);\n\n$export($export.S, 'Object', {\n values: function values(it){\n return $values(it);\n }\n});\n},{\"23\":23,\"56\":56}],178:[function(_dereq_,module,exports){\n// https://github.com/benjamingr/RexExp.escape\nvar $export = _dereq_(23)\n , $re = _dereq_(63)(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\n$export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }});\n\n},{\"23\":23,\"63\":63}],179:[function(_dereq_,module,exports){\n// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = _dereq_(23);\n\n$export($export.P, 'Set', {toJSON: _dereq_(14)('Set')});\n},{\"14\":14,\"23\":23}],180:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/mathiasbynens/String.prototype.at\nvar $export = _dereq_(23)\n , $at = _dereq_(71)(true);\n\n$export($export.P, 'String', {\n at: function at(pos){\n return $at(this, pos);\n }\n});\n},{\"23\":23,\"71\":71}],181:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(23)\n , $pad = _dereq_(73);\n\n$export($export.P, 'String', {\n padLeft: function padLeft(maxLength /*, fillString = ' ' */){\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);\n }\n});\n},{\"23\":23,\"73\":73}],182:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(23)\n , $pad = _dereq_(73);\n\n$export($export.P, 'String', {\n padRight: function padRight(maxLength /*, fillString = ' ' */){\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);\n }\n});\n},{\"23\":23,\"73\":73}],183:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\n_dereq_(75)('trimLeft', function($trim){\n return function trimLeft(){\n return $trim(this, 1);\n };\n});\n},{\"75\":75}],184:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\n_dereq_(75)('trimRight', function($trim){\n return function trimRight(){\n return $trim(this, 2);\n };\n});\n},{\"75\":75}],185:[function(_dereq_,module,exports){\n// JavaScript 1.6 / Strawman array statics shim\nvar $ = _dereq_(47)\n , $export = _dereq_(23)\n , $ctx = _dereq_(18)\n , $Array = _dereq_(17).Array || Array\n , statics = {};\nvar setStatics = function(keys, length){\n $.each.call(keys.split(','), function(key){\n if(length == undefined && key in $Array)statics[key] = $Array[key];\n else if(key in [])statics[key] = $ctx(Function.call, [][key], length);\n });\n};\nsetStatics('pop,reverse,shift,keys,values,entries', 1);\nsetStatics('indexOf,every,some,forEach,map,filter,find,findIndex,includes', 3);\nsetStatics('join,slice,concat,push,splice,unshift,sort,lastIndexOf,' +\n 'reduce,reduceRight,copyWithin,fill');\n$export($export.S, 'Array', statics);\n},{\"17\":17,\"18\":18,\"23\":23,\"47\":47}],186:[function(_dereq_,module,exports){\n_dereq_(92);\nvar global = _dereq_(30)\n , hide = _dereq_(32)\n , Iterators = _dereq_(46)\n , ITERATOR = _dereq_(84)('iterator')\n , NL = global.NodeList\n , HTC = global.HTMLCollection\n , NLProto = NL && NL.prototype\n , HTCProto = HTC && HTC.prototype\n , ArrayValues = Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\nif(NLProto && !NLProto[ITERATOR])hide(NLProto, ITERATOR, ArrayValues);\nif(HTCProto && !HTCProto[ITERATOR])hide(HTCProto, ITERATOR, ArrayValues);\n},{\"30\":30,\"32\":32,\"46\":46,\"84\":84,\"92\":92}],187:[function(_dereq_,module,exports){\nvar $export = _dereq_(23)\n , $task = _dereq_(76);\n$export($export.G + $export.B, {\n setImmediate: $task.set,\n clearImmediate: $task.clear\n});\n},{\"23\":23,\"76\":76}],188:[function(_dereq_,module,exports){\n// ie9- setTimeout & setInterval additional parameters fix\nvar global = _dereq_(30)\n , $export = _dereq_(23)\n , invoke = _dereq_(34)\n , partial = _dereq_(58)\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},{\"23\":23,\"30\":30,\"34\":34,\"58\":58}],189:[function(_dereq_,module,exports){\n_dereq_(86);\n_dereq_(170);\n_dereq_(125);\n_dereq_(133);\n_dereq_(137);\n_dereq_(138);\n_dereq_(126);\n_dereq_(136);\n_dereq_(135);\n_dereq_(131);\n_dereq_(132);\n_dereq_(130);\n_dereq_(127);\n_dereq_(129);\n_dereq_(134);\n_dereq_(128);\n_dereq_(96);\n_dereq_(95);\n_dereq_(115);\n_dereq_(116);\n_dereq_(117);\n_dereq_(118);\n_dereq_(119);\n_dereq_(120);\n_dereq_(121);\n_dereq_(122);\n_dereq_(123);\n_dereq_(124);\n_dereq_(98);\n_dereq_(99);\n_dereq_(100);\n_dereq_(101);\n_dereq_(102);\n_dereq_(103);\n_dereq_(104);\n_dereq_(105);\n_dereq_(106);\n_dereq_(107);\n_dereq_(108);\n_dereq_(109);\n_dereq_(110);\n_dereq_(111);\n_dereq_(112);\n_dereq_(113);\n_dereq_(114);\n_dereq_(163);\n_dereq_(166);\n_dereq_(169);\n_dereq_(165);\n_dereq_(161);\n_dereq_(162);\n_dereq_(164);\n_dereq_(167);\n_dereq_(168);\n_dereq_(91);\n_dereq_(93);\n_dereq_(92);\n_dereq_(94);\n_dereq_(87);\n_dereq_(88);\n_dereq_(90);\n_dereq_(89);\n_dereq_(154);\n_dereq_(155);\n_dereq_(156);\n_dereq_(157);\n_dereq_(158);\n_dereq_(159);\n_dereq_(139);\n_dereq_(97);\n_dereq_(160);\n_dereq_(171);\n_dereq_(172);\n_dereq_(140);\n_dereq_(141);\n_dereq_(142);\n_dereq_(143);\n_dereq_(144);\n_dereq_(147);\n_dereq_(145);\n_dereq_(146);\n_dereq_(148);\n_dereq_(149);\n_dereq_(150);\n_dereq_(151);\n_dereq_(153);\n_dereq_(152);\n_dereq_(173);\n_dereq_(180);\n_dereq_(181);\n_dereq_(182);\n_dereq_(183);\n_dereq_(184);\n_dereq_(178);\n_dereq_(176);\n_dereq_(177);\n_dereq_(175);\n_dereq_(174);\n_dereq_(179);\n_dereq_(185);\n_dereq_(188);\n_dereq_(187);\n_dereq_(186);\nmodule.exports = _dereq_(17);\n},{\"100\":100,\"101\":101,\"102\":102,\"103\":103,\"104\":104,\"105\":105,\"106\":106,\"107\":107,\"108\":108,\"109\":109,\"110\":110,\"111\":111,\"112\":112,\"113\":113,\"114\":114,\"115\":115,\"116\":116,\"117\":117,\"118\":118,\"119\":119,\"120\":120,\"121\":121,\"122\":122,\"123\":123,\"124\":124,\"125\":125,\"126\":126,\"127\":127,\"128\":128,\"129\":129,\"130\":130,\"131\":131,\"132\":132,\"133\":133,\"134\":134,\"135\":135,\"136\":136,\"137\":137,\"138\":138,\"139\":139,\"140\":140,\"141\":141,\"142\":142,\"143\":143,\"144\":144,\"145\":145,\"146\":146,\"147\":147,\"148\":148,\"149\":149,\"150\":150,\"151\":151,\"152\":152,\"153\":153,\"154\":154,\"155\":155,\"156\":156,\"157\":157,\"158\":158,\"159\":159,\"160\":160,\"161\":161,\"162\":162,\"163\":163,\"164\":164,\"165\":165,\"166\":166,\"167\":167,\"168\":168,\"169\":169,\"17\":17,\"170\":170,\"171\":171,\"172\":172,\"173\":173,\"174\":174,\"175\":175,\"176\":176,\"177\":177,\"178\":178,\"179\":179,\"180\":180,\"181\":181,\"182\":182,\"183\":183,\"184\":184,\"185\":185,\"186\":186,\"187\":187,\"188\":188,\"86\":86,\"87\":87,\"88\":88,\"89\":89,\"90\":90,\"91\":91,\"92\":92,\"93\":93,\"94\":94,\"95\":95,\"96\":96,\"97\":97,\"98\":98,\"99\":99}],190:[function(_dereq_,module,exports){\n(function (global){\n/**\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * https://raw.github.com/facebook/regenerator/master/LICENSE file. An\n * additional grant of patent rights can be found in the PATENTS file in\n * the same directory.\n */\n\n!(function(global) {\n \"use strict\";\n\n var hasOwn = Object.prototype.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var iteratorSymbol =\n typeof Symbol === \"function\" && Symbol.iterator || \"@@iterator\";\n\n var inModule = typeof module === \"object\";\n var runtime = global.regeneratorRuntime;\n if (runtime) {\n if (inModule) {\n // If regeneratorRuntime is defined globally and we're in a module,\n // make the exports object identical to regeneratorRuntime.\n module.exports = runtime;\n }\n // Don't bother evaluating the rest of this file if the runtime was\n // already defined globally.\n return;\n }\n\n // Define the runtime globally (as expected by generated code) as either\n // module.exports (if we're in a module) or a new, empty object.\n runtime = global.regeneratorRuntime = inModule ? module.exports : {};\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided, then outerFn.prototype instanceof Generator.\n var generator = Object.create((outerFn || Generator).prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n runtime.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype;\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n runtime.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n runtime.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `value instanceof AwaitArgument` to determine if the yielded value is\n // meant to be awaited. Some may consider the name of this method too\n // cutesy, but they are curmudgeons.\n runtime.awrap = function(arg) {\n return new AwaitArgument(arg);\n };\n\n function AwaitArgument(arg) {\n this.arg = arg;\n }\n\n function AsyncIterator(generator) {\n // This invoke function is written in a style that assumes some\n // calling function (or Promise) will handle exceptions.\n function invoke(method, arg) {\n var result = generator[method](arg);\n var value = result.value;\n return value instanceof AwaitArgument\n ? Promise.resolve(value.arg).then(invokeNext, invokeThrow)\n : Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration. If the Promise is rejected, however, the\n // result for this iteration will be rejected with the same\n // reason. Note that rejections of yielded Promises are not\n // thrown back into the generator function, as is the case\n // when an awaited Promise is rejected. This difference in\n // behavior between yield and await is important, because it\n // allows the consumer to decide what to do with the yielded\n // rejection (swallow it and continue, manually .throw it back\n // into the generator, abandon iteration, whatever). With\n // await, by contrast, there is no opportunity to examine the\n // rejection reason outside the generator function, so the\n // only option is to throw it from the await expression, and\n // let the generator function handle the exception.\n result.value = unwrapped;\n return result;\n });\n }\n\n if (typeof process === \"object\" && process.domain) {\n invoke = process.domain.bind(invoke);\n }\n\n var invokeNext = invoke.bind(generator, \"next\");\n var invokeThrow = invoke.bind(generator, \"throw\");\n var invokeReturn = invoke.bind(generator, \"return\");\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return invoke(method, arg);\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : new Promise(function (resolve) {\n resolve(callInvokeWithMethodAndArg());\n });\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n runtime.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return runtime.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n if (method === \"return\" ||\n (method === \"throw\" && delegate.iterator[method] === undefined)) {\n // A return or throw (when the delegate iterator has no throw\n // method) always terminates the yield* loop.\n context.delegate = null;\n\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n var returnMethod = delegate.iterator[\"return\"];\n if (returnMethod) {\n var record = tryCatch(returnMethod, delegate.iterator, arg);\n if (record.type === \"throw\") {\n // If the return method threw an exception, let that\n // exception prevail over the original return or throw.\n method = \"throw\";\n arg = record.arg;\n continue;\n }\n }\n\n if (method === \"return\") {\n // Continue with the outer return, now that the delegate\n // iterator has been terminated.\n continue;\n }\n }\n\n var record = tryCatch(\n delegate.iterator[method],\n delegate.iterator,\n arg\n );\n\n if (record.type === \"throw\") {\n context.delegate = null;\n\n // Like returning generator.throw(uncaught), but without the\n // overhead of an extra function call.\n method = \"throw\";\n arg = record.arg;\n continue;\n }\n\n // Delegate generator ran and handled its own exceptions so\n // regardless of what the method was, we continue as if it is\n // \"next\" with an undefined arg.\n method = \"next\";\n arg = undefined;\n\n var info = record.arg;\n if (info.done) {\n context[delegate.resultName] = info.value;\n context.next = delegate.nextLoc;\n } else {\n state = GenStateSuspendedYield;\n return info;\n }\n\n context.delegate = null;\n }\n\n if (method === \"next\") {\n context._sent = arg;\n\n if (state === GenStateSuspendedYield) {\n context.sent = arg;\n } else {\n context.sent = undefined;\n }\n } else if (method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw arg;\n }\n\n if (context.dispatchException(arg)) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n method = \"next\";\n arg = undefined;\n }\n\n } else if (method === \"return\") {\n context.abrupt(\"return\", arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n var info = {\n value: record.arg,\n done: context.done\n };\n\n if (record.arg === ContinueSentinel) {\n if (context.delegate && method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n arg = undefined;\n }\n } else {\n return info;\n }\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(arg) call above.\n method = \"throw\";\n arg = record.arg;\n }\n }\n };\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n runtime.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n runtime.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n this.sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n return !!caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.next = finallyEntry.finallyLoc;\n } else {\n this.complete(record);\n }\n\n return ContinueSentinel;\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = record.arg;\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n return ContinueSentinel;\n }\n };\n})(\n // Among the various tricks for obtaining a reference to the global\n // object, this seems to be the most reliable technique that does not\n // use indirect eval (which violates Content Security Policy).\n typeof global === \"object\" ? global :\n typeof window === \"object\" ? window :\n typeof self === \"object\" ? self : this\n);\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}]},{},[1]);\n","/* */ \n;(function () {\n var parents = function (node, ps) {\n if (node.parentNode === null) { return ps; }\n\n return parents(node.parentNode, ps.concat([node]));\n };\n\n var style = function (node, prop) {\n return getComputedStyle(node, null).getPropertyValue(prop);\n };\n\n var overflow = function (node) {\n return style(node, \"overflow\") + style(node, \"overflow-y\") + style(node, \"overflow-x\");\n };\n\n var scroll = function (node) {\n return (/(auto|scroll)/).test(overflow(node));\n };\n\n var scrollParent = function (node) {\n if (!(node instanceof HTMLElement)) {\n return ;\n }\n\n var ps = parents(node.parentNode, []);\n\n for (var i = 0; i < ps.length; i += 1) {\n if (scroll(ps[i])) {\n return ps[i];\n }\n }\n\n return window;\n };\n\n // If common js is defined use it.\n if (typeof module === \"object\" && module !== null) {\n module.exports = scrollParent;\n } else {\n window.Scrollparent = scrollParent;\n }\n})();\n","module.exports = require(\"npm:scrollparent@0.1.0/scrollparent.js\");","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\n\n@RedocComponent({\n selector: 'api-info',\n styles: [`\n .api-info-header{color:#00329F;font-weight:normal}\n `],\n template: `\n <h1 class=\"api-info-header\">{{data.title}} ({{data.version}})</h1>\n <p *ngIf=\"data.description\" innerHtml=\"{{data.description | marked}}\"> </p>\n <p>\n <!-- TODO: create separate components for contact and license ? -->\n <span *ngIf=\"data.contact\"> Contact:\n <a *ngIf=\"data.contact.url\" href=\"{{data.contact.url}}\">\n {{data.contact.name || data.contact.url}}</a>\n <a *ngIf=\"data.contact.email\" href=\"mailto:{{data.contact.email}}\">\n {{data.contact.email}}</a>\n </span>\n <span *ngIf=\"data.license\"> License:\n <a *ngIf=\"data.license.url\" href=\"{{data.license.url}}\"> {{data.license.name}} </a>\n <span *ngIf=\"!data.license.url\"> {{data.license.name}} </span>\n </span>\n </p>\n `\n})\nexport default class ApiInfo extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = this.componentSchema.info;\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\n\n@RedocComponent({\n selector: 'api-logo',\n styles: [`\n img{max-height:150px;width:auto;display:inline-block;max-width:100%;padding:0 5px;box-sizing:border-box}\n `],\n template: `\n <img *ngIf=\"data.imgUrl\" [attr.src]=\"data.imgUrl\" [ngStyle]=\"{'background-color': data.bgColor}\">\n `\n})\nexport default class ApiLogo extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n let logoInfo = this.componentSchema.info['x-logo'];\n if (!logoInfo) return;\n this.data.imgUrl = logoInfo.url;\n this.data.bgColor = logoInfo.backgroundColor || 'transparent';\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\nimport JsonSchema from '../JsonSchema/json-schema';\nimport JsonSchemaLazy from '../JsonSchema/json-schema-lazy';\n\nfunction safePush(obj, prop, item) {\n if (!obj[prop]) obj[prop] = [];\n obj[prop].push(item);\n}\n\n@RedocComponent({\n selector: 'params-list',\n template: `\n <h2 class=\"param-list-header\" *ngIf=\"data.params.length\"> Parameters </h2>\n <template ngFor [ngForOf]=\"data.params\" #paramType=\"$implicit\">\n <header class=\"paramType\"> {{paramType.place}} Parameters </header>\n <div class=\"params-wrap\">\n <div *ngFor=\"#param of paramType.params\" class=\"param\">\n <div class=\"param-name\">\n <span class=\"param-name-content\"> {{param.name}} </span>\n </div>\n <div class=\"param-info\">\n <div>\n <span class=\"param-type {{param.type}}\" [ngClass]=\"{'with-hint': param._displayTypeHint}\"\n title=\"{{param._displayTypeHint}}\"> {{param._displayType}} {{param._displayFormat}}</span>\n <span *ngIf=\"param.required\" class=\"param-required\">Required</span>\n <div *ngIf=\"param.enum\" class=\"param-enum\">\n <span *ngFor=\"#enumItem of param.enum\" class=\"enum-value {{enumItem.type}}\"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class=\"param-description\" innerHtml=\"{{param.description | marked}}\"></div>\n </div>\n </div>\n </div>\n </template>\n\n <div *ngIf=\"data.bodyParam\">\n <h2 class=\"param-list-header\" *ngIf=\"data.bodyParam\"> Request Body </h2>\n\n <div class=\"body-param-description\" innerHtml=\"{{data.bodyParam.description | marked}}\"></div>\n <div>\n <json-schema-lazy [auto]=\"true\" pointer=\"{{data.bodyParam.pointer}}/schema\">\n </json-schema-lazy>\n </div>\n </div>\n `,\n styles: [`\n .param-list-header{border-bottom:1px solid #999;font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:\"\";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:\"Array of \";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:\"\\\\00a0\"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:\"\";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:\"\";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:\"\";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:\"\";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:\"Values: {\"}.param-enum:after{content:\"}\"}.param-enum>.enum-value:after{content:\", \"}.param-enum>.enum-value:last-of-type:after{content:none}header.paramType{margin:10px 0;text-transform:capitalize}.params-wrap{display:table;width:100%}.param-name{display:table-cell;vertical-align:top}.param-info{display:table-cell;width:100%}.param{display:table-row}.param:last-of-type>.param-name{border-left:0}.param:last-of-type>.param-name:after{content:\"\";display:block;position:absolute;left:0;border-left:1px solid #7D97CE;height:21px;background-color:white;top:0}.param:first-of-type .param-name:after{content:\"\";display:block;position:absolute;left:-1px;border-left:2px solid #fff;height:20px;background-color:white;top:0}\n `],\n directives: [JsonSchema, JsonSchemaLazy]\n})\nexport default class ParamsList extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n let paramsList = this.schemaMgr.getMethodParams(this.pointer, true);\n\n paramsList = paramsList.map((paramData) => {\n let propPointer = paramData._pointer;\n return JsonSchema.injectPropData(paramData, paramData.name, propPointer);\n });\n\n let paramsMap = this.orderParams(paramsList);\n\n if (paramsMap.body && paramsMap.body.length) {\n let bodyParam = paramsMap.body[0];\n bodyParam.pointer = bodyParam._pointer;\n this.data.bodyParam = bodyParam;\n delete paramsMap.body;\n }\n\n this.data.noParams = !(Object.keys(paramsMap).length || this.data.bodyParam);\n\n let paramsPlaces = ['path', 'query', 'formData', 'header', 'body'];\n let params = [];\n paramsPlaces.forEach(place => {\n if (paramsMap[place] && paramsMap[place].length) {\n params.push({place: place, params: paramsMap[place]});\n }\n });\n this.data.params = params;\n }\n\n orderParams(params) {\n let res = {};\n params.forEach((param) => safePush(res, param.in, param));\n return res;\n }\n}\n","'use strict';\n\nimport {ViewChildren, QueryList, ChangeDetectorRef, ChangeDetectionStrategy} from 'angular2/core';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport JsonPointer from '../../utils/JsonPointer';\nimport {Tabs, Tab} from '../../common/components/Tabs/tabs';\nimport SchemaSample from '../SchemaSample/schema-sample';\nimport {PrismPipe} from '../../utils/pipes';\nimport {redocEvents} from '../../events';\n\n@RedocComponent({\n selector: 'request-samples',\n template: `\n <header *ngIf=\"data.bodySchemaPtr || data.samples.length\"> Request samples </header>\n <schema-sample *ngIf=\"!data.samples.length\" [pointer]=\"data.bodySchemaPtr\"> </schema-sample>\n <tabs *ngIf=\"data.samples.length\" (change)=changeLangNotify($event)>\n <tab tabTitle=\"JSON\">\n <schema-sample [pointer]=\"data.bodySchemaPtr\"> </schema-sample>\n </tab>\n <tab *ngFor=\"#sample of data.samples\" [tabTitle]=\"sample.lang\">\n <pre innerHtml=\"{{sample.source | prism:sample.lang}}\"></pre>\n </tab>\n </tabs>\n `,\n styles: [`\n header{font-size:16px;margin:5px 0;color:#8A9094;text-transform:uppercase;font-weight:normal}:host>tabs>ul li{font-size:13px;margin:2px 0;padding:2px 5px;color:#8A9094;line-height:1.25;color:#8A9094}:host>tabs>ul li.active{background-color:white;color:#666}:host tabs ul{padding-top:10px}pre{overflow-x:auto;word-break:break-all;word-wrap:break-word;white-space:pre-wrap}\n `],\n directives: [SchemaSample, Tabs, Tab],\n inputs: ['bodySchemaPtr'],\n pipes: [PrismPipe],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\n@Reflect.metadata('parameters', [[SchemaManager], [new ViewChildren(Tabs), QueryList], [ChangeDetectorRef]])\nexport default class RequestSamples extends BaseComponent {\n constructor(schemaMgr, tabs, changeDetector) {\n super(schemaMgr);\n tabs.changes.subscribe(_ => {\n this.tabs = tabs.first;\n this.subscribeForEvents(_);\n });\n this.changeDetector = changeDetector;\n }\n\n changeLangNotify(lang) {\n redocEvents.samplesLanguageChanged.next(lang);\n }\n\n subscribeForEvents() {\n if (!this.tabs) return;\n redocEvents.samplesLanguageChanged.subscribe((sampleLang) => {\n this.tabs.selectyByTitle(sampleLang);\n this.changeDetector.markForCheck();\n });\n }\n\n prepareModel() {\n this.data = {};\n this.data.bodySchemaPtr = JsonPointer.join(this.bodySchemaPtr, 'schema');\n this.data.samples = this.componentSchema['x-code-samples'] || [];\n }\n}\n","'use strict';\n\nimport {JsonPointer} from '../../utils/JsonPointer';\nimport {RedocComponent, BaseComponent} from '../base';\n\nimport ParamsList from '../ParamsList/params-list';\nimport ResponsesList from '../ResponsesList/responses-list';\nimport ResponsesSamples from '../ResponsesSamples/responses-samples';\nimport SchemaSample from '../SchemaSample/schema-sample';\nimport RequestSamples from '../RequestSamples/request-samples';\n\n@RedocComponent({\n selector: 'method',\n template: `\n <div class=\"method\">\n <div class=\"method-content\">\n <h2 class=\"method-header sharable-header\">\n <a class=\"share-link\" href=\"#{{data.methodAnchor}}\"></a>{{data.methodInfo.summary}}\n </h2>\n <h3 class=\"method-endpoint\">\n <span class=\"http-method\" [ngClass]=\"data.httpMethod\">{{data.httpMethod}}</span>\n <span class=\"api-url\">{{data.apiUrl}}</span> <span class=\"path\">{{data.path}}</span>\n </h3>\n <div class=\"method-tags\" *ngIf=\"data.methodInfo.tags.length\">\n <a *ngFor=\"#tag of data.methodInfo.tags\" attr.href=\"#{{tag}}\"> {{tag}} </a>\n </div>\n <p *ngIf=\"data.methodInfo.description\" class=\"method-description\"\n innerHtml=\"{{data.methodInfo.description | marked}}\">\n </p>\n <params-list pointer=\"{{pointer}}/parameters\"> </params-list>\n <responses-list pointer=\"{{pointer}}/responses\"> </responses-list>\n </div>\n <div class=\"method-samples\">\n <div *ngIf=\"data.bodyParam\">\n <request-samples [pointer]=\"pointer\" [bodySchemaPtr]=\"data.bodyParam._pointer\">\n </request-samples>\n </div>\n <div>\n <responses-samples pointer=\"{{pointer}}/responses\"> </responses-samples>\n </div>\n </div>\n <div>\n `,\n styles: [`\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content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C42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==\");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}:host{padding-bottom:100px;display:block;border-bottom:2px solid rgba(127,127,127,0.25)}responses-list,params-list{display:block}.method-header{font-size:25px;font-weight:200;color:#253137}.method-endpoint{margin:0;font-weight:200;font-size:0}.method-endpoint>span{padding-top:3px;padding-bottom:3px;vertical-align:middle;font-size:14px}.api-url{color:#999;margin-left:10px}.path{font-family:monospace;font-weight:bold;color:#00329F}.method-tags{margin-top:20px}.method-tags a{font-size:16px;color:#999;display:inline-block;padding:0 0.5em;text-decoration:none}.method-tags a:before{content:'#';margin-right:-0.4em}.method-tags a:first-of-type{padding:0}.method-content,.method-samples{display:block;box-sizing:border-box;float:left}.method-content{width:60%;padding:0 20px}.method-samples{color:#CFD2D3;width:40%;padding:10px 20px;background:#263238}responses-samples{display:block}.method-samples header{font-size:16px;margin:5px 0;color:#8A9094;text-transform:uppercase}.method-samples schema-sample{display:block}.method:after{content:\"\";display:table;clear:both}.method-description{padding:30px 0;margin:0}.http-method{color:white;background-color:#1976D3;padding:3px 10px;text-transform:uppercase}.http-method.delete{background-color:red}.http-method.post{background-color:#00329F}.http-method.patch{background-color:orange}.http-method.put{background-color:crimson}.http-method.options{background-color:black}.http-method.head{background-color:darkkhaki}@media (max-width: 1100px){.methods:before{display:none}.method-samples,.method-content{width:100%}.method-samples{margin-top:2em}:host{padding-bottom:0}}\n `],\n directives: [ParamsList, ResponsesList, ResponsesSamples, SchemaSample, RequestSamples],\n inputs: ['tag']\n})\nexport default class Method extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n this.data.apiUrl = this.schemaMgr.apiUrl;\n this.data.httpMethod = JsonPointer.baseName(this.pointer);\n this.data.path = JsonPointer.baseName(this.pointer, 2);\n this.data.methodInfo = this.componentSchema;\n this.data.methodInfo.tags = this.filterMainTags(this.data.methodInfo.tags);\n this.data.bodyParam = this.findBodyParam();\n if (this.componentSchema.operationId) {\n this.data.methodAnchor = 'operation/' + this.componentSchema.operationId;\n } else {\n this.data.methodAnchor = 'tag/' + this.tag + this.pointer;\n }\n }\n\n filterMainTags(tags) {\n var tagsMap = this.schemaMgr.getTagsMap();\n if (!tags) return [];\n return tags.filter(tag => tagsMap[tag] && tagsMap[tag]['x-traitTag']);\n }\n\n findBodyParam() {\n let pathParams = this.schemaMgr.getMethodParams(this.pointer, true);\n let bodyParam = pathParams.find(param => param.in === 'body');\n return bodyParam;\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\nimport Method from '../Method/method';\n\n@RedocComponent({\n selector: 'methods-list',\n template: `\n <div class=\"methods\">\n <div class=\"tag\" *ngFor=\"#tag of data.tags\">\n <div class=\"tag-info\" [attr.tag]=\"tag.name\">\n <h1 class=\"sharable-header\"> <a class=\"share-link\" href=\"#tag/{{tag.name}}\"></a>{{tag.name}} </h1>\n <p *ngIf=\"tag.description\" innerHtml=\"{{ tag.description | marked }}\"> </p>\n </div>\n <method *ngFor=\"#method of tag.methods\" [pointer]=\"method.pointer\" [attr.pointer]=\"method.pointer\"\n [attr.tag]=\"method.tag\" [tag]=\"method.tag\" [attr.operation-id]=\"method.operationId\"></method>\n </div>\n </div>\n `,\n styles: [`\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:\"\";width:15px;height:15px;background-size:contain;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==\");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}.tag-info{padding:0 20px;box-sizing:border-box;background-color:white}.tag-info:after,.tag-info:before{content:\"\";display:table}.tag-info h1{color:#00329F;text-transform:capitalize;font-weight:normal}.methods{display:block;position:relative}.methods:before{content:\"\";background:#263238;height:100%;width:40%;top:0;right:0;position:absolute;z-index:-1}@media (max-width: 1100px){.methods:before{display:none}}\n `],\n directives: [Method]\n})\nexport default class MethodsList extends BaseComponent {\n\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n // follow SwaggerUI behavior for cases when one method has more than one tag:\n // duplicate methods\n\n let menuStructure = this.schemaMgr.buildMenuTree();\n let tags = Array.from(menuStructure.entries())\n .map((entry) => {\n let [tag, {description, methods}] = entry;\n // inject tag name into method info\n methods = methods || [];\n methods.forEach(method => {\n method.tag = tag;\n });\n return {\n name: tag,\n description: description,\n methods: methods\n };\n });\n this.data.tags = tags;\n // TODO: check $ref field\n }\n}\n","'use strict';\n\nimport {Directive, ElementRef} from 'angular2/core';\nimport {BrowserDomAdapter} from 'angular2/platform/browser';\n\n@Directive({\n selector: '[sticky-sidebar]',\n inputs: ['scrollParent', 'scrollYOffset']\n})\n@Reflect.metadata('parameters', [[ElementRef], [BrowserDomAdapter]])\nexport default class StickySidebar {\n constructor(elementRef, dom) {\n this.$element = elementRef.nativeElement;\n this.dom = dom;\n\n // initial styling\n this.dom.setStyle(this.$element, 'position', 'absolute');\n this.dom.setStyle(this.$element, 'top', '0');\n this.dom.setStyle(this.$element, 'bottom', '0');\n this.dom.setStyle(this.$element, 'max-height', '100%');\n }\n\n bind() {\n this.cancelScrollBinding = this.dom.onAndCancel(this.scrollParent, 'scroll', () => { this.updatePosition(); });\n this.updatePosition();\n }\n\n unbind() {\n this.cancelScrollBinding && this.cancelScrollBinding();\n }\n\n updatePosition() {\n if ( this.scrollY + this.scrollYOffset() >= this.$redocEl.offsetTop) {\n this.stick();\n } else {\n this.unstick();\n }\n }\n\n stick() {\n this.dom.setStyle(this.$element, 'position', 'fixed');\n this.dom.setStyle(this.$element, 'top', this.scrollYOffset() + 'px');\n }\n\n unstick() {\n this.dom.setStyle(this.$element, 'position', 'absolute');\n this.dom.setStyle(this.$element, 'top', 0);\n }\n\n get scrollY() {\n return (this.scrollParent.pageYOffset != null) ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop;\n }\n\n ngOnInit() {\n // FIXME use more reliable code\n this.$redocEl = this.$element.offsetParent;\n this.bind();\n }\n\n ngOnDestroy() {\n this.unbind();\n }\n}\n","'use strict';\n\nimport {ChangeDetectionStrategy, provide, enableProdMode} from 'angular2/core';\nimport {ElementRef} from 'angular2/core';\nimport {BrowserDomAdapter, bootstrap} from 'angular2/platform/browser';\nimport detectScollParent from 'scrollparent';\nimport {RedocComponent, BaseComponent} from '../base';\nimport SchemaManager from '../../utils/SchemaManager';\n\nimport ApiInfo from '../ApiInfo/api-info';\nimport ApiLogo from '../ApiLogo/api-logo';\nimport MethodsList from '../MethodsList/methods-list';\nimport SideMenu from '../SideMenu/side-menu';\nimport StickySidebar from '../../common/components/StickySidebar/sticky-sidebar';\nimport OptionsManager from '../../options';\nimport {redocEvents} from '../../events';\n\nimport './redoc-loading-styles.css!css';\n\nvar dom = new BrowserDomAdapter();\nvar _modeLocked = false;\n\n@RedocComponent({\n selector: 'redoc',\n providers: [\n SchemaManager,\n BrowserDomAdapter\n ],\n template: `\n <div class=\"redoc-wrap\">\n <div class=\"menu-content\" sticky-sidebar [scrollParent]=\"options.$scrollParent\" [scrollYOffset]=\"options.scrollYOffset\">\n <api-logo> </api-logo>\n <side-menu> </side-menu>\n </div>\n <div id=\"api-content\">\n <api-info> </api-info>\n <methods-list> </methods-list>\n <footer>\n <div class=\"powered-by-badge\">\n <a href=\"https://github.com/Rebilly/ReDoc\" title=\"Swagger-generated API Reference Documentation\" target=\"_blank\">\n Powered by <strong>ReDoc</strong>\n </a>\n </div>\n </footer>\n </div>\n </div>\n `,\n styles: [`\n :host{display:block;box-sizing:border-box}.redoc-wrap{position:relative}side-menu{display:block;box-sizing:border-box}methods-list{display:block;overflow:hidden}api-info,.side-bar{display:block;padding:10px 0}api-info{padding:10px 20px}api-logo{display:block;text-align:center}@media (max-width: 1000px){api-logo{display:none}}[sticky-sidebar]{width:260px;background-color:#FAFAFA;overflow-y:auto;overflow-x:hidden}@media (max-width: 1000px){[sticky-sidebar]{z-index:1;width:100%;bottom:auto !important}}#api-content{margin-left:260px}@media (max-width: 1000px){#api-content{padding-top:3em;margin-left:0}}#api-content:after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;background-color:black;opacity:0.5;transition:all 0.3s ease;display:none}#api-content.menu-opened:after{display:block}footer{text-align:right;padding:10px;font-size:15px}footer a{color:#999;text-decoration:none}footer strong{font-size:18px;color:#00329F}:host p{margin:0;margin-bottom:1em}:host .redoc-markdown-block pre{font-family:Courier, monospace;white-space:pre-wrap;background-color:rgba(0,0,0,0.04);padding:10px;overflow-x:auto;line-height:normal;border-radius:3px}:host .redoc-markdown-block pre code{background-color:transparent}:host .redoc-markdown-block pre code:before,:host .redoc-markdown-block pre code:after{content:none}:host .redoc-markdown-block code{font-family:Courier, monospace;background-color:rgba(0,0,0,0.04);padding:0.2em 0;font-size:0.85em;border-radius:3px}:host .redoc-markdown-block code:before,:host .redoc-markdown-block code:after{letter-spacing:-0.2em;content:\"\\\\00a0\"}:host .redoc-markdown-block p{margin:0;margin-bottom:1em}:host .redoc-markdown-block p:last-of-type{margin-bottom:0}:host .redoc-markdown-block blockquote{margin:0;margin-bottom:1em;padding:0 15px;color:#777;border-left:4px solid #ddd}:host .redoc-markdown-block img{max-width:100%;box-sizing:content-box}:host .redoc-markdown-block ul,:host .redoc-markdown-block ol{padding-left:2em;margin:0;margin-bottom:1em}:host .redoc-markdown-block table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;border-collapse:collapse;border-spacing:0;margin-top:0.5em;margin-bottom:0.5em}:host .redoc-markdown-block table tr{background-color:#fff;border-top:1px solid #ccc}:host .redoc-markdown-block table tr:nth-child(2n){background-color:#f8f8f8}:host .redoc-markdown-block table th,:host .redoc-markdown-block table td{padding:6px 13px;border:1px solid #ddd}:host .redoc-markdown-block table th{text-align:left;font-weight:bold}\n `],\n directives: [ApiInfo, ApiLogo, MethodsList, SideMenu, StickySidebar],\n changeDetection: ChangeDetectionStrategy.Default\n})\n@Reflect.metadata('parameters', [\n [SchemaManager], [OptionsManager], [ElementRef]])\nexport default class Redoc extends BaseComponent {\n constructor(schemaMgr, optionsMgr, elementRef) {\n super(schemaMgr);\n this.element = elementRef.nativeElement;\n //parse options (top level component doesn't support inputs)\n optionsMgr.parseOptions( this.element );\n optionsMgr.options.$scrollParent = detectScollParent( this.element );\n this.options = optionsMgr.options;\n }\n\n static showLoadingAnimation() {\n let elem = dom.query('redoc');\n dom.addClass(elem, 'loading');\n }\n\n static hideLoadingAnimation() {\n let redocEl = dom.query('redoc');\n dom.addClass(redocEl, 'loading-remove');\n setTimeout(() => {\n dom.removeClass(redocEl, 'loading-remove');\n dom.removeClass(redocEl, 'loading');\n }, 400);\n }\n\n static init(schemaUrl, options) {\n var optionsMgr = new OptionsManager();\n optionsMgr.options = options;\n var providers = [\n provide(OptionsManager, {useValue: optionsMgr})\n ];\n\n if (Redoc.appRef) {\n Redoc.dispose();\n }\n Redoc.showLoadingAnimation();\n return SchemaManager.instance().load(schemaUrl)\n .then(() => {\n if (!_modeLocked && !optionsMgr.options.debugMode) {\n enableProdMode();\n _modeLocked = true;\n }\n return bootstrap(Redoc, providers);\n })\n .then(\n (appRef) => {\n Redoc.hideLoadingAnimation();\n Redoc.appRef = appRef;\n // setTimeout to allow cached elements to init\n setTimeout(() => redocEvents.bootstrapped.next());\n console.log('ReDoc bootstrapped!');\n },\n error => {\n console.log(error);\n throw error;\n }\n );\n }\n\n static autoInit() {\n const specUrlAttributeName = 'spec-url';\n let redocEl = dom.query('redoc');\n if (!redocEl) return;\n if (dom.hasAttribute(redocEl, specUrlAttributeName)) {\n let url = dom.getAttribute(redocEl, specUrlAttributeName);\n Redoc.init(url);\n }\n }\n\n static dispose() {\n let el = dom.query('redoc');\n let elClone;\n let parent;\n let nextSibling;\n if (el) {\n parent = el.parentElement;\n nextSibling = el.nextElementSibling;\n }\n\n elClone = el.cloneNode(false);\n\n if (Redoc.appRef) {\n Redoc.appRef.dispose();\n Redoc.appRef = null;\n\n // Redoc dispose removes host element, so need to restore it\n elClone.innerHTML = 'Loading...';\n parent && parent.insertBefore(elClone, nextSibling);\n }\n }\n}\n","'use strict';\n\nimport {Component, View, ElementRef} from 'angular2/core';\nimport {CORE_DIRECTIVES} from 'angular2/common';\nimport {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component_loader';\n\nimport JsonSchema from './json-schema';\nimport OptionsManager from '../../options';\nimport SchemaManager from '../../utils/SchemaManager';\n\n\nvar cache = {};\n\n\n@Component({\n selector: 'json-schema-lazy',\n inputs: ['pointer', 'auto']\n})\n@View({\n template: '',\n directives: [CORE_DIRECTIVES]\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ElementRef], [DynamicComponentLoader], [OptionsManager]])\nexport default class JsonSchemaLazy {\n\n constructor(schemaMgr, elementRef, dcl, optionsMgr) {\n this.elementRef = elementRef;\n this.dcl = dcl;\n this.optionsMgr = optionsMgr;\n this.schemaMgr = schemaMgr;\n }\n\n normalizePointer() {\n let schema = this.schemaMgr.byPointer(this.pointer);\n return schema && schema.$ref || this.pointer;\n }\n\n load() {\n if (this.optionsMgr.options.disableLazySchemas) return;\n if (this.loaded) return;\n if (this.pointer) {\n this.dcl.loadNextToLocation(JsonSchema, this.elementRef).then((compRef) => {\n compRef.instance.pointer = this.pointer;\n });\n }\n this.loaded = true;\n }\n\n // cache JsonSchema view\n loadCached() {\n this.pointer = this.normalizePointer(this.pointer);\n if (cache[this.pointer]) {\n cache[this.pointer].then((compRef) => {\n setTimeout( ()=> {\n let $element = compRef.location.nativeElement;\n\n // skip caching view with tabs inside (discriminator) as it needs attached controller\n if ($element.querySelector('tabs')) {\n this.dcl.loadNextToLocation(JsonSchema, this.elementRef).then((compRef) => {\n compRef.instance.pointer = this.pointer;\n compRef.hostView.changeDetectorRef.markForCheck();\n });\n return;\n }\n insertAfter($element.cloneNode(true), this.elementRef.nativeElement);\n } );\n });\n } else {\n cache[this.pointer] = this.dcl.loadNextToLocation(JsonSchema, this.elementRef).then((compRef) => {\n compRef.instance.pointer = this.pointer;\n compRef.hostView.changeDetectorRef.markForCheck();\n return compRef;\n });\n }\n }\n\n ngAfterViewInit() {\n if (!this.auto) return;\n this.loadCached();\n }\n\n ngOnDestroy() {\n // clear cache\n cache = {};\n }\n}\n\nfunction insertAfter(newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);\n}\n","'use strict';\n\nimport {Component, View, EventEmitter} from 'angular2/core';\nimport {CORE_DIRECTIVES} from 'angular2/common';\n\n@Component({\n selector: 'zippy',\n events: ['open', 'close'],\n inputs: ['title', 'visible', 'type', 'empty']\n})\n@View({\n template: `\n <div class=\"zippy zippy-{{type}}\" [ngClass]=\"{'zippy-empty': empty}\">\n <div class=\"zippy-title\" (click)=\"toggle()\">\n <span class=\"zippy-indicator\">{{ visible ? '▾' : '▸' }}</span>\n {{title}}\n </div>\n <div class=\"zippy-content\" [ngClass]=\"{'zippy-hidden': !visible}\">\n <ng-content></ng-content>\n </div>\n </div>\n `,\n styles: [`\n .zippy-title{padding:10px;margin:2px 0;line-height:1.5em;background-color:#f2f2f2;cursor:pointer}.zippy-success>.zippy-title{color:#09AC1C;background-color:#E1F5E3}.zippy-error>.zippy-title{color:#E54541;background-color:#FBE7E7}.zippy-redirect>.zippy-title{color:#AC7C09;background-color:#F5F0E1}.zippy-info>.zippy-title{color:#096DAC;background-color:#E1EFF5}span.zippy-indicator{font-size:1.5em;line-height:1;margin-right:0.2em;vertical-align:text-bottom}.zippy-content{padding:15px 0}.zippy-empty .zippy-title{cursor:default}.zippy-empty .zippy-indicator{display:none}.zippy-empty .zippy-content{display:none}.zippy-hidden{overflow:hidden;visibility:hidden;height:0;padding:0}\n `],\n directives: [CORE_DIRECTIVES]\n})\nexport default class Zippy {\n\n constructor() {\n this.type = 'general';\n this.visible = false;\n this.empty = false;\n this.open = new EventEmitter();\n this.close = new EventEmitter();\n }\n\n toggle() {\n this.visible = !this.visible;\n if (this.empty) return;\n (this.visible) ? this.open.next() : this.close.next();\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport JsonPointer from '../../utils/JsonPointer';\nimport JsonSchema from '../JsonSchema/json-schema';\nimport JsonSchemaLazy from '../JsonSchema/json-schema-lazy';\nimport Zippy from '../../common/components/Zippy/zippy';\nimport {statusCodeType} from '../../utils/helpers';\nimport OptionsManager from '../../options';\n\nfunction isNumeric(n) {\n return (!isNaN(parseFloat(n)) && isFinite(n));\n}\n\n@RedocComponent({\n selector: 'responses-list',\n template: `\n <h2 class=\"responses-list-header\" *ngIf=\"data.responses.length\"> Responses </h2>\n <zippy *ngFor=\"#response of data.responses\" title=\"{{response.code}} {{response.description}}\"\n [type]=\"response.type\" [empty]=\"response.empty\" (open)=\"lazySchema.load()\">\n <div *ngIf=\"response.headers\" class=\"response-headers\">\n <header>\n Headers\n </header>\n <div class=\"header\" *ngFor=\"#header of response.headers\">\n <div class=\"header-name\"> {{header.name}} </div>\n <div class=\"header-type\"> {{header.type}} </div>\n <div class=\"header-description\" innerHtml=\"{{header.description | marked}}\"> </div>\n </div>\n </div>\n <header>\n Response schema\n </header>\n <json-schema *ngIf=\"response.schema && options.disableLazySchemas\" class=\"schema type\" pointer=\"{{response.pointer}}/schema\">\n </json-schema>\n <json-schema-lazy #lazySchema pointer=\"{{response.schema ? response.pointer + '/schema' : null}}\">\n </json-schema-lazy>\n </zippy>\n `,\n styles: [`\n .responses-list-header{font-size:18px;padding:0.2em 0;margin:0.5em 0;color:#253137;font-weight:normal}.header-name{font-weight:bold;display:inline-block}.header-type{display:inline-block;font-weight:bold;color:#999}header{font-size:14px;font-weight:bold;text-transform:uppercase;margin-bottom:15px}.header{margin-bottom:10px}\n `],\n directives: [JsonSchema, Zippy, JsonSchemaLazy]\n})\n@Reflect.metadata('parameters', [[SchemaManager], [OptionsManager]])\nexport default class ResponsesList extends BaseComponent {\n constructor(schemaMgr, optionsMgr) {\n super(schemaMgr);\n this.options = optionsMgr.options;\n }\n\n prepareModel() {\n this.data = {};\n this.data.responses = [];\n\n let responses = this.componentSchema;\n if (!responses) return;\n\n responses = Object.keys(responses).filter(respCode => {\n // only response-codes and \"default\"\n return ( isNumeric(respCode) || (respCode === 'default'));\n }).map(respCode => {\n let resp = responses[respCode];\n resp.pointer = JsonPointer.join(this.pointer, respCode);\n if (resp.$ref) {\n let ref = resp.$ref;\n resp = this.schemaMgr.byPointer(resp.$ref);\n resp.pointer = ref;\n }\n\n resp.empty = !resp.schema;\n resp.code = respCode;\n resp.type = statusCodeType(resp.code);\n if (resp.headers) {\n resp.headers = Object.keys(resp.headers).map((k) => {\n let respInfo = resp.headers[k];\n respInfo.name = k;\n return respInfo;\n });\n resp.empty = false;\n }\n resp.extendable = resp.headers || resp.length;\n return resp;\n });\n this.data.responses = responses;\n }\n}\n","'use strict';\n\nexport function statusCodeType(statusCode) {\n if (statusCode < 100 || statusCode > 599) {\n throw new Error('invalid HTTP code');\n }\n let res = 'success';\n if (statusCode >= 300 && statusCode < 400) {\n res = 'redirect';\n } else if (statusCode >= 400) {\n res = 'error';\n } else if (statusCode < 200) {\n res = 'info';\n }\n return res;\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\nimport JsonPointer from '../../utils/JsonPointer';\nimport {Tabs, Tab} from '../../common/components/Tabs/tabs';\nimport SchemaSample from '../SchemaSample/schema-sample';\nimport {statusCodeType} from '../../utils/helpers';\n\n\nfunction isNumeric(n) {\n return (!isNaN(parseFloat(n)) && isFinite(n));\n}\n\nfunction hasExample(response) {\n return ((response.examples && response.examples['application/json']) ||\n response.schema);\n}\n\n@RedocComponent({\n selector: 'responses-samples',\n template: `\n <header *ngIf=\"data.responses.length\"> Responses samples </header>\n <tabs *ngIf=\"data.responses.length\">\n <tab *ngFor=\"#response of data.responses\" tabTitle=\"{{response.code}} {{response.description}}\"\n [tabStatus]=\"response.type\">\n <schema-sample [pointer]=\"response.pointer\"></schema-sample>\n </tab>\n </tabs>\n `,\n styles: [`\n tab,tabs{display:block}schema-sample{display:block}header{font-size:16px;margin:5px 0;color:#8A9094;text-transform:uppercase;font-weight:normal}:host>tabs>ul li{font-size:13px;margin:2px 0;padding:2px 5px;color:#8A9094;line-height:1.25;color:#8A9094}:host>tabs>ul li.active{background-color:white;color:#666}:host tabs ul{padding-top:10px}\n `],\n directives: [SchemaSample, Tabs, Tab]\n})\nexport default class ResponsesSamples extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n this.data.responses = [];\n\n let responses = this.componentSchema;\n if (!responses) return;\n\n responses = Object.keys(responses).filter(respCode => {\n // only response-codes and \"default\"\n return ( isNumeric(respCode) || (respCode === 'default'));\n }).map(respCode => {\n let resp = responses[respCode];\n resp.pointer = JsonPointer.join(this.pointer, respCode);\n if (resp.$ref) {\n let ref = resp.$ref;\n resp = this.schemaMgr.byPointer(resp.$ref);\n resp.pointer = ref;\n }\n\n resp.code = respCode;\n resp.type = statusCodeType(resp.code);\n return resp;\n })\n .filter(response => hasExample(response));\n this.data.responses = responses;\n }\n}\n","/* */ \n'use strict';\n\n// The JSON Object that defines the default values of certain types.\nvar typesInstantiator = {\n 'string': '',\n 'number': 0,\n 'integer': 0,\n 'null': null,\n 'boolean': false, // Always stay positive?\n 'object': { }\n};\n\n/**\n * Checks whether a variable is a primitive.\n * @param obj - an object.\n * @returns {boolean}\n */\nfunction isPrimitive(obj) {\n var type = obj.type;\n\n return typesInstantiator[type] !== undefined;\n}\n\n/**\n * Instantiate a primitive.\n * @param val - The object that represents the primitive.\n * @returns {*}\n */\nfunction instantiatePrimitive(val) {\n var type = val.type;\n\n // Support for default values in the JSON Schema.\n if (val.default) {\n return val.default;\n }\n\n return typesInstantiator[type];\n}\n\n/**\n * The main function.\n * Calls sub-objects recursively, depth first, using the sub-function 'visit'.\n * @param schema - The schema to instantiate.\n * @returns {*}\n */\nfunction instantiate(schema) {\n\n /**\n * Visits each sub-object using recursion.\n * If it reaches a primitive, instantiate it.\n * @param obj - The object that represents the schema.\n * @param name - The name of the current object.\n * @param data - The instance data that represents the current object.\n */\n function visit(obj, name, data) {\n if (!obj) {\n return;\n }\n var i;\n var type = obj.type;\n // We want non-primitives objects (primitive === object w/o properties).\n if (type === 'object' && obj.properties) {\n data[name] = data[name] || { };\n\n // Visit each property.\n for (var property in obj.properties) {\n if (obj.properties.hasOwnProperty(property)) {\n visit(obj.properties[property], property, data[name]);\n }\n }\n } else if (obj.allOf) {\n for (i = 0; i < obj.allOf.length; i++) {\n visit(obj.allOf[i], name, data);\n }\n } else if (type === 'array') {\n data[name] = [];\n var len = 1;\n if (obj.minItems || obj.minItems === 0) {\n len = obj.minItems;\n }\n\n // Instantiate 'len' items.\n for (i = 0; i < len; i++) {\n visit(obj.items, i, data[name]);\n }\n\n } else if (isPrimitive(obj)) {\n data[name] = instantiatePrimitive(obj);\n }\n }\n\n var data = {};\n visit(schema, 'kek', data);\n return data['kek'];\n}\n\n// If we're using Node.js, export the module.\nif (typeof module !== 'undefined') {\n module.exports = {\n instantiate: instantiate\n };\n}\n","/* */ \nmodule.exports = require('./src/instantiator');\n","module.exports = require(\"npm:json-schema-instantiator@0.3.0/index.js\");","'use strict';\nimport {Pipe} from 'angular2/core';\nimport {isBlank} from 'angular2/src/facade/lang';\n\nvar level = 1;\nconst COLLAPSE_LEVEL = 2;\n\n@Pipe({ name: 'jsonFormatter' })\nexport class JsonFormatter {\n transform(value) {\n if (isBlank(value)) return value;\n return jsonToHTML(value);\n }\n}\n\nfunction htmlEncode(t) {\n return t != null ? t.toString().replace(/&/g, '&').replace(/\"/g, '"').replace(/</g, '<').replace(/>/g, '>') : '';\n}\n\nfunction decorateWithSpan(value, className) {\n return '<span class=\"' + className + '\">' + htmlEncode(value) + '</span>';\n}\n\nfunction valueToHTML(value) {\n var valueType = typeof value, output = '';\n if (value == null) {\n output += decorateWithSpan('null', 'type-null');\n }\n else if (value && value.constructor === Array) {\n level++;\n output += arrayToHTML(value);\n level--;\n }\n else if (valueType === 'object') {\n level++;\n output += objectToHTML(value);\n level--;\n }\n else if (valueType === 'number') {\n output += decorateWithSpan(value, 'type-number');\n }\n else if (valueType === 'string') {\n if (/^(http|https):\\/\\/[^\\\\s]+$/.test(value)) {\n output += decorateWithSpan('\"', 'type-string') + '<a href=\"' + value + '\">' + htmlEncode(value) + '</a>' + decorateWithSpan('\"', 'type-string');\n } else {\n output += decorateWithSpan('\"' + value + '\"', 'type-string');\n }\n } else if (valueType === 'boolean') {\n output += decorateWithSpan(value, 'type-boolean');\n }\n\n return output;\n}\n\nfunction arrayToHTML(json) {\n var collapsed = level > COLLAPSE_LEVEL ? 'collapsed' : '';\n var i, length;\n var output = '<div class=\"collapser\"></div>[<span class=\"ellipsis\"></span><ul class=\"array collapsible\">';\n var hasContents = false;\n for (i = 0, length = json.length; i < length; i++) {\n hasContents = true;\n output += '<li><div class=\"hoverable ' + collapsed + '\">';\n output += valueToHTML(json[i]);\n if (i < length - 1) {\n output += ',';\n }\n output += '</div></li>';\n }\n output += '</ul>]';\n if (!hasContents) {\n output = '[ ]';\n }\n return output;\n}\n\nfunction objectToHTML(json) {\n var collapsed = level > COLLAPSE_LEVEL ? 'collapsed' : '';\n var i, key, length, keys = Object.keys(json);\n var output = '<div class=\"collapser\"></div>{<span class=\"ellipsis\"></span><ul class=\"obj collapsible\">';\n var hasContents = false;\n for (i = 0, length = keys.length; i < length; i++) {\n key = keys[i];\n hasContents = true;\n output += '<li><div class=\"hoverable ' + collapsed + '\">';\n output += '<span class=\"property\">' + htmlEncode(key) + '</span>: ';\n output += valueToHTML(json[key]);\n if (i < length - 1) {\n output += ',';\n }\n output += '</div></li>';\n }\n output += '</ul>}';\n if (!hasContents) {\n output = '{ }';\n }\n return output;\n}\n\nfunction jsonToHTML(json) {\n level = 1;\n var output = '';\n output += '<div class=\"redoc-json\">';\n output += valueToHTML(json);\n output += '</div>';\n return output;\n}\n","'use strict';\n\nimport {ElementRef} from 'angular2/core';\n\nimport SchemaSampler from 'json-schema-instantiator';\n\nimport {JsonFormatter} from '../../utils/JsonFormatterPipe';\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\n\n@RedocComponent({\n selector: 'schema-sample',\n template: `\n <div class=\"snippet\">\n <!-- in case sample is not available for some reason -->\n <pre *ngIf=\"data.sample == null\"> Sample unavailable </pre>\n <pre innerHtml=\"{{data.sample | jsonFormatter}}\"></pre>\n </div>\n `,\n pipes: [JsonFormatter],\n styles: [`\n pre{background-color:transparent;padding:0}:host .type-null{color:gray}:host .type-boolean{color:firebrick}:host .type-number{color:#4A8BB3}:host .type-string{color:#66B16E}:host .callback-function{color:gray}:host .collapser:after{content:\"-\";cursor:pointer}:host .collapsed>.collapser:after{content:\"+\";cursor:pointer}:host .ellipsis:after{content:\" … \"}:host .collapsible{margin-left:2em}:host .hoverable{padding-top:1px;padding-bottom:1px;padding-left:2px;padding-right:2px;border-radius:2px}:host .hovered{background-color:#ebeef9}:host .collapser{padding-right:6px;padding-left:6px}:host ul,:host .redoc-json ul{list-style-type:none;padding:0px;margin:0px 0px 0px 26px}:host li{position:relative}:host .hoverable{transition:background-color .2s ease-out 0s;-webkit-transition:background-color .2s ease-out 0s;display:inline-block}:host .hovered{transition-delay:.2s;-webkit-transition-delay:.2s}:host .selected{outline-style:solid;outline-width:1px;outline-style:dotted}:host .collapsed>.collapsible{display:none}:host .ellipsis{display:none}:host .collapsed>.ellipsis{display:inherit}:host .collapser{position:absolute;top:1px;left:-1.5em;cursor:default;user-select:none;-webkit-user-select:none}\n `]\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ElementRef]])\nexport default class SchemaSample extends BaseComponent {\n constructor(schemaMgr, elementRef) {\n super(schemaMgr);\n this.element = elementRef.nativeElement;\n }\n\n init() {\n this.data = {};\n\n let base = {};\n let sample;\n\n // got pointer not directly to the schema but e.g. to response obj\n if (this.componentSchema.schema) {\n base = this.componentSchema;\n this.componentSchema = this.componentSchema.schema;\n }\n\n if (base.examples && base.examples['application/json']) {\n sample = base.examples['application/json'];\n } else {\n this.dereference(this.componentSchema);\n sample = SchemaSampler.instantiate(this.componentSchema);\n }\n\n this.data.sample = sample;\n\n\n this.element.addEventListener('click', (event) => {\n var collapsed, target = event.target;\n if (event.target.className === 'collapser') {\n collapsed = target.parentNode.getElementsByClassName('collapsible')[0];\n if (collapsed.parentNode.classList.contains('collapsed')) {\n collapsed.parentNode.classList.remove('collapsed');\n } else {\n collapsed.parentNode.classList.add('collapsed');\n }\n }\n });\n }\n}\n","/* */ \nvar 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 || '@@iterator' in O || Iterators.hasOwnProperty(classof(O));\n};\n","/* */ \nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };","/* */ \n\"use strict\";\nvar _getIterator = require('../core-js/get-iterator')[\"default\"];\nvar _isIterable = require('../core-js/is-iterable')[\"default\"];\nexports[\"default\"] = (function() {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for (var _i = _getIterator(arr),\n _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i)\n break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"])\n _i[\"return\"]();\n } finally {\n if (_d)\n throw _e;\n }\n }\n return _arr;\n }\n return function(arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (_isIterable(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n})();\nexports.__esModule = true;\n","'use strict';\n\nimport {EventEmitter} from 'angular2/core';\n\nvar bootsrEmmiter = new EventEmitter();\nvar langChanged = new EventEmitter();\nexport var redocEvents = {\n bootstrapped: bootsrEmmiter,\n samplesLanguageChanged: langChanged\n};\n","/* */ \n(function(process) {\n 'use strict';\n var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\n var __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\n var lang_1 = require('../facade/lang');\n var AngularEntrypoint = (function() {\n function AngularEntrypoint(name) {\n this.name = name;\n }\n AngularEntrypoint = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], AngularEntrypoint);\n return AngularEntrypoint;\n })();\n exports.AngularEntrypoint = AngularEntrypoint;\n})(require('process'));\n","/* */ \n(function(process) {\n 'use strict';\n var __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\n var __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\n var dom_adapter_1 = require('../dom_adapter');\n var lang_1 = require('../../../facade/lang');\n var collection_1 = require('../../../facade/collection');\n var event_manager_1 = require('./event_manager');\n var di_1 = require('../../../core/di');\n var modifierKeys = ['alt', 'control', 'meta', 'shift'];\n var modifierKeyGetters = {\n 'alt': function(event) {\n return event.altKey;\n },\n 'control': function(event) {\n return event.ctrlKey;\n },\n 'meta': function(event) {\n return event.metaKey;\n },\n 'shift': function(event) {\n return event.shiftKey;\n }\n };\n var KeyEventsPlugin = (function(_super) {\n __extends(KeyEventsPlugin, _super);\n function KeyEventsPlugin() {\n _super.call(this);\n }\n KeyEventsPlugin.prototype.supports = function(eventName) {\n return lang_1.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, collection_1.StringMapWrapper.get(parsedEvent, 'fullKey'), handler, this.manager.getZone());\n return this.manager.getZone().runOutsideAngular(function() {\n return dom_adapter_1.DOM.onAndCancel(element, collection_1.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) || !(lang_1.StringWrapper.equals(domEventName, 'keydown') || lang_1.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 (collection_1.ListWrapper.contains(parts, modifierName)) {\n collection_1.ListWrapper.remove(parts, modifierName);\n fullKey += modifierName + '.';\n }\n });\n fullKey += key;\n if (parts.length != 0 || key.length === 0) {\n return null;\n }\n var result = collection_1.StringMapWrapper.create();\n collection_1.StringMapWrapper.set(result, 'domEventName', domEventName);\n collection_1.StringMapWrapper.set(result, 'fullKey', fullKey);\n return result;\n };\n KeyEventsPlugin.getEventFullKey = function(event) {\n var fullKey = '';\n var key = dom_adapter_1.DOM.getEventKey(event);\n key = key.toLowerCase();\n if (lang_1.StringWrapper.equals(key, ' ')) {\n key = 'space';\n } else if (lang_1.StringWrapper.equals(key, '.')) {\n key = 'dot';\n }\n modifierKeys.forEach(function(modifierName) {\n if (modifierName != key) {\n var modifierGetter = collection_1.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) {\n if (lang_1.StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event), fullKey)) {\n zone.run(function() {\n return handler(event);\n });\n }\n };\n };\n KeyEventsPlugin._normalizeKey = function(keyName) {\n switch (keyName) {\n case 'esc':\n return 'escape';\n default:\n return keyName;\n }\n };\n KeyEventsPlugin = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], KeyEventsPlugin);\n return KeyEventsPlugin;\n })(event_manager_1.EventManagerPlugin);\n exports.KeyEventsPlugin = KeyEventsPlugin;\n})(require('process'));\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar event_manager_1 = require('./event_manager');\nvar collection_1 = require('../../../facade/collection');\nvar _eventNames = {\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': true,\n 'pinchstart': true,\n 'pinchmove': true,\n 'pinchend': true,\n 'pinchcancel': true,\n 'pinchin': true,\n 'pinchout': true,\n 'press': true,\n 'pressup': true,\n 'rotate': true,\n 'rotatestart': true,\n 'rotatemove': true,\n 'rotateend': true,\n 'rotatecancel': true,\n 'swipe': true,\n 'swipeleft': true,\n 'swiperight': true,\n 'swipeup': true,\n 'swipedown': true,\n 'tap': true\n};\nvar HammerGesturesPluginCommon = (function(_super) {\n __extends(HammerGesturesPluginCommon, _super);\n function HammerGesturesPluginCommon() {\n _super.call(this);\n }\n HammerGesturesPluginCommon.prototype.supports = function(eventName) {\n eventName = eventName.toLowerCase();\n return collection_1.StringMapWrapper.contains(_eventNames, eventName);\n };\n return HammerGesturesPluginCommon;\n})(event_manager_1.EventManagerPlugin);\nexports.HammerGesturesPluginCommon = HammerGesturesPluginCommon;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar hammer_common_1 = require('./hammer_common');\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar di_1 = require('../../../core/di');\nvar HammerGesturesPlugin = (function(_super) {\n __extends(HammerGesturesPlugin, _super);\n function HammerGesturesPlugin() {\n _super.apply(this, arguments);\n }\n HammerGesturesPlugin.prototype.supports = function(eventName) {\n if (!_super.prototype.supports.call(this, eventName))\n return false;\n if (!lang_1.isPresent(window['Hammer'])) {\n throw new exceptions_1.BaseException(\"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 zone = this.manager.getZone();\n eventName = eventName.toLowerCase();\n return zone.runOutsideAngular(function() {\n var mc = new Hammer(element);\n mc.get('pinch').set({enable: true});\n mc.get('rotate').set({enable: true});\n var handler = function(eventObj) {\n zone.run(function() {\n handler(eventObj);\n });\n };\n mc.on(eventName, handler);\n return function() {\n mc.off(eventName, handler);\n };\n });\n };\n HammerGesturesPlugin = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], HammerGesturesPlugin);\n return HammerGesturesPlugin;\n})(hammer_common_1.HammerGesturesPluginCommon);\nexports.HammerGesturesPlugin = HammerGesturesPlugin;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar collection_1 = require('../../facade/collection');\nvar lang_1 = require('../../facade/lang');\nvar dom_adapter_1 = require('../dom/dom_adapter');\nvar xhr_impl_1 = require('./xhr_impl');\nvar GenericBrowserDomAdapter = (function(_super) {\n __extends(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 (lang_1.isPresent(this.getStyle(element, 'animationName'))) {\n this._animationPrefix = '';\n } else {\n var domPrefixes = ['Webkit', 'Moz', 'O', 'ms'];\n for (var i = 0; i < domPrefixes.length; i++) {\n if (lang_1.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 collection_1.StringMapWrapper.forEach(transEndEventNames, function(value, key) {\n if (lang_1.isPresent(_this.getStyle(element, key))) {\n _this._transitionEnd = value;\n }\n });\n } catch (e) {\n this._animationPrefix = null;\n this._transitionEnd = null;\n }\n }\n GenericBrowserDomAdapter.prototype.getXHR = function() {\n return xhr_impl_1.XHRImpl;\n };\n GenericBrowserDomAdapter.prototype.getDistributedNodes = function(el) {\n return el.getDistributedNodes();\n };\n GenericBrowserDomAdapter.prototype.resolveAndSetHref = function(el, baseUrl, href) {\n el.href = href == null ? baseUrl : baseUrl + '/../' + href;\n };\n GenericBrowserDomAdapter.prototype.supportsDOMEvents = function() {\n return true;\n };\n GenericBrowserDomAdapter.prototype.supportsNativeShadowDOM = function() {\n return lang_1.isFunction(this.defaultDoc().body.createShadowRoot);\n };\n GenericBrowserDomAdapter.prototype.getAnimationPrefix = function() {\n return lang_1.isPresent(this._animationPrefix) ? this._animationPrefix : \"\";\n };\n GenericBrowserDomAdapter.prototype.getTransitionEnd = function() {\n return lang_1.isPresent(this._transitionEnd) ? this._transitionEnd : \"\";\n };\n GenericBrowserDomAdapter.prototype.supportsAnimation = function() {\n return lang_1.isPresent(this._animationPrefix) && lang_1.isPresent(this._transitionEnd);\n };\n return GenericBrowserDomAdapter;\n})(dom_adapter_1.DomAdapter);\nexports.GenericBrowserDomAdapter = GenericBrowserDomAdapter;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar collection_1 = require('../../facade/collection');\nvar lang_1 = require('../../facade/lang');\nvar dom_adapter_1 = require('../dom/dom_adapter');\nvar generic_browser_adapter_1 = require('./generic_browser_adapter');\nvar _attrToPropMap = {\n 'class': 'className',\n 'innerHtml': 'innerHTML',\n 'readonly': 'readOnly',\n 'tabindex': 'tabIndex'\n};\nvar DOM_KEY_LOCATION_NUMPAD = 3;\nvar _keyMap = {\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};\nvar _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};\nvar BrowserDomAdapter = (function(_super) {\n __extends(BrowserDomAdapter, _super);\n function BrowserDomAdapter() {\n _super.apply(this, arguments);\n }\n BrowserDomAdapter.prototype.parse = function(templateHtml) {\n throw new Error(\"parse not implemented\");\n };\n BrowserDomAdapter.makeCurrent = function() {\n dom_adapter_1.setRootDomAdapter(new BrowserDomAdapter());\n };\n BrowserDomAdapter.prototype.hasProperty = function(element, name) {\n return name in element;\n };\n BrowserDomAdapter.prototype.setProperty = function(el, name, value) {\n el[name] = value;\n };\n BrowserDomAdapter.prototype.getProperty = function(el, name) {\n return el[name];\n };\n BrowserDomAdapter.prototype.invoke = function(el, methodName, args) {\n el[methodName].apply(el, args);\n };\n BrowserDomAdapter.prototype.logError = function(error) {\n if (window.console.error) {\n window.console.error(error);\n } else {\n window.console.log(error);\n }\n };\n BrowserDomAdapter.prototype.log = function(error) {\n window.console.log(error);\n };\n BrowserDomAdapter.prototype.logGroup = function(error) {\n if (window.console.group) {\n window.console.group(error);\n this.logError(error);\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() {\n return _attrToPropMap;\n },\n enumerable: true,\n configurable: true\n });\n BrowserDomAdapter.prototype.query = function(selector) {\n return document.querySelector(selector);\n };\n BrowserDomAdapter.prototype.querySelector = function(el, selector) {\n return el.querySelector(selector);\n };\n BrowserDomAdapter.prototype.querySelectorAll = function(el, selector) {\n return el.querySelectorAll(selector);\n };\n BrowserDomAdapter.prototype.on = function(el, evt, listener) {\n el.addEventListener(evt, listener, false);\n };\n BrowserDomAdapter.prototype.onAndCancel = function(el, evt, listener) {\n el.addEventListener(evt, listener, false);\n return function() {\n el.removeEventListener(evt, listener, false);\n };\n };\n BrowserDomAdapter.prototype.dispatchEvent = function(el, evt) {\n el.dispatchEvent(evt);\n };\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) {\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 || lang_1.isPresent(evt.returnValue) && !evt.returnValue;\n };\n BrowserDomAdapter.prototype.getInnerHTML = function(el) {\n return el.innerHTML;\n };\n BrowserDomAdapter.prototype.getOuterHTML = function(el) {\n return el.outerHTML;\n };\n BrowserDomAdapter.prototype.nodeName = function(node) {\n return node.nodeName;\n };\n BrowserDomAdapter.prototype.nodeValue = function(node) {\n return node.nodeValue;\n };\n BrowserDomAdapter.prototype.type = function(node) {\n return node.type;\n };\n BrowserDomAdapter.prototype.content = function(node) {\n if (this.hasProperty(node, \"content\")) {\n return node.content;\n } else {\n return node;\n }\n };\n BrowserDomAdapter.prototype.firstChild = function(el) {\n return el.firstChild;\n };\n BrowserDomAdapter.prototype.nextSibling = function(el) {\n return el.nextSibling;\n };\n BrowserDomAdapter.prototype.parentElement = function(el) {\n return el.parentNode;\n };\n BrowserDomAdapter.prototype.childNodes = function(el) {\n return el.childNodes;\n };\n BrowserDomAdapter.prototype.childNodesAsList = function(el) {\n var childNodes = el.childNodes;\n var res = collection_1.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) {\n while (el.firstChild) {\n el.removeChild(el.firstChild);\n }\n };\n BrowserDomAdapter.prototype.appendChild = function(el, node) {\n el.appendChild(node);\n };\n BrowserDomAdapter.prototype.removeChild = function(el, node) {\n el.removeChild(node);\n };\n BrowserDomAdapter.prototype.replaceChild = function(el, newChild, oldChild) {\n el.replaceChild(newChild, oldChild);\n };\n BrowserDomAdapter.prototype.remove = function(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n return node;\n };\n BrowserDomAdapter.prototype.insertBefore = function(el, node) {\n el.parentNode.insertBefore(node, el);\n };\n BrowserDomAdapter.prototype.insertAllBefore = function(el, nodes) {\n nodes.forEach(function(n) {\n return el.parentNode.insertBefore(n, el);\n });\n };\n BrowserDomAdapter.prototype.insertAfter = function(el, node) {\n el.parentNode.insertBefore(node, el.nextSibling);\n };\n BrowserDomAdapter.prototype.setInnerHTML = function(el, value) {\n el.innerHTML = value;\n };\n BrowserDomAdapter.prototype.getText = function(el) {\n return el.textContent;\n };\n BrowserDomAdapter.prototype.setText = function(el, value) {\n el.textContent = value;\n };\n BrowserDomAdapter.prototype.getValue = function(el) {\n return el.value;\n };\n BrowserDomAdapter.prototype.setValue = function(el, value) {\n el.value = value;\n };\n BrowserDomAdapter.prototype.getChecked = function(el) {\n return el.checked;\n };\n BrowserDomAdapter.prototype.setChecked = function(el, value) {\n el.checked = value;\n };\n BrowserDomAdapter.prototype.createComment = function(text) {\n return document.createComment(text);\n };\n BrowserDomAdapter.prototype.createTemplate = function(html) {\n var t = document.createElement('template');\n t.innerHTML = html;\n return t;\n };\n BrowserDomAdapter.prototype.createElement = function(tagName, doc) {\n if (doc === void 0) {\n doc = document;\n }\n return doc.createElement(tagName);\n };\n BrowserDomAdapter.prototype.createElementNS = function(ns, tagName, doc) {\n if (doc === void 0) {\n doc = document;\n }\n return doc.createElementNS(ns, tagName);\n };\n BrowserDomAdapter.prototype.createTextNode = function(text, doc) {\n if (doc === void 0) {\n doc = document;\n }\n return doc.createTextNode(text);\n };\n BrowserDomAdapter.prototype.createScriptTag = function(attrName, attrValue, doc) {\n if (doc === void 0) {\n doc = document;\n }\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) {\n doc = document;\n }\n var style = doc.createElement('style');\n this.appendChild(style, this.createTextNode(css));\n return style;\n };\n BrowserDomAdapter.prototype.createShadowRoot = function(el) {\n return el.createShadowRoot();\n };\n BrowserDomAdapter.prototype.getShadowRoot = function(el) {\n return el.shadowRoot;\n };\n BrowserDomAdapter.prototype.getHost = function(el) {\n return el.host;\n };\n BrowserDomAdapter.prototype.clone = function(node) {\n return node.cloneNode(true);\n };\n BrowserDomAdapter.prototype.getElementsByClassName = function(element, name) {\n return element.getElementsByClassName(name);\n };\n BrowserDomAdapter.prototype.getElementsByTagName = function(element, name) {\n return element.getElementsByTagName(name);\n };\n BrowserDomAdapter.prototype.classList = function(element) {\n return Array.prototype.slice.call(element.classList, 0);\n };\n BrowserDomAdapter.prototype.addClass = function(element, className) {\n element.classList.add(className);\n };\n BrowserDomAdapter.prototype.removeClass = function(element, className) {\n element.classList.remove(className);\n };\n BrowserDomAdapter.prototype.hasClass = function(element, className) {\n return element.classList.contains(className);\n };\n BrowserDomAdapter.prototype.setStyle = function(element, styleName, styleValue) {\n element.style[styleName] = styleValue;\n };\n BrowserDomAdapter.prototype.removeStyle = function(element, stylename) {\n element.style[stylename] = null;\n };\n BrowserDomAdapter.prototype.getStyle = function(element, stylename) {\n return element.style[stylename];\n };\n BrowserDomAdapter.prototype.hasStyle = function(element, styleName, styleValue) {\n if (styleValue === void 0) {\n styleValue = null;\n }\n var value = this.getStyle(element, styleName) || '';\n return styleValue ? value == styleValue : value.length > 0;\n };\n BrowserDomAdapter.prototype.tagName = function(element) {\n return element.tagName;\n };\n BrowserDomAdapter.prototype.attributeMap = function(element) {\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, attribute) {\n return element.hasAttribute(attribute);\n };\n BrowserDomAdapter.prototype.getAttribute = function(element, attribute) {\n return element.getAttribute(attribute);\n };\n BrowserDomAdapter.prototype.setAttribute = function(element, name, value) {\n element.setAttribute(name, value);\n };\n BrowserDomAdapter.prototype.setAttributeNS = function(element, ns, name, value) {\n element.setAttributeNS(ns, name, value);\n };\n BrowserDomAdapter.prototype.removeAttribute = function(element, attribute) {\n element.removeAttribute(attribute);\n };\n BrowserDomAdapter.prototype.templateAwareRoot = function(el) {\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() {\n return document;\n };\n BrowserDomAdapter.prototype.getBoundingClientRect = function(el) {\n try {\n return el.getBoundingClientRect();\n } catch (e) {\n return {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: 0,\n height: 0\n };\n }\n };\n BrowserDomAdapter.prototype.getTitle = function() {\n return document.title;\n };\n BrowserDomAdapter.prototype.setTitle = function(newTitle) {\n document.title = newTitle || '';\n };\n BrowserDomAdapter.prototype.elementMatches = function(n, selector) {\n var matches = false;\n if (n instanceof HTMLElement) {\n if (n.matches) {\n matches = n.matches(selector);\n } else if (n.msMatchesSelector) {\n matches = n.msMatchesSelector(selector);\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) {\n return node.nodeType === Node.TEXT_NODE;\n };\n BrowserDomAdapter.prototype.isCommentNode = function(node) {\n return node.nodeType === Node.COMMENT_NODE;\n };\n BrowserDomAdapter.prototype.isElementNode = function(node) {\n return node.nodeType === Node.ELEMENT_NODE;\n };\n BrowserDomAdapter.prototype.hasShadowRoot = function(node) {\n return node instanceof HTMLElement && lang_1.isPresent(node.shadowRoot);\n };\n BrowserDomAdapter.prototype.isShadowRoot = function(node) {\n return node instanceof DocumentFragment;\n };\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) {\n return document.adoptNode(node);\n };\n BrowserDomAdapter.prototype.getHref = function(el) {\n return el.href;\n };\n BrowserDomAdapter.prototype.getEventKey = function(event) {\n var key = event.key;\n if (lang_1.isBlank(key)) {\n key = event.keyIdentifier;\n if (lang_1.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 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 } else if (target == \"document\") {\n return document;\n } else if (target == \"body\") {\n return document.body;\n }\n };\n BrowserDomAdapter.prototype.getHistory = function() {\n return window.history;\n };\n BrowserDomAdapter.prototype.getLocation = function() {\n return window.location;\n };\n BrowserDomAdapter.prototype.getBaseHref = function() {\n var href = getBaseElementHref();\n if (lang_1.isBlank(href)) {\n return null;\n }\n return relativePath(href);\n };\n BrowserDomAdapter.prototype.resetBaseElement = function() {\n baseElement = null;\n };\n BrowserDomAdapter.prototype.getUserAgent = function() {\n return window.navigator.userAgent;\n };\n BrowserDomAdapter.prototype.setData = function(element, name, value) {\n this.setAttribute(element, 'data-' + name, value);\n };\n BrowserDomAdapter.prototype.getData = function(element, name) {\n return this.getAttribute(element, 'data-' + name);\n };\n BrowserDomAdapter.prototype.getComputedStyle = function(element) {\n return getComputedStyle(element);\n };\n BrowserDomAdapter.prototype.setGlobalVar = function(path, value) {\n lang_1.setValueOnPath(lang_1.global, path, value);\n };\n BrowserDomAdapter.prototype.requestAnimationFrame = function(callback) {\n return window.requestAnimationFrame(callback);\n };\n BrowserDomAdapter.prototype.cancelAnimationFrame = function(id) {\n window.cancelAnimationFrame(id);\n };\n BrowserDomAdapter.prototype.performanceNow = function() {\n if (lang_1.isPresent(window.performance) && lang_1.isPresent(window.performance.now)) {\n return window.performance.now();\n } else {\n return lang_1.DateWrapper.toMillis(lang_1.DateWrapper.now());\n }\n };\n return BrowserDomAdapter;\n})(generic_browser_adapter_1.GenericBrowserDomAdapter);\nexports.BrowserDomAdapter = BrowserDomAdapter;\nvar baseElement = null;\nfunction getBaseElementHref() {\n if (lang_1.isBlank(baseElement)) {\n baseElement = document.querySelector('base');\n if (lang_1.isBlank(baseElement)) {\n return null;\n }\n }\n return baseElement.getAttribute('href');\n}\nvar urlParsingNode = null;\nfunction relativePath(url) {\n if (lang_1.isBlank(urlParsingNode)) {\n urlParsingNode = document.createElement(\"a\");\n }\n urlParsingNode.setAttribute('href', url);\n return (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname;\n}\n","/* */ \n'use strict';\nvar collection_1 = require('../../facade/collection');\nvar lang_1 = require('../../facade/lang');\nvar dom_adapter_1 = require('../dom/dom_adapter');\nvar core_1 = require('../../../core');\nvar PublicTestability = (function() {\n function PublicTestability(testability) {\n this._testability = testability;\n }\n PublicTestability.prototype.isStable = function() {\n return this._testability.isStable();\n };\n PublicTestability.prototype.whenStable = function(callback) {\n this._testability.whenStable(callback);\n };\n PublicTestability.prototype.findBindings = function(using, provider, exactMatch) {\n return this.findProviders(using, provider, exactMatch);\n };\n PublicTestability.prototype.findProviders = function(using, provider, exactMatch) {\n return this._testability.findBindings(using, provider, exactMatch);\n };\n return PublicTestability;\n})();\nvar BrowserGetTestability = (function() {\n function BrowserGetTestability() {}\n BrowserGetTestability.init = function() {\n core_1.setTestabilityGetter(new BrowserGetTestability());\n };\n BrowserGetTestability.prototype.addToWindow = function(registry) {\n lang_1.global.getAngularTestability = function(elem, findInAncestors) {\n if (findInAncestors === void 0) {\n findInAncestors = true;\n }\n var testability = registry.findTestabilityInTree(elem, findInAncestors);\n if (testability == null) {\n throw new Error('Could not find testability for element.');\n }\n return new PublicTestability(testability);\n };\n lang_1.global.getAllAngularTestabilities = function() {\n var testabilities = registry.getAllTestabilities();\n return testabilities.map(function(testability) {\n return new PublicTestability(testability);\n });\n };\n var whenAllStable = function(callback) {\n var testabilities = lang_1.global.getAllAngularTestabilities();\n var count = testabilities.length;\n var didWork = false;\n var decrement = function(didWork_) {\n didWork = didWork || didWork_;\n count--;\n if (count == 0) {\n callback(didWork);\n }\n };\n testabilities.forEach(function(testability) {\n testability.whenStable(decrement);\n });\n };\n if (!lang_1.global.frameworkStabilizers) {\n lang_1.global.frameworkStabilizers = collection_1.ListWrapper.createGrowableSize(0);\n }\n lang_1.global.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 (lang_1.isPresent(t)) {\n return t;\n } else if (!findInAncestors) {\n return null;\n }\n if (dom_adapter_1.DOM.isShadowRoot(elem)) {\n return this.findTestabilityInTree(registry, dom_adapter_1.DOM.getHost(elem), true);\n }\n return this.findTestabilityInTree(registry, dom_adapter_1.DOM.parentElement(elem), true);\n };\n return BrowserGetTestability;\n})();\nexports.BrowserGetTestability = BrowserGetTestability;\n","/* */ \n'use strict';/**\r\n * This is here because DART requires it. It is noop in JS.\r\n */\r\nfunction wtfInit() { }\r\nexports.wtfInit = wtfInit;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3RmX2luaXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9zcmMvY29yZS9wcm9maWxlL3d0Zl9pbml0LnRzIl0sIm5hbWVzIjpbInd0ZkluaXQiXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gscUJBQTJCQSxDQUFDQTtBQUFaLGVBQU8sVUFBSyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaGlzIGlzIGhlcmUgYmVjYXVzZSBEQVJUIHJlcXVpcmVzIGl0LiBJdCBpcyBub29wIGluIEpTLlxuICovXG5leHBvcnQgZnVuY3Rpb24gd3RmSW5pdCgpIHt9XG4iXX0=","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar dom_adapter_1 = require('../dom_adapter');\nvar core_1 = require('../../../../core');\nvar event_manager_1 = require('./event_manager');\nvar DomEventsPlugin = (function(_super) {\n __extends(DomEventsPlugin, _super);\n function DomEventsPlugin() {\n _super.apply(this, arguments);\n }\n DomEventsPlugin.prototype.supports = function(eventName) {\n return true;\n };\n DomEventsPlugin.prototype.addEventListener = function(element, eventName, handler) {\n var zone = this.manager.getZone();\n var outsideHandler = function(event) {\n return zone.run(function() {\n return handler(event);\n });\n };\n return this.manager.getZone().runOutsideAngular(function() {\n return dom_adapter_1.DOM.onAndCancel(element, eventName, outsideHandler);\n });\n };\n DomEventsPlugin.prototype.addGlobalEventListener = function(target, eventName, handler) {\n var element = dom_adapter_1.DOM.getGlobalEventTarget(target);\n var zone = this.manager.getZone();\n var outsideHandler = function(event) {\n return zone.run(function() {\n return handler(event);\n });\n };\n return this.manager.getZone().runOutsideAngular(function() {\n return dom_adapter_1.DOM.onAndCancel(element, eventName, outsideHandler);\n });\n };\n DomEventsPlugin = __decorate([core_1.Injectable(), __metadata('design:paramtypes', [])], DomEventsPlugin);\n return DomEventsPlugin;\n})(event_manager_1.EventManagerPlugin);\nexports.DomEventsPlugin = DomEventsPlugin;\n","/* */ \n'use strict';\nvar lang_1 = require('../../../facade/lang');\nvar dom_adapter_1 = require('../dom_adapter');\nvar By = (function() {\n function By() {}\n By.all = function() {\n return function(debugElement) {\n return true;\n };\n };\n By.css = function(selector) {\n return function(debugElement) {\n return lang_1.isPresent(debugElement.nativeElement) ? dom_adapter_1.DOM.elementMatches(debugElement.nativeElement, selector) : false;\n };\n };\n By.directive = function(type) {\n return function(debugElement) {\n return debugElement.providerTokens.indexOf(type) !== -1;\n };\n };\n return By;\n})();\nexports.By = By;\n","/* */ \n'use strict';var CssAnimationOptions = (function () {\r\n function CssAnimationOptions() {\r\n /** classes to be added to the element */\r\n this.classesToAdd = [];\r\n /** classes to be removed from the element */\r\n this.classesToRemove = [];\r\n /** classes to be added for the duration of the animation */\r\n this.animationClasses = [];\r\n }\r\n return CssAnimationOptions;\r\n})();\r\nexports.CssAnimationOptions = CssAnimationOptions;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzX2FuaW1hdGlvbl9vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2FuaW1hdGUvY3NzX2FuaW1hdGlvbl9vcHRpb25zLnRzIl0sIm5hbWVzIjpbIkNzc0FuaW1hdGlvbk9wdGlvbnMiLCJDc3NBbmltYXRpb25PcHRpb25zLmNvbnN0cnVjdG9yIl0sIm1hcHBpbmdzIjoiQUFBQTtJQUFBQTtRQU9FQyx5Q0FBeUNBO1FBQ3pDQSxpQkFBWUEsR0FBYUEsRUFBRUEsQ0FBQ0E7UUFFNUJBLDZDQUE2Q0E7UUFDN0NBLG9CQUFlQSxHQUFhQSxFQUFFQSxDQUFDQTtRQUUvQkEsNERBQTREQTtRQUM1REEscUJBQWdCQSxHQUFhQSxFQUFFQSxDQUFDQTtJQU9sQ0EsQ0FBQ0E7SUFBREQsMEJBQUNBO0FBQURBLENBQUNBLEFBckJELElBcUJDO0FBckJZLDJCQUFtQixzQkFxQi9CLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgQ3NzQW5pbWF0aW9uT3B0aW9ucyB7XG4gIC8qKiBpbml0aWFsIHN0eWxlcyBmb3IgdGhlIGVsZW1lbnQgKi9cbiAgZnJvbVN0eWxlczoge1trZXk6IHN0cmluZ106IGFueX07XG5cbiAgLyoqIGRlc3RpbmF0aW9uIHN0eWxlcyBmb3IgdGhlIGVsZW1lbnQgKi9cbiAgdG9TdHlsZXM6IHtba2V5OiBzdHJpbmddOiBhbnl9O1xuXG4gIC8qKiBjbGFzc2VzIHRvIGJlIGFkZGVkIHRvIHRoZSBlbGVtZW50ICovXG4gIGNsYXNzZXNUb0FkZDogc3RyaW5nW10gPSBbXTtcblxuICAvKiogY2xhc3NlcyB0byBiZSByZW1vdmVkIGZyb20gdGhlIGVsZW1lbnQgKi9cbiAgY2xhc3Nlc1RvUmVtb3ZlOiBzdHJpbmdbXSA9IFtdO1xuXG4gIC8qKiBjbGFzc2VzIHRvIGJlIGFkZGVkIGZvciB0aGUgZHVyYXRpb24gb2YgdGhlIGFuaW1hdGlvbiAqL1xuICBhbmltYXRpb25DbGFzc2VzOiBzdHJpbmdbXSA9IFtdO1xuXG4gIC8qKiBvdmVycmlkZSB0aGUgZHVyYXRpb24gb2YgdGhlIGFuaW1hdGlvbiAoaW4gbWlsbGlzZWNvbmRzKSAqL1xuICBkdXJhdGlvbjogbnVtYmVyO1xuXG4gIC8qKiBvdmVycmlkZSB0aGUgdHJhbnNpdGlvbiBkZWxheSAoaW4gbWlsbGlzZWNvbmRzKSAqL1xuICBkZWxheTogbnVtYmVyO1xufVxuIl19","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar math_1 = require('../facade/math');\nvar util_1 = require('../platform/dom/util');\nvar collection_1 = require('../facade/collection');\nvar dom_adapter_1 = require('../platform/dom/dom_adapter');\nvar Animation = (function() {\n function Animation(element, data, browserDetails) {\n var _this = this;\n this.element = element;\n this.data = data;\n this.browserDetails = browserDetails;\n this.callbacks = [];\n this.eventClearFunctions = [];\n this.completed = false;\n this._stringPrefix = '';\n this.startTime = lang_1.DateWrapper.toMillis(lang_1.DateWrapper.now());\n this._stringPrefix = dom_adapter_1.DOM.getAnimationPrefix();\n this.setup();\n this.wait(function(timestamp) {\n return _this.start();\n });\n }\n Object.defineProperty(Animation.prototype, \"totalTime\", {\n get: function() {\n var delay = this.computedDelay != null ? this.computedDelay : 0;\n var duration = this.computedDuration != null ? this.computedDuration : 0;\n return delay + duration;\n },\n enumerable: true,\n configurable: true\n });\n Animation.prototype.wait = function(callback) {\n this.browserDetails.raf(callback, 2);\n };\n Animation.prototype.setup = function() {\n if (this.data.fromStyles != null)\n this.applyStyles(this.data.fromStyles);\n if (this.data.duration != null)\n this.applyStyles({'transitionDuration': this.data.duration.toString() + 'ms'});\n if (this.data.delay != null)\n this.applyStyles({'transitionDelay': this.data.delay.toString() + 'ms'});\n };\n Animation.prototype.start = function() {\n this.addClasses(this.data.classesToAdd);\n this.addClasses(this.data.animationClasses);\n this.removeClasses(this.data.classesToRemove);\n if (this.data.toStyles != null)\n this.applyStyles(this.data.toStyles);\n var computedStyles = dom_adapter_1.DOM.getComputedStyle(this.element);\n this.computedDelay = math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix + 'transition-delay')), this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix + 'transition-delay')));\n this.computedDuration = math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix + 'transition-duration')), this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix + 'transition-duration')));\n this.addEvents();\n };\n Animation.prototype.applyStyles = function(styles) {\n var _this = this;\n collection_1.StringMapWrapper.forEach(styles, function(value, key) {\n var dashCaseKey = util_1.camelCaseToDashCase(key);\n if (lang_1.isPresent(dom_adapter_1.DOM.getStyle(_this.element, dashCaseKey))) {\n dom_adapter_1.DOM.setStyle(_this.element, dashCaseKey, value.toString());\n } else {\n dom_adapter_1.DOM.setStyle(_this.element, _this._stringPrefix + dashCaseKey, value.toString());\n }\n });\n };\n Animation.prototype.addClasses = function(classes) {\n for (var i = 0,\n len = classes.length; i < len; i++)\n dom_adapter_1.DOM.addClass(this.element, classes[i]);\n };\n Animation.prototype.removeClasses = function(classes) {\n for (var i = 0,\n len = classes.length; i < len; i++)\n dom_adapter_1.DOM.removeClass(this.element, classes[i]);\n };\n Animation.prototype.addEvents = function() {\n var _this = this;\n if (this.totalTime > 0) {\n this.eventClearFunctions.push(dom_adapter_1.DOM.onAndCancel(this.element, dom_adapter_1.DOM.getTransitionEnd(), function(event) {\n return _this.handleAnimationEvent(event);\n }));\n } else {\n this.handleAnimationCompleted();\n }\n };\n Animation.prototype.handleAnimationEvent = function(event) {\n var elapsedTime = math_1.Math.round(event.elapsedTime * 1000);\n if (!this.browserDetails.elapsedTimeIncludesDelay)\n elapsedTime += this.computedDelay;\n event.stopPropagation();\n if (elapsedTime >= this.totalTime)\n this.handleAnimationCompleted();\n };\n Animation.prototype.handleAnimationCompleted = function() {\n this.removeClasses(this.data.animationClasses);\n this.callbacks.forEach(function(callback) {\n return callback();\n });\n this.callbacks = [];\n this.eventClearFunctions.forEach(function(fn) {\n return fn();\n });\n this.eventClearFunctions = [];\n this.completed = true;\n };\n Animation.prototype.onComplete = function(callback) {\n if (this.completed) {\n callback();\n } else {\n this.callbacks.push(callback);\n }\n return this;\n };\n Animation.prototype.parseDurationString = function(duration) {\n var maxValue = 0;\n if (duration == null || duration.length < 2) {\n return maxValue;\n } else if (duration.substring(duration.length - 2) == 'ms') {\n var value = lang_1.NumberWrapper.parseInt(this.stripLetters(duration), 10);\n if (value > maxValue)\n maxValue = value;\n } else if (duration.substring(duration.length - 1) == 's') {\n var ms = lang_1.NumberWrapper.parseFloat(this.stripLetters(duration)) * 1000;\n var value = math_1.Math.floor(ms);\n if (value > maxValue)\n maxValue = value;\n }\n return maxValue;\n };\n Animation.prototype.stripLetters = function(str) {\n return lang_1.StringWrapper.replaceAll(str, lang_1.RegExpWrapper.create('[^0-9]+$', ''), '');\n };\n return Animation;\n})();\nexports.Animation = Animation;\n","/* */ \n'use strict';\nvar css_animation_options_1 = require('./css_animation_options');\nvar animation_1 = require('./animation');\nvar CssAnimationBuilder = (function() {\n function CssAnimationBuilder(browserDetails) {\n this.browserDetails = browserDetails;\n this.data = new css_animation_options_1.CssAnimationOptions();\n }\n CssAnimationBuilder.prototype.addAnimationClass = function(className) {\n this.data.animationClasses.push(className);\n return this;\n };\n CssAnimationBuilder.prototype.addClass = function(className) {\n this.data.classesToAdd.push(className);\n return this;\n };\n CssAnimationBuilder.prototype.removeClass = function(className) {\n this.data.classesToRemove.push(className);\n return this;\n };\n CssAnimationBuilder.prototype.setDuration = function(duration) {\n this.data.duration = duration;\n return this;\n };\n CssAnimationBuilder.prototype.setDelay = function(delay) {\n this.data.delay = delay;\n return this;\n };\n CssAnimationBuilder.prototype.setStyles = function(from, to) {\n return this.setFromStyles(from).setToStyles(to);\n };\n CssAnimationBuilder.prototype.setFromStyles = function(from) {\n this.data.fromStyles = from;\n return this;\n };\n CssAnimationBuilder.prototype.setToStyles = function(to) {\n this.data.toStyles = to;\n return this;\n };\n CssAnimationBuilder.prototype.start = function(element) {\n return new animation_1.Animation(element, this.data, this.browserDetails);\n };\n return CssAnimationBuilder;\n})();\nexports.CssAnimationBuilder = CssAnimationBuilder;\n","/* */ \n'use strict';\nvar lang_1 = require('./lang');\nexports.Math = lang_1.global.Math;\nexports.NaN = typeof exports.NaN;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../core/di');\nvar math_1 = require('../facade/math');\nvar dom_adapter_1 = require('../platform/dom/dom_adapter');\nvar BrowserDetails = (function() {\n function BrowserDetails() {\n this.elapsedTimeIncludesDelay = false;\n this.doesElapsedTimeIncludesDelay();\n }\n BrowserDetails.prototype.doesElapsedTimeIncludesDelay = function() {\n var _this = this;\n var div = dom_adapter_1.DOM.createElement('div');\n dom_adapter_1.DOM.setAttribute(div, 'style', \"position: absolute; top: -9999px; left: -9999px; width: 1px;\\n height: 1px; transition: all 1ms linear 1ms;\");\n this.raf(function(timestamp) {\n dom_adapter_1.DOM.on(div, 'transitionend', function(event) {\n var elapsed = math_1.Math.round(event.elapsedTime * 1000);\n _this.elapsedTimeIncludesDelay = elapsed == 2;\n dom_adapter_1.DOM.remove(div);\n });\n dom_adapter_1.DOM.setStyle(div, 'width', '2px');\n }, 2);\n };\n BrowserDetails.prototype.raf = function(callback, frames) {\n if (frames === void 0) {\n frames = 1;\n }\n var queue = new RafQueue(callback, frames);\n return function() {\n return queue.cancel();\n };\n };\n BrowserDetails = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], BrowserDetails);\n return BrowserDetails;\n})();\nexports.BrowserDetails = BrowserDetails;\nvar RafQueue = (function() {\n function RafQueue(callback, frames) {\n this.callback = callback;\n this.frames = frames;\n this._raf();\n }\n RafQueue.prototype._raf = function() {\n var _this = this;\n this.currentFrameId = dom_adapter_1.DOM.requestAnimationFrame(function(timestamp) {\n return _this._nextFrame(timestamp);\n });\n };\n RafQueue.prototype._nextFrame = function(timestamp) {\n this.frames--;\n if (this.frames > 0) {\n this._raf();\n } else {\n this.callback(timestamp);\n }\n };\n RafQueue.prototype.cancel = function() {\n dom_adapter_1.DOM.cancelAnimationFrame(this.currentFrameId);\n this.currentFrameId = null;\n };\n return RafQueue;\n})();\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../core/di');\nvar css_animation_builder_1 = require('./css_animation_builder');\nvar browser_details_1 = require('./browser_details');\nvar AnimationBuilder = (function() {\n function AnimationBuilder(browserDetails) {\n this.browserDetails = browserDetails;\n }\n AnimationBuilder.prototype.css = function() {\n return new css_animation_builder_1.CssAnimationBuilder(this.browserDetails);\n };\n AnimationBuilder = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [browser_details_1.BrowserDetails])], AnimationBuilder);\n return AnimationBuilder;\n})();\nexports.AnimationBuilder = AnimationBuilder;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar dom_adapter_1 = require('./dom_adapter');\nvar di_1 = require('../../core/di');\nvar collection_1 = require('../../facade/collection');\nvar dom_tokens_1 = require('./dom_tokens');\nvar SharedStylesHost = (function() {\n function SharedStylesHost() {\n this._styles = [];\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 (!collection_1.SetWrapper.has(_this._stylesSet, 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() {\n return this._styles;\n };\n SharedStylesHost = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], SharedStylesHost);\n return SharedStylesHost;\n})();\nexports.SharedStylesHost = SharedStylesHost;\nvar DomSharedStylesHost = (function(_super) {\n __extends(DomSharedStylesHost, _super);\n function DomSharedStylesHost(doc) {\n _super.call(this);\n this._hostNodes = new Set();\n this._hostNodes.add(doc.head);\n }\n DomSharedStylesHost.prototype._addStylesToHost = function(styles, host) {\n for (var i = 0; i < styles.length; i++) {\n var style = styles[i];\n dom_adapter_1.DOM.appendChild(host, dom_adapter_1.DOM.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) {\n collection_1.SetWrapper.delete(this._hostNodes, hostNode);\n };\n DomSharedStylesHost.prototype.onStylesAdded = function(additions) {\n var _this = this;\n this._hostNodes.forEach(function(hostNode) {\n _this._addStylesToHost(additions, hostNode);\n });\n };\n DomSharedStylesHost = __decorate([di_1.Injectable(), __param(0, di_1.Inject(dom_tokens_1.DOCUMENT)), __metadata('design:paramtypes', [Object])], DomSharedStylesHost);\n return DomSharedStylesHost;\n})(SharedStylesHost);\nexports.DomSharedStylesHost = DomSharedStylesHost;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar di_1 = require('../../../core/di');\nvar ng_zone_1 = require('../../../core/zone/ng_zone');\nvar collection_1 = require('../../../facade/collection');\nexports.EVENT_MANAGER_PLUGINS = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"EventManagerPlugins\"));\nvar EventManager = (function() {\n function EventManager(plugins, _zone) {\n var _this = this;\n this._zone = _zone;\n plugins.forEach(function(p) {\n return p.manager = _this;\n });\n this._plugins = collection_1.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() {\n return this._zone;\n };\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 exceptions_1.BaseException(\"No event manager plugin found for event \" + eventName);\n };\n EventManager = __decorate([di_1.Injectable(), __param(0, di_1.Inject(exports.EVENT_MANAGER_PLUGINS)), __metadata('design:paramtypes', [Array, ng_zone_1.NgZone])], EventManager);\n return EventManager;\n})();\nexports.EventManager = EventManager;\nvar EventManagerPlugin = (function() {\n function EventManagerPlugin() {}\n EventManagerPlugin.prototype.supports = function(eventName) {\n return false;\n };\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})();\nexports.EventManagerPlugin = EventManagerPlugin;\n","/* */ \n'use strict';\nvar di_1 = require('../../core/di');\nvar lang_1 = require('../../facade/lang');\nexports.DOCUMENT = lang_1.CONST_EXPR(new di_1.OpaqueToken('DocumentToken'));\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar CAMEL_CASE_REGEXP = /([A-Z])/g;\nvar DASH_CASE_REGEXP = /-([a-z])/g;\nfunction camelCaseToDashCase(input) {\n return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) {\n return '-' + m[1].toLowerCase();\n });\n}\nexports.camelCaseToDashCase = camelCaseToDashCase;\nfunction dashCaseToCamelCase(input) {\n return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function(m) {\n return m[1].toUpperCase();\n });\n}\nexports.dashCaseToCamelCase = dashCaseToCamelCase;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar di_1 = require('../../core/di');\nvar animation_builder_1 = require('../../animate/animation_builder');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar shared_styles_host_1 = require('./shared_styles_host');\nvar event_manager_1 = require('./events/event_manager');\nvar dom_tokens_1 = require('./dom_tokens');\nvar metadata_1 = require('../../core/metadata');\nvar dom_adapter_1 = require('./dom_adapter');\nvar util_1 = require('./util');\nvar NAMESPACE_URIS = lang_1.CONST_EXPR({\n 'xlink': 'http://www.w3.org/1999/xlink',\n 'svg': 'http://www.w3.org/2000/svg'\n});\nvar TEMPLATE_COMMENT_TEXT = 'template bindings={}';\nvar TEMPLATE_BINDINGS_EXP = /^template bindings=(.*)$/g;\nvar DomRootRenderer = (function() {\n function DomRootRenderer(document, eventManager, sharedStylesHost, animate) {\n this.document = document;\n this.eventManager = eventManager;\n this.sharedStylesHost = sharedStylesHost;\n this.animate = animate;\n this._registeredComponents = new Map();\n }\n DomRootRenderer.prototype.renderComponent = function(componentProto) {\n var renderer = this._registeredComponents.get(componentProto.id);\n if (lang_1.isBlank(renderer)) {\n renderer = new DomRenderer(this, componentProto);\n this._registeredComponents.set(componentProto.id, renderer);\n }\n return renderer;\n };\n return DomRootRenderer;\n})();\nexports.DomRootRenderer = DomRootRenderer;\nvar DomRootRenderer_ = (function(_super) {\n __extends(DomRootRenderer_, _super);\n function DomRootRenderer_(_document, _eventManager, sharedStylesHost, animate) {\n _super.call(this, _document, _eventManager, sharedStylesHost, animate);\n }\n DomRootRenderer_ = __decorate([di_1.Injectable(), __param(0, di_1.Inject(dom_tokens_1.DOCUMENT)), __metadata('design:paramtypes', [Object, event_manager_1.EventManager, shared_styles_host_1.DomSharedStylesHost, animation_builder_1.AnimationBuilder])], DomRootRenderer_);\n return DomRootRenderer_;\n})(DomRootRenderer);\nexports.DomRootRenderer_ = DomRootRenderer_;\nvar DomRenderer = (function() {\n function DomRenderer(_rootRenderer, componentProto) {\n this._rootRenderer = _rootRenderer;\n this.componentProto = componentProto;\n this._styles = _flattenStyles(componentProto.id, componentProto.styles, []);\n if (componentProto.encapsulation !== metadata_1.ViewEncapsulation.Native) {\n this._rootRenderer.sharedStylesHost.addStyles(this._styles);\n }\n if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Emulated) {\n this._contentAttr = _shimContentAttribute(componentProto.id);\n this._hostAttr = _shimHostAttribute(componentProto.id);\n } else {\n this._contentAttr = null;\n this._hostAttr = null;\n }\n }\n DomRenderer.prototype.renderComponent = function(componentProto) {\n return this._rootRenderer.renderComponent(componentProto);\n };\n DomRenderer.prototype.selectRootElement = function(selector) {\n var el = dom_adapter_1.DOM.querySelector(this._rootRenderer.document, selector);\n if (lang_1.isBlank(el)) {\n throw new exceptions_1.BaseException(\"The selector \\\"\" + selector + \"\\\" did not match any elements\");\n }\n dom_adapter_1.DOM.clearNodes(el);\n return el;\n };\n DomRenderer.prototype.createElement = function(parent, name) {\n var nsAndName = splitNamespace(name);\n var el = lang_1.isPresent(nsAndName[0]) ? dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) : dom_adapter_1.DOM.createElement(nsAndName[1]);\n if (lang_1.isPresent(this._contentAttr)) {\n dom_adapter_1.DOM.setAttribute(el, this._contentAttr, '');\n }\n if (lang_1.isPresent(parent)) {\n dom_adapter_1.DOM.appendChild(parent, el);\n }\n return el;\n };\n DomRenderer.prototype.createViewRoot = function(hostElement) {\n var nodesParent;\n if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Native) {\n nodesParent = dom_adapter_1.DOM.createShadowRoot(hostElement);\n this._rootRenderer.sharedStylesHost.addHost(nodesParent);\n for (var i = 0; i < this._styles.length; i++) {\n dom_adapter_1.DOM.appendChild(nodesParent, dom_adapter_1.DOM.createStyleElement(this._styles[i]));\n }\n } else {\n if (lang_1.isPresent(this._hostAttr)) {\n dom_adapter_1.DOM.setAttribute(hostElement, this._hostAttr, '');\n }\n nodesParent = hostElement;\n }\n return nodesParent;\n };\n DomRenderer.prototype.createTemplateAnchor = function(parentElement) {\n var comment = dom_adapter_1.DOM.createComment(TEMPLATE_COMMENT_TEXT);\n if (lang_1.isPresent(parentElement)) {\n dom_adapter_1.DOM.appendChild(parentElement, comment);\n }\n return comment;\n };\n DomRenderer.prototype.createText = function(parentElement, value) {\n var node = dom_adapter_1.DOM.createTextNode(value);\n if (lang_1.isPresent(parentElement)) {\n dom_adapter_1.DOM.appendChild(parentElement, node);\n }\n return node;\n };\n DomRenderer.prototype.projectNodes = function(parentElement, nodes) {\n if (lang_1.isBlank(parentElement))\n return;\n appendNodes(parentElement, nodes);\n };\n DomRenderer.prototype.attachViewAfter = function(node, viewRootNodes) {\n moveNodesAfterSibling(node, viewRootNodes);\n for (var i = 0; i < viewRootNodes.length; i++)\n this.animateNodeEnter(viewRootNodes[i]);\n };\n DomRenderer.prototype.detachView = function(viewRootNodes) {\n for (var i = 0; i < viewRootNodes.length; i++) {\n var node = viewRootNodes[i];\n dom_adapter_1.DOM.remove(node);\n this.animateNodeLeave(node);\n }\n };\n DomRenderer.prototype.destroyView = function(hostElement, viewAllNodes) {\n if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Native && lang_1.isPresent(hostElement)) {\n this._rootRenderer.sharedStylesHost.removeHost(dom_adapter_1.DOM.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 dom_adapter_1.DOM.setProperty(renderElement, propertyName, propertyValue);\n };\n DomRenderer.prototype.setElementAttribute = function(renderElement, attributeName, attributeValue) {\n var attrNs;\n var nsAndName = splitNamespace(attributeName);\n if (lang_1.isPresent(nsAndName[0])) {\n attributeName = nsAndName[0] + ':' + nsAndName[1];\n attrNs = NAMESPACE_URIS[nsAndName[0]];\n }\n if (lang_1.isPresent(attributeValue)) {\n if (lang_1.isPresent(attrNs)) {\n dom_adapter_1.DOM.setAttributeNS(renderElement, attrNs, attributeName, attributeValue);\n } else {\n dom_adapter_1.DOM.setAttribute(renderElement, nsAndName[1], attributeValue);\n }\n } else {\n dom_adapter_1.DOM.removeAttribute(renderElement, attributeName);\n }\n };\n DomRenderer.prototype.setBindingDebugInfo = function(renderElement, propertyName, propertyValue) {\n var dashCasedPropertyName = util_1.camelCaseToDashCase(propertyName);\n if (dom_adapter_1.DOM.isCommentNode(renderElement)) {\n var existingBindings = lang_1.RegExpWrapper.firstMatch(TEMPLATE_BINDINGS_EXP, lang_1.StringWrapper.replaceAll(dom_adapter_1.DOM.getText(renderElement), /\\n/g, ''));\n var parsedBindings = lang_1.Json.parse(existingBindings[1]);\n parsedBindings[dashCasedPropertyName] = propertyValue;\n dom_adapter_1.DOM.setText(renderElement, lang_1.StringWrapper.replace(TEMPLATE_COMMENT_TEXT, '{}', lang_1.Json.stringify(parsedBindings)));\n } else {\n this.setElementAttribute(renderElement, propertyName, propertyValue);\n }\n };\n DomRenderer.prototype.setElementDebugInfo = function(renderElement, info) {};\n DomRenderer.prototype.setElementClass = function(renderElement, className, isAdd) {\n if (isAdd) {\n dom_adapter_1.DOM.addClass(renderElement, className);\n } else {\n dom_adapter_1.DOM.removeClass(renderElement, className);\n }\n };\n DomRenderer.prototype.setElementStyle = function(renderElement, styleName, styleValue) {\n if (lang_1.isPresent(styleValue)) {\n dom_adapter_1.DOM.setStyle(renderElement, styleName, lang_1.stringify(styleValue));\n } else {\n dom_adapter_1.DOM.removeStyle(renderElement, styleName);\n }\n };\n DomRenderer.prototype.invokeElementMethod = function(renderElement, methodName, args) {\n dom_adapter_1.DOM.invoke(renderElement, methodName, args);\n };\n DomRenderer.prototype.setText = function(renderNode, text) {\n dom_adapter_1.DOM.setText(renderNode, text);\n };\n DomRenderer.prototype.animateNodeEnter = function(node) {\n if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) {\n dom_adapter_1.DOM.addClass(node, 'ng-enter');\n this._rootRenderer.animate.css().addAnimationClass('ng-enter-active').start(node).onComplete(function() {\n dom_adapter_1.DOM.removeClass(node, 'ng-enter');\n });\n }\n };\n DomRenderer.prototype.animateNodeLeave = function(node) {\n if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) {\n dom_adapter_1.DOM.addClass(node, 'ng-leave');\n this._rootRenderer.animate.css().addAnimationClass('ng-leave-active').start(node).onComplete(function() {\n dom_adapter_1.DOM.removeClass(node, 'ng-leave');\n dom_adapter_1.DOM.remove(node);\n });\n } else {\n dom_adapter_1.DOM.remove(node);\n }\n };\n return DomRenderer;\n})();\nexports.DomRenderer = DomRenderer;\nfunction moveNodesAfterSibling(sibling, nodes) {\n var parent = dom_adapter_1.DOM.parentElement(sibling);\n if (nodes.length > 0 && lang_1.isPresent(parent)) {\n var nextSibling = dom_adapter_1.DOM.nextSibling(sibling);\n if (lang_1.isPresent(nextSibling)) {\n for (var i = 0; i < nodes.length; i++) {\n dom_adapter_1.DOM.insertBefore(nextSibling, nodes[i]);\n }\n } else {\n for (var i = 0; i < nodes.length; i++) {\n dom_adapter_1.DOM.appendChild(parent, nodes[i]);\n }\n }\n }\n}\nfunction appendNodes(parent, nodes) {\n for (var i = 0; i < nodes.length; i++) {\n dom_adapter_1.DOM.appendChild(parent, nodes[i]);\n }\n}\nfunction decoratePreventDefault(eventHandler) {\n return function(event) {\n var allowDefaultBehavior = eventHandler(event);\n if (allowDefaultBehavior === false) {\n dom_adapter_1.DOM.preventDefault(event);\n }\n };\n}\nvar COMPONENT_REGEX = /%COMP%/g;\nexports.COMPONENT_VARIABLE = '%COMP%';\nexports.HOST_ATTR = \"_nghost-\" + exports.COMPONENT_VARIABLE;\nexports.CONTENT_ATTR = \"_ngcontent-\" + exports.COMPONENT_VARIABLE;\nfunction _shimContentAttribute(componentShortId) {\n return lang_1.StringWrapper.replaceAll(exports.CONTENT_ATTR, COMPONENT_REGEX, componentShortId);\n}\nfunction _shimHostAttribute(componentShortId) {\n return lang_1.StringWrapper.replaceAll(exports.HOST_ATTR, COMPONENT_REGEX, componentShortId);\n}\nfunction _flattenStyles(compId, styles, target) {\n for (var i = 0; i < styles.length; i++) {\n var style = styles[i];\n if (lang_1.isArray(style)) {\n _flattenStyles(compId, style, target);\n } else {\n style = lang_1.StringWrapper.replaceAll(style, COMPONENT_REGEX, compId);\n target.push(style);\n }\n }\n return target;\n}\nvar NS_PREFIX_RE = /^@([^:]+):(.+)/g;\nfunction splitNamespace(name) {\n if (name[0] != '@') {\n return [null, name];\n }\n var match = lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE, name);\n return [match[1], match[2]];\n}\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar debug_node_1 = require('./debug_node');\nvar DebugDomRootRenderer = (function() {\n function DebugDomRootRenderer(_delegate) {\n this._delegate = _delegate;\n }\n DebugDomRootRenderer.prototype.renderComponent = function(componentProto) {\n return new DebugDomRenderer(this, this._delegate.renderComponent(componentProto));\n };\n return DebugDomRootRenderer;\n})();\nexports.DebugDomRootRenderer = DebugDomRootRenderer;\nvar DebugDomRenderer = (function() {\n function DebugDomRenderer(_rootRenderer, _delegate) {\n this._rootRenderer = _rootRenderer;\n this._delegate = _delegate;\n }\n DebugDomRenderer.prototype.renderComponent = function(componentType) {\n return this._rootRenderer.renderComponent(componentType);\n };\n DebugDomRenderer.prototype.selectRootElement = function(selector) {\n var nativeEl = this._delegate.selectRootElement(selector);\n var debugEl = new debug_node_1.DebugElement(nativeEl, null);\n debug_node_1.indexDebugNode(debugEl);\n return nativeEl;\n };\n DebugDomRenderer.prototype.createElement = function(parentElement, name) {\n var nativeEl = this._delegate.createElement(parentElement, name);\n var debugEl = new debug_node_1.DebugElement(nativeEl, debug_node_1.getDebugNode(parentElement));\n debugEl.name = name;\n debug_node_1.indexDebugNode(debugEl);\n return nativeEl;\n };\n DebugDomRenderer.prototype.createViewRoot = function(hostElement) {\n return this._delegate.createViewRoot(hostElement);\n };\n DebugDomRenderer.prototype.createTemplateAnchor = function(parentElement) {\n var comment = this._delegate.createTemplateAnchor(parentElement);\n var debugEl = new debug_node_1.DebugNode(comment, debug_node_1.getDebugNode(parentElement));\n debug_node_1.indexDebugNode(debugEl);\n return comment;\n };\n DebugDomRenderer.prototype.createText = function(parentElement, value) {\n var text = this._delegate.createText(parentElement, value);\n var debugEl = new debug_node_1.DebugNode(text, debug_node_1.getDebugNode(parentElement));\n debug_node_1.indexDebugNode(debugEl);\n return text;\n };\n DebugDomRenderer.prototype.projectNodes = function(parentElement, nodes) {\n var debugParent = debug_node_1.getDebugNode(parentElement);\n if (lang_1.isPresent(debugParent) && debugParent instanceof debug_node_1.DebugElement) {\n nodes.forEach(function(node) {\n debugParent.addChild(debug_node_1.getDebugNode(node));\n });\n }\n return this._delegate.projectNodes(parentElement, nodes);\n };\n DebugDomRenderer.prototype.attachViewAfter = function(node, viewRootNodes) {\n var debugNode = debug_node_1.getDebugNode(node);\n if (lang_1.isPresent(debugNode)) {\n var debugParent = debugNode.parent;\n if (viewRootNodes.length > 0 && lang_1.isPresent(debugParent)) {\n var debugViewRootNodes = [];\n viewRootNodes.forEach(function(rootNode) {\n return debugViewRootNodes.push(debug_node_1.getDebugNode(rootNode));\n });\n debugParent.insertChildrenAfter(debugNode, debugViewRootNodes);\n }\n }\n return this._delegate.attachViewAfter(node, viewRootNodes);\n };\n DebugDomRenderer.prototype.detachView = function(viewRootNodes) {\n viewRootNodes.forEach(function(node) {\n var debugNode = debug_node_1.getDebugNode(node);\n if (lang_1.isPresent(debugNode) && lang_1.isPresent(debugNode.parent)) {\n debugNode.parent.removeChild(debugNode);\n }\n });\n return this._delegate.detachView(viewRootNodes);\n };\n DebugDomRenderer.prototype.destroyView = function(hostElement, viewAllNodes) {\n viewAllNodes.forEach(function(node) {\n debug_node_1.removeDebugNodeFromIndex(debug_node_1.getDebugNode(node));\n });\n return this._delegate.destroyView(hostElement, viewAllNodes);\n };\n DebugDomRenderer.prototype.listen = function(renderElement, name, callback) {\n var debugEl = debug_node_1.getDebugNode(renderElement);\n if (lang_1.isPresent(debugEl)) {\n debugEl.listeners.push(new debug_node_1.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 = debug_node_1.getDebugNode(renderElement);\n if (lang_1.isPresent(debugEl) && debugEl instanceof debug_node_1.DebugElement) {\n debugEl.properties.set(propertyName, propertyValue);\n }\n return this._delegate.setElementProperty(renderElement, propertyName, propertyValue);\n };\n DebugDomRenderer.prototype.setElementAttribute = function(renderElement, attributeName, attributeValue) {\n var debugEl = debug_node_1.getDebugNode(renderElement);\n if (lang_1.isPresent(debugEl) && debugEl instanceof debug_node_1.DebugElement) {\n debugEl.attributes.set(attributeName, attributeValue);\n }\n return this._delegate.setElementAttribute(renderElement, attributeName, attributeValue);\n };\n DebugDomRenderer.prototype.setBindingDebugInfo = function(renderElement, propertyName, propertyValue) {\n return this._delegate.setBindingDebugInfo(renderElement, propertyName, propertyValue);\n };\n DebugDomRenderer.prototype.setElementDebugInfo = function(renderElement, info) {\n var debugEl = debug_node_1.getDebugNode(renderElement);\n debugEl.setDebugInfo(info);\n return this._delegate.setElementDebugInfo(renderElement, info);\n };\n DebugDomRenderer.prototype.setElementClass = function(renderElement, className, isAdd) {\n return this._delegate.setElementClass(renderElement, className, isAdd);\n };\n DebugDomRenderer.prototype.setElementStyle = function(renderElement, styleName, styleValue) {\n return this._delegate.setElementStyle(renderElement, styleName, styleValue);\n };\n DebugDomRenderer.prototype.invokeElementMethod = function(renderElement, methodName, args) {\n return this._delegate.invokeElementMethod(renderElement, methodName, args);\n };\n DebugDomRenderer.prototype.setText = function(renderNode, text) {\n return this._delegate.setText(renderNode, text);\n };\n return DebugDomRenderer;\n})();\nexports.DebugDomRenderer = DebugDomRenderer;\n","/* */ \n'use strict';\nvar lang_1 = require('../../../facade/lang');\nvar di_1 = require('../../../core/di');\nvar dom_adapter_1 = require('../dom_adapter');\nvar debug_node_1 = require('../../../core/debug/debug_node');\nvar dom_renderer_1 = require('../dom_renderer');\nvar core_1 = require('../../../../core');\nvar debug_renderer_1 = require('../../../core/debug/debug_renderer');\nvar INSPECT_GLOBAL_NAME = 'ng.probe';\nfunction inspectNativeElement(element) {\n return debug_node_1.getDebugNode(element);\n}\nexports.inspectNativeElement = inspectNativeElement;\nfunction _createConditionalRootRenderer(rootRenderer) {\n if (lang_1.assertionsEnabled()) {\n return _createRootRenderer(rootRenderer);\n }\n return rootRenderer;\n}\nfunction _createRootRenderer(rootRenderer) {\n dom_adapter_1.DOM.setGlobalVar(INSPECT_GLOBAL_NAME, inspectNativeElement);\n return new debug_renderer_1.DebugDomRootRenderer(rootRenderer);\n}\nexports.ELEMENT_PROBE_PROVIDERS = lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer, {\n useFactory: _createConditionalRootRenderer,\n deps: [dom_renderer_1.DomRootRenderer]\n})]);\nexports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer, {\n useFactory: _createRootRenderer,\n deps: [dom_renderer_1.DomRootRenderer]\n})]);\n","/* */ \n'use strict';\nfunction __export(m) {\n for (var p in m)\n if (!exports.hasOwnProperty(p))\n exports[p] = m[p];\n}\nvar dom_adapter_1 = require('../src/platform/dom/dom_adapter');\nexports.DOM = dom_adapter_1.DOM;\nexports.setRootDomAdapter = dom_adapter_1.setRootDomAdapter;\nexports.DomAdapter = dom_adapter_1.DomAdapter;\nvar dom_renderer_1 = require('../src/platform/dom/dom_renderer');\nexports.DomRenderer = dom_renderer_1.DomRenderer;\nvar dom_tokens_1 = require('../src/platform/dom/dom_tokens');\nexports.DOCUMENT = dom_tokens_1.DOCUMENT;\nvar shared_styles_host_1 = require('../src/platform/dom/shared_styles_host');\nexports.SharedStylesHost = shared_styles_host_1.SharedStylesHost;\nexports.DomSharedStylesHost = shared_styles_host_1.DomSharedStylesHost;\nvar dom_events_1 = require('../src/platform/dom/events/dom_events');\nexports.DomEventsPlugin = dom_events_1.DomEventsPlugin;\nvar event_manager_1 = require('../src/platform/dom/events/event_manager');\nexports.EVENT_MANAGER_PLUGINS = event_manager_1.EVENT_MANAGER_PLUGINS;\nexports.EventManager = event_manager_1.EventManager;\nexports.EventManagerPlugin = event_manager_1.EventManagerPlugin;\n__export(require('../src/platform/dom/debug/by'));\n__export(require('../src/platform/dom/debug/ng_probe'));\n","/* */ \n'use strict';\nvar dom_adapter_1 = require('../dom/dom_adapter');\nvar Title = (function() {\n function Title() {}\n Title.prototype.getTitle = function() {\n return dom_adapter_1.DOM.getTitle();\n };\n Title.prototype.setTitle = function(newTitle) {\n dom_adapter_1.DOM.setTitle(newTitle);\n };\n return Title;\n})();\nexports.Title = Title;\n","/* */ \n'use strict';/**\r\n * JS version of browser APIs. This library can only run in the browser.\r\n */\r\nvar win = window;\r\nexports.window = win;\r\nexports.document = window.document;\r\nexports.location = window.location;\r\nexports.gc = window['gc'] ? function () { return window['gc'](); } : function () { return null; };\r\nexports.performance = window['performance'] ? window['performance'] : null;\r\nexports.Event = window['Event'];\r\nexports.MouseEvent = window['MouseEvent'];\r\nexports.KeyboardEvent = window['KeyboardEvent'];\r\nexports.EventTarget = window['EventTarget'];\r\nexports.History = window['History'];\r\nexports.Location = window['Location'];\r\nexports.EventListener = window['EventListener'];\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9mYWNhZGUvYnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILElBQUksR0FBRyxHQUFHLE1BQU07QUFFRCxjQUFNLE9BRko7QUFHTixnQkFBUSxHQUFHLE1BQU0sQ0FBQyxRQUFRLENBQUM7QUFDM0IsZ0JBQVEsR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDO0FBQzNCLFVBQUUsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsY0FBTSxPQUFBLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFkLENBQWMsR0FBRyxjQUFNLE9BQUEsSUFBSSxFQUFKLENBQUksQ0FBQztBQUN0RCxtQkFBVyxHQUFHLE1BQU0sQ0FBQyxhQUFhLENBQUMsR0FBRyxNQUFNLENBQUMsYUFBYSxDQUFDLEdBQUcsSUFBSSxDQUFDO0FBQ2pFLGFBQUssR0FBRyxNQUFNLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDeEIsa0JBQVUsR0FBRyxNQUFNLENBQUMsWUFBWSxDQUFDLENBQUM7QUFDbEMscUJBQWEsR0FBRyxNQUFNLENBQUMsZUFBZSxDQUFDLENBQUM7QUFDeEMsbUJBQVcsR0FBRyxNQUFNLENBQUMsYUFBYSxDQUFDLENBQUM7QUFDcEMsZUFBTyxHQUFHLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUM1QixnQkFBUSxHQUFHLE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUM5QixxQkFBYSxHQUFHLE1BQU0sQ0FBQyxlQUFlLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogSlMgdmVyc2lvbiBvZiBicm93c2VyIEFQSXMuIFRoaXMgbGlicmFyeSBjYW4gb25seSBydW4gaW4gdGhlIGJyb3dzZXIuXG4gKi9cbnZhciB3aW4gPSB3aW5kb3c7XG5cbmV4cG9ydCB7d2luIGFzIHdpbmRvd307XG5leHBvcnQgdmFyIGRvY3VtZW50ID0gd2luZG93LmRvY3VtZW50O1xuZXhwb3J0IHZhciBsb2NhdGlvbiA9IHdpbmRvdy5sb2NhdGlvbjtcbmV4cG9ydCB2YXIgZ2MgPSB3aW5kb3dbJ2djJ10gPyAoKSA9PiB3aW5kb3dbJ2djJ10oKSA6ICgpID0+IG51bGw7XG5leHBvcnQgdmFyIHBlcmZvcm1hbmNlID0gd2luZG93WydwZXJmb3JtYW5jZSddID8gd2luZG93WydwZXJmb3JtYW5jZSddIDogbnVsbDtcbmV4cG9ydCBjb25zdCBFdmVudCA9IHdpbmRvd1snRXZlbnQnXTtcbmV4cG9ydCBjb25zdCBNb3VzZUV2ZW50ID0gd2luZG93WydNb3VzZUV2ZW50J107XG5leHBvcnQgY29uc3QgS2V5Ym9hcmRFdmVudCA9IHdpbmRvd1snS2V5Ym9hcmRFdmVudCddO1xuZXhwb3J0IGNvbnN0IEV2ZW50VGFyZ2V0ID0gd2luZG93WydFdmVudFRhcmdldCddO1xuZXhwb3J0IGNvbnN0IEhpc3RvcnkgPSB3aW5kb3dbJ0hpc3RvcnknXTtcbmV4cG9ydCBjb25zdCBMb2NhdGlvbiA9IHdpbmRvd1snTG9jYXRpb24nXTtcbmV4cG9ydCBjb25zdCBFdmVudExpc3RlbmVyID0gd2luZG93WydFdmVudExpc3RlbmVyJ107XG4iXX0=","/* */ \n'use strict';\nvar application_ref_1 = require('../../../core/application_ref');\nvar lang_1 = require('../../../facade/lang');\nvar browser_1 = require('../../../facade/browser');\nvar dom_adapter_1 = require('../../dom/dom_adapter');\nvar AngularTools = (function() {\n function AngularTools(ref) {\n this.profiler = new AngularProfiler(ref);\n }\n return AngularTools;\n})();\nexports.AngularTools = AngularTools;\nvar AngularProfiler = (function() {\n function AngularProfiler(ref) {\n this.appRef = ref.injector.get(application_ref_1.ApplicationRef);\n }\n AngularProfiler.prototype.timeChangeDetection = function(config) {\n var record = lang_1.isPresent(config) && config['record'];\n var profileName = 'Change Detection';\n var isProfilerAvailable = lang_1.isPresent(browser_1.window.console.profile);\n if (record && isProfilerAvailable) {\n browser_1.window.console.profile(profileName);\n }\n var start = dom_adapter_1.DOM.performanceNow();\n var numTicks = 0;\n while (numTicks < 5 || (dom_adapter_1.DOM.performanceNow() - start) < 500) {\n this.appRef.tick();\n numTicks++;\n }\n var end = dom_adapter_1.DOM.performanceNow();\n if (record && isProfilerAvailable) {\n browser_1.window.console.profileEnd(profileName);\n }\n var msPerTick = (end - start) / numTicks;\n browser_1.window.console.log(\"ran \" + numTicks + \" change detection cycles\");\n browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick, 2) + \" ms per check\");\n };\n return AngularProfiler;\n})();\nexports.AngularProfiler = AngularProfiler;\n","/* */ \n'use strict';\nvar lang_1 = require('../../../facade/lang');\nvar common_tools_1 = require('./common_tools');\nvar context = lang_1.global;\nfunction enableDebugTools(ref) {\n context.ng = new common_tools_1.AngularTools(ref);\n}\nexports.enableDebugTools = enableDebugTools;\nfunction disableDebugTools() {\n delete context.ng;\n}\nexports.disableDebugTools = disableDebugTools;\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar di_1 = require('../core/di');\nvar core_1 = require('../../core');\nvar common_1 = require('../../common');\nvar testability_1 = require('../core/testability/testability');\nvar dom_adapter_1 = require('./dom/dom_adapter');\nvar dom_events_1 = require('./dom/events/dom_events');\nvar key_events_1 = require('./dom/events/key_events');\nvar hammer_gestures_1 = require('./dom/events/hammer_gestures');\nvar dom_tokens_1 = require('./dom/dom_tokens');\nvar dom_renderer_1 = require('./dom/dom_renderer');\nvar shared_styles_host_1 = require('./dom/shared_styles_host');\nvar shared_styles_host_2 = require('./dom/shared_styles_host');\nvar browser_details_1 = require('../animate/browser_details');\nvar animation_builder_1 = require('../animate/animation_builder');\nvar browser_adapter_1 = require('./browser/browser_adapter');\nvar testability_2 = require('./browser/testability');\nvar wtf_init_1 = require('../core/profile/wtf_init');\nvar event_manager_1 = require('./dom/events/event_manager');\nvar common_dom_1 = require('../../platform/common_dom');\nvar dom_tokens_2 = require('./dom/dom_tokens');\nexports.DOCUMENT = dom_tokens_2.DOCUMENT;\nvar title_1 = require('./browser/title');\nexports.Title = title_1.Title;\nvar common_dom_2 = require('../../platform/common_dom');\nexports.ELEMENT_PROBE_PROVIDERS = common_dom_2.ELEMENT_PROBE_PROVIDERS;\nexports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = common_dom_2.ELEMENT_PROBE_PROVIDERS_PROD_MODE;\nexports.inspectNativeElement = common_dom_2.inspectNativeElement;\nexports.By = common_dom_2.By;\nvar browser_adapter_2 = require('./browser/browser_adapter');\nexports.BrowserDomAdapter = browser_adapter_2.BrowserDomAdapter;\nvar tools_1 = require('./browser/tools/tools');\nexports.enableDebugTools = tools_1.enableDebugTools;\nexports.disableDebugTools = tools_1.disableDebugTools;\nexports.BROWSER_PROVIDERS = lang_1.CONST_EXPR([core_1.PLATFORM_COMMON_PROVIDERS, new di_1.Provider(core_1.PLATFORM_INITIALIZER, {\n useValue: initDomAdapter,\n multi: true\n})]);\nfunction _exceptionHandler() {\n return new core_1.ExceptionHandler(dom_adapter_1.DOM, !lang_1.IS_DART);\n}\nfunction _document() {\n return dom_adapter_1.DOM.defaultDoc();\n}\nexports.BROWSER_APP_COMMON_PROVIDERS = lang_1.CONST_EXPR([core_1.APPLICATION_COMMON_PROVIDERS, common_1.FORM_PROVIDERS, new di_1.Provider(core_1.PLATFORM_PIPES, {\n useValue: common_1.COMMON_PIPES,\n multi: true\n}), new di_1.Provider(core_1.PLATFORM_DIRECTIVES, {\n useValue: common_1.COMMON_DIRECTIVES,\n multi: true\n}), new di_1.Provider(core_1.ExceptionHandler, {\n useFactory: _exceptionHandler,\n deps: []\n}), new di_1.Provider(dom_tokens_1.DOCUMENT, {\n useFactory: _document,\n deps: []\n}), new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS, {\n useClass: dom_events_1.DomEventsPlugin,\n multi: true\n}), new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS, {\n useClass: key_events_1.KeyEventsPlugin,\n multi: true\n}), new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS, {\n useClass: hammer_gestures_1.HammerGesturesPlugin,\n multi: true\n}), new di_1.Provider(dom_renderer_1.DomRootRenderer, {useClass: dom_renderer_1.DomRootRenderer_}), new di_1.Provider(core_1.RootRenderer, {useExisting: dom_renderer_1.DomRootRenderer}), new di_1.Provider(shared_styles_host_2.SharedStylesHost, {useExisting: shared_styles_host_1.DomSharedStylesHost}), shared_styles_host_1.DomSharedStylesHost, testability_1.Testability, browser_details_1.BrowserDetails, animation_builder_1.AnimationBuilder, event_manager_1.EventManager, common_dom_1.ELEMENT_PROBE_PROVIDERS]);\nfunction initDomAdapter() {\n browser_adapter_1.BrowserDomAdapter.makeCurrent();\n wtf_init_1.wtfInit();\n testability_2.BrowserGetTestability.init();\n}\nexports.initDomAdapter = initDomAdapter;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar compiler_1 = require('../core/linker/compiler');\nvar view_ref_1 = require('../core/linker/view_ref');\nvar template_compiler_1 = require('./template_compiler');\nvar di_1 = require('../core/di');\nvar RuntimeCompiler = (function(_super) {\n __extends(RuntimeCompiler, _super);\n function RuntimeCompiler() {\n _super.apply(this, arguments);\n }\n return RuntimeCompiler;\n})(compiler_1.Compiler);\nexports.RuntimeCompiler = RuntimeCompiler;\nvar RuntimeCompiler_ = (function(_super) {\n __extends(RuntimeCompiler_, _super);\n function RuntimeCompiler_(_templateCompiler) {\n _super.call(this);\n this._templateCompiler = _templateCompiler;\n }\n RuntimeCompiler_.prototype.compileInHost = function(componentType) {\n return this._templateCompiler.compileHostComponentRuntime(componentType).then(function(hostViewFactory) {\n return new view_ref_1.HostViewFactoryRef_(hostViewFactory);\n });\n };\n RuntimeCompiler_.prototype.clearCache = function() {\n _super.prototype.clearCache.call(this);\n this._templateCompiler.clearCache();\n };\n RuntimeCompiler_ = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [template_compiler_1.TemplateCompiler])], RuntimeCompiler_);\n return RuntimeCompiler_;\n})(compiler_1.Compiler_);\nexports.RuntimeCompiler_ = RuntimeCompiler_;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../facade/lang');\nvar exceptions_1 = require('../facade/exceptions');\nvar collection_1 = require('../facade/collection');\nvar async_1 = require('../facade/async');\nvar directive_metadata_1 = require('./directive_metadata');\nvar template_ast_1 = require('./template_ast');\nvar di_1 = require('../core/di');\nvar source_module_1 = require('./source_module');\nvar change_detector_compiler_1 = require('./change_detector_compiler');\nvar style_compiler_1 = require('./style_compiler');\nvar view_compiler_1 = require('./view_compiler');\nvar proto_view_compiler_1 = require('./proto_view_compiler');\nvar template_parser_1 = require('./template_parser');\nvar template_normalizer_1 = require('./template_normalizer');\nvar runtime_metadata_1 = require('./runtime_metadata');\nvar view_1 = require('../core/linker/view');\nvar change_detection_1 = require('../core/change_detection/change_detection');\nvar resolved_metadata_cache_1 = require('../core/linker/resolved_metadata_cache');\nvar util_1 = require('./util');\nexports.METADATA_CACHE_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/resolved_metadata_cache' + util_1.MODULE_SUFFIX);\nvar TemplateCompiler = (function() {\n function TemplateCompiler(_runtimeMetadataResolver, _templateNormalizer, _templateParser, _styleCompiler, _cdCompiler, _protoViewCompiler, _viewCompiler, _resolvedMetadataCache, _genConfig) {\n this._runtimeMetadataResolver = _runtimeMetadataResolver;\n this._templateNormalizer = _templateNormalizer;\n this._templateParser = _templateParser;\n this._styleCompiler = _styleCompiler;\n this._cdCompiler = _cdCompiler;\n this._protoViewCompiler = _protoViewCompiler;\n this._viewCompiler = _viewCompiler;\n this._resolvedMetadataCache = _resolvedMetadataCache;\n this._genConfig = _genConfig;\n this._hostCacheKeys = new Map();\n this._compiledTemplateCache = new Map();\n this._compiledTemplateDone = new Map();\n }\n TemplateCompiler.prototype.normalizeDirectiveMetadata = function(directive) {\n if (!directive.isComponent) {\n return async_1.PromiseWrapper.resolve(directive);\n }\n return this._templateNormalizer.normalizeTemplate(directive.type, directive.template).then(function(normalizedTemplate) {\n return new directive_metadata_1.CompileDirectiveMetadata({\n type: directive.type,\n isComponent: directive.isComponent,\n dynamicLoadable: directive.dynamicLoadable,\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 lifecycleHooks: directive.lifecycleHooks,\n template: normalizedTemplate\n });\n });\n };\n TemplateCompiler.prototype.compileHostComponentRuntime = function(type) {\n var compMeta = this._runtimeMetadataResolver.getDirectiveMetadata(type);\n var hostCacheKey = this._hostCacheKeys.get(type);\n if (lang_1.isBlank(hostCacheKey)) {\n hostCacheKey = new Object();\n this._hostCacheKeys.set(type, hostCacheKey);\n assertComponent(compMeta);\n var hostMeta = directive_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);\n this._compileComponentRuntime(hostCacheKey, hostMeta, [compMeta], [], []);\n }\n return this._compiledTemplateDone.get(hostCacheKey).then(function(compiledTemplate) {\n return new view_1.HostViewFactory(compMeta.selector, compiledTemplate.viewFactory);\n });\n };\n TemplateCompiler.prototype.clearCache = function() {\n this._styleCompiler.clearCache();\n this._compiledTemplateCache.clear();\n this._compiledTemplateDone.clear();\n this._hostCacheKeys.clear();\n };\n TemplateCompiler.prototype.compileTemplatesCodeGen = function(components) {\n var _this = this;\n if (components.length === 0) {\n throw new exceptions_1.BaseException('No components given');\n }\n var declarations = [];\n components.forEach(function(componentWithDirs) {\n var compMeta = componentWithDirs.component;\n assertComponent(compMeta);\n _this._compileComponentCodeGen(compMeta, componentWithDirs.directives, componentWithDirs.pipes, declarations);\n if (compMeta.dynamicLoadable) {\n var hostMeta = directive_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);\n var viewFactoryExpression = _this._compileComponentCodeGen(hostMeta, [compMeta], [], declarations);\n var constructionKeyword = lang_1.IS_DART ? 'const' : 'new';\n var compiledTemplateExpr = constructionKeyword + \" \" + proto_view_compiler_1.APP_VIEW_MODULE_REF + \"HostViewFactory('\" + compMeta.selector + \"',\" + viewFactoryExpression + \")\";\n var varName = codeGenHostViewFactoryName(compMeta.type);\n declarations.push(\"\" + util_1.codeGenExportVariable(varName) + compiledTemplateExpr + \";\");\n }\n });\n var moduleUrl = components[0].component.type.moduleUrl;\n return new source_module_1.SourceModule(\"\" + templateModuleUrl(moduleUrl), declarations.join('\\n'));\n };\n TemplateCompiler.prototype.compileStylesheetCodeGen = function(stylesheetUrl, cssText) {\n return this._styleCompiler.compileStylesheetCodeGen(stylesheetUrl, cssText);\n };\n TemplateCompiler.prototype._compileComponentRuntime = function(cacheKey, compMeta, viewDirectives, pipes, compilingComponentsPath) {\n var _this = this;\n var uniqViewDirectives = removeDuplicates(viewDirectives);\n var uniqViewPipes = removeDuplicates(pipes);\n var compiledTemplate = this._compiledTemplateCache.get(cacheKey);\n var done = this._compiledTemplateDone.get(cacheKey);\n if (lang_1.isBlank(compiledTemplate)) {\n compiledTemplate = new CompiledTemplate();\n this._compiledTemplateCache.set(cacheKey, compiledTemplate);\n done = async_1.PromiseWrapper.all([this._styleCompiler.compileComponentRuntime(compMeta.template)].concat(uniqViewDirectives.map(function(dirMeta) {\n return _this.normalizeDirectiveMetadata(dirMeta);\n }))).then(function(stylesAndNormalizedViewDirMetas) {\n var normalizedViewDirMetas = stylesAndNormalizedViewDirMetas.slice(1);\n var styles = stylesAndNormalizedViewDirMetas[0];\n var parsedTemplate = _this._templateParser.parse(compMeta.template.template, normalizedViewDirMetas, uniqViewPipes, compMeta.type.name);\n var childPromises = [];\n var usedDirectives = DirectiveCollector.findUsedDirectives(parsedTemplate);\n usedDirectives.components.forEach(function(component) {\n return _this._compileNestedComponentRuntime(component, compilingComponentsPath, childPromises);\n });\n return async_1.PromiseWrapper.all(childPromises).then(function(_) {\n var filteredPipes = filterPipes(parsedTemplate, uniqViewPipes);\n compiledTemplate.init(_this._createViewFactoryRuntime(compMeta, parsedTemplate, usedDirectives.directives, styles, filteredPipes));\n return compiledTemplate;\n });\n });\n this._compiledTemplateDone.set(cacheKey, done);\n }\n return compiledTemplate;\n };\n TemplateCompiler.prototype._compileNestedComponentRuntime = function(childComponentDir, parentCompilingComponentsPath, childPromises) {\n var compilingComponentsPath = collection_1.ListWrapper.clone(parentCompilingComponentsPath);\n var childCacheKey = childComponentDir.type.runtime;\n var childViewDirectives = this._runtimeMetadataResolver.getViewDirectivesMetadata(childComponentDir.type.runtime);\n var childViewPipes = this._runtimeMetadataResolver.getViewPipesMetadata(childComponentDir.type.runtime);\n var childIsRecursive = collection_1.ListWrapper.contains(compilingComponentsPath, childCacheKey);\n compilingComponentsPath.push(childCacheKey);\n this._compileComponentRuntime(childCacheKey, childComponentDir, childViewDirectives, childViewPipes, compilingComponentsPath);\n if (!childIsRecursive) {\n childPromises.push(this._compiledTemplateDone.get(childCacheKey));\n }\n };\n TemplateCompiler.prototype._createViewFactoryRuntime = function(compMeta, parsedTemplate, directives, styles, pipes) {\n var _this = this;\n if (lang_1.IS_DART || !this._genConfig.useJit) {\n var changeDetectorFactories = this._cdCompiler.compileComponentRuntime(compMeta.type, compMeta.changeDetection, parsedTemplate);\n var protoViews = this._protoViewCompiler.compileProtoViewRuntime(this._resolvedMetadataCache, compMeta, parsedTemplate, pipes);\n return this._viewCompiler.compileComponentRuntime(compMeta, parsedTemplate, styles, protoViews.protoViews, changeDetectorFactories, function(compMeta) {\n return _this._getNestedComponentViewFactory(compMeta);\n });\n } else {\n var declarations = [];\n var viewFactoryExpr = this._createViewFactoryCodeGen('resolvedMetadataCache', compMeta, new source_module_1.SourceExpression([], 'styles'), parsedTemplate, pipes, declarations);\n var vars = {\n 'exports': {},\n 'styles': styles,\n 'resolvedMetadataCache': this._resolvedMetadataCache\n };\n directives.forEach(function(dirMeta) {\n vars[dirMeta.type.name] = dirMeta.type.runtime;\n if (dirMeta.isComponent && dirMeta.type.runtime !== compMeta.type.runtime) {\n vars[(\"viewFactory_\" + dirMeta.type.name + \"0\")] = _this._getNestedComponentViewFactory(dirMeta);\n }\n });\n pipes.forEach(function(pipeMeta) {\n return vars[pipeMeta.type.name] = pipeMeta.type.runtime;\n });\n var declarationsWithoutImports = source_module_1.SourceModule.getSourceWithoutImports(declarations.join('\\n'));\n return lang_1.evalExpression(\"viewFactory_\" + compMeta.type.name, viewFactoryExpr, declarationsWithoutImports, mergeStringMaps([vars, change_detector_compiler_1.CHANGE_DETECTION_JIT_IMPORTS, proto_view_compiler_1.PROTO_VIEW_JIT_IMPORTS, view_compiler_1.VIEW_JIT_IMPORTS]));\n }\n };\n TemplateCompiler.prototype._getNestedComponentViewFactory = function(compMeta) {\n return this._compiledTemplateCache.get(compMeta.type.runtime).viewFactory;\n };\n TemplateCompiler.prototype._compileComponentCodeGen = function(compMeta, directives, pipes, targetDeclarations) {\n var uniqueDirectives = removeDuplicates(directives);\n var uniqPipes = removeDuplicates(pipes);\n var styleExpr = this._styleCompiler.compileComponentCodeGen(compMeta.template);\n var parsedTemplate = this._templateParser.parse(compMeta.template.template, uniqueDirectives, uniqPipes, compMeta.type.name);\n var filteredPipes = filterPipes(parsedTemplate, uniqPipes);\n return this._createViewFactoryCodeGen(exports.METADATA_CACHE_MODULE_REF + \"CODEGEN_RESOLVED_METADATA_CACHE\", compMeta, styleExpr, parsedTemplate, filteredPipes, targetDeclarations);\n };\n TemplateCompiler.prototype._createViewFactoryCodeGen = function(resolvedMetadataCacheExpr, compMeta, styleExpr, parsedTemplate, pipes, targetDeclarations) {\n var changeDetectorsExprs = this._cdCompiler.compileComponentCodeGen(compMeta.type, compMeta.changeDetection, parsedTemplate);\n var protoViewExprs = this._protoViewCompiler.compileProtoViewCodeGen(new util_1.Expression(resolvedMetadataCacheExpr), compMeta, parsedTemplate, pipes);\n var viewFactoryExpr = this._viewCompiler.compileComponentCodeGen(compMeta, parsedTemplate, styleExpr, protoViewExprs.protoViews, changeDetectorsExprs, codeGenComponentViewFactoryName);\n util_1.addAll(changeDetectorsExprs.declarations, targetDeclarations);\n util_1.addAll(protoViewExprs.declarations, targetDeclarations);\n util_1.addAll(viewFactoryExpr.declarations, targetDeclarations);\n return viewFactoryExpr.expression;\n };\n TemplateCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [runtime_metadata_1.RuntimeMetadataResolver, template_normalizer_1.TemplateNormalizer, template_parser_1.TemplateParser, style_compiler_1.StyleCompiler, change_detector_compiler_1.ChangeDetectionCompiler, proto_view_compiler_1.ProtoViewCompiler, view_compiler_1.ViewCompiler, resolved_metadata_cache_1.ResolvedMetadataCache, change_detection_1.ChangeDetectorGenConfig])], TemplateCompiler);\n return TemplateCompiler;\n})();\nexports.TemplateCompiler = TemplateCompiler;\nvar NormalizedComponentWithViewDirectives = (function() {\n function NormalizedComponentWithViewDirectives(component, directives, pipes) {\n this.component = component;\n this.directives = directives;\n this.pipes = pipes;\n }\n return NormalizedComponentWithViewDirectives;\n})();\nexports.NormalizedComponentWithViewDirectives = NormalizedComponentWithViewDirectives;\nvar CompiledTemplate = (function() {\n function CompiledTemplate() {\n this.viewFactory = null;\n }\n CompiledTemplate.prototype.init = function(viewFactory) {\n this.viewFactory = viewFactory;\n };\n return CompiledTemplate;\n})();\nfunction assertComponent(meta) {\n if (!meta.isComponent) {\n throw new exceptions_1.BaseException(\"Could not compile '\" + meta.type.name + \"' because it is not a component.\");\n }\n}\nfunction templateModuleUrl(moduleUrl) {\n var urlWithoutSuffix = moduleUrl.substring(0, moduleUrl.length - util_1.MODULE_SUFFIX.length);\n return urlWithoutSuffix + \".template\" + util_1.MODULE_SUFFIX;\n}\nfunction codeGenHostViewFactoryName(type) {\n return \"hostViewFactory_\" + type.name;\n}\nfunction codeGenComponentViewFactoryName(nestedCompType) {\n return source_module_1.moduleRef(templateModuleUrl(nestedCompType.type.moduleUrl)) + \"viewFactory_\" + nestedCompType.type.name + \"0\";\n}\nfunction mergeStringMaps(maps) {\n var result = {};\n maps.forEach(function(map) {\n collection_1.StringMapWrapper.forEach(map, function(value, key) {\n result[key] = value;\n });\n });\n return result;\n}\nfunction removeDuplicates(items) {\n var res = [];\n items.forEach(function(item) {\n var hasMatch = res.filter(function(r) {\n return r.type.name == item.type.name && r.type.moduleUrl == item.type.moduleUrl && r.type.runtime == item.type.runtime;\n }).length > 0;\n if (!hasMatch) {\n res.push(item);\n }\n });\n return res;\n}\nvar DirectiveCollector = (function() {\n function DirectiveCollector() {\n this.directives = [];\n this.components = [];\n }\n DirectiveCollector.findUsedDirectives = function(parsedTemplate) {\n var collector = new DirectiveCollector();\n template_ast_1.templateVisitAll(collector, parsedTemplate);\n return collector;\n };\n DirectiveCollector.prototype.visitBoundText = function(ast, context) {\n return null;\n };\n DirectiveCollector.prototype.visitText = function(ast, context) {\n return null;\n };\n DirectiveCollector.prototype.visitNgContent = function(ast, context) {\n return null;\n };\n DirectiveCollector.prototype.visitElement = function(ast, context) {\n template_ast_1.templateVisitAll(this, ast.directives);\n template_ast_1.templateVisitAll(this, ast.children);\n return null;\n };\n DirectiveCollector.prototype.visitEmbeddedTemplate = function(ast, context) {\n template_ast_1.templateVisitAll(this, ast.directives);\n template_ast_1.templateVisitAll(this, ast.children);\n return null;\n };\n DirectiveCollector.prototype.visitVariable = function(ast, ctx) {\n return null;\n };\n DirectiveCollector.prototype.visitAttr = function(ast, attrNameAndValues) {\n return null;\n };\n DirectiveCollector.prototype.visitDirective = function(ast, ctx) {\n if (ast.directive.isComponent) {\n this.components.push(ast.directive);\n }\n this.directives.push(ast.directive);\n return null;\n };\n DirectiveCollector.prototype.visitEvent = function(ast, eventTargetAndNames) {\n return null;\n };\n DirectiveCollector.prototype.visitDirectiveProperty = function(ast, context) {\n return null;\n };\n DirectiveCollector.prototype.visitElementProperty = function(ast, context) {\n return null;\n };\n return DirectiveCollector;\n})();\nfunction filterPipes(template, allPipes) {\n var visitor = new PipeVisitor();\n template_ast_1.templateVisitAll(visitor, template);\n return allPipes.filter(function(pipeMeta) {\n return collection_1.SetWrapper.has(visitor.collector.pipes, pipeMeta.name);\n });\n}\nvar PipeVisitor = (function() {\n function PipeVisitor() {\n this.collector = new template_parser_1.PipeCollector();\n }\n PipeVisitor.prototype.visitBoundText = function(ast, context) {\n ast.value.visit(this.collector);\n return null;\n };\n PipeVisitor.prototype.visitText = function(ast, context) {\n return null;\n };\n PipeVisitor.prototype.visitNgContent = function(ast, context) {\n return null;\n };\n PipeVisitor.prototype.visitElement = function(ast, context) {\n template_ast_1.templateVisitAll(this, ast.inputs);\n template_ast_1.templateVisitAll(this, ast.outputs);\n template_ast_1.templateVisitAll(this, ast.directives);\n template_ast_1.templateVisitAll(this, ast.children);\n return null;\n };\n PipeVisitor.prototype.visitEmbeddedTemplate = function(ast, context) {\n template_ast_1.templateVisitAll(this, ast.outputs);\n template_ast_1.templateVisitAll(this, ast.directives);\n template_ast_1.templateVisitAll(this, ast.children);\n return null;\n };\n PipeVisitor.prototype.visitVariable = function(ast, ctx) {\n return null;\n };\n PipeVisitor.prototype.visitAttr = function(ast, attrNameAndValues) {\n return null;\n };\n PipeVisitor.prototype.visitDirective = function(ast, ctx) {\n template_ast_1.templateVisitAll(this, ast.inputs);\n template_ast_1.templateVisitAll(this, ast.hostEvents);\n template_ast_1.templateVisitAll(this, ast.hostProperties);\n return null;\n };\n PipeVisitor.prototype.visitEvent = function(ast, eventTargetAndNames) {\n ast.handler.visit(this.collector);\n return null;\n };\n PipeVisitor.prototype.visitDirectiveProperty = function(ast, context) {\n ast.value.visit(this.collector);\n return null;\n };\n PipeVisitor.prototype.visitElementProperty = function(ast, context) {\n ast.value.visit(this.collector);\n return null;\n };\n return PipeVisitor;\n})();\n","/* */ \n(function(process) {\n 'use strict';\n var __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\n var __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\n var __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n };\n var collection_1 = require('../facade/collection');\n var lang_1 = require('../facade/lang');\n var core_1 = require('../../core');\n var lang_2 = require('../facade/lang');\n var exceptions_1 = require('../facade/exceptions');\n var change_detection_1 = require('../core/change_detection/change_detection');\n var html_parser_1 = require('./html_parser');\n var html_tags_1 = require('./html_tags');\n var parse_util_1 = require('./parse_util');\n var ast_1 = require('../core/change_detection/parser/ast');\n var template_ast_1 = require('./template_ast');\n var selector_1 = require('./selector');\n var element_schema_registry_1 = require('./schema/element_schema_registry');\n var template_preparser_1 = require('./template_preparser');\n var style_url_resolver_1 = require('./style_url_resolver');\n var html_ast_1 = require('./html_ast');\n var util_1 = require('./util');\n var BIND_NAME_REGEXP = /^(?:(?:(?:(bind-)|(var-|#)|(on-)|(bindon-))(.+))|\\[\\(([^\\)]+)\\)\\]|\\[([^\\]]+)\\]|\\(([^\\)]+)\\))$/g;\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 = selector_1.CssSelector.parse('*')[0];\n exports.TEMPLATE_TRANSFORMS = lang_2.CONST_EXPR(new core_1.OpaqueToken('TemplateTransforms'));\n var TemplateParseError = (function(_super) {\n __extends(TemplateParseError, _super);\n function TemplateParseError(message, location) {\n _super.call(this, location, message);\n }\n return TemplateParseError;\n })(parse_util_1.ParseError);\n exports.TemplateParseError = TemplateParseError;\n var TemplateParser = (function() {\n function TemplateParser(_exprParser, _schemaRegistry, _htmlParser, transforms) {\n this._exprParser = _exprParser;\n this._schemaRegistry = _schemaRegistry;\n this._htmlParser = _htmlParser;\n this.transforms = transforms;\n }\n TemplateParser.prototype.parse = function(template, directives, pipes, templateUrl) {\n var parseVisitor = new TemplateParseVisitor(directives, pipes, this._exprParser, this._schemaRegistry);\n var htmlAstWithErrors = this._htmlParser.parse(template, templateUrl);\n var result = html_ast_1.htmlVisitAll(parseVisitor, htmlAstWithErrors.rootNodes, EMPTY_COMPONENT);\n var errors = htmlAstWithErrors.errors.concat(parseVisitor.errors);\n if (errors.length > 0) {\n var errorString = errors.join('\\n');\n throw new exceptions_1.BaseException(\"Template parse errors:\\n\" + errorString);\n }\n if (lang_1.isPresent(this.transforms)) {\n this.transforms.forEach(function(transform) {\n result = template_ast_1.templateVisitAll(transform, result);\n });\n }\n return result;\n };\n TemplateParser = __decorate([core_1.Injectable(), __param(3, core_1.Optional()), __param(3, core_1.Inject(exports.TEMPLATE_TRANSFORMS)), __metadata('design:paramtypes', [change_detection_1.Parser, element_schema_registry_1.ElementSchemaRegistry, html_parser_1.HtmlParser, Array])], TemplateParser);\n return TemplateParser;\n })();\n exports.TemplateParser = TemplateParser;\n var TemplateParseVisitor = (function() {\n function TemplateParseVisitor(directives, pipes, _exprParser, _schemaRegistry) {\n var _this = this;\n this._exprParser = _exprParser;\n this._schemaRegistry = _schemaRegistry;\n this.errors = [];\n this.directivesIndex = new Map();\n this.ngContentCount = 0;\n this.selectorMatcher = new selector_1.SelectorMatcher();\n collection_1.ListWrapper.forEachWithIndex(directives, function(directive, index) {\n var selector = selector_1.CssSelector.parse(directive.selector);\n _this.selectorMatcher.addSelectables(selector, directive);\n _this.directivesIndex.set(directive, index);\n });\n this.pipesByName = new Map();\n pipes.forEach(function(pipe) {\n return _this.pipesByName.set(pipe.name, pipe);\n });\n }\n TemplateParseVisitor.prototype._reportError = function(message, sourceSpan) {\n this.errors.push(new TemplateParseError(message, sourceSpan.start));\n };\n TemplateParseVisitor.prototype._parseInterpolation = function(value, sourceSpan) {\n var sourceInfo = sourceSpan.start.toString();\n try {\n var ast = this._exprParser.parseInterpolation(value, sourceInfo);\n this._checkPipes(ast, sourceSpan);\n return ast;\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);\n this._checkPipes(ast, sourceSpan);\n return ast;\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);\n this._checkPipes(ast, sourceSpan);\n return ast;\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 bindings = this._exprParser.parseTemplateBindings(value, sourceInfo);\n bindings.forEach(function(binding) {\n if (lang_1.isPresent(binding.expression)) {\n _this._checkPipes(binding.expression, sourceSpan);\n }\n });\n return bindings;\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 (lang_1.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.visitText = function(ast, component) {\n var ngContentIndex = component.findNgContentIndex(TEXT_CSS_SELECTOR);\n var expr = this._parseInterpolation(ast.value, ast.sourceSpan);\n if (lang_1.isPresent(expr)) {\n return new template_ast_1.BoundTextAst(expr, ngContentIndex, ast.sourceSpan);\n } else {\n return new template_ast_1.TextAst(ast.value, ngContentIndex, ast.sourceSpan);\n }\n };\n TemplateParseVisitor.prototype.visitAttr = function(ast, contex) {\n return new template_ast_1.AttrAst(ast.name, ast.value, ast.sourceSpan);\n };\n TemplateParseVisitor.prototype.visitElement = function(element, component) {\n var _this = this;\n var nodeName = element.name;\n var preparsedElement = template_preparser_1.preparseElement(element);\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.SCRIPT || preparsedElement.type === template_preparser_1.PreparsedElementType.STYLE) {\n return null;\n }\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.STYLESHEET && style_url_resolver_1.isStyleUrlResolvable(preparsedElement.hrefAttr)) {\n return null;\n }\n var matchableAttrs = [];\n var elementOrDirectiveProps = [];\n var vars = [];\n var events = [];\n var templateElementOrDirectiveProps = [];\n var templateVars = [];\n var templateMatchableAttrs = [];\n var hasInlineTemplates = false;\n var attrs = [];\n element.attrs.forEach(function(attr) {\n var hasBinding = _this._parseAttr(attr, matchableAttrs, elementOrDirectiveProps, events, vars);\n var hasTemplateBinding = _this._parseInlineTemplateBinding(attr, templateMatchableAttrs, templateElementOrDirectiveProps, templateVars);\n if (!hasBinding && !hasTemplateBinding) {\n attrs.push(_this.visitAttr(attr, null));\n matchableAttrs.push([attr.name, attr.value]);\n }\n if (hasTemplateBinding) {\n hasInlineTemplates = true;\n }\n });\n var lcElName = html_tags_1.splitNsName(nodeName.toLowerCase())[1];\n var isTemplateElement = lcElName == TEMPLATE_ELEMENT;\n var elementCssSelector = createElementCssSelector(nodeName, matchableAttrs);\n var directives = this._createDirectiveAsts(element.name, this._parseDirectives(this.selectorMatcher, elementCssSelector), elementOrDirectiveProps, isTemplateElement ? [] : vars, element.sourceSpan);\n var elementProps = this._createElementPropertyAsts(element.name, elementOrDirectiveProps, directives);\n var children = html_ast_1.htmlVisitAll(preparsedElement.nonBindable ? NON_BINDABLE_VISITOR : this, element.children, Component.create(directives));\n var elementNgContentIndex = hasInlineTemplates ? null : component.findNgContentIndex(elementCssSelector);\n var parsedElement;\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.NG_CONTENT) {\n if (lang_1.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 template_ast_1.NgContentAst(this.ngContentCount++, elementNgContentIndex, element.sourceSpan);\n } else if (isTemplateElement) {\n this._assertAllEventsPublishedByDirectives(directives, events);\n this._assertNoComponentsNorElementBindingsOnTemplate(directives, elementProps, element.sourceSpan);\n parsedElement = new template_ast_1.EmbeddedTemplateAst(attrs, events, vars, directives, children, elementNgContentIndex, element.sourceSpan);\n } else {\n this._assertOnlyOneComponent(directives, element.sourceSpan);\n var elementExportAsVars = vars.filter(function(varAst) {\n return varAst.value.length === 0;\n });\n parsedElement = new template_ast_1.ElementAst(nodeName, attrs, elementProps, events, elementExportAsVars, directives, children, elementNgContentIndex, element.sourceSpan);\n }\n if (hasInlineTemplates) {\n var templateCssSelector = createElementCssSelector(TEMPLATE_ELEMENT, templateMatchableAttrs);\n var templateDirectives = this._createDirectiveAsts(element.name, this._parseDirectives(this.selectorMatcher, templateCssSelector), templateElementOrDirectiveProps, [], element.sourceSpan);\n var templateElementProps = this._createElementPropertyAsts(element.name, templateElementOrDirectiveProps, templateDirectives);\n this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectives, templateElementProps, element.sourceSpan);\n parsedElement = new template_ast_1.EmbeddedTemplateAst([], [], templateVars, templateDirectives, [parsedElement], component.findNgContentIndex(templateCssSelector), element.sourceSpan);\n }\n return parsedElement;\n };\n TemplateParseVisitor.prototype._parseInlineTemplateBinding = function(attr, targetMatchableAttrs, targetProps, targetVars) {\n var templateBindingsSource = null;\n if (attr.name == TEMPLATE_ATTR) {\n templateBindingsSource = attr.value;\n } else if (attr.name.startsWith(TEMPLATE_ATTR_PREFIX)) {\n var key = attr.name.substring(TEMPLATE_ATTR_PREFIX.length);\n templateBindingsSource = (attr.value.length == 0) ? key : key + ' ' + attr.value;\n }\n if (lang_1.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 template_ast_1.VariableAst(binding.key, binding.name, attr.sourceSpan));\n targetMatchableAttrs.push([binding.key, binding.name]);\n } else if (lang_1.isPresent(binding.expression)) {\n this._parsePropertyAst(binding.key, binding.expression, attr.sourceSpan, targetMatchableAttrs, targetProps);\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(attr, targetMatchableAttrs, targetProps, targetEvents, targetVars) {\n var attrName = this._normalizeAttributeName(attr.name);\n var attrValue = attr.value;\n var bindParts = lang_1.RegExpWrapper.firstMatch(BIND_NAME_REGEXP, attrName);\n var hasBinding = false;\n if (lang_1.isPresent(bindParts)) {\n hasBinding = true;\n if (lang_1.isPresent(bindParts[1])) {\n this._parseProperty(bindParts[5], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\n } else if (lang_1.isPresent(bindParts[2])) {\n var identifier = bindParts[5];\n this._parseVariable(identifier, attrValue, attr.sourceSpan, targetVars);\n } else if (lang_1.isPresent(bindParts[3])) {\n this._parseEvent(bindParts[5], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\n } else if (lang_1.isPresent(bindParts[4])) {\n this._parseProperty(bindParts[5], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\n this._parseAssignmentEvent(bindParts[5], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\n } else if (lang_1.isPresent(bindParts[6])) {\n this._parseProperty(bindParts[6], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\n this._parseAssignmentEvent(bindParts[6], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\n } else if (lang_1.isPresent(bindParts[7])) {\n this._parseProperty(bindParts[7], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\n } else if (lang_1.isPresent(bindParts[8])) {\n this._parseEvent(bindParts[8], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\n }\n } else {\n hasBinding = this._parsePropertyInterpolation(attrName, attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\n }\n if (!hasBinding) {\n this._parseLiteralAttr(attrName, attrValue, attr.sourceSpan, targetProps);\n }\n return hasBinding;\n };\n TemplateParseVisitor.prototype._normalizeAttributeName = function(attrName) {\n return attrName.toLowerCase().startsWith('data-') ? 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 template_ast_1.VariableAst(identifier, value, sourceSpan));\n };\n TemplateParseVisitor.prototype._parseProperty = function(name, expression, sourceSpan, targetMatchableAttrs, targetProps) {\n this._parsePropertyAst(name, this._parseBinding(expression, sourceSpan), sourceSpan, targetMatchableAttrs, targetProps);\n };\n TemplateParseVisitor.prototype._parsePropertyInterpolation = function(name, value, sourceSpan, targetMatchableAttrs, targetProps) {\n var expr = this._parseInterpolation(value, sourceSpan);\n if (lang_1.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 var parts = util_1.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 template_ast_1.BoundEventAst(eventName, target, ast, sourceSpan));\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 var directives = [];\n selectorMatcher.match(elementCssSelector, function(selector, directive) {\n directives.push(directive);\n });\n collection_1.ListWrapper.sort(directives, function(dir1, dir2) {\n var dir1Comp = dir1.isComponent;\n var dir2Comp = dir2.isComponent;\n if (dir1Comp && !dir2Comp) {\n return -1;\n } else if (!dir1Comp && dir2Comp) {\n return 1;\n } else {\n return _this.directivesIndex.get(dir1) - _this.directivesIndex.get(dir2);\n }\n });\n return directives;\n };\n TemplateParseVisitor.prototype._createDirectiveAsts = function(elementName, directives, props, possibleExportAsVars, sourceSpan) {\n var _this = this;\n var matchedVariables = new Set();\n var directiveAsts = directives.map(function(directive) {\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 var exportAsVars = [];\n possibleExportAsVars.forEach(function(varAst) {\n if ((varAst.value.length === 0 && directive.isComponent) || (directive.exportAs == varAst.value)) {\n exportAsVars.push(varAst);\n matchedVariables.add(varAst.name);\n }\n });\n return new template_ast_1.DirectiveAst(directive, directiveProperties, hostProperties, hostEvents, exportAsVars, sourceSpan);\n });\n possibleExportAsVars.forEach(function(varAst) {\n if (varAst.value.length > 0 && !collection_1.SetWrapper.has(matchedVariables, varAst.name)) {\n _this._reportError(\"There is no directive with \\\"exportAs\\\" set to \\\"\" + varAst.value + \"\\\"\", varAst.sourceSpan);\n }\n });\n return directiveAsts;\n };\n TemplateParseVisitor.prototype._createDirectiveHostPropertyAsts = function(elementName, hostProps, sourceSpan, targetPropertyAsts) {\n var _this = this;\n if (lang_1.isPresent(hostProps)) {\n collection_1.StringMapWrapper.forEach(hostProps, function(expression, propName) {\n var exprAst = _this._parseBinding(expression, sourceSpan);\n targetPropertyAsts.push(_this._createElementPropertyAst(elementName, propName, exprAst, sourceSpan));\n });\n }\n };\n TemplateParseVisitor.prototype._createDirectiveHostEventAsts = function(hostListeners, sourceSpan, targetEventAsts) {\n var _this = this;\n if (lang_1.isPresent(hostListeners)) {\n collection_1.StringMapWrapper.forEach(hostListeners, function(expression, propName) {\n _this._parseEvent(propName, expression, sourceSpan, [], targetEventAsts);\n });\n }\n };\n TemplateParseVisitor.prototype._createDirectivePropertyAsts = function(directiveProperties, boundProps, targetBoundDirectiveProps) {\n if (lang_1.isPresent(directiveProperties)) {\n var boundPropsByName = new Map();\n boundProps.forEach(function(boundProp) {\n var prevValue = boundPropsByName.get(boundProp.name);\n if (lang_1.isBlank(prevValue) || prevValue.isLiteral) {\n boundPropsByName.set(boundProp.name, boundProp);\n }\n });\n collection_1.StringMapWrapper.forEach(directiveProperties, function(elProp, dirProp) {\n var boundProp = boundPropsByName.get(elProp);\n if (lang_1.isPresent(boundProp)) {\n targetBoundDirectiveProps.push(new template_ast_1.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 && lang_1.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 if (parts.length === 1) {\n boundPropertyName = this._schemaRegistry.getMappedPropName(parts[0]);\n bindingType = template_ast_1.PropertyBindingType.Property;\n if (!this._schemaRegistry.hasProperty(elementName, boundPropertyName)) {\n this._reportError(\"Can't bind to '\" + boundPropertyName + \"' since it isn't a known native property\", sourceSpan);\n }\n } else {\n if (parts[0] == ATTRIBUTE_PREFIX) {\n boundPropertyName = parts[1];\n bindingType = template_ast_1.PropertyBindingType.Attribute;\n } else if (parts[0] == CLASS_PREFIX) {\n boundPropertyName = parts[1];\n bindingType = template_ast_1.PropertyBindingType.Class;\n } else if (parts[0] == STYLE_PREFIX) {\n unit = parts.length > 2 ? parts[2] : null;\n boundPropertyName = parts[1];\n bindingType = template_ast_1.PropertyBindingType.Style;\n } else {\n this._reportError(\"Invalid property name '\" + name + \"'\", sourceSpan);\n bindingType = null;\n }\n }\n return new template_ast_1.BoundElementPropertyAst(boundPropertyName, bindingType, ast, unit, sourceSpan);\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 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\", 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 collection_1.StringMapWrapper.forEach(directive.directive.outputs, function(eventName, _) {\n allDirectiveEvents.add(eventName);\n });\n });\n events.forEach(function(event) {\n if (lang_1.isPresent(event.target) || !collection_1.SetWrapper.has(allDirectiveEvents, event.name)) {\n _this._reportError(\"Event binding \" + event.fullName + \" not emitted by any directive on an embedded template\", event.sourceSpan);\n }\n });\n };\n return TemplateParseVisitor;\n })();\n var NonBindableVisitor = (function() {\n function NonBindableVisitor() {}\n NonBindableVisitor.prototype.visitElement = function(ast, component) {\n var preparsedElement = template_preparser_1.preparseElement(ast);\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.SCRIPT || preparsedElement.type === template_preparser_1.PreparsedElementType.STYLE || preparsedElement.type === template_preparser_1.PreparsedElementType.STYLESHEET) {\n return null;\n }\n var attrNameAndValues = ast.attrs.map(function(attrAst) {\n return [attrAst.name, attrAst.value];\n });\n var selector = createElementCssSelector(ast.name, attrNameAndValues);\n var ngContentIndex = component.findNgContentIndex(selector);\n var children = html_ast_1.htmlVisitAll(this, ast.children, EMPTY_COMPONENT);\n return new template_ast_1.ElementAst(ast.name, html_ast_1.htmlVisitAll(this, ast.attrs), [], [], [], [], children, ngContentIndex, ast.sourceSpan);\n };\n NonBindableVisitor.prototype.visitAttr = function(ast, context) {\n return new template_ast_1.AttrAst(ast.name, ast.value, ast.sourceSpan);\n };\n NonBindableVisitor.prototype.visitText = function(ast, component) {\n var ngContentIndex = component.findNgContentIndex(TEXT_CSS_SELECTOR);\n return new template_ast_1.TextAst(ast.value, ngContentIndex, ast.sourceSpan);\n };\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 function splitClasses(classAttrValue) {\n return lang_1.StringWrapper.split(classAttrValue.trim(), /\\s+/g);\n }\n exports.splitClasses = splitClasses;\n var Component = (function() {\n function Component(ngContentIndexMatcher, wildcardNgContentIndex) {\n this.ngContentIndexMatcher = ngContentIndexMatcher;\n this.wildcardNgContentIndex = wildcardNgContentIndex;\n }\n Component.create = function(directives) {\n if (directives.length === 0 || !directives[0].directive.isComponent) {\n return EMPTY_COMPONENT;\n }\n var matcher = new selector_1.SelectorMatcher();\n var ngContentSelectors = directives[0].directive.template.ngContentSelectors;\n var wildcardNgContentIndex = null;\n for (var i = 0; i < ngContentSelectors.length; i++) {\n var selector = ngContentSelectors[i];\n if (lang_1.StringWrapper.equals(selector, '*')) {\n wildcardNgContentIndex = i;\n } else {\n matcher.addSelectables(selector_1.CssSelector.parse(ngContentSelectors[i]), i);\n }\n }\n return new Component(matcher, wildcardNgContentIndex);\n };\n Component.prototype.findNgContentIndex = function(selector) {\n var ngContentIndices = [];\n this.ngContentIndexMatcher.match(selector, function(selector, ngContentIndex) {\n ngContentIndices.push(ngContentIndex);\n });\n collection_1.ListWrapper.sort(ngContentIndices);\n if (lang_1.isPresent(this.wildcardNgContentIndex)) {\n ngContentIndices.push(this.wildcardNgContentIndex);\n }\n return ngContentIndices.length > 0 ? ngContentIndices[0] : null;\n };\n return Component;\n })();\n function createElementCssSelector(elementName, matchableAttrs) {\n var cssSelector = new selector_1.CssSelector();\n var elNameNoNs = html_tags_1.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 = html_tags_1.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) {\n return cssSelector.addClassName(className);\n });\n }\n }\n return cssSelector;\n }\n var EMPTY_COMPONENT = new Component(new selector_1.SelectorMatcher(), 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) {\n this.pipes.add(ast.name);\n ast.exp.visit(this);\n this.visitAll(ast.args);\n return null;\n };\n return PipeCollector;\n })(ast_1.RecursiveAstVisitor);\n exports.PipeCollector = PipeCollector;\n})(require('process'));\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar HtmlTextAst = (function() {\n function HtmlTextAst(value, sourceSpan) {\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n HtmlTextAst.prototype.visit = function(visitor, context) {\n return visitor.visitText(this, context);\n };\n return HtmlTextAst;\n})();\nexports.HtmlTextAst = HtmlTextAst;\nvar HtmlAttrAst = (function() {\n function HtmlAttrAst(name, value, sourceSpan) {\n this.name = name;\n this.value = value;\n this.sourceSpan = sourceSpan;\n }\n HtmlAttrAst.prototype.visit = function(visitor, context) {\n return visitor.visitAttr(this, context);\n };\n return HtmlAttrAst;\n})();\nexports.HtmlAttrAst = HtmlAttrAst;\nvar HtmlElementAst = (function() {\n function HtmlElementAst(name, attrs, children, sourceSpan) {\n this.name = name;\n this.attrs = attrs;\n this.children = children;\n this.sourceSpan = sourceSpan;\n }\n HtmlElementAst.prototype.visit = function(visitor, context) {\n return visitor.visitElement(this, context);\n };\n return HtmlElementAst;\n})();\nexports.HtmlElementAst = HtmlElementAst;\nfunction htmlVisitAll(visitor, asts, context) {\n if (context === void 0) {\n context = null;\n }\n var result = [];\n asts.forEach(function(ast) {\n var astResult = ast.visit(visitor, context);\n if (lang_1.isPresent(astResult)) {\n result.push(astResult);\n }\n });\n return result;\n}\nexports.htmlVisitAll = htmlVisitAll;\n","/* */ \n(function(process) {\n 'use strict';\n var __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n var lang_1 = require('../facade/lang');\n var collection_1 = require('../facade/collection');\n var parse_util_1 = require('./parse_util');\n var html_tags_1 = require('./html_tags');\n (function(HtmlTokenType) {\n HtmlTokenType[HtmlTokenType[\"TAG_OPEN_START\"] = 0] = \"TAG_OPEN_START\";\n HtmlTokenType[HtmlTokenType[\"TAG_OPEN_END\"] = 1] = \"TAG_OPEN_END\";\n HtmlTokenType[HtmlTokenType[\"TAG_OPEN_END_VOID\"] = 2] = \"TAG_OPEN_END_VOID\";\n HtmlTokenType[HtmlTokenType[\"TAG_CLOSE\"] = 3] = \"TAG_CLOSE\";\n HtmlTokenType[HtmlTokenType[\"TEXT\"] = 4] = \"TEXT\";\n HtmlTokenType[HtmlTokenType[\"ESCAPABLE_RAW_TEXT\"] = 5] = \"ESCAPABLE_RAW_TEXT\";\n HtmlTokenType[HtmlTokenType[\"RAW_TEXT\"] = 6] = \"RAW_TEXT\";\n HtmlTokenType[HtmlTokenType[\"COMMENT_START\"] = 7] = \"COMMENT_START\";\n HtmlTokenType[HtmlTokenType[\"COMMENT_END\"] = 8] = \"COMMENT_END\";\n HtmlTokenType[HtmlTokenType[\"CDATA_START\"] = 9] = \"CDATA_START\";\n HtmlTokenType[HtmlTokenType[\"CDATA_END\"] = 10] = \"CDATA_END\";\n HtmlTokenType[HtmlTokenType[\"ATTR_NAME\"] = 11] = \"ATTR_NAME\";\n HtmlTokenType[HtmlTokenType[\"ATTR_VALUE\"] = 12] = \"ATTR_VALUE\";\n HtmlTokenType[HtmlTokenType[\"DOC_TYPE\"] = 13] = \"DOC_TYPE\";\n HtmlTokenType[HtmlTokenType[\"EOF\"] = 14] = \"EOF\";\n })(exports.HtmlTokenType || (exports.HtmlTokenType = {}));\n var HtmlTokenType = exports.HtmlTokenType;\n var HtmlToken = (function() {\n function HtmlToken(type, parts, sourceSpan) {\n this.type = type;\n this.parts = parts;\n this.sourceSpan = sourceSpan;\n }\n return HtmlToken;\n })();\n exports.HtmlToken = HtmlToken;\n var HtmlTokenError = (function(_super) {\n __extends(HtmlTokenError, _super);\n function HtmlTokenError(errorMsg, tokenType, location) {\n _super.call(this, location, errorMsg);\n this.tokenType = tokenType;\n }\n return HtmlTokenError;\n })(parse_util_1.ParseError);\n exports.HtmlTokenError = HtmlTokenError;\n var HtmlTokenizeResult = (function() {\n function HtmlTokenizeResult(tokens, errors) {\n this.tokens = tokens;\n this.errors = errors;\n }\n return HtmlTokenizeResult;\n })();\n exports.HtmlTokenizeResult = HtmlTokenizeResult;\n function tokenizeHtml(sourceContent, sourceUrl) {\n return new _HtmlTokenizer(new parse_util_1.ParseSourceFile(sourceContent, sourceUrl)).tokenize();\n }\n exports.tokenizeHtml = tokenizeHtml;\n var $EOF = 0;\n var $TAB = 9;\n var $LF = 10;\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 $AMPERSAND = 38;\n var $SQ = 39;\n var $MINUS = 45;\n var $SLASH = 47;\n var $0 = 48;\n var $SEMICOLON = 59;\n var $9 = 57;\n var $COLON = 58;\n var $LT = 60;\n var $EQ = 61;\n var $GT = 62;\n var $QUESTION = 63;\n var $LBRACKET = 91;\n var $RBRACKET = 93;\n var $A = 65;\n var $F = 70;\n var $X = 88;\n var $Z = 90;\n var $a = 97;\n var $f = 102;\n var $z = 122;\n var $x = 120;\n var $NBSP = 160;\n var CR_OR_CRLF_REGEXP = /\\r\\n?/g;\n function unexpectedCharacterErrorMsg(charCode) {\n var char = charCode === $EOF ? 'EOF' : lang_1.StringWrapper.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 var _HtmlTokenizer = (function() {\n function _HtmlTokenizer(file) {\n this.file = file;\n this.peek = -1;\n this.index = -1;\n this.line = 0;\n this.column = -1;\n this.tokens = [];\n this.errors = [];\n this.input = file.content;\n this.length = file.content.length;\n this._advance();\n }\n _HtmlTokenizer.prototype._processCarriageReturns = function(content) {\n return lang_1.StringWrapper.replaceAll(content, CR_OR_CRLF_REGEXP, '\\n');\n };\n _HtmlTokenizer.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 } else if (this._attemptCharCode($MINUS)) {\n this._consumeComment(start);\n } else {\n this._consumeDocType(start);\n }\n } else if (this._attemptCharCode($SLASH)) {\n this._consumeTagClose(start);\n } else {\n this._consumeTagOpen(start);\n }\n } else {\n this._consumeText();\n }\n } catch (e) {\n if (e instanceof ControlFlowError) {\n this.errors.push(e.error);\n } else {\n throw e;\n }\n }\n }\n this._beginToken(HtmlTokenType.EOF);\n this._endToken([]);\n return new HtmlTokenizeResult(mergeTextTokens(this.tokens), this.errors);\n };\n _HtmlTokenizer.prototype._getLocation = function() {\n return new parse_util_1.ParseLocation(this.file, this.index, this.line, this.column);\n };\n _HtmlTokenizer.prototype._beginToken = function(type, start) {\n if (start === void 0) {\n start = null;\n }\n if (lang_1.isBlank(start)) {\n start = this._getLocation();\n }\n this.currentTokenStart = start;\n this.currentTokenType = type;\n };\n _HtmlTokenizer.prototype._endToken = function(parts, end) {\n if (end === void 0) {\n end = null;\n }\n if (lang_1.isBlank(end)) {\n end = this._getLocation();\n }\n var token = new HtmlToken(this.currentTokenType, parts, new parse_util_1.ParseSourceSpan(this.currentTokenStart, end));\n this.tokens.push(token);\n this.currentTokenStart = null;\n this.currentTokenType = null;\n return token;\n };\n _HtmlTokenizer.prototype._createError = function(msg, position) {\n var error = new HtmlTokenError(msg, this.currentTokenType, position);\n this.currentTokenStart = null;\n this.currentTokenType = null;\n return new ControlFlowError(error);\n };\n _HtmlTokenizer.prototype._advance = function() {\n if (this.index >= this.length) {\n throw this._createError(unexpectedCharacterErrorMsg($EOF), this._getLocation());\n }\n if (this.peek === $LF) {\n this.line++;\n this.column = 0;\n } else if (this.peek !== $LF && this.peek !== $CR) {\n this.column++;\n }\n this.index++;\n this.peek = this.index >= this.length ? $EOF : lang_1.StringWrapper.charCodeAt(this.input, this.index);\n };\n _HtmlTokenizer.prototype._attemptCharCode = function(charCode) {\n if (this.peek === charCode) {\n this._advance();\n return true;\n }\n return false;\n };\n _HtmlTokenizer.prototype._attemptCharCodeCaseInsensitive = function(charCode) {\n if (compareCharCodeCaseInsensitive(this.peek, charCode)) {\n this._advance();\n return true;\n }\n return false;\n };\n _HtmlTokenizer.prototype._requireCharCode = function(charCode) {\n var location = this._getLocation();\n if (!this._attemptCharCode(charCode)) {\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), location);\n }\n };\n _HtmlTokenizer.prototype._attemptStr = function(chars) {\n for (var i = 0; i < chars.length; i++) {\n if (!this._attemptCharCode(lang_1.StringWrapper.charCodeAt(chars, i))) {\n return false;\n }\n }\n return true;\n };\n _HtmlTokenizer.prototype._attemptStrCaseInsensitive = function(chars) {\n for (var i = 0; i < chars.length; i++) {\n if (!this._attemptCharCodeCaseInsensitive(lang_1.StringWrapper.charCodeAt(chars, i))) {\n return false;\n }\n }\n return true;\n };\n _HtmlTokenizer.prototype._requireStr = function(chars) {\n var location = this._getLocation();\n if (!this._attemptStr(chars)) {\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), location);\n }\n };\n _HtmlTokenizer.prototype._attemptCharCodeUntilFn = function(predicate) {\n while (!predicate(this.peek)) {\n this._advance();\n }\n };\n _HtmlTokenizer.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), start);\n }\n };\n _HtmlTokenizer.prototype._attemptUntilChar = function(char) {\n while (this.peek !== char) {\n this._advance();\n }\n };\n _HtmlTokenizer.prototype._readChar = function(decodeEntities) {\n if (decodeEntities && this.peek === $AMPERSAND) {\n return this._decodeEntity();\n } else {\n var index = this.index;\n this._advance();\n return this.input[index];\n }\n };\n _HtmlTokenizer.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._getLocation());\n }\n this._advance();\n var strNum = this.input.substring(numberStart, this.index - 1);\n try {\n var charCode = lang_1.NumberWrapper.parseInt(strNum, isHex ? 16 : 10);\n return lang_1.StringWrapper.fromCharCode(charCode);\n } catch (e) {\n var entity = this.input.substring(start.offset + 1, this.index - 1);\n throw this._createError(unknownEntityErrorMsg(entity), start);\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 = html_tags_1.NAMED_ENTITIES[name_1];\n if (lang_1.isBlank(char)) {\n throw this._createError(unknownEntityErrorMsg(name_1), start);\n }\n return char;\n }\n };\n _HtmlTokenizer.prototype._consumeRawText = function(decodeEntities, firstCharOfEnd, attemptEndRest) {\n var tagCloseStart;\n var textStart = this._getLocation();\n this._beginToken(decodeEntities ? HtmlTokenType.ESCAPABLE_RAW_TEXT : HtmlTokenType.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 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 _HtmlTokenizer.prototype._consumeComment = function(start) {\n var _this = this;\n this._beginToken(HtmlTokenType.COMMENT_START, start);\n this._requireCharCode($MINUS);\n this._endToken([]);\n var textToken = this._consumeRawText(false, $MINUS, function() {\n return _this._attemptStr('->');\n });\n this._beginToken(HtmlTokenType.COMMENT_END, textToken.sourceSpan.end);\n this._endToken([]);\n };\n _HtmlTokenizer.prototype._consumeCdata = function(start) {\n var _this = this;\n this._beginToken(HtmlTokenType.CDATA_START, start);\n this._requireStr('CDATA[');\n this._endToken([]);\n var textToken = this._consumeRawText(false, $RBRACKET, function() {\n return _this._attemptStr(']>');\n });\n this._beginToken(HtmlTokenType.CDATA_END, textToken.sourceSpan.end);\n this._endToken([]);\n };\n _HtmlTokenizer.prototype._consumeDocType = function(start) {\n this._beginToken(HtmlTokenType.DOC_TYPE, start);\n this._attemptUntilChar($GT);\n this._advance();\n this._endToken([this.input.substring(start.offset + 2, this.index - 1)]);\n };\n _HtmlTokenizer.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 } 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 _HtmlTokenizer.prototype._consumeTagOpen = function(start) {\n var savedPos = this._savePosition();\n var lowercaseTagName;\n try {\n if (!isAsciiLetter(this.peek)) {\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getLocation());\n }\n var nameStart = this.index;\n this._consumeTagOpenStart(start);\n lowercaseTagName = this.input.substring(nameStart, this.index).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 } catch (e) {\n if (e instanceof ControlFlowError) {\n this._restorePosition(savedPos);\n this._beginToken(HtmlTokenType.TEXT, start);\n this._endToken(['<']);\n return;\n }\n throw e;\n }\n var contentTokenType = html_tags_1.getHtmlTagDefinition(lowercaseTagName).contentType;\n if (contentTokenType === html_tags_1.HtmlTagContentType.RAW_TEXT) {\n this._consumeRawTextWithTagClose(lowercaseTagName, false);\n } else if (contentTokenType === html_tags_1.HtmlTagContentType.ESCAPABLE_RAW_TEXT) {\n this._consumeRawTextWithTagClose(lowercaseTagName, true);\n }\n };\n _HtmlTokenizer.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 if (!_this._attemptCharCode($GT))\n return false;\n return true;\n });\n this._beginToken(HtmlTokenType.TAG_CLOSE, textToken.sourceSpan.end);\n this._endToken([null, lowercaseTagName]);\n };\n _HtmlTokenizer.prototype._consumeTagOpenStart = function(start) {\n this._beginToken(HtmlTokenType.TAG_OPEN_START, start);\n var parts = this._consumePrefixAndName();\n this._endToken(parts);\n };\n _HtmlTokenizer.prototype._consumeAttributeName = function() {\n this._beginToken(HtmlTokenType.ATTR_NAME);\n var prefixAndName = this._consumePrefixAndName();\n this._endToken(prefixAndName);\n };\n _HtmlTokenizer.prototype._consumeAttributeValue = function() {\n this._beginToken(HtmlTokenType.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 } 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 _HtmlTokenizer.prototype._consumeTagOpenEnd = function() {\n var tokenType = this._attemptCharCode($SLASH) ? HtmlTokenType.TAG_OPEN_END_VOID : HtmlTokenType.TAG_OPEN_END;\n this._beginToken(tokenType);\n this._requireCharCode($GT);\n this._endToken([]);\n };\n _HtmlTokenizer.prototype._consumeTagClose = function(start) {\n this._beginToken(HtmlTokenType.TAG_CLOSE, start);\n this._attemptCharCodeUntilFn(isNotWhitespace);\n var prefixAndName;\n prefixAndName = this._consumePrefixAndName();\n this._attemptCharCodeUntilFn(isNotWhitespace);\n this._requireCharCode($GT);\n this._endToken(prefixAndName);\n };\n _HtmlTokenizer.prototype._consumeText = function() {\n var start = this._getLocation();\n this._beginToken(HtmlTokenType.TEXT, start);\n var parts = [this._readChar(true)];\n while (!isTextEnd(this.peek)) {\n parts.push(this._readChar(true));\n }\n this._endToken([this._processCarriageReturns(parts.join(''))]);\n };\n _HtmlTokenizer.prototype._savePosition = function() {\n return [this.peek, this.index, this.column, this.line, this.tokens.length];\n };\n _HtmlTokenizer.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 this.tokens = collection_1.ListWrapper.slice(this.tokens, 0, nbTokens);\n }\n };\n return _HtmlTokenizer;\n })();\n function isNotWhitespace(code) {\n return !isWhitespace(code) || code === $EOF;\n }\n function isWhitespace(code) {\n return (code >= $TAB && code <= $SPACE) || (code === $NBSP);\n }\n function isNameEnd(code) {\n return isWhitespace(code) || code === $GT || code === $SLASH || code === $SQ || code === $DQ || code === $EQ;\n }\n function isPrefixEnd(code) {\n return (code < $a || $z < code) && (code < $A || $Z < code) && (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 isTextEnd(code) {\n return code === $LT || code === $EOF;\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 || code >= $0 && code <= $9;\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 (lang_1.isPresent(lastDstToken) && lastDstToken.type == HtmlTokenType.TEXT && token.type == HtmlTokenType.TEXT) {\n lastDstToken.parts[0] += token.parts[0];\n lastDstToken.sourceSpan.end = token.sourceSpan.end;\n } else {\n lastDstToken = token;\n dstTokens.push(lastDstToken);\n }\n }\n return dstTokens;\n }\n})(require('process'));\n","/* */ \n'use strict';var ParseLocation = (function () {\r\n function ParseLocation(file, offset, line, col) {\r\n this.file = file;\r\n this.offset = offset;\r\n this.line = line;\r\n this.col = col;\r\n }\r\n ParseLocation.prototype.toString = function () { return this.file.url + \"@\" + this.line + \":\" + this.col; };\r\n return ParseLocation;\r\n})();\r\nexports.ParseLocation = ParseLocation;\r\nvar ParseSourceFile = (function () {\r\n function ParseSourceFile(content, url) {\r\n this.content = content;\r\n this.url = url;\r\n }\r\n return ParseSourceFile;\r\n})();\r\nexports.ParseSourceFile = ParseSourceFile;\r\nvar ParseError = (function () {\r\n function ParseError(location, msg) {\r\n this.location = location;\r\n this.msg = msg;\r\n }\r\n ParseError.prototype.toString = function () {\r\n var source = this.location.file.content;\r\n var ctxStart = this.location.offset;\r\n if (ctxStart > source.length - 1) {\r\n ctxStart = source.length - 1;\r\n }\r\n var ctxEnd = ctxStart;\r\n var ctxLen = 0;\r\n var ctxLines = 0;\r\n while (ctxLen < 100 && ctxStart > 0) {\r\n ctxStart--;\r\n ctxLen++;\r\n if (source[ctxStart] == \"\\n\") {\r\n if (++ctxLines == 3) {\r\n break;\r\n }\r\n }\r\n }\r\n ctxLen = 0;\r\n ctxLines = 0;\r\n while (ctxLen < 100 && ctxEnd < source.length - 1) {\r\n ctxEnd++;\r\n ctxLen++;\r\n if (source[ctxEnd] == \"\\n\") {\r\n if (++ctxLines == 3) {\r\n break;\r\n }\r\n }\r\n }\r\n var context = source.substring(ctxStart, this.location.offset) + '[ERROR ->]' +\r\n source.substring(this.location.offset, ctxEnd + 1);\r\n return this.msg + \" (\\\"\" + context + \"\\\"): \" + this.location;\r\n };\r\n return ParseError;\r\n})();\r\nexports.ParseError = ParseError;\r\nvar ParseSourceSpan = (function () {\r\n function ParseSourceSpan(start, end) {\r\n this.start = start;\r\n this.end = end;\r\n }\r\n ParseSourceSpan.prototype.toString = function () {\r\n return this.start.file.content.substring(this.start.offset, this.end.offset);\r\n };\r\n return ParseSourceSpan;\r\n})();\r\nexports.ParseSourceSpan = ParseSourceSpan;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VfdXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9jb21waWxlci9wYXJzZV91dGlsLnRzIl0sIm5hbWVzIjpbIlBhcnNlTG9jYXRpb24iLCJQYXJzZUxvY2F0aW9uLmNvbnN0cnVjdG9yIiwiUGFyc2VMb2NhdGlvbi50b1N0cmluZyIsIlBhcnNlU291cmNlRmlsZSIsIlBhcnNlU291cmNlRmlsZS5jb25zdHJ1Y3RvciIsIlBhcnNlRXJyb3IiLCJQYXJzZUVycm9yLmNvbnN0cnVjdG9yIiwiUGFyc2VFcnJvci50b1N0cmluZyIsIlBhcnNlU291cmNlU3BhbiIsIlBhcnNlU291cmNlU3Bhbi5jb25zdHJ1Y3RvciIsIlBhcnNlU291cmNlU3Bhbi50b1N0cmluZyJdLCJtYXBwaW5ncyI6IkFBQUE7SUFDRUEsdUJBQW1CQSxJQUFxQkEsRUFBU0EsTUFBY0EsRUFBU0EsSUFBWUEsRUFDakVBLEdBQVdBO1FBRFhDLFNBQUlBLEdBQUpBLElBQUlBLENBQWlCQTtRQUFTQSxXQUFNQSxHQUFOQSxNQUFNQSxDQUFRQTtRQUFTQSxTQUFJQSxHQUFK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RvU3RyaW5nKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuc3RhcnQuZmlsZS5jb250ZW50LnN1YnN0cmluZyh0aGlzLnN0YXJ0Lm9mZnNldCwgdGhpcy5lbmQub2Zmc2V0KTtcbiAgfVxufVxuIl19","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../facade/lang');\nvar collection_1 = require('../facade/collection');\nvar html_ast_1 = require('./html_ast');\nvar di_1 = require('../core/di');\nvar html_lexer_1 = require('./html_lexer');\nvar parse_util_1 = require('./parse_util');\nvar html_tags_1 = require('./html_tags');\nvar HtmlTreeError = (function(_super) {\n __extends(HtmlTreeError, _super);\n function HtmlTreeError(elementName, location, msg) {\n _super.call(this, location, msg);\n this.elementName = elementName;\n }\n HtmlTreeError.create = function(elementName, location, msg) {\n return new HtmlTreeError(elementName, location, msg);\n };\n return HtmlTreeError;\n})(parse_util_1.ParseError);\nexports.HtmlTreeError = HtmlTreeError;\nvar HtmlParseTreeResult = (function() {\n function HtmlParseTreeResult(rootNodes, errors) {\n this.rootNodes = rootNodes;\n this.errors = errors;\n }\n return HtmlParseTreeResult;\n})();\nexports.HtmlParseTreeResult = HtmlParseTreeResult;\nvar HtmlParser = (function() {\n function HtmlParser() {}\n HtmlParser.prototype.parse = function(sourceContent, sourceUrl) {\n var tokensAndErrors = html_lexer_1.tokenizeHtml(sourceContent, sourceUrl);\n var treeAndErrors = new TreeBuilder(tokensAndErrors.tokens).build();\n return new HtmlParseTreeResult(treeAndErrors.rootNodes, tokensAndErrors.errors.concat(treeAndErrors.errors));\n };\n HtmlParser = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], HtmlParser);\n return HtmlParser;\n})();\nexports.HtmlParser = HtmlParser;\nvar TreeBuilder = (function() {\n function TreeBuilder(tokens) {\n this.tokens = tokens;\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 !== html_lexer_1.HtmlTokenType.EOF) {\n if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_OPEN_START) {\n this._consumeStartTag(this._advance());\n } else if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_CLOSE) {\n this._consumeEndTag(this._advance());\n } else if (this.peek.type === html_lexer_1.HtmlTokenType.CDATA_START) {\n this._closeVoidElement();\n this._consumeCdata(this._advance());\n } else if (this.peek.type === html_lexer_1.HtmlTokenType.COMMENT_START) {\n this._closeVoidElement();\n this._consumeComment(this._advance());\n } else if (this.peek.type === html_lexer_1.HtmlTokenType.TEXT || this.peek.type === html_lexer_1.HtmlTokenType.RAW_TEXT || this.peek.type === html_lexer_1.HtmlTokenType.ESCAPABLE_RAW_TEXT) {\n this._closeVoidElement();\n this._consumeText(this._advance());\n } else {\n this._advance();\n }\n }\n return new HtmlParseTreeResult(this.rootNodes, this.errors);\n };\n TreeBuilder.prototype._advance = function() {\n var prev = this.peek;\n if (this.index < this.tokens.length - 1) {\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(html_lexer_1.HtmlTokenType.CDATA_END);\n };\n TreeBuilder.prototype._consumeComment = function(startToken) {\n this._advanceIf(html_lexer_1.HtmlTokenType.RAW_TEXT);\n this._advanceIf(html_lexer_1.HtmlTokenType.COMMENT_END);\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 (lang_1.isPresent(parent_1) && parent_1.children.length == 0 && html_tags_1.getHtmlTagDefinition(parent_1.name).ignoreFirstLf) {\n text = text.substring(1);\n }\n }\n if (text.length > 0) {\n this._addToParent(new html_ast_1.HtmlTextAst(text, token.sourceSpan));\n }\n };\n TreeBuilder.prototype._closeVoidElement = function() {\n if (this.elementStack.length > 0) {\n var el = collection_1.ListWrapper.last(this.elementStack);\n if (html_tags_1.getHtmlTagDefinition(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 === html_lexer_1.HtmlTokenType.ATTR_NAME) {\n attrs.push(this._consumeAttr(this._advance()));\n }\n var fullName = getElementFullName(prefix, name, this._getParentElement());\n var selfClosing = false;\n if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_OPEN_END_VOID) {\n this._advance();\n selfClosing = true;\n if (html_tags_1.getNsPrefix(fullName) == null && !html_tags_1.getHtmlTagDefinition(fullName).isVoid) {\n this.errors.push(HtmlTreeError.create(fullName, startTagToken.sourceSpan.start, \"Only void and foreign elements can be self closed \\\"\" + startTagToken.parts[1] + \"\\\"\"));\n }\n } else if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_OPEN_END) {\n this._advance();\n selfClosing = false;\n }\n var end = this.peek.sourceSpan.start;\n var el = new html_ast_1.HtmlElementAst(fullName, attrs, [], new parse_util_1.ParseSourceSpan(startTagToken.sourceSpan.start, end));\n this._pushElement(el);\n if (selfClosing) {\n this._popElement(fullName);\n }\n };\n TreeBuilder.prototype._pushElement = function(el) {\n if (this.elementStack.length > 0) {\n var parentEl = collection_1.ListWrapper.last(this.elementStack);\n if (html_tags_1.getHtmlTagDefinition(parentEl.name).isClosedByChild(el.name)) {\n this.elementStack.pop();\n }\n }\n var tagDef = html_tags_1.getHtmlTagDefinition(el.name);\n var parentEl = this._getParentElement();\n if (tagDef.requireExtraParent(lang_1.isPresent(parentEl) ? parentEl.name : null)) {\n var newParent = new html_ast_1.HtmlElementAst(tagDef.parentToAdd, [], [el], el.sourceSpan);\n this._addToParent(newParent);\n this.elementStack.push(newParent);\n this.elementStack.push(el);\n } else {\n this._addToParent(el);\n this.elementStack.push(el);\n }\n };\n TreeBuilder.prototype._consumeEndTag = function(endTagToken) {\n var fullName = getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getParentElement());\n if (html_tags_1.getHtmlTagDefinition(fullName).isVoid) {\n this.errors.push(HtmlTreeError.create(fullName, endTagToken.sourceSpan.start, \"Void elements do not have end tags \\\"\" + endTagToken.parts[1] + \"\\\"\"));\n } else if (!this._popElement(fullName)) {\n this.errors.push(HtmlTreeError.create(fullName, endTagToken.sourceSpan.start, \"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 collection_1.ListWrapper.splice(this.elementStack, stackIndex, this.elementStack.length - stackIndex);\n return true;\n }\n if (!html_tags_1.getHtmlTagDefinition(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 === html_lexer_1.HtmlTokenType.ATTR_VALUE) {\n var valueToken = this._advance();\n value = valueToken.parts[0];\n end = valueToken.sourceSpan.end;\n }\n return new html_ast_1.HtmlAttrAst(fullName, value, new parse_util_1.ParseSourceSpan(attrName.sourceSpan.start, end));\n };\n TreeBuilder.prototype._getParentElement = function() {\n return this.elementStack.length > 0 ? collection_1.ListWrapper.last(this.elementStack) : null;\n };\n TreeBuilder.prototype._addToParent = function(node) {\n var parent = this._getParentElement();\n if (lang_1.isPresent(parent)) {\n parent.children.push(node);\n } else {\n this.rootNodes.push(node);\n }\n };\n return TreeBuilder;\n})();\nfunction mergeNsAndName(prefix, localName) {\n return lang_1.isPresent(prefix) ? \"@\" + prefix + \":\" + localName : localName;\n}\nfunction getElementFullName(prefix, localName, parentElement) {\n if (lang_1.isBlank(prefix)) {\n prefix = html_tags_1.getHtmlTagDefinition(localName).implicitNamespacePrefix;\n if (lang_1.isBlank(prefix) && lang_1.isPresent(parentElement)) {\n prefix = html_tags_1.getNsPrefix(parentElement.name);\n }\n }\n return mergeNsAndName(prefix, localName);\n}\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar html_tags_1 = require('./html_tags');\nvar NG_CONTENT_SELECT_ATTR = 'select';\nvar NG_CONTENT_ELEMENT = 'ng-content';\nvar LINK_ELEMENT = 'link';\nvar LINK_STYLE_REL_ATTR = 'rel';\nvar LINK_STYLE_HREF_ATTR = 'href';\nvar LINK_STYLE_REL_VALUE = 'stylesheet';\nvar STYLE_ELEMENT = 'style';\nvar SCRIPT_ELEMENT = 'script';\nvar NG_NON_BINDABLE_ATTR = 'ngNonBindable';\nfunction preparseElement(ast) {\n var selectAttr = null;\n var hrefAttr = null;\n var relAttr = null;\n var nonBindable = false;\n ast.attrs.forEach(function(attr) {\n var lcAttrName = attr.name.toLowerCase();\n if (lcAttrName == NG_CONTENT_SELECT_ATTR) {\n selectAttr = attr.value;\n } else if (lcAttrName == LINK_STYLE_HREF_ATTR) {\n hrefAttr = attr.value;\n } else if (lcAttrName == LINK_STYLE_REL_ATTR) {\n relAttr = attr.value;\n } else if (attr.name == NG_NON_BINDABLE_ATTR) {\n nonBindable = true;\n }\n });\n selectAttr = normalizeNgContentSelect(selectAttr);\n var nodeName = ast.name.toLowerCase();\n var type = PreparsedElementType.OTHER;\n if (html_tags_1.splitNsName(nodeName)[1] == NG_CONTENT_ELEMENT) {\n type = PreparsedElementType.NG_CONTENT;\n } else if (nodeName == STYLE_ELEMENT) {\n type = PreparsedElementType.STYLE;\n } else if (nodeName == SCRIPT_ELEMENT) {\n type = PreparsedElementType.SCRIPT;\n } else if (nodeName == LINK_ELEMENT && relAttr == LINK_STYLE_REL_VALUE) {\n type = PreparsedElementType.STYLESHEET;\n }\n return new PreparsedElement(type, selectAttr, hrefAttr, nonBindable);\n}\nexports.preparseElement = preparseElement;\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})(exports.PreparsedElementType || (exports.PreparsedElementType = {}));\nvar PreparsedElementType = exports.PreparsedElementType;\nvar PreparsedElement = (function() {\n function PreparsedElement(type, selectAttr, hrefAttr, nonBindable) {\n this.type = type;\n this.selectAttr = selectAttr;\n this.hrefAttr = hrefAttr;\n this.nonBindable = nonBindable;\n }\n return PreparsedElement;\n})();\nexports.PreparsedElement = PreparsedElement;\nfunction normalizeNgContentSelect(selectAttr) {\n if (lang_1.isBlank(selectAttr) || selectAttr.length === 0) {\n return '*';\n }\n return selectAttr;\n}\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar directive_metadata_1 = require('./directive_metadata');\nvar lang_1 = require('../facade/lang');\nvar exceptions_1 = require('../facade/exceptions');\nvar async_1 = require('../facade/async');\nvar xhr_1 = require('./xhr');\nvar url_resolver_1 = require('./url_resolver');\nvar style_url_resolver_1 = require('./style_url_resolver');\nvar di_1 = require('../core/di');\nvar view_1 = require('../core/metadata/view');\nvar html_ast_1 = require('./html_ast');\nvar html_parser_1 = require('./html_parser');\nvar template_preparser_1 = require('./template_preparser');\nvar TemplateNormalizer = (function() {\n function TemplateNormalizer(_xhr, _urlResolver, _htmlParser) {\n this._xhr = _xhr;\n this._urlResolver = _urlResolver;\n this._htmlParser = _htmlParser;\n }\n TemplateNormalizer.prototype.normalizeTemplate = function(directiveType, template) {\n var _this = this;\n if (lang_1.isPresent(template.template)) {\n return async_1.PromiseWrapper.resolve(this.normalizeLoadedTemplate(directiveType, template, template.template, directiveType.moduleUrl));\n } else if (lang_1.isPresent(template.templateUrl)) {\n var sourceAbsUrl = this._urlResolver.resolve(directiveType.moduleUrl, template.templateUrl);\n return this._xhr.get(sourceAbsUrl).then(function(templateContent) {\n return _this.normalizeLoadedTemplate(directiveType, template, templateContent, sourceAbsUrl);\n });\n } else {\n throw new exceptions_1.BaseException(\"No template specified for component \" + directiveType.name);\n }\n };\n TemplateNormalizer.prototype.normalizeLoadedTemplate = function(directiveType, templateMeta, template, templateAbsUrl) {\n var _this = this;\n var rootNodesAndErrors = this._htmlParser.parse(template, directiveType.name);\n if (rootNodesAndErrors.errors.length > 0) {\n var errorString = rootNodesAndErrors.errors.join('\\n');\n throw new exceptions_1.BaseException(\"Template parse errors:\\n\" + errorString);\n }\n var visitor = new TemplatePreparseVisitor();\n html_ast_1.htmlVisitAll(visitor, rootNodesAndErrors.rootNodes);\n var allStyles = templateMeta.styles.concat(visitor.styles);\n var allStyleAbsUrls = visitor.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable).map(function(url) {\n return _this._urlResolver.resolve(templateAbsUrl, url);\n }).concat(templateMeta.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable).map(function(url) {\n return _this._urlResolver.resolve(directiveType.moduleUrl, url);\n }));\n var allResolvedStyles = allStyles.map(function(style) {\n var styleWithImports = style_url_resolver_1.extractStyleUrls(_this._urlResolver, templateAbsUrl, style);\n styleWithImports.styleUrls.forEach(function(styleUrl) {\n return allStyleAbsUrls.push(styleUrl);\n });\n return styleWithImports.style;\n });\n var encapsulation = templateMeta.encapsulation;\n if (encapsulation === view_1.ViewEncapsulation.Emulated && allResolvedStyles.length === 0 && allStyleAbsUrls.length === 0) {\n encapsulation = view_1.ViewEncapsulation.None;\n }\n return new directive_metadata_1.CompileTemplateMetadata({\n encapsulation: encapsulation,\n template: template,\n templateUrl: templateAbsUrl,\n styles: allResolvedStyles,\n styleUrls: allStyleAbsUrls,\n ngContentSelectors: visitor.ngContentSelectors\n });\n };\n TemplateNormalizer = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [xhr_1.XHR, url_resolver_1.UrlResolver, html_parser_1.HtmlParser])], TemplateNormalizer);\n return TemplateNormalizer;\n})();\nexports.TemplateNormalizer = TemplateNormalizer;\nvar 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 = template_preparser_1.preparseElement(ast);\n switch (preparsedElement.type) {\n case template_preparser_1.PreparsedElementType.NG_CONTENT:\n if (this.ngNonBindableStackCount === 0) {\n this.ngContentSelectors.push(preparsedElement.selectAttr);\n }\n break;\n case template_preparser_1.PreparsedElementType.STYLE:\n var textContent = '';\n ast.children.forEach(function(child) {\n if (child instanceof html_ast_1.HtmlTextAst) {\n textContent += child.value;\n }\n });\n this.styles.push(textContent);\n break;\n case template_preparser_1.PreparsedElementType.STYLESHEET:\n this.styleUrls.push(preparsedElement.hrefAttr);\n break;\n default:\n break;\n }\n if (preparsedElement.nonBindable) {\n this.ngNonBindableStackCount++;\n }\n html_ast_1.htmlVisitAll(this, ast.children);\n if (preparsedElement.nonBindable) {\n this.ngNonBindableStackCount--;\n }\n return null;\n };\n TemplatePreparseVisitor.prototype.visitAttr = function(ast, context) {\n return null;\n };\n TemplatePreparseVisitor.prototype.visitText = function(ast, context) {\n return null;\n };\n return TemplatePreparseVisitor;\n})();\n","/* */ \n(function(process) {\n 'use strict';\n var collection_1 = require('../facade/collection');\n var lang_1 = require('../facade/lang');\n var exceptions_1 = require('../facade/exceptions');\n var _EMPTY_ATTR_VALUE = '';\n var _SELECTOR_REGEXP = lang_1.RegExpWrapper.create('(\\\\:not\\\\()|' + '([-\\\\w]+)|' + '(?:\\\\.([-\\\\w]+))|' + '(?:\\\\[([-\\\\w*]+)(?:=([^\\\\]]*))?\\\\])|' + '(\\\\))|' + '(\\\\s*,\\\\s*)');\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 && lang_1.isBlank(cssSel.element) && collection_1.ListWrapper.isEmpty(cssSel.classNames) && collection_1.ListWrapper.isEmpty(cssSel.attrs)) {\n cssSel.element = \"*\";\n }\n res.push(cssSel);\n };\n var cssSelector = new CssSelector();\n var matcher = lang_1.RegExpWrapper.matcher(_SELECTOR_REGEXP, selector);\n var match;\n var current = cssSelector;\n var inNot = false;\n while (lang_1.isPresent(match = lang_1.RegExpMatcherWrapper.next(matcher))) {\n if (lang_1.isPresent(match[1])) {\n if (inNot) {\n throw new exceptions_1.BaseException('Nesting :not is not allowed in a selector');\n }\n inNot = true;\n current = new CssSelector();\n cssSelector.notSelectors.push(current);\n }\n if (lang_1.isPresent(match[2])) {\n current.setElement(match[2]);\n }\n if (lang_1.isPresent(match[3])) {\n current.addClassName(match[3]);\n }\n if (lang_1.isPresent(match[4])) {\n current.addAttribute(match[4], match[5]);\n }\n if (lang_1.isPresent(match[6])) {\n inNot = false;\n current = cssSelector;\n }\n if (lang_1.isPresent(match[7])) {\n if (inNot) {\n throw new exceptions_1.BaseException('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 lang_1.isPresent(this.element) && collection_1.ListWrapper.isEmpty(this.classNames) && collection_1.ListWrapper.isEmpty(this.attrs) && this.notSelectors.length === 0;\n };\n CssSelector.prototype.setElement = function(element) {\n if (element === void 0) {\n element = null;\n }\n this.element = element;\n };\n CssSelector.prototype.getMatchingElementTemplate = function() {\n var tagName = lang_1.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) {\n value = _EMPTY_ATTR_VALUE;\n }\n this.attrs.push(name);\n if (lang_1.isPresent(value)) {\n value = value.toLowerCase();\n } else {\n value = _EMPTY_ATTR_VALUE;\n }\n this.attrs.push(value);\n };\n CssSelector.prototype.addClassName = function(name) {\n this.classNames.push(name.toLowerCase());\n };\n CssSelector.prototype.toString = function() {\n var res = '';\n if (lang_1.isPresent(this.element)) {\n res += this.element;\n }\n if (lang_1.isPresent(this.classNames)) {\n for (var i = 0; i < this.classNames.length; i++) {\n res += '.' + this.classNames[i];\n }\n }\n if (lang_1.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) {\n return res += \":not(\" + notSelector + \")\";\n });\n return res;\n };\n return CssSelector;\n })();\n exports.CssSelector = CssSelector;\n var SelectorMatcher = (function() {\n function SelectorMatcher() {\n this._elementMap = new collection_1.Map();\n this._elementPartialMap = new collection_1.Map();\n this._classMap = new collection_1.Map();\n this._classPartialMap = new collection_1.Map();\n this._attrValueMap = new collection_1.Map();\n this._attrValuePartialMap = new collection_1.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 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 (lang_1.isPresent(element)) {\n var isTerminal = attrs.length === 0 && classNames.length === 0;\n if (isTerminal) {\n this._addTerminal(matcher._elementMap, element, selectable);\n } else {\n matcher = this._addPartial(matcher._elementPartialMap, element);\n }\n }\n if (lang_1.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 } else {\n matcher = this._addPartial(matcher._classPartialMap, className);\n }\n }\n }\n if (lang_1.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 (lang_1.isBlank(terminalValuesMap)) {\n terminalValuesMap = new collection_1.Map();\n terminalMap.set(attrName, terminalValuesMap);\n }\n this._addTerminal(terminalValuesMap, attrValue, selectable);\n } else {\n var parttialMap = matcher._attrValuePartialMap;\n var partialValuesMap = parttialMap.get(attrName);\n if (lang_1.isBlank(partialValuesMap)) {\n partialValuesMap = new collection_1.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 (lang_1.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 (lang_1.isBlank(matcher)) {\n matcher = new SelectorMatcher();\n map.set(name, matcher);\n }\n return matcher;\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) || result;\n if (lang_1.isPresent(classNames)) {\n for (var index = 0; index < classNames.length; index++) {\n var className = classNames[index];\n result = this._matchTerminal(this._classMap, className, cssSelector, matchedCallback) || result;\n result = this._matchPartial(this._classPartialMap, className, cssSelector, matchedCallback) || result;\n }\n }\n if (lang_1.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 (!lang_1.StringWrapper.equals(attrValue, _EMPTY_ATTR_VALUE)) {\n result = this._matchTerminal(terminalValuesMap, _EMPTY_ATTR_VALUE, cssSelector, matchedCallback) || result;\n }\n result = this._matchTerminal(terminalValuesMap, attrValue, cssSelector, matchedCallback) || result;\n var partialValuesMap = this._attrValuePartialMap.get(attrName);\n if (!lang_1.StringWrapper.equals(attrValue, _EMPTY_ATTR_VALUE)) {\n result = this._matchPartial(partialValuesMap, _EMPTY_ATTR_VALUE, cssSelector, matchedCallback) || result;\n }\n result = this._matchPartial(partialValuesMap, attrValue, cssSelector, matchedCallback) || result;\n }\n }\n return result;\n };\n SelectorMatcher.prototype._matchTerminal = function(map, name, cssSelector, matchedCallback) {\n if (lang_1.isBlank(map) || lang_1.isBlank(name)) {\n return false;\n }\n var selectables = map.get(name);\n var starSelectables = map.get(\"*\");\n if (lang_1.isPresent(starSelectables)) {\n selectables = selectables.concat(starSelectables);\n }\n if (lang_1.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 SelectorMatcher.prototype._matchPartial = function(map, name, cssSelector, matchedCallback) {\n if (lang_1.isBlank(map) || lang_1.isBlank(name)) {\n return false;\n }\n var nestedSelector = map.get(name);\n if (lang_1.isBlank(nestedSelector)) {\n return false;\n }\n return nestedSelector.match(cssSelector, matchedCallback);\n };\n return SelectorMatcher;\n })();\n exports.SelectorMatcher = SelectorMatcher;\n var SelectorListContext = (function() {\n function SelectorListContext(selectors) {\n this.selectors = selectors;\n this.alreadyMatched = false;\n }\n return SelectorListContext;\n })();\n exports.SelectorListContext = SelectorListContext;\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 && (lang_1.isBlank(this.listContext) || !this.listContext.alreadyMatched)) {\n var notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);\n result = !notMatcher.match(cssSelector, null);\n }\n if (result && lang_1.isPresent(callback) && (lang_1.isBlank(this.listContext) || !this.listContext.alreadyMatched)) {\n if (lang_1.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 exports.SelectorContext = SelectorContext;\n})(require('process'));\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar exceptions_1 = require('../facade/exceptions');\nvar collection_1 = require('../facade/collection');\nvar change_detection_1 = require('../core/change_detection/change_detection');\nvar view_1 = require('../core/metadata/view');\nvar selector_1 = require('./selector');\nvar util_1 = require('./util');\nvar interfaces_1 = require('../core/linker/interfaces');\nvar HOST_REG_EXP = /^(?:(?:\\[([^\\]]+)\\])|(?:\\(([^\\)]+)\\)))$/g;\nvar CompileMetadataWithType = (function() {\n function CompileMetadataWithType() {}\n CompileMetadataWithType.fromJson = function(data) {\n return _COMPILE_METADATA_FROM_JSON[data['class']](data);\n };\n Object.defineProperty(CompileMetadataWithType.prototype, \"type\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n return CompileMetadataWithType;\n})();\nexports.CompileMetadataWithType = CompileMetadataWithType;\nvar CompileTypeMetadata = (function() {\n function CompileTypeMetadata(_a) {\n var _b = _a === void 0 ? {} : _a,\n runtime = _b.runtime,\n name = _b.name,\n moduleUrl = _b.moduleUrl,\n isHost = _b.isHost;\n this.runtime = runtime;\n this.name = name;\n this.moduleUrl = moduleUrl;\n this.isHost = lang_1.normalizeBool(isHost);\n }\n CompileTypeMetadata.fromJson = function(data) {\n return new CompileTypeMetadata({\n name: data['name'],\n moduleUrl: data['moduleUrl'],\n isHost: data['isHost']\n });\n };\n CompileTypeMetadata.prototype.toJson = function() {\n return {\n 'name': this.name,\n 'moduleUrl': this.moduleUrl,\n 'isHost': this.isHost\n };\n };\n return CompileTypeMetadata;\n})();\nexports.CompileTypeMetadata = CompileTypeMetadata;\nvar CompileTemplateMetadata = (function() {\n function CompileTemplateMetadata(_a) {\n var _b = _a === void 0 ? {} : _a,\n encapsulation = _b.encapsulation,\n template = _b.template,\n templateUrl = _b.templateUrl,\n styles = _b.styles,\n styleUrls = _b.styleUrls,\n ngContentSelectors = _b.ngContentSelectors;\n this.encapsulation = lang_1.isPresent(encapsulation) ? encapsulation : view_1.ViewEncapsulation.Emulated;\n this.template = template;\n this.templateUrl = templateUrl;\n this.styles = lang_1.isPresent(styles) ? styles : [];\n this.styleUrls = lang_1.isPresent(styleUrls) ? styleUrls : [];\n this.ngContentSelectors = lang_1.isPresent(ngContentSelectors) ? ngContentSelectors : [];\n }\n CompileTemplateMetadata.fromJson = function(data) {\n return new CompileTemplateMetadata({\n encapsulation: lang_1.isPresent(data['encapsulation']) ? view_1.VIEW_ENCAPSULATION_VALUES[data['encapsulation']] : data['encapsulation'],\n template: data['template'],\n templateUrl: data['templateUrl'],\n styles: data['styles'],\n styleUrls: data['styleUrls'],\n ngContentSelectors: data['ngContentSelectors']\n });\n };\n CompileTemplateMetadata.prototype.toJson = function() {\n return {\n 'encapsulation': lang_1.isPresent(this.encapsulation) ? lang_1.serializeEnum(this.encapsulation) : this.encapsulation,\n 'template': this.template,\n 'templateUrl': this.templateUrl,\n 'styles': this.styles,\n 'styleUrls': this.styleUrls,\n 'ngContentSelectors': this.ngContentSelectors\n };\n };\n return CompileTemplateMetadata;\n})();\nexports.CompileTemplateMetadata = CompileTemplateMetadata;\nvar CompileDirectiveMetadata = (function() {\n function CompileDirectiveMetadata(_a) {\n var _b = _a === void 0 ? {} : _a,\n type = _b.type,\n isComponent = _b.isComponent,\n dynamicLoadable = _b.dynamicLoadable,\n selector = _b.selector,\n exportAs = _b.exportAs,\n changeDetection = _b.changeDetection,\n inputs = _b.inputs,\n outputs = _b.outputs,\n hostListeners = _b.hostListeners,\n hostProperties = _b.hostProperties,\n hostAttributes = _b.hostAttributes,\n lifecycleHooks = _b.lifecycleHooks,\n template = _b.template;\n this.type = type;\n this.isComponent = isComponent;\n this.dynamicLoadable = dynamicLoadable;\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.lifecycleHooks = lifecycleHooks;\n this.template = template;\n }\n CompileDirectiveMetadata.create = function(_a) {\n var _b = _a === void 0 ? {} : _a,\n type = _b.type,\n isComponent = _b.isComponent,\n dynamicLoadable = _b.dynamicLoadable,\n selector = _b.selector,\n exportAs = _b.exportAs,\n changeDetection = _b.changeDetection,\n inputs = _b.inputs,\n outputs = _b.outputs,\n host = _b.host,\n lifecycleHooks = _b.lifecycleHooks,\n template = _b.template;\n var hostListeners = {};\n var hostProperties = {};\n var hostAttributes = {};\n if (lang_1.isPresent(host)) {\n collection_1.StringMapWrapper.forEach(host, function(value, key) {\n var matches = lang_1.RegExpWrapper.firstMatch(HOST_REG_EXP, key);\n if (lang_1.isBlank(matches)) {\n hostAttributes[key] = value;\n } else if (lang_1.isPresent(matches[1])) {\n hostProperties[matches[1]] = value;\n } else if (lang_1.isPresent(matches[2])) {\n hostListeners[matches[2]] = value;\n }\n });\n }\n var inputsMap = {};\n if (lang_1.isPresent(inputs)) {\n inputs.forEach(function(bindConfig) {\n var parts = util_1.splitAtColon(bindConfig, [bindConfig, bindConfig]);\n inputsMap[parts[0]] = parts[1];\n });\n }\n var outputsMap = {};\n if (lang_1.isPresent(outputs)) {\n outputs.forEach(function(bindConfig) {\n var parts = util_1.splitAtColon(bindConfig, [bindConfig, bindConfig]);\n outputsMap[parts[0]] = parts[1];\n });\n }\n return new CompileDirectiveMetadata({\n type: type,\n isComponent: lang_1.normalizeBool(isComponent),\n dynamicLoadable: lang_1.normalizeBool(dynamicLoadable),\n selector: selector,\n exportAs: exportAs,\n changeDetection: changeDetection,\n inputs: inputsMap,\n outputs: outputsMap,\n hostListeners: hostListeners,\n hostProperties: hostProperties,\n hostAttributes: hostAttributes,\n lifecycleHooks: lang_1.isPresent(lifecycleHooks) ? lifecycleHooks : [],\n template: template\n });\n };\n CompileDirectiveMetadata.fromJson = function(data) {\n return new CompileDirectiveMetadata({\n isComponent: data['isComponent'],\n dynamicLoadable: data['dynamicLoadable'],\n selector: data['selector'],\n exportAs: data['exportAs'],\n type: lang_1.isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'],\n changeDetection: lang_1.isPresent(data['changeDetection']) ? change_detection_1.CHANGE_DETECTION_STRATEGY_VALUES[data['changeDetection']] : data['changeDetection'],\n inputs: data['inputs'],\n outputs: data['outputs'],\n hostListeners: data['hostListeners'],\n hostProperties: data['hostProperties'],\n hostAttributes: data['hostAttributes'],\n lifecycleHooks: data['lifecycleHooks'].map(function(hookValue) {\n return interfaces_1.LIFECYCLE_HOOKS_VALUES[hookValue];\n }),\n template: lang_1.isPresent(data['template']) ? CompileTemplateMetadata.fromJson(data['template']) : data['template']\n });\n };\n CompileDirectiveMetadata.prototype.toJson = function() {\n return {\n 'class': 'Directive',\n 'isComponent': this.isComponent,\n 'dynamicLoadable': this.dynamicLoadable,\n 'selector': this.selector,\n 'exportAs': this.exportAs,\n 'type': lang_1.isPresent(this.type) ? this.type.toJson() : this.type,\n 'changeDetection': lang_1.isPresent(this.changeDetection) ? lang_1.serializeEnum(this.changeDetection) : this.changeDetection,\n 'inputs': this.inputs,\n 'outputs': this.outputs,\n 'hostListeners': this.hostListeners,\n 'hostProperties': this.hostProperties,\n 'hostAttributes': this.hostAttributes,\n 'lifecycleHooks': this.lifecycleHooks.map(function(hook) {\n return lang_1.serializeEnum(hook);\n }),\n 'template': lang_1.isPresent(this.template) ? this.template.toJson() : this.template\n };\n };\n return CompileDirectiveMetadata;\n})();\nexports.CompileDirectiveMetadata = CompileDirectiveMetadata;\nfunction createHostComponentMeta(componentType, componentSelector) {\n var template = selector_1.CssSelector.parse(componentSelector)[0].getMatchingElementTemplate();\n return CompileDirectiveMetadata.create({\n type: new CompileTypeMetadata({\n runtime: Object,\n name: \"Host\" + componentType.name,\n moduleUrl: componentType.moduleUrl,\n isHost: true\n }),\n template: new CompileTemplateMetadata({\n template: template,\n templateUrl: '',\n styles: [],\n styleUrls: [],\n ngContentSelectors: []\n }),\n changeDetection: change_detection_1.ChangeDetectionStrategy.Default,\n inputs: [],\n outputs: [],\n host: {},\n lifecycleHooks: [],\n isComponent: true,\n dynamicLoadable: false,\n selector: '*'\n });\n}\nexports.createHostComponentMeta = createHostComponentMeta;\nvar CompilePipeMetadata = (function() {\n function CompilePipeMetadata(_a) {\n var _b = _a === void 0 ? {} : _a,\n type = _b.type,\n name = _b.name,\n pure = _b.pure;\n this.type = type;\n this.name = name;\n this.pure = lang_1.normalizeBool(pure);\n }\n CompilePipeMetadata.fromJson = function(data) {\n return new CompilePipeMetadata({\n type: lang_1.isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'],\n name: data['name'],\n pure: data['pure']\n });\n };\n CompilePipeMetadata.prototype.toJson = function() {\n return {\n 'class': 'Pipe',\n 'type': lang_1.isPresent(this.type) ? this.type.toJson() : null,\n 'name': this.name,\n 'pure': this.pure\n };\n };\n return CompilePipeMetadata;\n})();\nexports.CompilePipeMetadata = CompilePipeMetadata;\nvar _COMPILE_METADATA_FROM_JSON = {\n 'Directive': CompileDirectiveMetadata.fromJson,\n 'Pipe': CompilePipeMetadata.fromJson\n};\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar interfaces_1 = require('./interfaces');\nfunction hasLifecycleHook(lcInterface, token) {\n if (!(token instanceof lang_1.Type))\n return false;\n var proto = token.prototype;\n switch (lcInterface) {\n case interfaces_1.LifecycleHooks.AfterContentInit:\n return !!proto.ngAfterContentInit;\n case interfaces_1.LifecycleHooks.AfterContentChecked:\n return !!proto.ngAfterContentChecked;\n case interfaces_1.LifecycleHooks.AfterViewInit:\n return !!proto.ngAfterViewInit;\n case interfaces_1.LifecycleHooks.AfterViewChecked:\n return !!proto.ngAfterViewChecked;\n case interfaces_1.LifecycleHooks.OnChanges:\n return !!proto.ngOnChanges;\n case interfaces_1.LifecycleHooks.DoCheck:\n return !!proto.ngDoCheck;\n case interfaces_1.LifecycleHooks.OnDestroy:\n return !!proto.ngOnDestroy;\n case interfaces_1.LifecycleHooks.OnInit:\n return !!proto.ngOnInit;\n default:\n return false;\n }\n}\nexports.hasLifecycleHook = hasLifecycleHook;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar di_1 = require('../core/di');\nvar lang_1 = require('../facade/lang');\nvar exceptions_1 = require('../facade/exceptions');\nvar cpl = require('./directive_metadata');\nvar md = require('../core/metadata/directives');\nvar directive_resolver_1 = require('../core/linker/directive_resolver');\nvar pipe_resolver_1 = require('../core/linker/pipe_resolver');\nvar view_resolver_1 = require('../core/linker/view_resolver');\nvar directive_lifecycle_reflector_1 = require('../core/linker/directive_lifecycle_reflector');\nvar interfaces_1 = require('../core/linker/interfaces');\nvar reflection_1 = require('../core/reflection/reflection');\nvar di_2 = require('../core/di');\nvar platform_directives_and_pipes_1 = require('../core/platform_directives_and_pipes');\nvar util_1 = require('./util');\nvar url_resolver_1 = require('./url_resolver');\nvar RuntimeMetadataResolver = (function() {\n function RuntimeMetadataResolver(_directiveResolver, _pipeResolver, _viewResolver, _platformDirectives, _platformPipes) {\n this._directiveResolver = _directiveResolver;\n this._pipeResolver = _pipeResolver;\n this._viewResolver = _viewResolver;\n this._platformDirectives = _platformDirectives;\n this._platformPipes = _platformPipes;\n this._directiveCache = new Map();\n this._pipeCache = new Map();\n }\n RuntimeMetadataResolver.prototype.getDirectiveMetadata = function(directiveType) {\n var meta = this._directiveCache.get(directiveType);\n if (lang_1.isBlank(meta)) {\n var dirMeta = this._directiveResolver.resolve(directiveType);\n var moduleUrl = null;\n var templateMeta = null;\n var changeDetectionStrategy = null;\n if (dirMeta instanceof md.ComponentMetadata) {\n var cmpMeta = dirMeta;\n moduleUrl = calcModuleUrl(directiveType, cmpMeta);\n var viewMeta = this._viewResolver.resolve(directiveType);\n templateMeta = new cpl.CompileTemplateMetadata({\n encapsulation: viewMeta.encapsulation,\n template: viewMeta.template,\n templateUrl: viewMeta.templateUrl,\n styles: viewMeta.styles,\n styleUrls: viewMeta.styleUrls\n });\n changeDetectionStrategy = cmpMeta.changeDetection;\n }\n meta = cpl.CompileDirectiveMetadata.create({\n selector: dirMeta.selector,\n exportAs: dirMeta.exportAs,\n isComponent: lang_1.isPresent(templateMeta),\n dynamicLoadable: true,\n type: new cpl.CompileTypeMetadata({\n name: lang_1.stringify(directiveType),\n moduleUrl: moduleUrl,\n runtime: directiveType\n }),\n template: templateMeta,\n changeDetection: changeDetectionStrategy,\n inputs: dirMeta.inputs,\n outputs: dirMeta.outputs,\n host: dirMeta.host,\n lifecycleHooks: interfaces_1.LIFECYCLE_HOOKS_VALUES.filter(function(hook) {\n return directive_lifecycle_reflector_1.hasLifecycleHook(hook, directiveType);\n })\n });\n this._directiveCache.set(directiveType, meta);\n }\n return meta;\n };\n RuntimeMetadataResolver.prototype.getPipeMetadata = function(pipeType) {\n var meta = this._pipeCache.get(pipeType);\n if (lang_1.isBlank(meta)) {\n var pipeMeta = this._pipeResolver.resolve(pipeType);\n var moduleUrl = reflection_1.reflector.importUri(pipeType);\n meta = new cpl.CompilePipeMetadata({\n type: new cpl.CompileTypeMetadata({\n name: lang_1.stringify(pipeType),\n moduleUrl: moduleUrl,\n runtime: pipeType\n }),\n name: pipeMeta.name,\n pure: pipeMeta.pure\n });\n this._pipeCache.set(pipeType, meta);\n }\n return meta;\n };\n RuntimeMetadataResolver.prototype.getViewDirectivesMetadata = function(component) {\n var _this = this;\n var view = this._viewResolver.resolve(component);\n var directives = flattenDirectives(view, this._platformDirectives);\n for (var i = 0; i < directives.length; i++) {\n if (!isValidType(directives[i])) {\n throw new exceptions_1.BaseException(\"Unexpected directive value '\" + lang_1.stringify(directives[i]) + \"' on the View of component '\" + lang_1.stringify(component) + \"'\");\n }\n }\n return directives.map(function(type) {\n return _this.getDirectiveMetadata(type);\n });\n };\n RuntimeMetadataResolver.prototype.getViewPipesMetadata = function(component) {\n var _this = this;\n var view = this._viewResolver.resolve(component);\n var pipes = flattenPipes(view, this._platformPipes);\n for (var i = 0; i < pipes.length; i++) {\n if (!isValidType(pipes[i])) {\n throw new exceptions_1.BaseException(\"Unexpected piped value '\" + lang_1.stringify(pipes[i]) + \"' on the View of component '\" + lang_1.stringify(component) + \"'\");\n }\n }\n return pipes.map(function(type) {\n return _this.getPipeMetadata(type);\n });\n };\n RuntimeMetadataResolver = __decorate([di_2.Injectable(), __param(3, di_2.Optional()), __param(3, di_2.Inject(platform_directives_and_pipes_1.PLATFORM_DIRECTIVES)), __param(4, di_2.Optional()), __param(4, di_2.Inject(platform_directives_and_pipes_1.PLATFORM_PIPES)), __metadata('design:paramtypes', [directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver, view_resolver_1.ViewResolver, Array, Array])], RuntimeMetadataResolver);\n return RuntimeMetadataResolver;\n})();\nexports.RuntimeMetadataResolver = RuntimeMetadataResolver;\nfunction flattenDirectives(view, platformDirectives) {\n var directives = [];\n if (lang_1.isPresent(platformDirectives)) {\n flattenArray(platformDirectives, directives);\n }\n if (lang_1.isPresent(view.directives)) {\n flattenArray(view.directives, directives);\n }\n return directives;\n}\nfunction flattenPipes(view, platformPipes) {\n var pipes = [];\n if (lang_1.isPresent(platformPipes)) {\n flattenArray(platformPipes, pipes);\n }\n if (lang_1.isPresent(view.pipes)) {\n flattenArray(view.pipes, pipes);\n }\n return pipes;\n}\nfunction flattenArray(tree, out) {\n for (var i = 0; i < tree.length; i++) {\n var item = di_1.resolveForwardRef(tree[i]);\n if (lang_1.isArray(item)) {\n flattenArray(item, out);\n } else {\n out.push(item);\n }\n }\n}\nfunction isValidType(value) {\n return lang_1.isPresent(value) && (value instanceof lang_1.Type);\n}\nfunction calcModuleUrl(type, cmpMetadata) {\n var moduleId = cmpMetadata.moduleId;\n if (lang_1.isPresent(moduleId)) {\n var scheme = url_resolver_1.getUrlScheme(moduleId);\n return lang_1.isPresent(scheme) && scheme.length > 0 ? moduleId : \"package:\" + moduleId + util_1.MODULE_SUFFIX;\n } else {\n return reflection_1.reflector.importUri(type);\n }\n}\n","/* */ \n'use strict';(function (LifecycleHooks) {\r\n LifecycleHooks[LifecycleHooks[\"OnInit\"] = 0] = \"OnInit\";\r\n LifecycleHooks[LifecycleHooks[\"OnDestroy\"] = 1] = \"OnDestroy\";\r\n LifecycleHooks[LifecycleHooks[\"DoCheck\"] = 2] = \"DoCheck\";\r\n LifecycleHooks[LifecycleHooks[\"OnChanges\"] = 3] = \"OnChanges\";\r\n LifecycleHooks[LifecycleHooks[\"AfterContentInit\"] = 4] = \"AfterContentInit\";\r\n LifecycleHooks[LifecycleHooks[\"AfterContentChecked\"] = 5] = \"AfterContentChecked\";\r\n LifecycleHooks[LifecycleHooks[\"AfterViewInit\"] = 6] = \"AfterViewInit\";\r\n LifecycleHooks[LifecycleHooks[\"AfterViewChecked\"] = 7] = \"AfterViewChecked\";\r\n})(exports.LifecycleHooks || (exports.LifecycleHooks = {}));\r\nvar LifecycleHooks = exports.LifecycleHooks;\r\n/**\r\n * @internal\r\n */\r\nexports.LIFECYCLE_HOOKS_VALUES = [\r\n LifecycleHooks.OnInit,\r\n LifecycleHooks.OnDestroy,\r\n LifecycleHooks.DoCheck,\r\n LifecycleHooks.OnChanges,\r\n LifecycleHooks.AfterContentInit,\r\n LifecycleHooks.AfterContentChecked,\r\n LifecycleHooks.AfterViewInit,\r\n LifecycleHooks.AfterViewChecked\r\n];\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9pbnRlcmZhY2VzLnRzIl0sIm5hbWVzIjpbIkxpZmVjeWNsZUhvb2tzIl0sIm1hcHBpbmdzIjoiQUFHQSxXQUFZLGNBQWM7SUFDeEJBLHVEQUFNQSxDQUFBQTtJQUNOQSw2REFBU0EsQ0FBQUE7SUFDVEEseURBQU9BLENBQUFBO0lBQ1BBLDZEQUFTQSxDQUFBQTtJQUNUQSwyRUFBZ0JBLENBQUFBO0lBQ2hCQSxpRkFBbUJBLENBQUFBO0lBQ25CQSxxRUFBYUEsQ0FBQUE7SUFDYkEsMkVBQWdCQSxDQUFBQTtBQUNsQkEsQ0FBQ0EsRUFUVyxzQkFBYyxLQUFkLH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uYW1lOiAnY291bnRkb3duJywgcHVyZTogZmFsc2V9KVxuICogY2xhc3MgQ291bnREb3duIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSwgT25EZXN0cm95IHtcbiAqICAgcmVtYWluaW5nVGltZTpOdW1iZXI7XG4gKiAgIGludGVydmFsOlNldEludGVydmFsO1xuICogICBuZ09uRGVzdHJveSgpIHtcbiAqICAgICBpZiAodGhpcy5pbnRlcnZhbCkge1xuICogICAgICAgY2xlYXJJbnRlcnZhbCh0aGlzLmludGVydmFsKTtcbiAqICAgICB9XG4gKiAgIH1cbiAqICAgdHJhbnNmb3JtKHZhbHVlOiBhbnksIGFyZ3M6IGFueVtdID0gW10pIHtcbiAqICAgICBpZiAoIXBhcnNlSW50KHZhbHVlLCAxMCkpIHJldHVybiBudWxsO1xuICogICAgIGlmICh0eXBlb2YgdGhpcy5yZW1haW5pbmdUaW1lICE9PSAnbnVtYmVyJykge1xuICogICAgICAgdGhpcy5yZW1haW5pbmdUaW1lID0gcGFyc2VJbnQodmFsdWUsIDEwKTtcbiAqICAgICB9XG4gKiAgICAgaWYgKCF0aGlzLmludGVydmFsKSB7XG4gKiAgICAgICB0aGlzLmludGVydmFsID0gc2V0SW50ZXJ2YWwoKCkgPT4ge1xuICogICAgICAgICB0aGlzLnJlbWFpbmluZ1RpbWUtPTUwO1xuICogICAgICAgICBpZiAodGhpcy5yZW1haW5pbmdUaW1lIDw9IDApIHtcbiAqICAgICAgICAgICB0aGlzLnJlbWFpbmluZ1RpbWUgPSAwO1xuICogICAgICAgICAgIGNsZWFySW50ZXJ2YWwodGhpcy5pbnRlcnZhbCk7XG4gKiAgICAgICAgICAgZGVsZXRlIHRoaXMuaW50ZXJ2YWw7XG4gKiAgICAgICAgIH1cbiAqICAgICAgIH0sIDUwKTtcbiAqICAgICB9XG4gKiAgICAgcmV0dXJuIHRoaXMucmVtYWluaW5nVGltZTtcbiAqICAgfVxuICogfVxuICogYGBgXG4gKlxuICogSW52b2tpbmcgYHt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XBsYXRlOiBgPHBhcmVudC1jbXA+PC9wYXJlbnQtY21wPmAsXG4gKiAgIGRpcmVjdGl2ZXM6IFtQYXJlbnRDb21wb25lbnRdXG4gKiB9KVxuICogZXhwb3J0IGNsYXNzIEFwcCB7XG4gKiB9XG4gKlxuICogYm9vdHN0cmFwKEFwcCkuY2F0Y2goZXJyID0+IGNvbnNvbGUuZXJyb3IoZXJyKSk7XG4gKiBgYGBcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBBZnRlclZpZXdDaGVja2VkIHsgbmdBZnRlclZpZXdDaGVja2VkKCk7IH1cbiJdfQ==","/* */ \n'use strict';\nvar collection_1 = require('../facade/collection');\nvar lang_1 = require('../facade/lang');\nvar reflection_1 = require('../core/reflection/reflection');\nvar change_detection_1 = require('../core/change_detection/change_detection');\nvar template_ast_1 = require('./template_ast');\nvar interfaces_1 = require('../core/linker/interfaces');\nfunction createChangeDetectorDefinitions(componentType, componentStrategy, genConfig, parsedTemplate) {\n var pvVisitors = [];\n var visitor = new ProtoViewVisitor(null, pvVisitors, componentStrategy);\n template_ast_1.templateVisitAll(visitor, parsedTemplate);\n return createChangeDefinitions(pvVisitors, componentType, genConfig);\n}\nexports.createChangeDetectorDefinitions = createChangeDetectorDefinitions;\nvar ProtoViewVisitor = (function() {\n function ProtoViewVisitor(parent, allVisitors, strategy) {\n this.parent = parent;\n this.allVisitors = allVisitors;\n this.strategy = strategy;\n this.nodeCount = 0;\n this.boundElementCount = 0;\n this.variableNames = [];\n this.bindingRecords = [];\n this.eventRecords = [];\n this.directiveRecords = [];\n this.viewIndex = allVisitors.length;\n allVisitors.push(this);\n }\n ProtoViewVisitor.prototype.visitEmbeddedTemplate = function(ast, context) {\n this.nodeCount++;\n this.boundElementCount++;\n template_ast_1.templateVisitAll(this, ast.outputs);\n for (var i = 0; i < ast.directives.length; i++) {\n ast.directives[i].visit(this, i);\n }\n var childVisitor = new ProtoViewVisitor(this, this.allVisitors, change_detection_1.ChangeDetectionStrategy.Default);\n template_ast_1.templateVisitAll(childVisitor, ast.vars);\n template_ast_1.templateVisitAll(childVisitor, ast.children);\n return null;\n };\n ProtoViewVisitor.prototype.visitElement = function(ast, context) {\n this.nodeCount++;\n if (ast.isBound()) {\n this.boundElementCount++;\n }\n template_ast_1.templateVisitAll(this, ast.inputs, null);\n template_ast_1.templateVisitAll(this, ast.outputs);\n template_ast_1.templateVisitAll(this, ast.exportAsVars);\n for (var i = 0; i < ast.directives.length; i++) {\n ast.directives[i].visit(this, i);\n }\n template_ast_1.templateVisitAll(this, ast.children);\n return null;\n };\n ProtoViewVisitor.prototype.visitNgContent = function(ast, context) {\n return null;\n };\n ProtoViewVisitor.prototype.visitVariable = function(ast, context) {\n this.variableNames.push(ast.name);\n return null;\n };\n ProtoViewVisitor.prototype.visitEvent = function(ast, directiveRecord) {\n var bindingRecord = lang_1.isPresent(directiveRecord) ? change_detection_1.BindingRecord.createForHostEvent(ast.handler, ast.fullName, directiveRecord) : change_detection_1.BindingRecord.createForEvent(ast.handler, ast.fullName, this.boundElementCount - 1);\n this.eventRecords.push(bindingRecord);\n return null;\n };\n ProtoViewVisitor.prototype.visitElementProperty = function(ast, directiveRecord) {\n var boundElementIndex = this.boundElementCount - 1;\n var dirIndex = lang_1.isPresent(directiveRecord) ? directiveRecord.directiveIndex : null;\n var bindingRecord;\n if (ast.type === template_ast_1.PropertyBindingType.Property) {\n bindingRecord = lang_1.isPresent(dirIndex) ? change_detection_1.BindingRecord.createForHostProperty(dirIndex, ast.value, ast.name) : change_detection_1.BindingRecord.createForElementProperty(ast.value, boundElementIndex, ast.name);\n } else if (ast.type === template_ast_1.PropertyBindingType.Attribute) {\n bindingRecord = lang_1.isPresent(dirIndex) ? change_detection_1.BindingRecord.createForHostAttribute(dirIndex, ast.value, ast.name) : change_detection_1.BindingRecord.createForElementAttribute(ast.value, boundElementIndex, ast.name);\n } else if (ast.type === template_ast_1.PropertyBindingType.Class) {\n bindingRecord = lang_1.isPresent(dirIndex) ? change_detection_1.BindingRecord.createForHostClass(dirIndex, ast.value, ast.name) : change_detection_1.BindingRecord.createForElementClass(ast.value, boundElementIndex, ast.name);\n } else if (ast.type === template_ast_1.PropertyBindingType.Style) {\n bindingRecord = lang_1.isPresent(dirIndex) ? change_detection_1.BindingRecord.createForHostStyle(dirIndex, ast.value, ast.name, ast.unit) : change_detection_1.BindingRecord.createForElementStyle(ast.value, boundElementIndex, ast.name, ast.unit);\n }\n this.bindingRecords.push(bindingRecord);\n return null;\n };\n ProtoViewVisitor.prototype.visitAttr = function(ast, context) {\n return null;\n };\n ProtoViewVisitor.prototype.visitBoundText = function(ast, context) {\n var nodeIndex = this.nodeCount++;\n this.bindingRecords.push(change_detection_1.BindingRecord.createForTextNode(ast.value, nodeIndex));\n return null;\n };\n ProtoViewVisitor.prototype.visitText = function(ast, context) {\n this.nodeCount++;\n return null;\n };\n ProtoViewVisitor.prototype.visitDirective = function(ast, directiveIndexAsNumber) {\n var directiveIndex = new change_detection_1.DirectiveIndex(this.boundElementCount - 1, directiveIndexAsNumber);\n var directiveMetadata = ast.directive;\n var outputsArray = [];\n collection_1.StringMapWrapper.forEach(ast.directive.outputs, function(eventName, dirProperty) {\n return outputsArray.push([dirProperty, eventName]);\n });\n var directiveRecord = new change_detection_1.DirectiveRecord({\n directiveIndex: directiveIndex,\n callAfterContentInit: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterContentInit) !== -1,\n callAfterContentChecked: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterContentChecked) !== -1,\n callAfterViewInit: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterViewInit) !== -1,\n callAfterViewChecked: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterViewChecked) !== -1,\n callOnChanges: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnChanges) !== -1,\n callDoCheck: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.DoCheck) !== -1,\n callOnInit: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnInit) !== -1,\n callOnDestroy: directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnDestroy) !== -1,\n changeDetection: directiveMetadata.changeDetection,\n outputs: outputsArray\n });\n this.directiveRecords.push(directiveRecord);\n template_ast_1.templateVisitAll(this, ast.inputs, directiveRecord);\n var bindingRecords = this.bindingRecords;\n if (directiveRecord.callOnChanges) {\n bindingRecords.push(change_detection_1.BindingRecord.createDirectiveOnChanges(directiveRecord));\n }\n if (directiveRecord.callOnInit) {\n bindingRecords.push(change_detection_1.BindingRecord.createDirectiveOnInit(directiveRecord));\n }\n if (directiveRecord.callDoCheck) {\n bindingRecords.push(change_detection_1.BindingRecord.createDirectiveDoCheck(directiveRecord));\n }\n template_ast_1.templateVisitAll(this, ast.hostProperties, directiveRecord);\n template_ast_1.templateVisitAll(this, ast.hostEvents, directiveRecord);\n template_ast_1.templateVisitAll(this, ast.exportAsVars);\n return null;\n };\n ProtoViewVisitor.prototype.visitDirectiveProperty = function(ast, directiveRecord) {\n var setter = reflection_1.reflector.setter(ast.directiveName);\n this.bindingRecords.push(change_detection_1.BindingRecord.createForDirective(ast.value, ast.directiveName, setter, directiveRecord));\n return null;\n };\n return ProtoViewVisitor;\n})();\nfunction createChangeDefinitions(pvVisitors, componentType, genConfig) {\n var pvVariableNames = _collectNestedProtoViewsVariableNames(pvVisitors);\n return pvVisitors.map(function(pvVisitor) {\n var id = componentType.name + \"_\" + pvVisitor.viewIndex;\n return new change_detection_1.ChangeDetectorDefinition(id, pvVisitor.strategy, pvVariableNames[pvVisitor.viewIndex], pvVisitor.bindingRecords, pvVisitor.eventRecords, pvVisitor.directiveRecords, genConfig);\n });\n}\nfunction _collectNestedProtoViewsVariableNames(pvVisitors) {\n var nestedPvVariableNames = collection_1.ListWrapper.createFixedSize(pvVisitors.length);\n pvVisitors.forEach(function(pv) {\n var parentVariableNames = lang_1.isPresent(pv.parent) ? nestedPvVariableNames[pv.parent.viewIndex] : [];\n nestedPvVariableNames[pv.viewIndex] = parentVariableNames.concat(pv.variableNames);\n });\n return nestedPvVariableNames;\n}\n","/* */ \n'use strict';// Note: This class is only here so that we can reference it from TypeScript code.\r\n// The actual implementation lives under modules_dart.\r\n// TODO(tbosch): Move the corresponding code into angular2/src/compiler once\r\n// the new compiler is done.\r\nvar Codegen = (function () {\r\n function Codegen(moduleAlias) {\r\n }\r\n Codegen.prototype.generate = function (typeName, changeDetectorTypeName, def) {\r\n throw \"Not implemented in JS\";\r\n };\r\n Codegen.prototype.toString = function () { throw \"Not implemented in JS\"; };\r\n return Codegen;\r\n})();\r\nexports.Codegen = Codegen;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlX2RldGVjdG9yX2NvZGVnZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9zcmMvdHJhbnNmb3JtL3RlbXBsYXRlX2NvbXBpbGVyL2NoYW5nZV9kZXRlY3Rvcl9jb2RlZ2VuLnRzIl0sIm5hbWVzIjpbIkNvZGVnZW4iLCJDb2RlZ2VuLmNvbnN0cnVjdG9yIiwiQ29kZWdlbi5nZW5lcmF0ZSIsIkNvZGVnZW4udG9TdHJpbmciXSwibWFwcGluZ3MiOiJBQUlBLGtGQUFrRjtBQUNsRixzREFBc0Q7QUFDdEQsNEVBQTRFO0FBQzVFLDRCQUE0QjtBQUM1QjtJQUNFQSxpQkFBWUEsV0FBbUJBO0lBQUdDLENBQUNBO0lBQ25DRCwwQkFBUUEsR0FBUkEsVUFBU0EsUUFBZ0JBLEVBQUVBLHNCQUE4QkEsRUFBRUEsR0FBNkJBO1FBQ3RGRSxNQUFNQSx1QkFBdUJBLENBQUNBO0lBQ2hDQSxDQUFDQTtJQUNERiwwQkFBUUEsR0FBUkEsY0FBcUJHLE1BQU1BLHVCQUF1QkEsQ0FBQ0EsQ0FBQ0EsQ0FBQ0E7SUFDdkRILGNBQUNBO0FBQURBLENBQUNBLEFBTkQsSUFNQztBQU5ZLGVBQU8sVUFNbkIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIENoYW5nZURldGVjdG9yRGVmaW5pdGlvbixcbn0gZnJvbSAnYW5ndWxhcjIvc3JjL2NvcmUvY2hhbmdlX2RldGVjdGlvbi9jaGFuZ2VfZGV0ZWN0aW9uJztcblxuLy8gTm90ZTogVGhpcyBjbGFzcyBpcyBvbmx5IGhlcmUgc28gdGhhdCB3ZSBjYW4gcmVmZXJlbmNlIGl0IGZyb20gVHlwZVNjcmlwdCBjb2RlLlxuLy8gVGhlIGFjdHVhbCBpbXBsZW1lbnRhdGlvbiBsaXZlcyB1bmRlciBtb2R1bGVzX2RhcnQuXG4vLyBUT0RPKHRib3NjaCk6IE1vdmUgdGhlIGNvcnJlc3BvbmRpbmcgY29kZSBpbnRvIGFuZ3VsYXIyL3NyYy9jb21waWxlciBvbmNlXG4vLyB0aGUgbmV3IGNvbXBpbGVyIGlzIGRvbmUuXG5leHBvcnQgY2xhc3MgQ29kZWdlbiB7XG4gIGNvbnN0cnVjdG9yKG1vZHVsZUFsaWFzOiBzdHJpbmcpIHt9XG4gIGdlbmVyYXRlKHR5cGVOYW1lOiBzdHJpbmcsIGNoYW5nZURldGVjdG9yVHlwZU5hbWU6IHN0cmluZywgZGVmOiBDaGFuZ2VEZXRlY3RvckRlZmluaXRpb24pOiB2b2lkIHtcbiAgICB0aHJvdyBcIk5vdCBpbXBsZW1lbnRlZCBpbiBKU1wiO1xuICB9XG4gIHRvU3RyaW5nKCk6IHN0cmluZyB7IHRocm93IFwiTm90IGltcGxlbWVudGVkIGluIEpTXCI7IH1cbn1cbiJdfQ==","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar source_module_1 = require('./source_module');\nvar change_detection_jit_generator_1 = require('../core/change_detection/change_detection_jit_generator');\nvar abstract_change_detector_1 = require('../core/change_detection/abstract_change_detector');\nvar change_detection_util_1 = require('../core/change_detection/change_detection_util');\nvar constants_1 = require('../core/change_detection/constants');\nvar change_definition_factory_1 = require('./change_definition_factory');\nvar lang_1 = require('../facade/lang');\nvar change_detection_1 = require('../core/change_detection/change_detection');\nvar change_detector_codegen_1 = require('../transform/template_compiler/change_detector_codegen');\nvar util_1 = require('./util');\nvar di_1 = require('../core/di');\nvar ABSTRACT_CHANGE_DETECTOR = \"AbstractChangeDetector\";\nvar UTIL = \"ChangeDetectionUtil\";\nvar CHANGE_DETECTOR_STATE = \"ChangeDetectorState\";\nexports.CHANGE_DETECTION_JIT_IMPORTS = lang_1.CONST_EXPR({\n 'AbstractChangeDetector': abstract_change_detector_1.AbstractChangeDetector,\n 'ChangeDetectionUtil': change_detection_util_1.ChangeDetectionUtil,\n 'ChangeDetectorState': constants_1.ChangeDetectorState\n});\nvar ABSTRACT_CHANGE_DETECTOR_MODULE = source_module_1.moduleRef(\"package:angular2/src/core/change_detection/abstract_change_detector\" + util_1.MODULE_SUFFIX);\nvar UTIL_MODULE = source_module_1.moduleRef(\"package:angular2/src/core/change_detection/change_detection_util\" + util_1.MODULE_SUFFIX);\nvar PREGEN_PROTO_CHANGE_DETECTOR_MODULE = source_module_1.moduleRef(\"package:angular2/src/core/change_detection/pregen_proto_change_detector\" + util_1.MODULE_SUFFIX);\nvar CONSTANTS_MODULE = source_module_1.moduleRef(\"package:angular2/src/core/change_detection/constants\" + util_1.MODULE_SUFFIX);\nvar ChangeDetectionCompiler = (function() {\n function ChangeDetectionCompiler(_genConfig) {\n this._genConfig = _genConfig;\n }\n ChangeDetectionCompiler.prototype.compileComponentRuntime = function(componentType, strategy, parsedTemplate) {\n var _this = this;\n var changeDetectorDefinitions = change_definition_factory_1.createChangeDetectorDefinitions(componentType, strategy, this._genConfig, parsedTemplate);\n return changeDetectorDefinitions.map(function(definition) {\n return _this._createChangeDetectorFactory(definition);\n });\n };\n ChangeDetectionCompiler.prototype._createChangeDetectorFactory = function(definition) {\n var proto = new change_detection_1.DynamicProtoChangeDetector(definition);\n return function() {\n return proto.instantiate();\n };\n };\n ChangeDetectionCompiler.prototype.compileComponentCodeGen = function(componentType, strategy, parsedTemplate) {\n var changeDetectorDefinitions = change_definition_factory_1.createChangeDetectorDefinitions(componentType, strategy, this._genConfig, parsedTemplate);\n var factories = [];\n var index = 0;\n var sourceParts = changeDetectorDefinitions.map(function(definition) {\n var codegen;\n var sourcePart;\n if (lang_1.IS_DART) {\n codegen = new change_detector_codegen_1.Codegen(PREGEN_PROTO_CHANGE_DETECTOR_MODULE);\n var className = \"_\" + definition.id;\n var typeRef = (index === 0 && componentType.isHost) ? 'dynamic' : \"\" + source_module_1.moduleRef(componentType.moduleUrl) + componentType.name;\n codegen.generate(typeRef, className, definition);\n factories.push(className + \".newChangeDetector\");\n sourcePart = codegen.toString();\n } else {\n codegen = new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition, \"\" + UTIL_MODULE + UTIL, \"\" + ABSTRACT_CHANGE_DETECTOR_MODULE + ABSTRACT_CHANGE_DETECTOR, \"\" + CONSTANTS_MODULE + CHANGE_DETECTOR_STATE);\n factories.push(\"function() { return new \" + codegen.typeName + \"(); }\");\n sourcePart = codegen.generateSource();\n }\n index++;\n return sourcePart;\n });\n return new source_module_1.SourceExpressions(sourceParts, factories);\n };\n ChangeDetectionCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [change_detection_1.ChangeDetectorGenConfig])], ChangeDetectionCompiler);\n return ChangeDetectionCompiler;\n})();\nexports.ChangeDetectionCompiler = ChangeDetectionCompiler;\n","/* */ \n(function(process) {\n 'use strict';\n var collection_1 = require('../facade/collection');\n var lang_1 = require('../facade/lang');\n var ShadowCss = (function() {\n function ShadowCss() {\n this.strictStyling = true;\n }\n ShadowCss.prototype.shimCssText = function(cssText, selector, hostSelector) {\n if (hostSelector === void 0) {\n hostSelector = '';\n }\n cssText = stripComments(cssText);\n cssText = this._insertDirectives(cssText);\n return this._scopeCssText(cssText, selector, hostSelector);\n };\n ShadowCss.prototype._insertDirectives = function(cssText) {\n cssText = this._insertPolyfillDirectivesInCssText(cssText);\n return this._insertPolyfillRulesInCssText(cssText);\n };\n ShadowCss.prototype._insertPolyfillDirectivesInCssText = function(cssText) {\n return lang_1.StringWrapper.replaceAllMapped(cssText, _cssContentNextSelectorRe, function(m) {\n return m[1] + '{';\n });\n };\n ShadowCss.prototype._insertPolyfillRulesInCssText = function(cssText) {\n return lang_1.StringWrapper.replaceAllMapped(cssText, _cssContentRuleRe, function(m) {\n var rule = m[0];\n rule = lang_1.StringWrapper.replace(rule, m[1], '');\n rule = lang_1.StringWrapper.replace(rule, m[2], '');\n return m[3] + rule;\n });\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 (lang_1.isPresent(scopeSelector)) {\n cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);\n }\n cssText = cssText + '\\n' + unscoped;\n return cssText.trim();\n };\n ShadowCss.prototype._extractUnscopedRulesFromCssText = function(cssText) {\n var r = '',\n m;\n var matcher = lang_1.RegExpWrapper.matcher(_cssContentUnscopedRuleRe, cssText);\n while (lang_1.isPresent(m = lang_1.RegExpMatcherWrapper.next(matcher))) {\n var rule = m[0];\n rule = lang_1.StringWrapper.replace(rule, m[2], '');\n rule = lang_1.StringWrapper.replace(rule, m[1], m[3]);\n r += rule + '\\n\\n';\n }\n return r;\n };\n ShadowCss.prototype._convertColonHost = function(cssText) {\n return this._convertColonRule(cssText, _cssColonHostRe, this._colonHostPartReplacer);\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 return lang_1.StringWrapper.replaceAllMapped(cssText, regExp, function(m) {\n if (lang_1.isPresent(m[2])) {\n var parts = m[2].split(','),\n r = [];\n for (var i = 0; i < parts.length; i++) {\n var p = parts[i];\n if (lang_1.isBlank(p))\n break;\n p = p.trim();\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\n }\n return r.join(',');\n } else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n };\n ShadowCss.prototype._colonHostContextPartReplacer = function(host, part, suffix) {\n if (lang_1.StringWrapper.contains(part, _polyfillHost)) {\n return this._colonHostPartReplacer(host, part, suffix);\n } else {\n return host + part + suffix + ', ' + part + ' ' + host + suffix;\n }\n };\n ShadowCss.prototype._colonHostPartReplacer = function(host, part, suffix) {\n return host + lang_1.StringWrapper.replace(part, _polyfillHost, '') + suffix;\n };\n ShadowCss.prototype._convertShadowDOMSelectors = function(cssText) {\n for (var i = 0; i < _shadowDOMSelectorsRe.length; i++) {\n cssText = lang_1.StringWrapper.replaceAll(cssText, _shadowDOMSelectorsRe[i], ' ');\n }\n return cssText;\n };\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 = _this._scopeSelector(rule.selector, scopeSelector, hostSelector, _this.strictStyling);\n } else if (rule.selector.startsWith('@media')) {\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 r = [],\n parts = selector.split(',');\n for (var i = 0; i < parts.length; i++) {\n var p = parts[i];\n p = p.trim();\n if (this._selectorNeedsScoping(p, scopeSelector)) {\n p = strict && !lang_1.StringWrapper.contains(p, _polyfillHostNoCombinator) ? this._applyStrictSelectorScope(p, scopeSelector) : this._applySelectorScope(p, scopeSelector, hostSelector);\n }\n r.push(p);\n }\n return r.join(', ');\n };\n ShadowCss.prototype._selectorNeedsScoping = function(selector, scopeSelector) {\n var re = this._makeScopeMatcher(scopeSelector);\n return !lang_1.isPresent(lang_1.RegExpWrapper.firstMatch(re, selector));\n };\n ShadowCss.prototype._makeScopeMatcher = function(scopeSelector) {\n var lre = /\\[/g;\n var rre = /\\]/g;\n scopeSelector = lang_1.StringWrapper.replaceAll(scopeSelector, lre, '\\\\[');\n scopeSelector = lang_1.StringWrapper.replaceAll(scopeSelector, rre, '\\\\]');\n return lang_1.RegExpWrapper.create('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\n };\n ShadowCss.prototype._applySelectorScope = function(selector, scopeSelector, hostSelector) {\n return this._applySimpleSelectorScope(selector, scopeSelector, hostSelector);\n };\n ShadowCss.prototype._applySimpleSelectorScope = function(selector, scopeSelector, hostSelector) {\n if (lang_1.isPresent(lang_1.RegExpWrapper.firstMatch(_polyfillHostRe, selector))) {\n var replaceBy = this.strictStyling ? \"[\" + hostSelector + \"]\" : scopeSelector;\n selector = lang_1.StringWrapper.replace(selector, _polyfillHostNoCombinator, replaceBy);\n return lang_1.StringWrapper.replaceAll(selector, _polyfillHostRe, replaceBy + ' ');\n } else {\n return scopeSelector + ' ' + selector;\n }\n };\n ShadowCss.prototype._applyStrictSelectorScope = function(selector, scopeSelector) {\n var isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector = lang_1.StringWrapper.replaceAllMapped(scopeSelector, isRe, function(m) {\n return m[1];\n });\n var splits = [' ', '>', '+', '~'],\n scoped = selector,\n attrName = '[' + scopeSelector + ']';\n for (var i = 0; i < splits.length; i++) {\n var sep = splits[i];\n var parts = scoped.split(sep);\n scoped = parts.map(function(p) {\n var t = lang_1.StringWrapper.replaceAll(p.trim(), _polyfillHostRe, '');\n if (t.length > 0 && !collection_1.ListWrapper.contains(splits, t) && !lang_1.StringWrapper.contains(t, attrName)) {\n var re = /([^:]*)(:*)(.*)/g;\n var m = lang_1.RegExpWrapper.firstMatch(re, t);\n if (lang_1.isPresent(m)) {\n p = m[1] + attrName + m[2] + m[3];\n }\n }\n return p;\n }).join(sep);\n }\n return scoped;\n };\n ShadowCss.prototype._insertPolyfillHostInCssText = function(selector) {\n selector = lang_1.StringWrapper.replaceAll(selector, _colonHostContextRe, _polyfillHostContext);\n selector = lang_1.StringWrapper.replaceAll(selector, _colonHostRe, _polyfillHost);\n return selector;\n };\n return ShadowCss;\n })();\n exports.ShadowCss = ShadowCss;\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 var _polyfillHostContext = '-shadowcsscontext';\n var _parenSuffix = ')(?:\\\\((' + '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' + ')\\\\))?([^,{]*)';\n var _cssColonHostRe = lang_1.RegExpWrapper.create('(' + _polyfillHost + _parenSuffix, 'im');\n var _cssColonHostContextRe = lang_1.RegExpWrapper.create('(' + _polyfillHostContext + _parenSuffix, 'im');\n var _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\n var _shadowDOMSelectorsRe = [/>>>/g, /::shadow/g, /::content/g, /\\/deep\\//g, /\\/shadow-deep\\//g, /\\/shadow\\//g];\n var _selectorReSuffix = '([>\\\\s~+\\[.,{:][\\\\s\\\\S]*)?$';\n var _polyfillHostRe = lang_1.RegExpWrapper.create(_polyfillHost, 'im');\n var _colonHostRe = /:host/gim;\n var _colonHostContextRe = /:host-context/gim;\n var _commentRe = /\\/\\*[\\s\\S]*?\\*\\//g;\n function stripComments(input) {\n return lang_1.StringWrapper.replaceAllMapped(input, _commentRe, function(_) {\n return '';\n });\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 exports.CssRule = CssRule;\n function processRules(input, ruleCallback) {\n var inputWithEscapedBlocks = escapeBlocks(input);\n var nextBlockIndex = 0;\n return lang_1.StringWrapper.replaceAllMapped(inputWithEscapedBlocks.escapedString, _ruleRe, function(m) {\n var selector = m[2];\n var content = '';\n var suffix = m[4];\n var contentPrefix = '';\n if (lang_1.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 exports.processRules = processRules;\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 = lang_1.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 } 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})(require('process'));\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar StyleWithImports = (function() {\n function StyleWithImports(style, styleUrls) {\n this.style = style;\n this.styleUrls = styleUrls;\n }\n return StyleWithImports;\n})();\nexports.StyleWithImports = StyleWithImports;\nfunction isStyleUrlResolvable(url) {\n if (lang_1.isBlank(url) || url.length === 0 || url[0] == '/')\n return false;\n var schemeMatch = lang_1.RegExpWrapper.firstMatch(_urlWithSchemaRe, url);\n return lang_1.isBlank(schemeMatch) || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';\n}\nexports.isStyleUrlResolvable = isStyleUrlResolvable;\nfunction extractStyleUrls(resolver, baseUrl, cssText) {\n var foundUrls = [];\n var modifiedCssText = lang_1.StringWrapper.replaceAllMapped(cssText, _cssImportRe, function(m) {\n var url = lang_1.isPresent(m[1]) ? m[1] : m[2];\n if (!isStyleUrlResolvable(url)) {\n return m[0];\n }\n foundUrls.push(resolver.resolve(baseUrl, url));\n return '';\n });\n return new StyleWithImports(modifiedCssText, foundUrls);\n}\nexports.extractStyleUrls = extractStyleUrls;\nvar _cssImportRe = /@import\\s+(?:url\\()?\\s*(?:(?:['\"]([^'\"]*))|([^;\\)\\s]*))[^;]*;?/g;\nvar _urlWithSchemaRe = /^([a-zA-Z\\-\\+\\.]+):/g;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar source_module_1 = require('./source_module');\nvar view_1 = require('../core/metadata/view');\nvar xhr_1 = require('./xhr');\nvar lang_1 = require('../facade/lang');\nvar async_1 = require('../facade/async');\nvar shadow_css_1 = require('./shadow_css');\nvar url_resolver_1 = require('./url_resolver');\nvar style_url_resolver_1 = require('./style_url_resolver');\nvar util_1 = require('./util');\nvar di_1 = require('../core/di');\nvar COMPONENT_VARIABLE = '%COMP%';\nvar HOST_ATTR = \"_nghost-\" + COMPONENT_VARIABLE;\nvar CONTENT_ATTR = \"_ngcontent-\" + COMPONENT_VARIABLE;\nvar StyleCompiler = (function() {\n function StyleCompiler(_xhr, _urlResolver) {\n this._xhr = _xhr;\n this._urlResolver = _urlResolver;\n this._styleCache = new Map();\n this._shadowCss = new shadow_css_1.ShadowCss();\n }\n StyleCompiler.prototype.compileComponentRuntime = function(template) {\n var styles = template.styles;\n var styleAbsUrls = template.styleUrls;\n return this._loadStyles(styles, styleAbsUrls, template.encapsulation === view_1.ViewEncapsulation.Emulated);\n };\n StyleCompiler.prototype.compileComponentCodeGen = function(template) {\n var shim = template.encapsulation === view_1.ViewEncapsulation.Emulated;\n return this._styleCodeGen(template.styles, template.styleUrls, shim);\n };\n StyleCompiler.prototype.compileStylesheetCodeGen = function(stylesheetUrl, cssText) {\n var styleWithImports = style_url_resolver_1.extractStyleUrls(this._urlResolver, stylesheetUrl, cssText);\n return [this._styleModule(stylesheetUrl, false, this._styleCodeGen([styleWithImports.style], styleWithImports.styleUrls, false)), this._styleModule(stylesheetUrl, true, this._styleCodeGen([styleWithImports.style], styleWithImports.styleUrls, true))];\n };\n StyleCompiler.prototype.clearCache = function() {\n this._styleCache.clear();\n };\n StyleCompiler.prototype._loadStyles = function(plainStyles, absUrls, encapsulate) {\n var _this = this;\n var promises = absUrls.map(function(absUrl) {\n var cacheKey = \"\" + absUrl + (encapsulate ? '.shim' : '');\n var result = _this._styleCache.get(cacheKey);\n if (lang_1.isBlank(result)) {\n result = _this._xhr.get(absUrl).then(function(style) {\n var styleWithImports = style_url_resolver_1.extractStyleUrls(_this._urlResolver, absUrl, style);\n return _this._loadStyles([styleWithImports.style], styleWithImports.styleUrls, encapsulate);\n });\n _this._styleCache.set(cacheKey, result);\n }\n return result;\n });\n return async_1.PromiseWrapper.all(promises).then(function(nestedStyles) {\n var result = plainStyles.map(function(plainStyle) {\n return _this._shimIfNeeded(plainStyle, encapsulate);\n });\n nestedStyles.forEach(function(styles) {\n return result.push(styles);\n });\n return result;\n });\n };\n StyleCompiler.prototype._styleCodeGen = function(plainStyles, absUrls, shim) {\n var _this = this;\n var arrayPrefix = lang_1.IS_DART ? \"const\" : '';\n var styleExpressions = plainStyles.map(function(plainStyle) {\n return util_1.escapeSingleQuoteString(_this._shimIfNeeded(plainStyle, shim));\n });\n for (var i = 0; i < absUrls.length; i++) {\n var moduleUrl = this._createModuleUrl(absUrls[i], shim);\n styleExpressions.push(source_module_1.moduleRef(moduleUrl) + \"STYLES\");\n }\n var expressionSource = arrayPrefix + \" [\" + styleExpressions.join(',') + \"]\";\n return new source_module_1.SourceExpression([], expressionSource);\n };\n StyleCompiler.prototype._styleModule = function(stylesheetUrl, shim, expression) {\n var moduleSource = \"\\n \" + expression.declarations.join('\\n') + \"\\n \" + util_1.codeGenExportVariable('STYLES') + expression.expression + \";\\n \";\n return new source_module_1.SourceModule(this._createModuleUrl(stylesheetUrl, shim), moduleSource);\n };\n StyleCompiler.prototype._shimIfNeeded = function(style, shim) {\n return shim ? this._shadowCss.shimCssText(style, CONTENT_ATTR, HOST_ATTR) : style;\n };\n StyleCompiler.prototype._createModuleUrl = function(stylesheetUrl, shim) {\n return shim ? stylesheetUrl + \".shim\" + util_1.MODULE_SUFFIX : \"\" + stylesheetUrl + util_1.MODULE_SUFFIX;\n };\n StyleCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [xhr_1.XHR, url_resolver_1.UrlResolver])], StyleCompiler);\n return StyleCompiler;\n})();\nexports.StyleCompiler = StyleCompiler;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../facade/lang');\nvar collection_1 = require('../facade/collection');\nvar template_ast_1 = require('./template_ast');\nvar source_module_1 = require('./source_module');\nvar view_1 = require('../core/linker/view');\nvar view_type_1 = require('../core/linker/view_type');\nvar element_1 = require('../core/linker/element');\nvar view_2 = require('../core/metadata/view');\nvar util_1 = require('./util');\nvar di_1 = require('../core/di');\nvar proto_view_compiler_1 = require('./proto_view_compiler');\nexports.VIEW_JIT_IMPORTS = lang_1.CONST_EXPR({\n 'AppView': view_1.AppView,\n 'AppElement': element_1.AppElement,\n 'flattenNestedViewRenderNodes': view_1.flattenNestedViewRenderNodes,\n 'checkSlotCount': view_1.checkSlotCount\n});\nvar ViewCompiler = (function() {\n function ViewCompiler() {}\n ViewCompiler.prototype.compileComponentRuntime = function(component, template, styles, protoViews, changeDetectorFactories, componentViewFactory) {\n var viewFactory = new RuntimeViewFactory(component, styles, protoViews, changeDetectorFactories, componentViewFactory);\n return viewFactory.createViewFactory(template, 0, []);\n };\n ViewCompiler.prototype.compileComponentCodeGen = function(component, template, styles, protoViews, changeDetectorFactoryExpressions, componentViewFactory) {\n var viewFactory = new CodeGenViewFactory(component, styles, protoViews, changeDetectorFactoryExpressions, componentViewFactory);\n var targetStatements = [];\n var viewFactoryExpression = viewFactory.createViewFactory(template, 0, targetStatements);\n return new source_module_1.SourceExpression(targetStatements.map(function(stmt) {\n return stmt.statement;\n }), viewFactoryExpression.expression);\n };\n ViewCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], ViewCompiler);\n return ViewCompiler;\n})();\nexports.ViewCompiler = ViewCompiler;\nvar CodeGenViewFactory = (function() {\n function CodeGenViewFactory(component, styles, protoViews, changeDetectorExpressions, componentViewFactory) {\n this.component = component;\n this.styles = styles;\n this.protoViews = protoViews;\n this.changeDetectorExpressions = changeDetectorExpressions;\n this.componentViewFactory = componentViewFactory;\n this._nextVarId = 0;\n }\n CodeGenViewFactory.prototype._nextVar = function(prefix) {\n return \"\" + prefix + this._nextVarId++ + \"_\" + this.component.type.name;\n };\n CodeGenViewFactory.prototype._nextRenderVar = function() {\n return this._nextVar('render');\n };\n CodeGenViewFactory.prototype._nextAppVar = function() {\n return this._nextVar('app');\n };\n CodeGenViewFactory.prototype._nextDisposableVar = function() {\n return \"disposable\" + this._nextVarId++ + \"_\" + this.component.type.name;\n };\n CodeGenViewFactory.prototype.createText = function(renderer, parent, text, targetStatements) {\n var varName = this._nextRenderVar();\n var statement = \"var \" + varName + \" = \" + renderer.expression + \".createText(\" + (lang_1.isPresent(parent) ? parent.expression : null) + \", \" + util_1.escapeSingleQuoteString(text) + \");\";\n targetStatements.push(new util_1.Statement(statement));\n return new util_1.Expression(varName);\n };\n CodeGenViewFactory.prototype.createElement = function(renderer, parentRenderNode, name, rootSelector, targetStatements) {\n var varName = this._nextRenderVar();\n var valueExpr;\n if (lang_1.isPresent(rootSelector)) {\n valueExpr = rootSelector.expression + \" == null ?\\n \" + renderer.expression + \".createElement(\" + (lang_1.isPresent(parentRenderNode) ? parentRenderNode.expression : null) + \", \" + util_1.escapeSingleQuoteString(name) + \") :\\n \" + renderer.expression + \".selectRootElement(\" + rootSelector.expression + \");\";\n } else {\n valueExpr = renderer.expression + \".createElement(\" + (lang_1.isPresent(parentRenderNode) ? parentRenderNode.expression : null) + \", \" + util_1.escapeSingleQuoteString(name) + \")\";\n }\n var statement = \"var \" + varName + \" = \" + valueExpr + \";\";\n targetStatements.push(new util_1.Statement(statement));\n return new util_1.Expression(varName);\n };\n CodeGenViewFactory.prototype.createTemplateAnchor = function(renderer, parentRenderNode, targetStatements) {\n var varName = this._nextRenderVar();\n var valueExpr = renderer.expression + \".createTemplateAnchor(\" + (lang_1.isPresent(parentRenderNode) ? parentRenderNode.expression : null) + \");\";\n targetStatements.push(new util_1.Statement(\"var \" + varName + \" = \" + valueExpr));\n return new util_1.Expression(varName);\n };\n CodeGenViewFactory.prototype.createGlobalEventListener = function(renderer, appView, boundElementIndex, eventAst, targetStatements) {\n var disposableVar = this._nextDisposableVar();\n var eventHandlerExpr = codeGenEventHandler(appView, boundElementIndex, eventAst.fullName);\n targetStatements.push(new util_1.Statement(\"var \" + disposableVar + \" = \" + renderer.expression + \".listenGlobal(\" + util_1.escapeValue(eventAst.target) + \", \" + util_1.escapeValue(eventAst.name) + \", \" + eventHandlerExpr + \");\"));\n return new util_1.Expression(disposableVar);\n };\n CodeGenViewFactory.prototype.createElementEventListener = function(renderer, appView, boundElementIndex, renderNode, eventAst, targetStatements) {\n var disposableVar = this._nextDisposableVar();\n var eventHandlerExpr = codeGenEventHandler(appView, boundElementIndex, eventAst.fullName);\n targetStatements.push(new util_1.Statement(\"var \" + disposableVar + \" = \" + renderer.expression + \".listen(\" + renderNode.expression + \", \" + util_1.escapeValue(eventAst.name) + \", \" + eventHandlerExpr + \");\"));\n return new util_1.Expression(disposableVar);\n };\n CodeGenViewFactory.prototype.setElementAttribute = function(renderer, renderNode, attrName, attrValue, targetStatements) {\n targetStatements.push(new util_1.Statement(renderer.expression + \".setElementAttribute(\" + renderNode.expression + \", \" + util_1.escapeSingleQuoteString(attrName) + \", \" + util_1.escapeSingleQuoteString(attrValue) + \");\"));\n };\n CodeGenViewFactory.prototype.createAppElement = function(appProtoEl, appView, renderNode, parentAppEl, embeddedViewFactory, targetStatements) {\n var appVar = this._nextAppVar();\n var varValue = \"new \" + proto_view_compiler_1.APP_EL_MODULE_REF + \"AppElement(\" + appProtoEl.expression + \", \" + appView.expression + \",\\n \" + (lang_1.isPresent(parentAppEl) ? parentAppEl.expression : null) + \", \" + renderNode.expression + \", \" + (lang_1.isPresent(embeddedViewFactory) ? embeddedViewFactory.expression : null) + \")\";\n targetStatements.push(new util_1.Statement(\"var \" + appVar + \" = \" + varValue + \";\"));\n return new util_1.Expression(appVar);\n };\n CodeGenViewFactory.prototype.createAndSetComponentView = function(renderer, viewManager, view, appEl, component, contentNodesByNgContentIndex, targetStatements) {\n var codeGenContentNodes;\n if (this.component.type.isHost) {\n codeGenContentNodes = view.expression + \".projectableNodes\";\n } else {\n codeGenContentNodes = \"[\" + contentNodesByNgContentIndex.map(function(nodes) {\n return util_1.codeGenFlatArray(nodes);\n }).join(',') + \"]\";\n }\n targetStatements.push(new util_1.Statement(this.componentViewFactory(component) + \"(\" + renderer.expression + \", \" + viewManager.expression + \", \" + appEl.expression + \", \" + codeGenContentNodes + \", null, null, null);\"));\n };\n CodeGenViewFactory.prototype.getProjectedNodes = function(projectableNodes, ngContentIndex) {\n return new util_1.Expression(projectableNodes.expression + \"[\" + ngContentIndex + \"]\", true);\n };\n CodeGenViewFactory.prototype.appendProjectedNodes = function(renderer, parent, nodes, targetStatements) {\n targetStatements.push(new util_1.Statement(renderer.expression + \".projectNodes(\" + parent.expression + \", \" + proto_view_compiler_1.APP_VIEW_MODULE_REF + \"flattenNestedViewRenderNodes(\" + nodes.expression + \"));\"));\n };\n CodeGenViewFactory.prototype.createViewFactory = function(asts, embeddedTemplateIndex, targetStatements) {\n var compileProtoView = this.protoViews[embeddedTemplateIndex];\n var isHostView = this.component.type.isHost;\n var isComponentView = embeddedTemplateIndex === 0 && !isHostView;\n var visitor = new ViewBuilderVisitor(new util_1.Expression('renderer'), new util_1.Expression('viewManager'), new util_1.Expression('projectableNodes'), isHostView ? new util_1.Expression('rootSelector') : null, new util_1.Expression('view'), compileProtoView, targetStatements, this);\n template_ast_1.templateVisitAll(visitor, asts, new ParentElement(isComponentView ? new util_1.Expression('parentRenderNode') : null, null, null));\n var appProtoView = compileProtoView.protoView.expression;\n var viewFactoryName = codeGenViewFactoryName(this.component, embeddedTemplateIndex);\n var changeDetectorFactory = this.changeDetectorExpressions.expressions[embeddedTemplateIndex];\n var factoryArgs = ['parentRenderer', 'viewManager', 'containerEl', 'projectableNodes', 'rootSelector', 'dynamicallyCreatedProviders', 'rootInjector'];\n var initRendererStmts = [];\n var rendererExpr = \"parentRenderer\";\n if (embeddedTemplateIndex === 0) {\n var renderCompTypeVar = this._nextVar('renderType');\n targetStatements.push(new util_1.Statement(\"var \" + renderCompTypeVar + \" = null;\"));\n var stylesVar = this._nextVar('styles');\n targetStatements.push(new util_1.Statement(util_1.CONST_VAR + \" \" + stylesVar + \" = \" + this.styles.expression + \";\"));\n var encapsulation = this.component.template.encapsulation;\n initRendererStmts.push(\"if (\" + renderCompTypeVar + \" == null) {\\n \" + renderCompTypeVar + \" = viewManager.createRenderComponentType(\" + codeGenViewEncapsulation(encapsulation) + \", \" + stylesVar + \");\\n }\");\n rendererExpr = \"parentRenderer.renderComponent(\" + renderCompTypeVar + \")\";\n }\n var statement = \"\\n\" + util_1.codeGenFnHeader(factoryArgs, viewFactoryName) + \"{\\n \" + initRendererStmts.join('\\n') + \"\\n var renderer = \" + rendererExpr + \";\\n var view = new \" + proto_view_compiler_1.APP_VIEW_MODULE_REF + \"AppView(\\n \" + appProtoView + \", renderer, viewManager,\\n projectableNodes,\\n containerEl,\\n dynamicallyCreatedProviders, rootInjector,\\n \" + changeDetectorFactory + \"()\\n );\\n \" + proto_view_compiler_1.APP_VIEW_MODULE_REF + \"checkSlotCount(\" + util_1.escapeValue(this.component.type.name) + \", \" + this.component.template.ngContentSelectors.length + \", projectableNodes);\\n \" + (isComponentView ? 'var parentRenderNode = renderer.createViewRoot(view.containerAppElement.nativeElement);' : '') + \"\\n \" + visitor.renderStmts.map(function(stmt) {\n return stmt.statement;\n }).join('\\n') + \"\\n \" + visitor.appStmts.map(function(stmt) {\n return stmt.statement;\n }).join('\\n') + \"\\n\\n view.init(\" + util_1.codeGenFlatArray(visitor.rootNodesOrAppElements) + \", \" + util_1.codeGenArray(visitor.renderNodes) + \", \" + util_1.codeGenArray(visitor.appDisposables) + \",\\n \" + util_1.codeGenArray(visitor.appElements) + \");\\n return view;\\n}\";\n targetStatements.push(new util_1.Statement(statement));\n return new util_1.Expression(viewFactoryName);\n };\n return CodeGenViewFactory;\n})();\nvar RuntimeViewFactory = (function() {\n function RuntimeViewFactory(component, styles, protoViews, changeDetectorFactories, componentViewFactory) {\n this.component = component;\n this.styles = styles;\n this.protoViews = protoViews;\n this.changeDetectorFactories = changeDetectorFactories;\n this.componentViewFactory = componentViewFactory;\n }\n RuntimeViewFactory.prototype.createText = function(renderer, parent, text, targetStatements) {\n return renderer.createText(parent, text);\n };\n RuntimeViewFactory.prototype.createElement = function(renderer, parent, name, rootSelector, targetStatements) {\n var el;\n if (lang_1.isPresent(rootSelector)) {\n el = renderer.selectRootElement(rootSelector);\n } else {\n el = renderer.createElement(parent, name);\n }\n return el;\n };\n RuntimeViewFactory.prototype.createTemplateAnchor = function(renderer, parent, targetStatements) {\n return renderer.createTemplateAnchor(parent);\n };\n RuntimeViewFactory.prototype.createGlobalEventListener = function(renderer, appView, boundElementIndex, eventAst, targetStatements) {\n return renderer.listenGlobal(eventAst.target, eventAst.name, function(event) {\n return appView.triggerEventHandlers(eventAst.fullName, event, boundElementIndex);\n });\n };\n RuntimeViewFactory.prototype.createElementEventListener = function(renderer, appView, boundElementIndex, renderNode, eventAst, targetStatements) {\n return renderer.listen(renderNode, eventAst.name, function(event) {\n return appView.triggerEventHandlers(eventAst.fullName, event, boundElementIndex);\n });\n };\n RuntimeViewFactory.prototype.setElementAttribute = function(renderer, renderNode, attrName, attrValue, targetStatements) {\n renderer.setElementAttribute(renderNode, attrName, attrValue);\n };\n RuntimeViewFactory.prototype.createAppElement = function(appProtoEl, appView, renderNode, parentAppEl, embeddedViewFactory, targetStatements) {\n return new element_1.AppElement(appProtoEl, appView, parentAppEl, renderNode, embeddedViewFactory);\n };\n RuntimeViewFactory.prototype.createAndSetComponentView = function(renderer, viewManager, appView, appEl, component, contentNodesByNgContentIndex, targetStatements) {\n var flattenedContentNodes;\n if (this.component.type.isHost) {\n flattenedContentNodes = appView.projectableNodes;\n } else {\n flattenedContentNodes = collection_1.ListWrapper.createFixedSize(contentNodesByNgContentIndex.length);\n for (var i = 0; i < contentNodesByNgContentIndex.length; i++) {\n flattenedContentNodes[i] = util_1.flattenArray(contentNodesByNgContentIndex[i], []);\n }\n }\n this.componentViewFactory(component)(renderer, viewManager, appEl, flattenedContentNodes);\n };\n RuntimeViewFactory.prototype.getProjectedNodes = function(projectableNodes, ngContentIndex) {\n return projectableNodes[ngContentIndex];\n };\n RuntimeViewFactory.prototype.appendProjectedNodes = function(renderer, parent, nodes, targetStatements) {\n renderer.projectNodes(parent, view_1.flattenNestedViewRenderNodes(nodes));\n };\n RuntimeViewFactory.prototype.createViewFactory = function(asts, embeddedTemplateIndex, targetStatements) {\n var _this = this;\n var compileProtoView = this.protoViews[embeddedTemplateIndex];\n var isComponentView = compileProtoView.protoView.type === view_type_1.ViewType.COMPONENT;\n var renderComponentType = null;\n return function(parentRenderer, viewManager, containerEl, projectableNodes, rootSelector, dynamicallyCreatedProviders, rootInjector) {\n if (rootSelector === void 0) {\n rootSelector = null;\n }\n if (dynamicallyCreatedProviders === void 0) {\n dynamicallyCreatedProviders = null;\n }\n if (rootInjector === void 0) {\n rootInjector = null;\n }\n view_1.checkSlotCount(_this.component.type.name, _this.component.template.ngContentSelectors.length, projectableNodes);\n var renderer;\n if (embeddedTemplateIndex === 0) {\n if (lang_1.isBlank(renderComponentType)) {\n renderComponentType = viewManager.createRenderComponentType(_this.component.template.encapsulation, _this.styles);\n }\n renderer = parentRenderer.renderComponent(renderComponentType);\n } else {\n renderer = parentRenderer;\n }\n var changeDetector = _this.changeDetectorFactories[embeddedTemplateIndex]();\n var view = new view_1.AppView(compileProtoView.protoView, renderer, viewManager, projectableNodes, containerEl, dynamicallyCreatedProviders, rootInjector, changeDetector);\n var visitor = new ViewBuilderVisitor(renderer, viewManager, projectableNodes, rootSelector, view, compileProtoView, [], _this);\n var parentRenderNode = isComponentView ? renderer.createViewRoot(containerEl.nativeElement) : null;\n template_ast_1.templateVisitAll(visitor, asts, new ParentElement(parentRenderNode, null, null));\n view.init(util_1.flattenArray(visitor.rootNodesOrAppElements, []), visitor.renderNodes, visitor.appDisposables, visitor.appElements);\n return view;\n };\n };\n return RuntimeViewFactory;\n})();\nvar ParentElement = (function() {\n function ParentElement(renderNode, appEl, component) {\n this.renderNode = renderNode;\n this.appEl = appEl;\n this.component = component;\n if (lang_1.isPresent(component)) {\n this.contentNodesByNgContentIndex = collection_1.ListWrapper.createFixedSize(component.template.ngContentSelectors.length);\n for (var i = 0; i < this.contentNodesByNgContentIndex.length; i++) {\n this.contentNodesByNgContentIndex[i] = [];\n }\n } else {\n this.contentNodesByNgContentIndex = null;\n }\n }\n ParentElement.prototype.addContentNode = function(ngContentIndex, nodeExpr) {\n this.contentNodesByNgContentIndex[ngContentIndex].push(nodeExpr);\n };\n return ParentElement;\n})();\nvar ViewBuilderVisitor = (function() {\n function ViewBuilderVisitor(renderer, viewManager, projectableNodes, rootSelector, view, protoView, targetStatements, factory) {\n this.renderer = renderer;\n this.viewManager = viewManager;\n this.projectableNodes = projectableNodes;\n this.rootSelector = rootSelector;\n this.view = view;\n this.protoView = protoView;\n this.targetStatements = targetStatements;\n this.factory = factory;\n this.renderStmts = [];\n this.renderNodes = [];\n this.appStmts = [];\n this.appElements = [];\n this.appDisposables = [];\n this.rootNodesOrAppElements = [];\n this.elementCount = 0;\n }\n ViewBuilderVisitor.prototype._addRenderNode = function(renderNode, appEl, ngContentIndex, parent) {\n this.renderNodes.push(renderNode);\n if (lang_1.isPresent(parent.component)) {\n if (lang_1.isPresent(ngContentIndex)) {\n parent.addContentNode(ngContentIndex, lang_1.isPresent(appEl) ? appEl : renderNode);\n }\n } else if (lang_1.isBlank(parent.renderNode)) {\n this.rootNodesOrAppElements.push(lang_1.isPresent(appEl) ? appEl : renderNode);\n }\n };\n ViewBuilderVisitor.prototype._getParentRenderNode = function(ngContentIndex, parent) {\n return lang_1.isPresent(parent.component) && parent.component.template.encapsulation !== view_2.ViewEncapsulation.Native ? null : parent.renderNode;\n };\n ViewBuilderVisitor.prototype.visitBoundText = function(ast, parent) {\n return this._visitText('', ast.ngContentIndex, parent);\n };\n ViewBuilderVisitor.prototype.visitText = function(ast, parent) {\n return this._visitText(ast.value, ast.ngContentIndex, parent);\n };\n ViewBuilderVisitor.prototype._visitText = function(value, ngContentIndex, parent) {\n var renderNode = this.factory.createText(this.renderer, this._getParentRenderNode(ngContentIndex, parent), value, this.renderStmts);\n this._addRenderNode(renderNode, null, ngContentIndex, parent);\n return null;\n };\n ViewBuilderVisitor.prototype.visitNgContent = function(ast, parent) {\n var nodesExpression = this.factory.getProjectedNodes(this.projectableNodes, ast.index);\n if (lang_1.isPresent(parent.component)) {\n if (lang_1.isPresent(ast.ngContentIndex)) {\n parent.addContentNode(ast.ngContentIndex, nodesExpression);\n }\n } else {\n if (lang_1.isPresent(parent.renderNode)) {\n this.factory.appendProjectedNodes(this.renderer, parent.renderNode, nodesExpression, this.renderStmts);\n } else {\n this.rootNodesOrAppElements.push(nodesExpression);\n }\n }\n return null;\n };\n ViewBuilderVisitor.prototype.visitElement = function(ast, parent) {\n var _this = this;\n var renderNode = this.factory.createElement(this.renderer, this._getParentRenderNode(ast.ngContentIndex, parent), ast.name, this.rootSelector, this.renderStmts);\n var component = ast.getComponent();\n var elementIndex = this.elementCount++;\n var protoEl = this.protoView.protoElements[elementIndex];\n protoEl.renderEvents.forEach(function(eventAst) {\n var disposable;\n if (lang_1.isPresent(eventAst.target)) {\n disposable = _this.factory.createGlobalEventListener(_this.renderer, _this.view, protoEl.boundElementIndex, eventAst, _this.renderStmts);\n } else {\n disposable = _this.factory.createElementEventListener(_this.renderer, _this.view, protoEl.boundElementIndex, renderNode, eventAst, _this.renderStmts);\n }\n _this.appDisposables.push(disposable);\n });\n for (var i = 0; i < protoEl.attrNameAndValues.length; i++) {\n var attrName = protoEl.attrNameAndValues[i][0];\n var attrValue = protoEl.attrNameAndValues[i][1];\n this.factory.setElementAttribute(this.renderer, renderNode, attrName, attrValue, this.renderStmts);\n }\n var appEl = null;\n if (lang_1.isPresent(protoEl.appProtoEl)) {\n appEl = this.factory.createAppElement(protoEl.appProtoEl, this.view, renderNode, parent.appEl, null, this.appStmts);\n this.appElements.push(appEl);\n }\n this._addRenderNode(renderNode, appEl, ast.ngContentIndex, parent);\n var newParent = new ParentElement(renderNode, lang_1.isPresent(appEl) ? appEl : parent.appEl, component);\n template_ast_1.templateVisitAll(this, ast.children, newParent);\n if (lang_1.isPresent(appEl) && lang_1.isPresent(component)) {\n this.factory.createAndSetComponentView(this.renderer, this.viewManager, this.view, appEl, component, newParent.contentNodesByNgContentIndex, this.appStmts);\n }\n return null;\n };\n ViewBuilderVisitor.prototype.visitEmbeddedTemplate = function(ast, parent) {\n var renderNode = this.factory.createTemplateAnchor(this.renderer, this._getParentRenderNode(ast.ngContentIndex, parent), this.renderStmts);\n var elementIndex = this.elementCount++;\n var protoEl = this.protoView.protoElements[elementIndex];\n var embeddedViewFactory = this.factory.createViewFactory(ast.children, protoEl.embeddedTemplateIndex, this.targetStatements);\n var appEl = this.factory.createAppElement(protoEl.appProtoEl, this.view, renderNode, parent.appEl, embeddedViewFactory, this.appStmts);\n this._addRenderNode(renderNode, appEl, ast.ngContentIndex, parent);\n this.appElements.push(appEl);\n return null;\n };\n ViewBuilderVisitor.prototype.visitVariable = function(ast, ctx) {\n return null;\n };\n ViewBuilderVisitor.prototype.visitAttr = function(ast, ctx) {\n return null;\n };\n ViewBuilderVisitor.prototype.visitDirective = function(ast, ctx) {\n return null;\n };\n ViewBuilderVisitor.prototype.visitEvent = function(ast, ctx) {\n return null;\n };\n ViewBuilderVisitor.prototype.visitDirectiveProperty = function(ast, context) {\n return null;\n };\n ViewBuilderVisitor.prototype.visitElementProperty = function(ast, context) {\n return null;\n };\n return ViewBuilderVisitor;\n})();\nfunction codeGenEventHandler(view, boundElementIndex, eventName) {\n return util_1.codeGenValueFn(['event'], view.expression + \".triggerEventHandlers(\" + util_1.escapeValue(eventName) + \", event, \" + boundElementIndex + \")\");\n}\nfunction codeGenViewFactoryName(component, embeddedTemplateIndex) {\n return \"viewFactory_\" + component.type.name + embeddedTemplateIndex;\n}\nfunction codeGenViewEncapsulation(value) {\n if (lang_1.IS_DART) {\n return \"\" + proto_view_compiler_1.METADATA_MODULE_REF + value;\n } else {\n return \"\" + value;\n }\n}\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar 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) {\n return visitor.visitText(this, context);\n };\n return TextAst;\n})();\nexports.TextAst = TextAst;\nvar 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})();\nexports.BoundTextAst = BoundTextAst;\nvar 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) {\n return visitor.visitAttr(this, context);\n };\n return AttrAst;\n})();\nexports.AttrAst = AttrAst;\nvar BoundElementPropertyAst = (function() {\n function BoundElementPropertyAst(name, type, value, unit, sourceSpan) {\n this.name = name;\n this.type = type;\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})();\nexports.BoundElementPropertyAst = BoundElementPropertyAst;\nvar 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 (lang_1.isPresent(this.target)) {\n return this.target + \":\" + this.name;\n } else {\n return this.name;\n }\n },\n enumerable: true,\n configurable: true\n });\n return BoundEventAst;\n})();\nexports.BoundEventAst = BoundEventAst;\nvar 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})();\nexports.VariableAst = VariableAst;\nvar ElementAst = (function() {\n function ElementAst(name, attrs, inputs, outputs, exportAsVars, directives, children, ngContentIndex, sourceSpan) {\n this.name = name;\n this.attrs = attrs;\n this.inputs = inputs;\n this.outputs = outputs;\n this.exportAsVars = exportAsVars;\n this.directives = directives;\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 ElementAst.prototype.isBound = function() {\n return (this.inputs.length > 0 || this.outputs.length > 0 || this.exportAsVars.length > 0 || this.directives.length > 0);\n };\n ElementAst.prototype.getComponent = function() {\n return this.directives.length > 0 && this.directives[0].directive.isComponent ? this.directives[0].directive : null;\n };\n return ElementAst;\n})();\nexports.ElementAst = ElementAst;\nvar EmbeddedTemplateAst = (function() {\n function EmbeddedTemplateAst(attrs, outputs, vars, directives, children, ngContentIndex, sourceSpan) {\n this.attrs = attrs;\n this.outputs = outputs;\n this.vars = vars;\n this.directives = directives;\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})();\nexports.EmbeddedTemplateAst = EmbeddedTemplateAst;\nvar 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})();\nexports.BoundDirectivePropertyAst = BoundDirectivePropertyAst;\nvar DirectiveAst = (function() {\n function DirectiveAst(directive, inputs, hostProperties, hostEvents, exportAsVars, sourceSpan) {\n this.directive = directive;\n this.inputs = inputs;\n this.hostProperties = hostProperties;\n this.hostEvents = hostEvents;\n this.exportAsVars = exportAsVars;\n this.sourceSpan = sourceSpan;\n }\n DirectiveAst.prototype.visit = function(visitor, context) {\n return visitor.visitDirective(this, context);\n };\n return DirectiveAst;\n})();\nexports.DirectiveAst = DirectiveAst;\nvar 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})();\nexports.NgContentAst = NgContentAst;\n(function(PropertyBindingType) {\n PropertyBindingType[PropertyBindingType[\"Property\"] = 0] = \"Property\";\n PropertyBindingType[PropertyBindingType[\"Attribute\"] = 1] = \"Attribute\";\n PropertyBindingType[PropertyBindingType[\"Class\"] = 2] = \"Class\";\n PropertyBindingType[PropertyBindingType[\"Style\"] = 3] = \"Style\";\n})(exports.PropertyBindingType || (exports.PropertyBindingType = {}));\nvar PropertyBindingType = exports.PropertyBindingType;\nfunction templateVisitAll(visitor, asts, context) {\n if (context === void 0) {\n context = null;\n }\n var result = [];\n asts.forEach(function(ast) {\n var astResult = ast.visit(visitor, context);\n if (lang_1.isPresent(astResult)) {\n result.push(astResult);\n }\n });\n return result;\n}\nexports.templateVisitAll = templateVisitAll;\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar MODULE_REGEXP = /#MODULE\\[([^\\]]*)\\]/g;\nfunction moduleRef(moduleUrl) {\n return \"#MODULE[\" + moduleUrl + \"]\";\n}\nexports.moduleRef = moduleRef;\nvar SourceModule = (function() {\n function SourceModule(moduleUrl, sourceWithModuleRefs) {\n this.moduleUrl = moduleUrl;\n this.sourceWithModuleRefs = sourceWithModuleRefs;\n }\n SourceModule.getSourceWithoutImports = function(sourceWithModuleRefs) {\n return lang_1.StringWrapper.replaceAllMapped(sourceWithModuleRefs, MODULE_REGEXP, function(match) {\n return '';\n });\n };\n SourceModule.prototype.getSourceWithImports = function() {\n var _this = this;\n var moduleAliases = {};\n var imports = [];\n var newSource = lang_1.StringWrapper.replaceAllMapped(this.sourceWithModuleRefs, MODULE_REGEXP, function(match) {\n var moduleUrl = match[1];\n var alias = moduleAliases[moduleUrl];\n if (lang_1.isBlank(alias)) {\n if (moduleUrl == _this.moduleUrl) {\n alias = '';\n } else {\n alias = \"import\" + imports.length;\n imports.push([moduleUrl, alias]);\n }\n moduleAliases[moduleUrl] = alias;\n }\n return alias.length > 0 ? alias + \".\" : '';\n });\n return new SourceWithImports(newSource, imports);\n };\n return SourceModule;\n})();\nexports.SourceModule = SourceModule;\nvar SourceExpression = (function() {\n function SourceExpression(declarations, expression) {\n this.declarations = declarations;\n this.expression = expression;\n }\n return SourceExpression;\n})();\nexports.SourceExpression = SourceExpression;\nvar SourceExpressions = (function() {\n function SourceExpressions(declarations, expressions) {\n this.declarations = declarations;\n this.expressions = expressions;\n }\n return SourceExpressions;\n})();\nexports.SourceExpressions = SourceExpressions;\nvar SourceWithImports = (function() {\n function SourceWithImports(source, imports) {\n this.source = source;\n this.imports = imports;\n }\n return SourceWithImports;\n})();\nexports.SourceWithImports = SourceWithImports;\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar CAMEL_CASE_REGEXP = /([A-Z])/g;\nvar DASH_CASE_REGEXP = /-([a-z])/g;\nvar SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\\\|\\n|\\r|\\$/g;\nvar DOUBLE_QUOTE_ESCAPE_STRING_RE = /\"|\\\\|\\n|\\r|\\$/g;\nexports.MODULE_SUFFIX = lang_1.IS_DART ? '.dart' : '.js';\nexports.CONST_VAR = lang_1.IS_DART ? 'const' : 'var';\nfunction camelCaseToDashCase(input) {\n return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) {\n return '-' + m[1].toLowerCase();\n });\n}\nexports.camelCaseToDashCase = camelCaseToDashCase;\nfunction dashCaseToCamelCase(input) {\n return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function(m) {\n return m[1].toUpperCase();\n });\n}\nexports.dashCaseToCamelCase = dashCaseToCamelCase;\nfunction escapeSingleQuoteString(input) {\n if (lang_1.isBlank(input)) {\n return null;\n }\n return \"'\" + escapeString(input, SINGLE_QUOTE_ESCAPE_STRING_RE) + \"'\";\n}\nexports.escapeSingleQuoteString = escapeSingleQuoteString;\nfunction escapeDoubleQuoteString(input) {\n if (lang_1.isBlank(input)) {\n return null;\n }\n return \"\\\"\" + escapeString(input, DOUBLE_QUOTE_ESCAPE_STRING_RE) + \"\\\"\";\n}\nexports.escapeDoubleQuoteString = escapeDoubleQuoteString;\nfunction escapeString(input, re) {\n return lang_1.StringWrapper.replaceAllMapped(input, re, function(match) {\n if (match[0] == '$') {\n return lang_1.IS_DART ? '\\\\$' : '$';\n } else if (match[0] == '\\n') {\n return '\\\\n';\n } else if (match[0] == '\\r') {\n return '\\\\r';\n } else {\n return \"\\\\\" + match[0];\n }\n });\n}\nfunction codeGenExportVariable(name) {\n if (lang_1.IS_DART) {\n return \"const \" + name + \" = \";\n } else {\n return \"var \" + name + \" = exports['\" + name + \"'] = \";\n }\n}\nexports.codeGenExportVariable = codeGenExportVariable;\nfunction codeGenConstConstructorCall(name) {\n if (lang_1.IS_DART) {\n return \"const \" + name;\n } else {\n return \"new \" + name;\n }\n}\nexports.codeGenConstConstructorCall = codeGenConstConstructorCall;\nfunction codeGenValueFn(params, value, fnName) {\n if (fnName === void 0) {\n fnName = '';\n }\n if (lang_1.IS_DART) {\n return codeGenFnHeader(params, fnName) + \" => \" + value;\n } else {\n return codeGenFnHeader(params, fnName) + \" { return \" + value + \"; }\";\n }\n}\nexports.codeGenValueFn = codeGenValueFn;\nfunction codeGenFnHeader(params, fnName) {\n if (fnName === void 0) {\n fnName = '';\n }\n if (lang_1.IS_DART) {\n return fnName + \"(\" + params.join(',') + \")\";\n } else {\n return \"function \" + fnName + \"(\" + params.join(',') + \")\";\n }\n}\nexports.codeGenFnHeader = codeGenFnHeader;\nfunction codeGenToString(expr) {\n if (lang_1.IS_DART) {\n return \"'${\" + expr + \"}'\";\n } else {\n return expr;\n }\n}\nexports.codeGenToString = codeGenToString;\nfunction splitAtColon(input, defaultValues) {\n var parts = lang_1.StringWrapper.split(input.trim(), /\\s*:\\s*/g);\n if (parts.length > 1) {\n return parts;\n } else {\n return defaultValues;\n }\n}\nexports.splitAtColon = splitAtColon;\nvar Statement = (function() {\n function Statement(statement) {\n this.statement = statement;\n }\n return Statement;\n})();\nexports.Statement = Statement;\nvar Expression = (function() {\n function Expression(expression, isArray) {\n if (isArray === void 0) {\n isArray = false;\n }\n this.expression = expression;\n this.isArray = isArray;\n }\n return Expression;\n})();\nexports.Expression = Expression;\nfunction escapeValue(value) {\n if (value instanceof Expression) {\n return value.expression;\n } else if (lang_1.isString(value)) {\n return escapeSingleQuoteString(value);\n } else if (lang_1.isBlank(value)) {\n return 'null';\n } else {\n return \"\" + value;\n }\n}\nexports.escapeValue = escapeValue;\nfunction codeGenArray(data) {\n return \"[\" + data.map(escapeValue).join(',') + \"]\";\n}\nexports.codeGenArray = codeGenArray;\nfunction codeGenFlatArray(values) {\n var result = '([';\n var isFirstArrayEntry = true;\n var concatFn = lang_1.IS_DART ? '.addAll' : 'concat';\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n if (value instanceof Expression && value.isArray) {\n result += \"]).\" + concatFn + \"(\" + value.expression + \").\" + concatFn + \"([\";\n isFirstArrayEntry = true;\n } else {\n if (!isFirstArrayEntry) {\n result += ',';\n }\n isFirstArrayEntry = false;\n result += escapeValue(value);\n }\n }\n result += '])';\n return result;\n}\nexports.codeGenFlatArray = codeGenFlatArray;\nfunction codeGenStringMap(keyValueArray) {\n return \"{\" + keyValueArray.map(codeGenKeyValue).join(',') + \"}\";\n}\nexports.codeGenStringMap = codeGenStringMap;\nfunction codeGenKeyValue(keyValue) {\n return escapeValue(keyValue[0]) + \":\" + escapeValue(keyValue[1]);\n}\nfunction addAll(source, target) {\n for (var i = 0; i < source.length; i++) {\n target.push(source[i]);\n }\n}\nexports.addAll = addAll;\nfunction flattenArray(source, target) {\n if (lang_1.isPresent(source)) {\n for (var i = 0; i < source.length; i++) {\n var item = source[i];\n if (lang_1.isArray(item)) {\n flattenArray(item, target);\n } else {\n target.push(item);\n }\n }\n }\n return target;\n}\nexports.flattenArray = flattenArray;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../facade/lang');\nvar collection_1 = require('../facade/collection');\nvar template_ast_1 = require('./template_ast');\nvar source_module_1 = require('./source_module');\nvar view_1 = require('../core/linker/view');\nvar view_type_1 = require('../core/linker/view_type');\nvar element_1 = require('../core/linker/element');\nvar util_1 = require('./util');\nvar di_1 = require('../core/di');\nexports.PROTO_VIEW_JIT_IMPORTS = lang_1.CONST_EXPR({\n 'AppProtoView': view_1.AppProtoView,\n 'AppProtoElement': element_1.AppProtoElement,\n 'ViewType': view_type_1.ViewType\n});\nexports.APP_VIEW_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/view' + util_1.MODULE_SUFFIX);\nexports.VIEW_TYPE_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/view_type' + util_1.MODULE_SUFFIX);\nexports.APP_EL_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/linker/element' + util_1.MODULE_SUFFIX);\nexports.METADATA_MODULE_REF = source_module_1.moduleRef('package:angular2/src/core/metadata/view' + util_1.MODULE_SUFFIX);\nvar IMPLICIT_TEMPLATE_VAR = '\\$implicit';\nvar CLASS_ATTR = 'class';\nvar STYLE_ATTR = 'style';\nvar ProtoViewCompiler = (function() {\n function ProtoViewCompiler() {}\n ProtoViewCompiler.prototype.compileProtoViewRuntime = function(metadataCache, component, template, pipes) {\n var protoViewFactory = new RuntimeProtoViewFactory(metadataCache, component, pipes);\n var allProtoViews = [];\n protoViewFactory.createCompileProtoView(template, [], [], allProtoViews);\n return new CompileProtoViews([], allProtoViews);\n };\n ProtoViewCompiler.prototype.compileProtoViewCodeGen = function(resolvedMetadataCacheExpr, component, template, pipes) {\n var protoViewFactory = new CodeGenProtoViewFactory(resolvedMetadataCacheExpr, component, pipes);\n var allProtoViews = [];\n var allStatements = [];\n protoViewFactory.createCompileProtoView(template, [], allStatements, allProtoViews);\n return new CompileProtoViews(allStatements.map(function(stmt) {\n return stmt.statement;\n }), allProtoViews);\n };\n ProtoViewCompiler = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], ProtoViewCompiler);\n return ProtoViewCompiler;\n})();\nexports.ProtoViewCompiler = ProtoViewCompiler;\nvar CompileProtoViews = (function() {\n function CompileProtoViews(declarations, protoViews) {\n this.declarations = declarations;\n this.protoViews = protoViews;\n }\n return CompileProtoViews;\n})();\nexports.CompileProtoViews = CompileProtoViews;\nvar CompileProtoView = (function() {\n function CompileProtoView(embeddedTemplateIndex, protoElements, protoView) {\n this.embeddedTemplateIndex = embeddedTemplateIndex;\n this.protoElements = protoElements;\n this.protoView = protoView;\n }\n return CompileProtoView;\n})();\nexports.CompileProtoView = CompileProtoView;\nvar CompileProtoElement = (function() {\n function CompileProtoElement(boundElementIndex, attrNameAndValues, variableNameAndValues, renderEvents, directives, embeddedTemplateIndex, appProtoEl) {\n this.boundElementIndex = boundElementIndex;\n this.attrNameAndValues = attrNameAndValues;\n this.variableNameAndValues = variableNameAndValues;\n this.renderEvents = renderEvents;\n this.directives = directives;\n this.embeddedTemplateIndex = embeddedTemplateIndex;\n this.appProtoEl = appProtoEl;\n }\n return CompileProtoElement;\n})();\nexports.CompileProtoElement = CompileProtoElement;\nfunction visitAndReturnContext(visitor, asts, context) {\n template_ast_1.templateVisitAll(visitor, asts, context);\n return context;\n}\nvar ProtoViewFactory = (function() {\n function ProtoViewFactory(component) {\n this.component = component;\n }\n ProtoViewFactory.prototype.createCompileProtoView = function(template, templateVariableBindings, targetStatements, targetProtoViews) {\n var embeddedTemplateIndex = targetProtoViews.length;\n targetProtoViews.push(null);\n var builder = new ProtoViewBuilderVisitor(this, targetStatements, targetProtoViews);\n template_ast_1.templateVisitAll(builder, template);\n var viewType = getViewType(this.component, embeddedTemplateIndex);\n var appProtoView = this.createAppProtoView(embeddedTemplateIndex, viewType, templateVariableBindings, targetStatements);\n var cpv = new CompileProtoView(embeddedTemplateIndex, builder.protoElements, appProtoView);\n targetProtoViews[embeddedTemplateIndex] = cpv;\n return cpv;\n };\n return ProtoViewFactory;\n})();\nvar CodeGenProtoViewFactory = (function(_super) {\n __extends(CodeGenProtoViewFactory, _super);\n function CodeGenProtoViewFactory(resolvedMetadataCacheExpr, component, pipes) {\n _super.call(this, component);\n this.resolvedMetadataCacheExpr = resolvedMetadataCacheExpr;\n this.pipes = pipes;\n this._nextVarId = 0;\n }\n CodeGenProtoViewFactory.prototype._nextProtoViewVar = function(embeddedTemplateIndex) {\n return \"appProtoView\" + this._nextVarId++ + \"_\" + this.component.type.name + embeddedTemplateIndex;\n };\n CodeGenProtoViewFactory.prototype.createAppProtoView = function(embeddedTemplateIndex, viewType, templateVariableBindings, targetStatements) {\n var protoViewVarName = this._nextProtoViewVar(embeddedTemplateIndex);\n var viewTypeExpr = codeGenViewType(viewType);\n var pipesExpr = embeddedTemplateIndex === 0 ? codeGenTypesArray(this.pipes.map(function(pipeMeta) {\n return pipeMeta.type;\n })) : null;\n var statement = \"var \" + protoViewVarName + \" = \" + exports.APP_VIEW_MODULE_REF + \"AppProtoView.create(\" + this.resolvedMetadataCacheExpr.expression + \", \" + viewTypeExpr + \", \" + pipesExpr + \", \" + util_1.codeGenStringMap(templateVariableBindings) + \");\";\n targetStatements.push(new util_1.Statement(statement));\n return new util_1.Expression(protoViewVarName);\n };\n CodeGenProtoViewFactory.prototype.createAppProtoElement = function(boundElementIndex, attrNameAndValues, variableNameAndValues, directives, targetStatements) {\n var varName = \"appProtoEl\" + this._nextVarId++ + \"_\" + this.component.type.name;\n var value = exports.APP_EL_MODULE_REF + \"AppProtoElement.create(\\n \" + this.resolvedMetadataCacheExpr.expression + \",\\n \" + boundElementIndex + \",\\n \" + util_1.codeGenStringMap(attrNameAndValues) + \",\\n \" + codeGenDirectivesArray(directives) + \",\\n \" + util_1.codeGenStringMap(variableNameAndValues) + \"\\n )\";\n var statement = \"var \" + varName + \" = \" + value + \";\";\n targetStatements.push(new util_1.Statement(statement));\n return new util_1.Expression(varName);\n };\n return CodeGenProtoViewFactory;\n})(ProtoViewFactory);\nvar RuntimeProtoViewFactory = (function(_super) {\n __extends(RuntimeProtoViewFactory, _super);\n function RuntimeProtoViewFactory(metadataCache, component, pipes) {\n _super.call(this, component);\n this.metadataCache = metadataCache;\n this.pipes = pipes;\n }\n RuntimeProtoViewFactory.prototype.createAppProtoView = function(embeddedTemplateIndex, viewType, templateVariableBindings, targetStatements) {\n var pipes = embeddedTemplateIndex === 0 ? this.pipes.map(function(pipeMeta) {\n return pipeMeta.type.runtime;\n }) : [];\n var templateVars = keyValueArrayToStringMap(templateVariableBindings);\n return view_1.AppProtoView.create(this.metadataCache, viewType, pipes, templateVars);\n };\n RuntimeProtoViewFactory.prototype.createAppProtoElement = function(boundElementIndex, attrNameAndValues, variableNameAndValues, directives, targetStatements) {\n var attrs = keyValueArrayToStringMap(attrNameAndValues);\n return element_1.AppProtoElement.create(this.metadataCache, boundElementIndex, attrs, directives.map(function(dirMeta) {\n return dirMeta.type.runtime;\n }), keyValueArrayToStringMap(variableNameAndValues));\n };\n return RuntimeProtoViewFactory;\n})(ProtoViewFactory);\nvar ProtoViewBuilderVisitor = (function() {\n function ProtoViewBuilderVisitor(factory, allStatements, allProtoViews) {\n this.factory = factory;\n this.allStatements = allStatements;\n this.allProtoViews = allProtoViews;\n this.protoElements = [];\n this.boundElementCount = 0;\n }\n ProtoViewBuilderVisitor.prototype._readAttrNameAndValues = function(directives, attrAsts) {\n var attrs = visitAndReturnContext(this, attrAsts, {});\n directives.forEach(function(directiveMeta) {\n collection_1.StringMapWrapper.forEach(directiveMeta.hostAttributes, function(value, name) {\n var prevValue = attrs[name];\n attrs[name] = lang_1.isPresent(prevValue) ? mergeAttributeValue(name, prevValue, value) : value;\n });\n });\n return mapToKeyValueArray(attrs);\n };\n ProtoViewBuilderVisitor.prototype.visitBoundText = function(ast, context) {\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitText = function(ast, context) {\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitNgContent = function(ast, context) {\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitElement = function(ast, context) {\n var _this = this;\n var boundElementIndex = null;\n if (ast.isBound()) {\n boundElementIndex = this.boundElementCount++;\n }\n var component = ast.getComponent();\n var variableNameAndValues = [];\n if (lang_1.isBlank(component)) {\n ast.exportAsVars.forEach(function(varAst) {\n variableNameAndValues.push([varAst.name, null]);\n });\n }\n var directives = [];\n var renderEvents = visitAndReturnContext(this, ast.outputs, new Map());\n collection_1.ListWrapper.forEachWithIndex(ast.directives, function(directiveAst, index) {\n directiveAst.visit(_this, new DirectiveContext(index, boundElementIndex, renderEvents, variableNameAndValues, directives));\n });\n var renderEventArray = [];\n renderEvents.forEach(function(eventAst, _) {\n return renderEventArray.push(eventAst);\n });\n var attrNameAndValues = this._readAttrNameAndValues(directives, ast.attrs);\n this._addProtoElement(ast.isBound(), boundElementIndex, attrNameAndValues, variableNameAndValues, renderEventArray, directives, null);\n template_ast_1.templateVisitAll(this, ast.children);\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitEmbeddedTemplate = function(ast, context) {\n var _this = this;\n var boundElementIndex = this.boundElementCount++;\n var directives = [];\n collection_1.ListWrapper.forEachWithIndex(ast.directives, function(directiveAst, index) {\n directiveAst.visit(_this, new DirectiveContext(index, boundElementIndex, new Map(), [], directives));\n });\n var attrNameAndValues = this._readAttrNameAndValues(directives, ast.attrs);\n var templateVariableBindings = ast.vars.map(function(varAst) {\n return [varAst.value.length > 0 ? varAst.value : IMPLICIT_TEMPLATE_VAR, varAst.name];\n });\n var nestedProtoView = this.factory.createCompileProtoView(ast.children, templateVariableBindings, this.allStatements, this.allProtoViews);\n this._addProtoElement(true, boundElementIndex, attrNameAndValues, [], [], directives, nestedProtoView.embeddedTemplateIndex);\n return null;\n };\n ProtoViewBuilderVisitor.prototype._addProtoElement = function(isBound, boundElementIndex, attrNameAndValues, variableNameAndValues, renderEvents, directives, embeddedTemplateIndex) {\n var appProtoEl = null;\n if (isBound) {\n appProtoEl = this.factory.createAppProtoElement(boundElementIndex, attrNameAndValues, variableNameAndValues, directives, this.allStatements);\n }\n var compileProtoEl = new CompileProtoElement(boundElementIndex, attrNameAndValues, variableNameAndValues, renderEvents, directives, embeddedTemplateIndex, appProtoEl);\n this.protoElements.push(compileProtoEl);\n };\n ProtoViewBuilderVisitor.prototype.visitVariable = function(ast, ctx) {\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitAttr = function(ast, attrNameAndValues) {\n attrNameAndValues[ast.name] = ast.value;\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitDirective = function(ast, ctx) {\n ctx.targetDirectives.push(ast.directive);\n template_ast_1.templateVisitAll(this, ast.hostEvents, ctx.hostEventTargetAndNames);\n ast.exportAsVars.forEach(function(varAst) {\n ctx.targetVariableNameAndValues.push([varAst.name, ctx.index]);\n });\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitEvent = function(ast, eventTargetAndNames) {\n eventTargetAndNames.set(ast.fullName, ast);\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitDirectiveProperty = function(ast, context) {\n return null;\n };\n ProtoViewBuilderVisitor.prototype.visitElementProperty = function(ast, context) {\n return null;\n };\n return ProtoViewBuilderVisitor;\n})();\nfunction mapToKeyValueArray(data) {\n var entryArray = [];\n collection_1.StringMapWrapper.forEach(data, function(value, name) {\n entryArray.push([name, value]);\n });\n collection_1.ListWrapper.sort(entryArray, function(entry1, entry2) {\n return lang_1.StringWrapper.compare(entry1[0], entry2[0]);\n });\n var keyValueArray = [];\n entryArray.forEach(function(entry) {\n keyValueArray.push([entry[0], entry[1]]);\n });\n return keyValueArray;\n}\nfunction mergeAttributeValue(attrName, attrValue1, attrValue2) {\n if (attrName == CLASS_ATTR || attrName == STYLE_ATTR) {\n return attrValue1 + \" \" + attrValue2;\n } else {\n return attrValue2;\n }\n}\nvar DirectiveContext = (function() {\n function DirectiveContext(index, boundElementIndex, hostEventTargetAndNames, targetVariableNameAndValues, targetDirectives) {\n this.index = index;\n this.boundElementIndex = boundElementIndex;\n this.hostEventTargetAndNames = hostEventTargetAndNames;\n this.targetVariableNameAndValues = targetVariableNameAndValues;\n this.targetDirectives = targetDirectives;\n }\n return DirectiveContext;\n})();\nfunction keyValueArrayToStringMap(keyValueArray) {\n var stringMap = {};\n for (var i = 0; i < keyValueArray.length; i++) {\n var entry = keyValueArray[i];\n stringMap[entry[0]] = entry[1];\n }\n return stringMap;\n}\nfunction codeGenDirectivesArray(directives) {\n var expressions = directives.map(function(directiveType) {\n return typeRef(directiveType.type);\n });\n return \"[\" + expressions.join(',') + \"]\";\n}\nfunction codeGenTypesArray(types) {\n var expressions = types.map(typeRef);\n return \"[\" + expressions.join(',') + \"]\";\n}\nfunction codeGenViewType(value) {\n if (lang_1.IS_DART) {\n return \"\" + exports.VIEW_TYPE_MODULE_REF + value;\n } else {\n return \"\" + value;\n }\n}\nfunction typeRef(type) {\n return \"\" + source_module_1.moduleRef(type.moduleUrl) + type.name;\n}\nfunction getViewType(component, embeddedTemplateIndex) {\n if (embeddedTemplateIndex > 0) {\n return view_type_1.ViewType.EMBEDDED;\n } else if (component.type.isHost) {\n return view_type_1.ViewType.HOST;\n } else {\n return view_type_1.ViewType.COMPONENT;\n }\n}\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nexports.DOM = null;\nfunction setRootDomAdapter(adapter) {\n if (lang_1.isBlank(exports.DOM)) {\n exports.DOM = adapter;\n }\n}\nexports.setRootDomAdapter = setRootDomAdapter;\nvar DomAdapter = (function() {\n function DomAdapter() {}\n Object.defineProperty(DomAdapter.prototype, \"attrToPropMap\", {\n get: function() {\n return this._attrToPropMap;\n },\n set: function(value) {\n this._attrToPropMap = value;\n },\n enumerable: true,\n configurable: true\n });\n ;\n ;\n return DomAdapter;\n})();\nexports.DomAdapter = DomAdapter;\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nexports.NAMED_ENTITIES = lang_1.CONST_EXPR({\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(function(HtmlTagContentType) {\n HtmlTagContentType[HtmlTagContentType[\"RAW_TEXT\"] = 0] = \"RAW_TEXT\";\n HtmlTagContentType[HtmlTagContentType[\"ESCAPABLE_RAW_TEXT\"] = 1] = \"ESCAPABLE_RAW_TEXT\";\n HtmlTagContentType[HtmlTagContentType[\"PARSABLE_DATA\"] = 2] = \"PARSABLE_DATA\";\n})(exports.HtmlTagContentType || (exports.HtmlTagContentType = {}));\nvar HtmlTagContentType = exports.HtmlTagContentType;\nvar HtmlTagDefinition = (function() {\n function HtmlTagDefinition(_a) {\n var _this = this;\n var _b = _a === void 0 ? {} : _a,\n closedByChildren = _b.closedByChildren,\n requiredParents = _b.requiredParents,\n implicitNamespacePrefix = _b.implicitNamespacePrefix,\n contentType = _b.contentType,\n closedByParent = _b.closedByParent,\n isVoid = _b.isVoid,\n ignoreFirstLf = _b.ignoreFirstLf;\n this.closedByChildren = {};\n this.closedByParent = false;\n if (lang_1.isPresent(closedByChildren) && closedByChildren.length > 0) {\n closedByChildren.forEach(function(tagName) {\n return _this.closedByChildren[tagName] = true;\n });\n }\n this.isVoid = lang_1.normalizeBool(isVoid);\n this.closedByParent = lang_1.normalizeBool(closedByParent) || this.isVoid;\n if (lang_1.isPresent(requiredParents) && requiredParents.length > 0) {\n this.requiredParents = {};\n this.parentToAdd = requiredParents[0];\n requiredParents.forEach(function(tagName) {\n return _this.requiredParents[tagName] = true;\n });\n }\n this.implicitNamespacePrefix = implicitNamespacePrefix;\n this.contentType = lang_1.isPresent(contentType) ? contentType : HtmlTagContentType.PARSABLE_DATA;\n this.ignoreFirstLf = lang_1.normalizeBool(ignoreFirstLf);\n }\n HtmlTagDefinition.prototype.requireExtraParent = function(currentParent) {\n if (lang_1.isBlank(this.requiredParents)) {\n return false;\n }\n if (lang_1.isBlank(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 || lang_1.normalizeBool(this.closedByChildren[name.toLowerCase()]);\n };\n return HtmlTagDefinition;\n})();\nexports.HtmlTagDefinition = HtmlTagDefinition;\nvar TAG_DEFINITIONS = {\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: ['address', 'article', 'aside', 'blockquote', 'div', 'dl', 'fieldset', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup', 'hr', 'main', 'nav', 'ol', 'p', 'pre', 'section', 'table', 'ul'],\n closedByParent: true\n }),\n 'thead': new HtmlTagDefinition({closedByChildren: ['tbody', 'tfoot']}),\n 'tbody': new HtmlTagDefinition({\n closedByChildren: ['tbody', 'tfoot'],\n closedByParent: true\n }),\n 'tfoot': new HtmlTagDefinition({\n closedByChildren: ['tbody'],\n closedByParent: true\n }),\n 'tr': new HtmlTagDefinition({\n closedByChildren: ['tr'],\n requiredParents: ['tbody', 'tfoot', 'thead'],\n closedByParent: true\n }),\n 'td': new HtmlTagDefinition({\n closedByChildren: ['td', 'th'],\n closedByParent: true\n }),\n 'th': new HtmlTagDefinition({\n closedByChildren: ['td', 'th'],\n closedByParent: true\n }),\n 'col': new HtmlTagDefinition({\n requiredParents: ['colgroup'],\n isVoid: true\n }),\n 'svg': new HtmlTagDefinition({implicitNamespacePrefix: 'svg'}),\n 'math': new HtmlTagDefinition({implicitNamespacePrefix: 'math'}),\n 'li': new HtmlTagDefinition({\n closedByChildren: ['li'],\n closedByParent: true\n }),\n 'dt': new HtmlTagDefinition({closedByChildren: ['dt', 'dd']}),\n 'dd': new HtmlTagDefinition({\n closedByChildren: ['dt', 'dd'],\n closedByParent: true\n }),\n 'rb': new HtmlTagDefinition({\n closedByChildren: ['rb', 'rt', 'rtc', 'rp'],\n closedByParent: true\n }),\n 'rt': new HtmlTagDefinition({\n closedByChildren: ['rb', 'rt', 'rtc', 'rp'],\n closedByParent: true\n }),\n 'rtc': new HtmlTagDefinition({\n closedByChildren: ['rb', 'rtc', 'rp'],\n closedByParent: true\n }),\n 'rp': new HtmlTagDefinition({\n closedByChildren: ['rb', 'rt', 'rtc', 'rp'],\n closedByParent: true\n }),\n 'optgroup': new HtmlTagDefinition({\n closedByChildren: ['optgroup'],\n closedByParent: true\n }),\n 'option': new HtmlTagDefinition({\n closedByChildren: ['option', 'optgroup'],\n closedByParent: true\n }),\n 'pre': new HtmlTagDefinition({ignoreFirstLf: true}),\n 'listing': new HtmlTagDefinition({ignoreFirstLf: true}),\n 'style': new HtmlTagDefinition({contentType: HtmlTagContentType.RAW_TEXT}),\n 'script': new HtmlTagDefinition({contentType: HtmlTagContentType.RAW_TEXT}),\n 'title': new HtmlTagDefinition({contentType: HtmlTagContentType.ESCAPABLE_RAW_TEXT}),\n 'textarea': new HtmlTagDefinition({\n contentType: HtmlTagContentType.ESCAPABLE_RAW_TEXT,\n ignoreFirstLf: true\n })\n};\nvar DEFAULT_TAG_DEFINITION = new HtmlTagDefinition();\nfunction getHtmlTagDefinition(tagName) {\n var result = TAG_DEFINITIONS[tagName.toLowerCase()];\n return lang_1.isPresent(result) ? result : DEFAULT_TAG_DEFINITION;\n}\nexports.getHtmlTagDefinition = getHtmlTagDefinition;\nvar NS_PREFIX_RE = /^@([^:]+):(.+)/g;\nfunction splitNsName(elementName) {\n if (elementName[0] != '@') {\n return [null, elementName];\n }\n var match = lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE, elementName);\n return [match[1], match[2]];\n}\nexports.splitNsName = splitNsName;\nfunction getNsPrefix(elementName) {\n return splitNsName(elementName)[0];\n}\nexports.getNsPrefix = getNsPrefix;\n","/* */ \n'use strict';var ElementSchemaRegistry = (function () {\r\n function ElementSchemaRegistry() {\r\n }\r\n ElementSchemaRegistry.prototype.hasProperty = function (tagName, propName) { return true; };\r\n ElementSchemaRegistry.prototype.getMappedPropName = function (propName) { return propName; };\r\n return ElementSchemaRegistry;\r\n})();\r\nexports.ElementSchemaRegistry = ElementSchemaRegistry;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudF9zY2hlbWFfcmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9zcmMvY29tcGlsZXIvc2NoZW1hL2VsZW1lbnRfc2NoZW1hX3JlZ2lzdHJ5LnRzIl0sIm5hbWVzIjpbIkVsZW1lbnRTY2hlbWFSZWdpc3RyeSIsIkVsZW1lbnRTY2hlbWFSZWdpc3RyeS5jb25zdHJ1Y3RvciIsIkVsZW1lbnRTY2hlbWFSZWdpc3RyeS5oYXNQcm9wZXJ0eSIsIkVsZW1lbnRTY2hlbWFSZWdpc3RyeS5nZXRNYXBwZWRQcm9wTmFtZSJdLCJtYXBwaW5ncyI6IkFBQUE7SUFBQUE7SUFHQUMsQ0FBQ0E7SUFGQ0QsMkNBQVdBLEdBQVhBLFVBQVlBLE9BQWVBLEVBQUVBLFFBQWdCQSxJQUFhRSxNQUFNQSxDQUFDQSxJQUFJQSxDQUFDQSxDQUFDQSxDQUFDQTtJQUN4RUYsaURBQWlCQSxHQUFqQkEsVUFBa0JBLFFBQWdCQSxJQUFZRyxNQUFNQSxDQUFDQSxRQUFRQSxDQUFDQSxDQUFDQSxDQUFDQTtJQUNsRUgsNEJBQUNBO0FBQURBLENBQUNBLEFBSEQsSUFHQztBQUhZLDZCQUFxQix3QkFHakMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBFbGVtZW50U2NoZW1hUmVnaXN0cnkge1xuICBoYXNQcm9wZXJ0eSh0YWdOYW1lOiBzdHJpbmcsIHByb3BOYW1lOiBzdHJpbmcpOiBib29sZWFuIHsgcmV0dXJuIHRydWU7IH1cbiAgZ2V0TWFwcGVkUHJvcE5hbWUocHJvcE5hbWU6IHN0cmluZyk6IHN0cmluZyB7IHJldHVybiBwcm9wTmFtZTsgfVxufVxuIl19","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../../core/di');\nvar lang_1 = require('../../facade/lang');\nvar collection_1 = require('../../facade/collection');\nvar dom_adapter_1 = require('../../platform/dom/dom_adapter');\nvar html_tags_1 = require('../html_tags');\nvar element_schema_registry_1 = require('./element_schema_registry');\nvar NAMESPACE_URIS = lang_1.CONST_EXPR({\n 'xlink': 'http://www.w3.org/1999/xlink',\n 'svg': 'http://www.w3.org/2000/svg'\n});\nvar DomElementSchemaRegistry = (function(_super) {\n __extends(DomElementSchemaRegistry, _super);\n function DomElementSchemaRegistry() {\n _super.apply(this, arguments);\n this._protoElements = new Map();\n }\n DomElementSchemaRegistry.prototype._getProtoElement = function(tagName) {\n var element = this._protoElements.get(tagName);\n if (lang_1.isBlank(element)) {\n var nsAndName = html_tags_1.splitNsName(tagName);\n element = lang_1.isPresent(nsAndName[0]) ? dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) : dom_adapter_1.DOM.createElement(nsAndName[1]);\n this._protoElements.set(tagName, element);\n }\n return element;\n };\n DomElementSchemaRegistry.prototype.hasProperty = function(tagName, propName) {\n if (tagName.indexOf('-') !== -1) {\n return true;\n } else {\n var elm = this._getProtoElement(tagName);\n return dom_adapter_1.DOM.hasProperty(elm, propName);\n }\n };\n DomElementSchemaRegistry.prototype.getMappedPropName = function(propName) {\n var mappedPropName = collection_1.StringMapWrapper.get(dom_adapter_1.DOM.attrToPropMap, propName);\n return lang_1.isPresent(mappedPropName) ? mappedPropName : propName;\n };\n DomElementSchemaRegistry = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], DomElementSchemaRegistry);\n return DomElementSchemaRegistry;\n})(element_schema_registry_1.ElementSchemaRegistry);\nexports.DomElementSchemaRegistry = DomElementSchemaRegistry;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar di_1 = require('../core/di');\nvar lang_1 = require('../facade/lang');\nvar application_tokens_1 = require('../core/application_tokens');\nvar di_2 = require('../core/di');\nfunction createWithoutPackagePrefix() {\n return new UrlResolver();\n}\nexports.createWithoutPackagePrefix = createWithoutPackagePrefix;\nexports.DEFAULT_PACKAGE_URL_PROVIDER = new di_2.Provider(application_tokens_1.PACKAGE_ROOT_URL, {useValue: \"/\"});\nvar UrlResolver = (function() {\n function UrlResolver(packagePrefix) {\n if (packagePrefix === void 0) {\n packagePrefix = null;\n }\n if (lang_1.isPresent(packagePrefix)) {\n this._packagePrefix = lang_1.StringWrapper.stripRight(packagePrefix, \"/\") + \"/\";\n }\n }\n UrlResolver.prototype.resolve = function(baseUrl, url) {\n var resolvedUrl = url;\n if (lang_1.isPresent(baseUrl) && baseUrl.length > 0) {\n resolvedUrl = _resolveUrl(baseUrl, resolvedUrl);\n }\n if (lang_1.isPresent(this._packagePrefix) && getUrlScheme(resolvedUrl) == \"package\") {\n resolvedUrl = resolvedUrl.replace(\"package:\", this._packagePrefix);\n }\n return resolvedUrl;\n };\n UrlResolver = __decorate([di_1.Injectable(), __param(0, di_1.Inject(application_tokens_1.PACKAGE_ROOT_URL)), __metadata('design:paramtypes', [String])], UrlResolver);\n return UrlResolver;\n})();\nexports.UrlResolver = UrlResolver;\nfunction getUrlScheme(url) {\n var match = _split(url);\n return (match && match[_ComponentIndex.Scheme]) || \"\";\n}\nexports.getUrlScheme = getUrlScheme;\nfunction _buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {\n var out = [];\n if (lang_1.isPresent(opt_scheme)) {\n out.push(opt_scheme + ':');\n }\n if (lang_1.isPresent(opt_domain)) {\n out.push('//');\n if (lang_1.isPresent(opt_userInfo)) {\n out.push(opt_userInfo + '@');\n }\n out.push(opt_domain);\n if (lang_1.isPresent(opt_port)) {\n out.push(':' + opt_port);\n }\n }\n if (lang_1.isPresent(opt_path)) {\n out.push(opt_path);\n }\n if (lang_1.isPresent(opt_queryData)) {\n out.push('?' + opt_queryData);\n }\n if (lang_1.isPresent(opt_fragment)) {\n out.push('#' + opt_fragment);\n }\n return out.join('');\n}\nvar _splitRe = lang_1.RegExpWrapper.create('^' + '(?:' + '([^:/?#.]+)' + ':)?' + '(?://' + '(?:([^/?#]*)@)?' + '([\\\\w\\\\d\\\\-\\\\u0100-\\\\uffff.%]*)' + '(?::([0-9]+))?' + ')?' + '([^?#]+)?' + '(?:\\\\?([^#]*))?' + '(?:#(.*))?' + '$');\nvar _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 = {}));\nfunction _split(uri) {\n return lang_1.RegExpWrapper.firstMatch(_splitRe, uri);\n}\nfunction _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 } 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}\nfunction _joinAndCanonicalizePath(parts) {\n var path = parts[_ComponentIndex.Path];\n path = lang_1.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}\nfunction _resolveUrl(base, url) {\n var parts = _split(encodeURI(url));\n var baseParts = _split(base);\n if (lang_1.isPresent(parts[_ComponentIndex.Scheme])) {\n return _joinAndCanonicalizePath(parts);\n } else {\n parts[_ComponentIndex.Scheme] = baseParts[_ComponentIndex.Scheme];\n }\n for (var i = _ComponentIndex.Scheme; i <= _ComponentIndex.Port; i++) {\n if (lang_1.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 (lang_1.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'use strict';\nfunction __export(m) {\n for (var p in m)\n if (!exports.hasOwnProperty(p))\n exports[p] = m[p];\n}\nvar runtime_compiler_1 = require('./runtime_compiler');\nvar template_compiler_1 = require('./template_compiler');\nexports.TemplateCompiler = template_compiler_1.TemplateCompiler;\nvar directive_metadata_1 = require('./directive_metadata');\nexports.CompileDirectiveMetadata = directive_metadata_1.CompileDirectiveMetadata;\nexports.CompileTypeMetadata = directive_metadata_1.CompileTypeMetadata;\nexports.CompileTemplateMetadata = directive_metadata_1.CompileTemplateMetadata;\nvar source_module_1 = require('./source_module');\nexports.SourceModule = source_module_1.SourceModule;\nexports.SourceWithImports = source_module_1.SourceWithImports;\nvar platform_directives_and_pipes_1 = require('../core/platform_directives_and_pipes');\nexports.PLATFORM_DIRECTIVES = platform_directives_and_pipes_1.PLATFORM_DIRECTIVES;\nexports.PLATFORM_PIPES = platform_directives_and_pipes_1.PLATFORM_PIPES;\n__export(require('./template_ast'));\nvar template_parser_1 = require('./template_parser');\nexports.TEMPLATE_TRANSFORMS = template_parser_1.TEMPLATE_TRANSFORMS;\nvar lang_1 = require('../facade/lang');\nvar di_1 = require('../core/di');\nvar template_parser_2 = require('./template_parser');\nvar html_parser_1 = require('./html_parser');\nvar template_normalizer_1 = require('./template_normalizer');\nvar runtime_metadata_1 = require('./runtime_metadata');\nvar change_detector_compiler_1 = require('./change_detector_compiler');\nvar style_compiler_1 = require('./style_compiler');\nvar view_compiler_1 = require('./view_compiler');\nvar proto_view_compiler_1 = require('./proto_view_compiler');\nvar template_compiler_2 = require('./template_compiler');\nvar change_detection_1 = require('../core/change_detection/change_detection');\nvar compiler_1 = require('../core/linker/compiler');\nvar runtime_compiler_2 = require('./runtime_compiler');\nvar element_schema_registry_1 = require('./schema/element_schema_registry');\nvar dom_element_schema_registry_1 = require('./schema/dom_element_schema_registry');\nvar url_resolver_1 = require('./url_resolver');\nvar change_detection_2 = require('../core/change_detection/change_detection');\nfunction _createChangeDetectorGenConfig() {\n return new change_detection_1.ChangeDetectorGenConfig(lang_1.assertionsEnabled(), false, true);\n}\nexports.COMPILER_PROVIDERS = lang_1.CONST_EXPR([change_detection_2.Lexer, change_detection_2.Parser, html_parser_1.HtmlParser, template_parser_2.TemplateParser, template_normalizer_1.TemplateNormalizer, runtime_metadata_1.RuntimeMetadataResolver, url_resolver_1.DEFAULT_PACKAGE_URL_PROVIDER, style_compiler_1.StyleCompiler, proto_view_compiler_1.ProtoViewCompiler, view_compiler_1.ViewCompiler, change_detector_compiler_1.ChangeDetectionCompiler, new di_1.Provider(change_detection_1.ChangeDetectorGenConfig, {\n useFactory: _createChangeDetectorGenConfig,\n deps: []\n}), template_compiler_2.TemplateCompiler, new di_1.Provider(runtime_compiler_2.RuntimeCompiler, {useClass: runtime_compiler_1.RuntimeCompiler_}), new di_1.Provider(compiler_1.Compiler, {useExisting: runtime_compiler_2.RuntimeCompiler}), dom_element_schema_registry_1.DomElementSchemaRegistry, new di_1.Provider(element_schema_registry_1.ElementSchemaRegistry, {useExisting: dom_element_schema_registry_1.DomElementSchemaRegistry}), url_resolver_1.UrlResolver]);\n","/* */ \n'use strict';\nfunction __export(m) {\n for (var p in m)\n if (!exports.hasOwnProperty(p))\n exports[p] = m[p];\n}\n__export(require('./src/compiler/url_resolver'));\n__export(require('./src/compiler/xhr'));\n__export(require('./src/compiler/compiler'));\n","/* */ \n'use strict';// TODO: vsavkin rename it into TemplateLoader\r\n/**\r\n * An interface for retrieving documents by URL that the compiler uses\r\n * to load templates.\r\n */\r\nvar XHR = (function () {\r\n function XHR() {\r\n }\r\n XHR.prototype.get = function (url) { return null; };\r\n return XHR;\r\n})();\r\nexports.XHR = XHR;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieGhyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3hoci50cyJdLCJuYW1lcyI6WyJYSFIiLCJYSFIuY29uc3RydWN0b3IiLCJYSFIuZ2V0Il0sIm1hcHBpbmdzIjoiQUFFQSw4Q0FBOEM7QUFDOUM7OztHQUdHO0FBQ0g7SUFBQUE7SUFFQUMsQ0FBQ0E7SUFEQ0QsaUJBQUdBLEdBQUhBLFVBQUlBLEdBQVdBLElBQXFCRSxNQUFNQSxDQUFDQSxJQUFJQSxDQUFDQSxDQUFDQSxDQUFDQTtJQUNwREYsVUFBQ0E7QUFBREEsQ0FBQ0EsQUFGRCxJQUVDO0FBRlksV0FBRyxNQUVmLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1Byb21pc2V9IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvYXN5bmMnO1xuXG4vLyBUT0RPOiB2c2F2a2luIHJlbmFtZSBpdCBpbnRvIFRlbXBsYXRlTG9hZGVyXG4vKipcbiAqIEFuIGludGVyZmFjZSBmb3IgcmV0cmlldmluZyBkb2N1bWVudHMgYnkgVVJMIHRoYXQgdGhlIGNvbXBpbGVyIHVzZXNcbiAqIHRvIGxvYWQgdGVtcGxhdGVzLlxuICovXG5leHBvcnQgY2xhc3MgWEhSIHtcbiAgZ2V0KHVybDogc3RyaW5nKTogUHJvbWlzZTxzdHJpbmc+IHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar promise_1 = require('../../facade/promise');\nvar lang_1 = require('../../facade/lang');\nvar xhr_1 = require('../../compiler/xhr');\nvar XHRImpl = (function(_super) {\n __extends(XHRImpl, _super);\n function XHRImpl() {\n _super.apply(this, arguments);\n }\n XHRImpl.prototype.get = function(url) {\n var completer = promise_1.PromiseWrapper.completer();\n var xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n xhr.onload = function() {\n var response = lang_1.isPresent(xhr.response) ? xhr.response : xhr.responseText;\n var status = xhr.status === 1223 ? 204 : xhr.status;\n if (status === 0) {\n status = response ? 200 : 0;\n }\n if (200 <= status && status <= 300) {\n completer.resolve(response);\n } else {\n completer.reject(\"Failed to load \" + url, null);\n }\n };\n xhr.onerror = function() {\n completer.reject(\"Failed to load \" + url, null);\n };\n xhr.send();\n return completer.promise;\n };\n return XHRImpl;\n})(xhr_1.XHR);\nexports.XHRImpl = XHRImpl;\n","/* */ \n(function(process) {\n 'use strict';\n var angular_entrypoint_1 = require('../src/core/angular_entrypoint');\n exports.AngularEntrypoint = angular_entrypoint_1.AngularEntrypoint;\n var browser_common_1 = require('../src/platform/browser_common');\n exports.BROWSER_PROVIDERS = browser_common_1.BROWSER_PROVIDERS;\n exports.ELEMENT_PROBE_PROVIDERS = browser_common_1.ELEMENT_PROBE_PROVIDERS;\n exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = browser_common_1.ELEMENT_PROBE_PROVIDERS_PROD_MODE;\n exports.inspectNativeElement = browser_common_1.inspectNativeElement;\n exports.BrowserDomAdapter = browser_common_1.BrowserDomAdapter;\n exports.By = browser_common_1.By;\n exports.Title = browser_common_1.Title;\n exports.DOCUMENT = browser_common_1.DOCUMENT;\n exports.enableDebugTools = browser_common_1.enableDebugTools;\n exports.disableDebugTools = browser_common_1.disableDebugTools;\n var lang_1 = require('../src/facade/lang');\n var browser_common_2 = require('../src/platform/browser_common');\n var compiler_1 = require('../compiler');\n var core_1 = require('../core');\n var reflection_capabilities_1 = require('../src/core/reflection/reflection_capabilities');\n var xhr_impl_1 = require('../src/platform/browser/xhr_impl');\n var compiler_2 = require('../compiler');\n var di_1 = require('../src/core/di');\n exports.BROWSER_APP_PROVIDERS = lang_1.CONST_EXPR([browser_common_2.BROWSER_APP_COMMON_PROVIDERS, compiler_1.COMPILER_PROVIDERS, new di_1.Provider(compiler_2.XHR, {useClass: xhr_impl_1.XHRImpl})]);\n function bootstrap(appComponentType, customProviders) {\n core_1.reflector.reflectionCapabilities = new reflection_capabilities_1.ReflectionCapabilities();\n var appProviders = lang_1.isPresent(customProviders) ? [exports.BROWSER_APP_PROVIDERS, customProviders] : exports.BROWSER_APP_PROVIDERS;\n return core_1.platform(browser_common_2.BROWSER_PROVIDERS).application(appProviders).bootstrap(appComponentType);\n }\n exports.bootstrap = bootstrap;\n})(require('process'));\n","'use strict';\n\nimport {isFunction, isString} from 'angular2/src/facade/lang';\nimport {BrowserDomAdapter} from 'angular2/platform/browser';\nimport {global} from 'angular2/src/facade/lang';\n\nvar defaults = {\n scrollYOffset: 0,\n disableLazySchemas: false,\n debugMode: global.redocDebugMode\n};\n\nvar OPTION_NAMES = new Set(['scrollYOffset', 'disableLazySchemas']);\n\n@Reflect.metadata('parameters', [[BrowserDomAdapter]])\nexport default class OptionsManager {\n constructor() {\n this._options = defaults;\n this.dom = new BrowserDomAdapter();\n }\n\n get options() {\n return this._options;\n }\n\n set options(opts) {\n this._options = Object.assign(this._options, opts);\n }\n\n parseOptions(el) {\n let parsedOpts;\n let attributesMap = this.dom.attributeMap(el);\n parsedOpts = {};\n Array.from(attributesMap.keys())\n //camelCasify\n .map(k => ({\n attrName: k,\n name: k.replace(/-(.)/g, (m, $1) => $1.toUpperCase())\n })\n )\n .filter(option => OPTION_NAMES.has(option.name))\n .forEach(option => {\n parsedOpts[option.name] = attributesMap.get(option.attrName);\n });\n\n this.options = parsedOpts;\n this._normalizeOptions();\n }\n\n _normalizeOptions() {\n // modify scrollYOffset to always be a function\n if (!isFunction(this._options.scrollYOffset)) {\n if (isFinite(this._options.scrollYOffset)) {\n // if number specified create function that returns this value\n let numberOffset = parseFloat(this._options.scrollYOffset);\n this.options.scrollYOffset = () => numberOffset;\n } else {\n // if selector or node function that returns bottom offset of this node\n let el = this._options.scrollYOffset;\n if (!(el instanceof Node)) {\n el = this.dom.query(el);\n }\n if (!el) {\n this._options.scrollYOffset = () => 0;\n } else {\n this._options.scrollYOffset = () => el.offsetTop + el.offsetHeight;\n }\n }\n }\n\n if (isString(this._options.disableLazySchemas)) this._options.disableLazySchemas = true;\n }\n}\n","'use strict';\n\nimport {NgZone, ChangeDetectionStrategy, ElementRef} from 'angular2/core';\nimport {document} from 'angular2/src/facade/browser';\nimport {BrowserDomAdapter} from 'angular2/platform/browser';\nimport {global} from 'angular2/src/facade/lang';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport {redocEvents} from '../../events';\nimport OptionsManager from '../../options';\n\nconst CHANGE = {\n NEXT : 1,\n BACK : -1,\n INITIAL : 0\n};\n\nconst INVIEW_POSITION = {\n ABOVE : 1,\n BELLOW: -1,\n INVIEW: 0\n};\n\n@RedocComponent({\n selector: 'side-menu',\n template: `\n <div class=\"mobile-nav\" (click)=\"toggleMobileNav()\">\n <span class=\"menu-header\"> API Reference: </span>\n <span class=\"selected-item-info\">\n <span class=\"selected-tag\"> {{activeCatCaption}} </span>\n <span class=\"selected-endpoint\">{{activeItemCaption}}</span>\n </span>\n </div>\n <div id=\"resources-nav\">\n <h2 class=\"menu-header\"> API reference </h2>\n <div *ngFor=\"var cat of data.menu; #idx = index\" class=\"menu-cat\">\n\n <label class=\"menu-cat-header\" (click)=\"activateAndScroll(idx, -1)\" [ngClass]=\"{active: cat.active}\"> {{cat.name}}</label>\n <ul class=\"menu-subitems\" [ngClass]=\"{active: cat.active}\">\n <li *ngFor=\"var method of cat.methods; var methIdx = index\"\n [ngClass]=\"{active: method.active}\"\n (click)=\"activateAndScroll(idx, methIdx)\">\n {{method.summary}}\n </li>\n </ul>\n\n </div>\n </div>\n `,\n styles: [`\n .menu-header{text-transform:uppercase;color:#00329F;padding:0 20px;margin:10px 0;font-size:16px}.menu-cat-header{font-size:15px;cursor:pointer;color:#384248;text-transform:uppercase;background-color:#FAFAFA;display:block;padding:5px 20px}.menu-cat:nth-of-type(even) .menu-cat-header{background-color:#F0F0F0}.menu-cat .menu-cat-header.active{background-color:#d1d1d1}.menu-subitems{margin:0;padding:0;height:0;overflow:hidden}.menu-subitems.active{height:auto}.menu-subitems li{list-style:none inside none;cursor:pointer;padding:5px 20px;padding-left:40px;background-color:#FAFAFA;overflow:hidden;text-overflow:ellipsis}.menu-subitems li:nth-of-type(even){background-color:#F0F0F0}.menu-cat:nth-of-type(odd) .menu-subitems li{background-color:#F0F0F0}.menu-cat:nth-of-type(odd) .menu-subitems li:nth-of-type(even){background-color:#FAFAFA}.menu-cat .menu-subitems li.active,.menu-cat .menu-subitems li.active:nth-of-type(even){background-color:#DEDEDE}.mobile-nav{display:none;height:3em;line-height:3em;box-sizing:border-box;border-bottom:1px solid #ccc;cursor:pointer}.mobile-nav:after{content:\"\";display:inline-block;width:3em;height:3em;background:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" enable-background=\"new 0 0 100 100\" version=\"1.1\" viewBox=\"0 0 100 100\" xml:space=\"preserve\"><polygon fill=\"#010101\" points=\"23.1 34.1 51.5 61.7 80 34.1 81.5 35 51.5 64.1 21.5 35 23.1 34.1 \"/></svg>');background-size:70%;background-repeat:no-repeat;background-position:center;float:right;vertical-align:middle}.mobile-nav .menu-header{padding:0 10px 0 20px;font-size:0.95em}@media (max-width: 550px){.mobile-nav .menu-header{display:none}}@media (max-width: 1000px){.mobile-nav{display:block}#resources-nav{height:0;overflow-y:auto;transition:all 0.3s ease}#resources-nav .menu-header{display:none}.menu-subitems{height:auto}}.selected-tag{text-transform:capitalize}.selected-endpoint:before{content:\"/\";padding:0 2px;color:#ccc}.selected-endpoint:empty:before{display:none}.selected-item-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;max-width:350px}@media (max-width: 550px){.selected-item-info{display:inline-block;padding:0 20px;max-width:80%;max-width:calc(100% - 4em)}}\n `],\n changeDetection: ChangeDetectionStrategy.Default\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ElementRef],\n [BrowserDomAdapter], [NgZone], OptionsManager])\nexport default class SideMenu extends BaseComponent {\n constructor(schemaMgr, elementRef, dom, zone, optionsMgr) {\n super(schemaMgr);\n this.$element = elementRef.nativeElement;\n this.dom = dom;\n this.options = optionsMgr.options;\n this.$scrollParent = this.options.$scrollParent;\n // for some reason constructor is not run inside zone\n // as workaround running it manually\n zone.run(() => {\n this.bindEvents();\n });\n this.activeCatIdx = 0;\n this.activeMethodIdx = -1;\n this.prevOffsetY = null;\n\n redocEvents.bootstrapped.subscribe(() => this.hashScroll());\n\n this.activeCatCaption = '';\n this.activeItemCaption = '';\n }\n\n scrollY() {\n return (this.$scrollParent.pageYOffset != null) ? this.$scrollParent.pageYOffset : this.$scrollParent.scrollTop;\n }\n\n hashScroll(evt) {\n let hash = this.dom.getLocation().hash;\n if (!hash) return;\n\n let $el;\n hash = hash.substr(1);\n let namespace = hash.split('/')[0];\n let ptr = hash.substr(namespace.length + 1);\n if (namespace === 'operation') {\n $el = this.getMethodElByOperId(ptr);\n } else if (namespace === 'tag') {\n let tag = ptr.split('/')[0];\n ptr = ptr.substr(tag.length);\n $el = this.getMethodElByPtr(ptr, tag);\n }\n\n if ($el) this.scrollTo($el);\n if (evt) evt.preventDefault();\n }\n\n bindEvents() {\n this.prevOffsetY = this.scrollY();\n\n //decorate option.scrollYOffset to account mobile nav\n this.scrollYOffset = () => {\n let mobileNavOffset = this.$mobileNav.clientHeight;\n return this.options.scrollYOffset() + mobileNavOffset;\n };\n this._cancel = {};\n this._cancel.scroll = this.dom.onAndCancel(this.$scrollParent, 'scroll', () => { this.scrollHandler(); });\n this._cancel.hash = this.dom.onAndCancel(global, 'hashchange', evt => this.hashScroll(evt));\n }\n\n destroy() {\n this._cancel.scroll();\n this._cancel.hash();\n }\n\n activateAndScroll(idx, methodIdx) {\n if (this.mobileMode()) {\n this.toggleMobileNav();\n }\n this.activate(idx, methodIdx);\n this.scrollToActive();\n }\n\n scrollTo($el) {\n // TODO: rewrite this to use offsetTop as more reliable solution\n let subjRect = $el.getBoundingClientRect();\n let offset = this.scrollY() + subjRect.top - this.scrollYOffset() + 1;\n if (this.$scrollParent.scrollTo) {\n this.$scrollParent.scrollTo(0, offset);\n } else {\n this.$scrollParent.scrollTop = offset;\n }\n }\n\n scrollToActive() {\n this.scrollTo(this.getCurrentMethodEl());\n }\n\n activate(catIdx, methodIdx) {\n let menu = this.data.menu;\n\n this.activeCatCaption = '';\n this.activeItemCaption = '';\n\n menu[this.activeCatIdx].active = false;\n if (menu[this.activeCatIdx].methods.length) {\n if (this.activeMethodIdx >= 0) {\n menu[this.activeCatIdx].methods[this.activeMethodIdx].active = false;\n }\n }\n\n this.activeCatIdx = catIdx;\n this.activeMethodIdx = methodIdx;\n menu[catIdx].active = true;\n this.activeCatCaption = menu[catIdx].name;\n this.activeMethodPtr = null;\n if (menu[catIdx].methods.length && (methodIdx > -1)) {\n let currentItem = menu[catIdx].methods[methodIdx];\n currentItem.active = true;\n this.activeMethodPtr = currentItem.pointer;\n this.activeItemCaption = currentItem.summary;\n }\n }\n\n _calcActiveIndexes(offset) {\n let menu = this.data.menu;\n let catCount = menu.length;\n let catLength = menu[this.activeCatIdx].methods.length;\n\n let resMethodIdx = this.activeMethodIdx + offset;\n let resCatIdx = this.activeCatIdx;\n\n if (resMethodIdx > catLength - 1) {\n resCatIdx++;\n resMethodIdx = -1;\n }\n if (resMethodIdx < -1) {\n let prevCatIdx = --resCatIdx;\n catLength = menu[Math.max(prevCatIdx, 0)].methods.length;\n resMethodIdx = catLength - 1;\n }\n if (resCatIdx > catCount - 1) {\n resCatIdx = catCount - 1;\n resMethodIdx = catLength - 1;\n }\n if (resCatIdx < 0) {\n resCatIdx = 0;\n resMethodIdx = 0;\n }\n\n return [resCatIdx, resMethodIdx];\n }\n\n changeActive(offset = 1) {\n let [catIdx, methodIdx] = this._calcActiveIndexes(offset);\n this.activate(catIdx, methodIdx);\n return (methodIdx === 0 && catIdx === 0);\n }\n\n getMethodElByPtr(ptr, tag) {\n let selector = ptr ? `[pointer=\"${ptr}\"][tag=\"${tag}\"]` : `[tag=\"${tag}\"]`;\n return document.querySelector(selector);\n }\n\n getMethodElByOperId(operationId) {\n let selector =`[operation-id=\"${operationId}\"]`;\n return document.querySelector(selector);\n }\n\n getCurrentMethodEl() {\n return this.getMethodElByPtr(this.activeMethodPtr, this.data.menu[this.activeCatIdx].name);\n }\n\n /* returns 1 if element if above the view, 0 if in view and -1 below the view */\n getElementInViewPos($el) {\n if (Math.floor($el.getBoundingClientRect().top) > this.scrollYOffset()) {\n return INVIEW_POSITION.ABOVE;\n }\n\n if ($el.getBoundingClientRect().bottom <= this.scrollYOffset()) {\n return INVIEW_POSITION.BELLOW;\n }\n return INVIEW_POSITION.INVIEW;\n }\n\n scrollHandler() {\n let isScrolledDown = (this.scrollY() - this.prevOffsetY > 0);\n this.prevOffsetY = this.scrollY();\n let stable = false;\n while(!stable) {\n let $activeMethodHost = this.getCurrentMethodEl();\n if (!$activeMethodHost) return;\n var elementInViewPos = this.getElementInViewPos($activeMethodHost);\n if(isScrolledDown && elementInViewPos === INVIEW_POSITION.BELLOW) {\n stable = this.changeActive(CHANGE.NEXT);\n continue;\n }\n if(!isScrolledDown && elementInViewPos === INVIEW_POSITION.ABOVE ) {\n stable = this.changeActive(CHANGE.BACK);\n continue;\n }\n stable = true;\n }\n }\n\n prepareModel() {\n this.data = {};\n this.data.menu = Array.from(this.schemaMgr.buildMenuTree().entries()).map(\n el => ({name: el[0], description: el[1].description, methods: el[1].methods})\n );\n }\n\n mobileMode() {\n return this.$mobileNav.clientHeight > 0;\n }\n\n toggleMobileNav() {\n let dom = this.dom;\n let $overflowParent = (this.$scrollParent === global) ? dom.defaultDoc().body : this.$scrollParent;\n if (dom.hasStyle(this.$resourcesNav, 'height')) {\n dom.removeStyle(this.$resourcesNav, 'height');\n dom.removeStyle($overflowParent, 'overflow-y');\n } else {\n let viewportHeight = this.$scrollParent.innerHeight || this.$scrollParent.clientHeight;\n let height = viewportHeight - this.$mobileNav.getBoundingClientRect().bottom;\n dom.setStyle($overflowParent, 'overflow-y', 'hidden');\n dom.setStyle(this.$resourcesNav, 'height', height + 'px');\n }\n }\n\n init() {\n this.$mobileNav = this.dom.querySelector(this.$element, '.mobile-nav');\n this.$resourcesNav = this.dom.querySelector(this.$element, '#resources-nav');\n this.changeActive(CHANGE.INITIAL);\n }\n}\n","/* */ \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 getIterFn = require('./core.get-iterator-method');\n$export($export.S + $export.F * !require('./$.iter-detect')(function(iter) {\n Array.from(iter);\n}), 'Array', {from: function from(arrayLike) {\n var O = toObject(arrayLike),\n C = typeof this == 'function' ? this : Array,\n $$ = arguments,\n $$len = $$.length,\n mapfn = $$len > 1 ? $$[1] : undefined,\n mapping = mapfn !== undefined,\n index = 0,\n iterFn = getIterFn(O),\n length,\n result,\n step,\n iterator;\n if (mapping)\n mapfn = ctx(mapfn, $$len > 2 ? $$[2] : undefined, 2);\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++) {\n 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 result[index] = mapping ? mapfn(O[index], index) : O[index];\n }\n }\n result.length = index;\n return result;\n }});\n","/* */ \nrequire('../../modules/es6.string.iterator');\nrequire('../../modules/es6.array.from');\nmodule.exports = require('../../modules/$.core').Array.from;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/array/from\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Array$from = require('../core-js/array/from')[\"default\"];\nexports[\"default\"] = function(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0,\n arr2 = Array(arr.length); i < arr.length; i++)\n arr2[i] = arr[i];\n return arr2;\n } else {\n return _Array$from(arr);\n }\n};\nexports.__esModule = true;\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};","/* */ \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,\n S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\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};","/* */ \nmodule.exports = require('./$.global').document && document.documentElement;\n","/* */ \nvar isObject = require('./$.is-object'),\n document = require('./$.global').document,\n is = isObject(document) && isObject(document.createElement);\nmodule.exports = function(it) {\n return is ? document.createElement(it) : {};\n};\n","/* */ \n(function(process) {\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,\n channel,\n port;\n var run = function() {\n var id = +this;\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n };\n var listner = function(event) {\n run.call(event.data);\n };\n if (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [],\n i = 1;\n while (arguments.length > i)\n 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 if (require('./$.cof')(process) == 'process') {\n defer = function(id) {\n process.nextTick(ctx(run, id, 1));\n };\n } else if (MessageChannel) {\n channel = new MessageChannel;\n port = channel.port2;\n channel.port1.onmessage = listner;\n defer = ctx(port.postMessage, port, 1);\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function(id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listner, false);\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 } else {\n defer = function(id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n }\n module.exports = {\n set: setTask,\n clear: clearTask\n };\n})(require('process'));\n","/* */ \n(function(process) {\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 head,\n last,\n notify;\n var flush = function() {\n var parent,\n domain,\n fn;\n if (isNode && (parent = process.domain)) {\n process.domain = null;\n parent.exit();\n }\n while (head) {\n domain = head.domain;\n fn = head.fn;\n if (domain)\n domain.enter();\n fn();\n if (domain)\n domain.exit();\n head = head.next;\n }\n last = undefined;\n if (parent)\n parent.enter();\n };\n if (isNode) {\n notify = function() {\n process.nextTick(flush);\n };\n } else if (Observer) {\n var toggle = 1,\n node = document.createTextNode('');\n new Observer(flush).observe(node, {characterData: true});\n notify = function() {\n node.data = toggle = -toggle;\n };\n } else if (Promise && Promise.resolve) {\n notify = function() {\n Promise.resolve().then(flush);\n };\n } else {\n notify = function() {\n macrotask.call(global, flush);\n };\n }\n module.exports = function asap(fn) {\n var task = {\n fn: fn,\n next: undefined,\n domain: isNode && process.domain\n };\n if (last)\n last.next = task;\n if (!head) {\n head = task;\n notify();\n }\n last = task;\n };\n})(require('process'));\n","/* */ \nvar ITERATOR = require('./$.wks')('iterator'),\n SAFE_CLOSING = false;\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function() {\n SAFE_CLOSING = true;\n };\n Array.from(riter, function() {\n throw 2;\n });\n} catch (e) {}\nmodule.exports = function(exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING)\n return false;\n var safe = false;\n try {\n var arr = [7],\n iter = arr[ITERATOR]();\n iter.next = function() {\n safe = true;\n };\n arr[ITERATOR] = function() {\n return iter;\n };\n exec(arr);\n } catch (e) {}\n return safe;\n};\n","/* */ \n(function(process) {\n 'use strict';\n var $ = require('./$'),\n 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 anObject = require('./$.an-object'),\n aFunction = require('./$.a-function'),\n strictNew = require('./$.strict-new'),\n forOf = require('./$.for-of'),\n setProto = require('./$.set-proto').set,\n same = require('./$.same-value'),\n SPECIES = require('./$.wks')('species'),\n speciesConstructor = require('./$.species-constructor'),\n asap = require('./$.microtask'),\n PROMISE = 'Promise',\n process = global.process,\n isNode = classof(process) == 'process',\n P = global[PROMISE],\n Wrapper;\n var testResolve = function(sub) {\n var test = new P(function() {});\n if (sub)\n test.constructor = Object;\n return P.resolve(test) === test;\n };\n var USE_NATIVE = function() {\n var works = false;\n function P2(x) {\n var self = new P(x);\n setProto(self, P2.prototype);\n return self;\n }\n try {\n works = P && P.resolve && testResolve();\n setProto(P2, P);\n P2.prototype = $.create(P.prototype, {constructor: {value: P2}});\n if (!(P2.resolve(5).then(function() {}) instanceof P2)) {\n works = false;\n }\n if (works && require('./$.descriptors')) {\n var thenableThenGotten = false;\n P.resolve($.setDesc({}, 'then', {get: function() {\n thenableThenGotten = true;\n }}));\n works = thenableThenGotten;\n }\n } catch (e) {\n works = false;\n }\n return works;\n }();\n var sameConstructor = function(a, b) {\n if (LIBRARY && a === P && b === Wrapper)\n return true;\n return same(a, b);\n };\n var getConstructor = function(C) {\n var S = anObject(C)[SPECIES];\n return S != undefined ? S : C;\n };\n var isThenable = function(it) {\n var then;\n return isObject(it) && typeof(then = it.then) == 'function' ? then : false;\n };\n var PromiseCapability = function(C) {\n var resolve,\n reject;\n this.promise = new C(function($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined)\n throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve), this.reject = aFunction(reject);\n };\n var perform = function(exec) {\n try {\n exec();\n } catch (e) {\n return {error: e};\n }\n };\n var notify = function(record, isReject) {\n if (record.n)\n return;\n record.n = true;\n var chain = record.c;\n asap(function() {\n var value = record.v,\n ok = record.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 result,\n then;\n try {\n if (handler) {\n if (!ok)\n record.h = true;\n result = handler === true ? value : handler(value);\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\n resolve(result);\n } else\n reject(value);\n } catch (e) {\n reject(e);\n }\n };\n while (chain.length > i)\n run(chain[i++]);\n chain.length = 0;\n record.n = false;\n if (isReject)\n setTimeout(function() {\n var promise = record.p,\n handler,\n console;\n if (isUnhandled(promise)) {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({\n promise: promise,\n reason: value\n });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n }\n record.a = undefined;\n }, 1);\n });\n };\n var isUnhandled = function(promise) {\n var record = promise._d,\n chain = record.a || record.c,\n i = 0,\n reaction;\n if (record.h)\n return false;\n while (chain.length > i) {\n reaction = chain[i++];\n if (reaction.fail || !isUnhandled(reaction.promise))\n return false;\n }\n return true;\n };\n var $reject = function(value) {\n var record = this;\n if (record.d)\n return;\n record.d = true;\n record = record.r || record;\n record.v = value;\n record.s = 2;\n record.a = record.c.slice();\n notify(record, true);\n };\n var $resolve = function(value) {\n var record = this,\n then;\n if (record.d)\n return;\n record.d = true;\n record = record.r || record;\n try {\n if (record.p === value)\n throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n asap(function() {\n var wrapper = {\n r: record,\n d: false\n };\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 record.v = value;\n record.s = 1;\n notify(record, false);\n }\n } catch (e) {\n $reject.call({\n r: record,\n d: false\n }, e);\n }\n };\n if (!USE_NATIVE) {\n P = function Promise(executor) {\n aFunction(executor);\n var record = this._d = {\n p: strictNew(this, P, PROMISE),\n c: [],\n a: undefined,\n s: 0,\n d: false,\n v: undefined,\n h: false,\n n: false\n };\n try {\n executor(ctx($resolve, record, 1), ctx($reject, record, 1));\n } catch (err) {\n $reject.call(record, err);\n }\n };\n require('./$.redefine-all')(P.prototype, {\n then: function then(onFulfilled, onRejected) {\n var reaction = new PromiseCapability(speciesConstructor(this, P)),\n promise = reaction.promise,\n record = this._d;\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n record.c.push(reaction);\n if (record.a)\n record.a.push(reaction);\n if (record.s)\n notify(record, false);\n return promise;\n },\n 'catch': function(onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n }\n $export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: P});\n require('./$.set-to-string-tag')(P, PROMISE);\n require('./$.set-species')(PROMISE);\n Wrapper = require('./$.core')[PROMISE];\n $export($export.S + $export.F * !USE_NATIVE, PROMISE, {reject: function reject(r) {\n var capability = new PromiseCapability(this),\n $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }});\n $export($export.S + $export.F * (!USE_NATIVE || testResolve(true)), PROMISE, {resolve: function resolve(x) {\n if (x instanceof P && sameConstructor(x.constructor, this))\n return x;\n var capability = new PromiseCapability(this),\n $$resolve = capability.resolve;\n $$resolve(x);\n return capability.promise;\n }});\n $export($export.S + $export.F * !(USE_NATIVE && require('./$.iter-detect')(function(iter) {\n P.all(iter)['catch'](function() {});\n })), PROMISE, {\n all: function all(iterable) {\n var C = getConstructor(this),\n capability = new PromiseCapability(C),\n resolve = capability.resolve,\n reject = capability.reject,\n values = [];\n var abrupt = perform(function() {\n forOf(iterable, false, values.push, values);\n var remaining = values.length,\n results = Array(remaining);\n if (remaining)\n $.each.call(values, function(promise, index) {\n var alreadyCalled = false;\n C.resolve(promise).then(function(value) {\n if (alreadyCalled)\n return;\n alreadyCalled = true;\n results[index] = value;\n --remaining || resolve(results);\n }, reject);\n });\n else\n resolve(results);\n });\n if (abrupt)\n reject(abrupt.error);\n return capability.promise;\n },\n race: function race(iterable) {\n var C = getConstructor(this),\n capability = new PromiseCapability(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)\n reject(abrupt.error);\n return capability.promise;\n }\n });\n})(require('process'));\n","/* */ \nrequire('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.promise');\nmodule.exports = require('../modules/$.core').Promise;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/promise\"), __esModule: true };","/* */ \nvar 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')\n throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n","/* */ \nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };","/* */ \n'use strict';\nvar strong = require('./$.collection-strong');\nrequire('./$.collection')('Map', function(get) {\n return function Map() {\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n}, {\n get: function get(key) {\n var entry = strong.getEntry(this, key);\n return entry && entry.v;\n },\n set: function set(key, value) {\n return strong.def(this, key === 0 ? 0 : key, value);\n }\n}, strong, true);\n","/* */ \nvar $export = require('./$.export');\n$export($export.P, 'Map', {toJSON: require('./$.collection-to-json')('Map')});\n","/* */ \nrequire('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.map');\nrequire('../modules/es7.map.to-json');\nmodule.exports = require('../modules/$.core').Map;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/map\"), __esModule: true };","/* */ \n\"format cjs\";\n// Number.isFinite polyfill\n// http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite\nif (typeof Number.isFinite !== \"function\") {\n Number.isFinite = function isFinite(value) {\n // 1. If Type(number) is not Number, return false.\n if (typeof value !== \"number\") {\n return false;\n }\n // 2. If number is NaN, +∞, or −∞, return false.\n if (value !== value || value === Infinity || value === -Infinity) {\n return false;\n }\n // 3. Otherwise, return true.\n return true;\n };\n}\n","/* */ \n(function(process) {\n \"use strict\";\n var Report = require('./Report');\n var SchemaCompilation = require('./SchemaCompilation');\n var SchemaValidation = require('./SchemaValidation');\n var Utils = require('./Utils');\n function decodeJSONPointer(str) {\n return decodeURIComponent(str).replace(/~[0-1]/g, function(x) {\n return x === \"~1\" ? \"/\" : \"~\";\n });\n }\n function getRemotePath(uri) {\n var io = uri.indexOf(\"#\");\n return io === -1 ? uri : uri.slice(0, io);\n }\n function getQueryPath(uri) {\n var io = uri.indexOf(\"#\");\n var res = io === -1 ? undefined : uri.slice(io + 1);\n return res;\n }\n function findId(schema, id) {\n if (typeof schema !== \"object\" || schema === null) {\n return;\n }\n if (!id) {\n return schema;\n }\n if (schema.id) {\n if (schema.id === id || schema.id[0] === \"#\" && schema.id.substring(1) === id) {\n return schema;\n }\n }\n var idx,\n result;\n if (Array.isArray(schema)) {\n idx = schema.length;\n while (idx--) {\n result = findId(schema[idx], id);\n if (result) {\n return result;\n }\n }\n } else {\n var keys = Object.keys(schema);\n idx = keys.length;\n while (idx--) {\n var k = keys[idx];\n if (k.indexOf(\"__$\") === 0) {\n continue;\n }\n result = findId(schema[k], id);\n if (result) {\n return result;\n }\n }\n }\n }\n exports.cacheSchemaByUri = function(uri, schema) {\n var remotePath = getRemotePath(uri);\n if (remotePath) {\n this.cache[remotePath] = schema;\n }\n };\n exports.removeFromCacheByUri = function(uri) {\n var remotePath = getRemotePath(uri);\n if (remotePath) {\n delete this.cache[remotePath];\n }\n };\n exports.checkCacheForUri = function(uri) {\n var remotePath = getRemotePath(uri);\n return remotePath ? this.cache[remotePath] != null : false;\n };\n exports.getSchema = function(report, schema) {\n if (typeof schema === \"object\") {\n schema = exports.getSchemaByReference.call(this, report, schema);\n }\n if (typeof schema === \"string\") {\n schema = exports.getSchemaByUri.call(this, report, schema);\n }\n return schema;\n };\n exports.getSchemaByReference = function(report, key) {\n var i = this.referenceCache.length;\n while (i--) {\n if (this.referenceCache[i][0] === key) {\n return this.referenceCache[i][1];\n }\n }\n var schema = Utils.cloneDeep(key);\n this.referenceCache.push([key, schema]);\n return schema;\n };\n exports.getSchemaByUri = function(report, uri, root) {\n var remotePath = getRemotePath(uri),\n queryPath = getQueryPath(uri),\n result = remotePath ? this.cache[remotePath] : root;\n if (result && remotePath) {\n var compileRemote = result !== root;\n if (compileRemote) {\n report.path.push(remotePath);\n var remoteReport = new Report(report);\n if (SchemaCompilation.compileSchema.call(this, remoteReport, result)) {\n SchemaValidation.validateSchema.call(this, remoteReport, result);\n }\n var remoteReportIsValid = remoteReport.isValid();\n if (!remoteReportIsValid) {\n report.addError(\"REMOTE_NOT_VALID\", [uri], remoteReport);\n }\n report.path.pop();\n if (!remoteReportIsValid) {\n return undefined;\n }\n }\n }\n if (result && queryPath) {\n var parts = queryPath.split(\"/\");\n for (var idx = 0,\n lim = parts.length; result && idx < lim; idx++) {\n var key = decodeJSONPointer(parts[idx]);\n if (idx === 0) {\n result = findId(result, key);\n } else {\n result = result[key];\n }\n }\n }\n return result;\n };\n exports.getRemotePath = getRemotePath;\n})(require('process'));\n","/* */ \n\"use strict\";\nvar Report = require('./Report');\nvar SchemaCache = require('./SchemaCache');\nvar Utils = require('./Utils');\nfunction mergeReference(scope, ref) {\n if (Utils.isAbsoluteUri(ref)) {\n return ref;\n }\n var joinedScope = scope.join(\"\"),\n isScopeAbsolute = Utils.isAbsoluteUri(joinedScope),\n isScopeRelative = Utils.isRelativeUri(joinedScope),\n isRefRelative = Utils.isRelativeUri(ref),\n toRemove;\n if (isScopeAbsolute && isRefRelative) {\n toRemove = joinedScope.match(/\\/[^\\/]*$/);\n if (toRemove) {\n joinedScope = joinedScope.slice(0, toRemove.index + 1);\n }\n } else if (isScopeRelative && isRefRelative) {\n joinedScope = \"\";\n } else {\n toRemove = joinedScope.match(/[^#/]+$/);\n if (toRemove) {\n joinedScope = joinedScope.slice(0, toRemove.index);\n }\n }\n var res = joinedScope + ref;\n res = res.replace(/##/, \"#\");\n return res;\n}\nfunction collectReferences(obj, results, scope, path) {\n results = results || [];\n scope = scope || [];\n path = path || [];\n if (typeof obj !== \"object\" || obj === null) {\n return results;\n }\n if (typeof obj.id === \"string\") {\n scope.push(obj.id);\n }\n if (typeof obj.$ref === \"string\" && typeof obj.__$refResolved === \"undefined\") {\n results.push({\n ref: mergeReference(scope, obj.$ref),\n key: \"$ref\",\n obj: obj,\n path: path.slice(0)\n });\n }\n if (typeof obj.$schema === \"string\" && typeof obj.__$schemaResolved === \"undefined\") {\n results.push({\n ref: mergeReference(scope, obj.$schema),\n key: \"$schema\",\n obj: obj,\n path: path.slice(0)\n });\n }\n var idx;\n if (Array.isArray(obj)) {\n idx = obj.length;\n while (idx--) {\n path.push(idx.toString());\n collectReferences(obj[idx], results, scope, path);\n path.pop();\n }\n } else {\n var keys = Object.keys(obj);\n idx = keys.length;\n while (idx--) {\n if (keys[idx].indexOf(\"__$\") === 0) {\n continue;\n }\n path.push(keys[idx]);\n collectReferences(obj[keys[idx]], results, scope, path);\n path.pop();\n }\n }\n if (typeof obj.id === \"string\") {\n scope.pop();\n }\n return results;\n}\nvar compileArrayOfSchemasLoop = function(mainReport, arr) {\n var idx = arr.length,\n compiledCount = 0;\n while (idx--) {\n var report = new Report(mainReport);\n var isValid = exports.compileSchema.call(this, report, arr[idx]);\n if (isValid) {\n compiledCount++;\n }\n mainReport.errors = mainReport.errors.concat(report.errors);\n }\n return compiledCount;\n};\nfunction findId(arr, id) {\n var idx = arr.length;\n while (idx--) {\n if (arr[idx].id === id) {\n return arr[idx];\n }\n }\n return null;\n}\nvar compileArrayOfSchemas = function(report, arr) {\n var compiled = 0,\n lastLoopCompiled;\n do {\n var idx = report.errors.length;\n while (idx--) {\n if (report.errors[idx].code === \"UNRESOLVABLE_REFERENCE\") {\n report.errors.splice(idx, 1);\n }\n }\n lastLoopCompiled = compiled;\n compiled = compileArrayOfSchemasLoop.call(this, report, arr);\n idx = arr.length;\n while (idx--) {\n var sch = arr[idx];\n if (sch.__$missingReferences) {\n var idx2 = sch.__$missingReferences.length;\n while (idx2--) {\n var refObj = sch.__$missingReferences[idx2];\n var response = findId(arr, refObj.ref);\n if (response) {\n refObj.obj[\"__\" + refObj.key + \"Resolved\"] = response;\n sch.__$missingReferences.splice(idx2, 1);\n }\n }\n if (sch.__$missingReferences.length === 0) {\n delete sch.__$missingReferences;\n }\n }\n }\n } while (compiled !== arr.length && compiled !== lastLoopCompiled);\n return report.isValid();\n};\nexports.compileSchema = function(report, schema) {\n report.commonErrorMessage = \"SCHEMA_COMPILATION_FAILED\";\n if (typeof schema === \"string\") {\n var loadedSchema = SchemaCache.getSchemaByUri.call(this, report, schema);\n if (!loadedSchema) {\n report.addError(\"SCHEMA_NOT_REACHABLE\", [schema]);\n return false;\n }\n schema = loadedSchema;\n }\n if (Array.isArray(schema)) {\n return compileArrayOfSchemas.call(this, report, schema);\n }\n if (schema.__$compiled && schema.id && SchemaCache.checkCacheForUri.call(this, schema.id) === false) {\n schema.__$compiled = undefined;\n }\n if (schema.__$compiled) {\n return true;\n }\n if (schema.id && typeof schema.id === \"string\") {\n SchemaCache.cacheSchemaByUri.call(this, schema.id, schema);\n }\n var isRoot = false;\n if (!report.rootSchema) {\n report.rootSchema = schema;\n isRoot = true;\n }\n var isValidExceptReferences = report.isValid();\n delete schema.__$missingReferences;\n var refs = collectReferences.call(this, schema),\n idx = refs.length;\n while (idx--) {\n var refObj = refs[idx];\n var response = SchemaCache.getSchemaByUri.call(this, report, refObj.ref, schema);\n if (!response) {\n var schemaReader = this.getSchemaReader();\n if (schemaReader) {\n var s = schemaReader(refObj.ref);\n if (s) {\n s.id = refObj.ref;\n var subreport = new Report(report);\n if (!exports.compileSchema.call(this, subreport, s)) {\n report.errors = report.errors.concat(subreport.errors);\n } else {\n response = SchemaCache.getSchemaByUri.call(this, report, refObj.ref, schema);\n }\n }\n }\n }\n if (!response) {\n var hasNotValid = report.hasError(\"REMOTE_NOT_VALID\", [refObj.ref]);\n var isAbsolute = Utils.isAbsoluteUri(refObj.ref);\n var isDownloaded = false;\n var ignoreUnresolvableRemotes = this.options.ignoreUnresolvableReferences === true;\n if (isAbsolute) {\n isDownloaded = SchemaCache.checkCacheForUri.call(this, refObj.ref);\n }\n if (hasNotValid) {} else if (ignoreUnresolvableRemotes && isAbsolute) {} else if (isDownloaded) {} else {\n Array.prototype.push.apply(report.path, refObj.path);\n report.addError(\"UNRESOLVABLE_REFERENCE\", [refObj.ref]);\n report.path = report.path.slice(0, -refObj.path.length);\n if (isValidExceptReferences) {\n schema.__$missingReferences = schema.__$missingReferences || [];\n schema.__$missingReferences.push(refObj);\n }\n }\n }\n refObj.obj[\"__\" + refObj.key + \"Resolved\"] = response;\n }\n var isValid = report.isValid();\n if (isValid) {\n schema.__$compiled = true;\n } else {\n if (schema.id && typeof schema.id === \"string\") {\n SchemaCache.removeFromCacheByUri.call(this, schema.id);\n }\n }\n if (isRoot) {\n report.rootSchema = undefined;\n }\n return isValid;\n};\n","/* */ \n\"format cjs\";\n/*!\n * Copyright (c) 2015 Chris O'Hara <cohara87@gmail.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining\n * a copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to\n * permit persons to whom the Software is furnished to do so, subject to\n * the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n(function (name, definition) {\n if (typeof exports !== 'undefined' && typeof module !== 'undefined') {\n module.exports = definition();\n } else if (typeof define === 'function' && typeof define.amd === 'object') {\n define(definition);\n } else if (typeof define === 'function' && typeof define.petal === 'object') {\n define(name, [], definition);\n } else {\n this[name] = definition();\n }\n})('validator', function (validator) {\n\n 'use strict';\n\n validator = { version: '4.5.0' };\n\n var emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\n var quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\n\n var emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\n var quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\n\n var displayName = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF\\s]*<(.+)>$/i;\n\n var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$/;\n\n var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;\n\n var isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/\n , isbn13Maybe = /^(?:[0-9]{13})$/;\n\n var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;\n\n var ipv4Maybe = /^(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)$/\n , ipv6Block = /^[0-9A-F]{1,4}$/i;\n\n var uuid = {\n '3': /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i\n , '4': /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i\n , '5': /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i\n , all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i\n };\n\n var alpha = /^[A-Z]+$/i\n , alphanumeric = /^[0-9A-Z]+$/i\n , numeric = /^[-+]?[0-9]+$/\n , int = /^(?:[-+]?(?:0|[1-9][0-9]*))$/\n , float = /^(?:[-+]?(?:[0-9]+))?(?:\\.[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$/\n , hexadecimal = /^[0-9A-F]+$/i\n , decimal = /^[-+]?([0-9]+|\\.[0-9]+|[0-9]+\\.[0-9]+)$/\n , hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;\n\n var ascii = /^[\\x00-\\x7F]+$/\n , multibyte = /[^\\x00-\\x7F]/\n , fullWidth = /[^\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/\n , halfWidth = /[\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/;\n\n var surrogatePair = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/;\n\n var base64 = /^(?:[A-Z0-9+\\/]{4})*(?:[A-Z0-9+\\/]{2}==|[A-Z0-9+\\/]{3}=|[A-Z0-9+\\/]{4})$/i;\n\n var phones = {\n 'zh-CN': /^(\\+?0?86\\-?)?((13\\d|14[57]|15[^4,\\D]|17[678]|18\\d)\\d{8}|170[059]\\d{7})$/,\n 'zh-TW': /^(\\+?886\\-?|0)?9\\d{8}$/,\n 'en-ZA': /^(\\+?27|0)\\d{9}$/,\n 'en-AU': /^(\\+?61|0)4\\d{8}$/,\n 'en-HK': /^(\\+?852\\-?)?[569]\\d{3}\\-?\\d{4}$/,\n 'fr-FR': /^(\\+?33|0)[67]\\d{8}$/,\n 'pt-PT': /^(\\+351)?9[1236]\\d{7}$/,\n 'el-GR': /^(\\+?30)?(69\\d{8})$/,\n 'en-GB': /^(\\+?44|0)7\\d{9}$/,\n 'en-US': /^(\\+?1)?[2-9]\\d{2}[2-9](?!11)\\d{6}$/,\n 'en-ZM': /^(\\+26)?09[567]\\d{7}$/,\n 'ru-RU': /^(\\+?7|8)?9\\d{9}$/,\n 'nb-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'nn-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'vi-VN': /^(0|\\+?84)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,\n 'en-NZ': /^(\\+?64|0)2\\d{7,9}$/,\n 'en-IN': /^(\\+?91|0)?[789]\\d{9}$/\n };\n\n // from http://goo.gl/0ejHHW\n var iso8601 = /^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/;\n\n validator.extend = function (name, fn) {\n validator[name] = function () {\n var args = Array.prototype.slice.call(arguments);\n args[0] = validator.toString(args[0]);\n return fn.apply(validator, args);\n };\n };\n\n //Right before exporting the validator object, pass each of the builtins\n //through extend() so that their first argument is coerced to a string\n validator.init = function () {\n for (var name in validator) {\n if (typeof validator[name] !== 'function' || name === 'toString' ||\n name === 'toDate' || name === 'extend' || name === 'init') {\n continue;\n }\n validator.extend(name, validator[name]);\n }\n };\n\n validator.toString = function (input) {\n if (typeof input === 'object' && input !== null && input.toString) {\n input = input.toString();\n } else if (input === null || typeof input === 'undefined' || (isNaN(input) && !input.length)) {\n input = '';\n }\n return '' + input;\n };\n\n validator.toDate = function (date) {\n if (Object.prototype.toString.call(date) === '[object Date]') {\n return date;\n }\n date = Date.parse(date);\n return !isNaN(date) ? new Date(date) : null;\n };\n\n validator.toFloat = function (str) {\n return parseFloat(str);\n };\n\n validator.toInt = function (str, radix) {\n return parseInt(str, radix || 10);\n };\n\n validator.toBoolean = function (str, strict) {\n if (strict) {\n return str === '1' || str === 'true';\n }\n return str !== '0' && str !== 'false' && str !== '';\n };\n\n validator.equals = function (str, comparison) {\n return str === validator.toString(comparison);\n };\n\n validator.contains = function (str, elem) {\n return str.indexOf(validator.toString(elem)) >= 0;\n };\n\n validator.matches = function (str, pattern, modifiers) {\n if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {\n pattern = new RegExp(pattern, modifiers);\n }\n return pattern.test(str);\n };\n\n var default_email_options = {\n allow_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true\n };\n\n validator.isEmail = function (str, options) {\n options = merge(options, default_email_options);\n\n if (options.allow_display_name) {\n var display_email = str.match(displayName);\n if (display_email) {\n str = display_email[1];\n }\n }\n\n var parts = str.split('@')\n , domain = parts.pop()\n , user = parts.join('@');\n\n var lower_domain = domain.toLowerCase();\n if (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com') {\n user = user.replace(/\\./g, '').toLowerCase();\n }\n\n if (!validator.isByteLength(user, 0, 64) ||\n !validator.isByteLength(domain, 0, 256)) {\n return false;\n }\n\n if (!validator.isFQDN(domain, {require_tld: options.require_tld})) {\n return false;\n }\n\n if (user[0] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ?\n quotedEmailUserUtf8.test(user) :\n quotedEmailUser.test(user);\n }\n\n var pattern = options.allow_utf8_local_part ?\n emailUserUtf8Part : emailUserPart;\n\n var user_parts = user.split('.');\n for (var i = 0; i < user_parts.length; i++) {\n if (!pattern.test(user_parts[i])) {\n return false;\n }\n }\n\n return true;\n };\n\n var default_url_options = {\n protocols: [ 'http', 'https', 'ftp' ]\n , require_tld: true\n , require_protocol: false\n , require_valid_protocol: true\n , allow_underscores: false\n , allow_trailing_dot: false\n , allow_protocol_relative_urls: false\n };\n\n validator.isURL = function (url, options) {\n if (!url || url.length >= 2083 || /\\s/.test(url)) {\n return false;\n }\n if (url.indexOf('mailto:') === 0) {\n return false;\n }\n options = merge(options, default_url_options);\n var protocol, auth, host, hostname, port,\n port_str, split;\n split = url.split('://');\n if (split.length > 1) {\n protocol = split.shift();\n if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {\n return false;\n }\n } else if (options.require_protocol) {\n return false;\n } else if (options.allow_protocol_relative_urls && url.substr(0, 2) === '//') {\n split[0] = url.substr(2);\n }\n url = split.join('://');\n split = url.split('#');\n url = split.shift();\n\n split = url.split('?');\n url = split.shift();\n\n split = url.split('/');\n url = split.shift();\n split = url.split('@');\n if (split.length > 1) {\n auth = split.shift();\n if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {\n return false;\n }\n }\n hostname = split.join('@');\n split = hostname.split(':');\n host = split.shift();\n if (split.length) {\n port_str = split.join(':');\n port = parseInt(port_str, 10);\n if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {\n return false;\n }\n }\n if (!validator.isIP(host) && !validator.isFQDN(host, options) &&\n host !== 'localhost') {\n return false;\n }\n if (options.host_whitelist &&\n options.host_whitelist.indexOf(host) === -1) {\n return false;\n }\n if (options.host_blacklist &&\n options.host_blacklist.indexOf(host) !== -1) {\n return false;\n }\n return true;\n };\n\n validator.isMACAddress = function (str) {\n return macAddress.test(str);\n };\n\n validator.isIP = function (str, version) {\n version = validator.toString(version);\n if (!version) {\n return validator.isIP(str, 4) || validator.isIP(str, 6);\n } else if (version === '4') {\n if (!ipv4Maybe.test(str)) {\n return false;\n }\n var parts = str.split('.').sort(function (a, b) {\n return a - b;\n });\n return parts[3] <= 255;\n } else if (version === '6') {\n var blocks = str.split(':');\n var foundOmissionBlock = false; // marker to indicate ::\n\n // At least some OS accept the last 32 bits of an IPv6 address\n // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says\n // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses,\n // and '::a.b.c.d' is deprecated, but also valid.\n var foundIPv4TransitionBlock = validator.isIP(blocks[blocks.length - 1], 4);\n var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8;\n\n if (blocks.length > expectedNumberOfBlocks)\n return false;\n\n // initial or final ::\n if (str === '::') {\n return true;\n } else if (str.substr(0, 2) === '::') {\n blocks.shift();\n blocks.shift();\n foundOmissionBlock = true;\n } else if (str.substr(str.length - 2) === '::') {\n blocks.pop();\n blocks.pop();\n foundOmissionBlock = true;\n }\n\n for (var i = 0; i < blocks.length; ++i) {\n // test for a :: which can not be at the string start/end\n // since those cases have been handled above\n if (blocks[i] === '' && i > 0 && i < blocks.length -1) {\n if (foundOmissionBlock)\n return false; // multiple :: in address\n foundOmissionBlock = true;\n } else if (foundIPv4TransitionBlock && i == blocks.length - 1) {\n // it has been checked before that the last\n // block is a valid IPv4 address\n } else if (!ipv6Block.test(blocks[i])) {\n return false;\n }\n }\n\n if (foundOmissionBlock) {\n return blocks.length >= 1;\n } else {\n return blocks.length === expectedNumberOfBlocks;\n }\n }\n return false;\n };\n\n var default_fqdn_options = {\n require_tld: true\n , allow_underscores: false\n , allow_trailing_dot: false\n };\n\n validator.isFQDN = function (str, options) {\n options = merge(options, default_fqdn_options);\n\n /* Remove the optional trailing dot before checking validity */\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n var parts = str.split('.');\n if (options.require_tld) {\n var tld = parts.pop();\n if (!parts.length || !/^([a-z\\u00a1-\\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n }\n }\n for (var part, i = 0; i < parts.length; i++) {\n part = parts[i];\n if (options.allow_underscores) {\n if (part.indexOf('__') >= 0) {\n return false;\n }\n part = part.replace(/_/g, '');\n }\n if (!/^[a-z\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n }\n if (/[\\uff01-\\uff5e]/.test(part)) {\n // disallow full-width chars\n return false;\n }\n if (part[0] === '-' || part[part.length - 1] === '-') {\n return false;\n }\n if (part.indexOf('---') >= 0 && part.slice(0, 4) !== 'xn--') {\n return false;\n }\n }\n return true;\n };\n\n validator.isBoolean = function(str) {\n return (['true', 'false', '1', '0'].indexOf(str) >= 0);\n };\n\n validator.isAlpha = function (str) {\n return alpha.test(str);\n };\n\n validator.isAlphanumeric = function (str) {\n return alphanumeric.test(str);\n };\n\n validator.isNumeric = function (str) {\n return numeric.test(str);\n };\n\n validator.isDecimal = function (str) {\n return str !== '' && decimal.test(str);\n };\n\n validator.isHexadecimal = function (str) {\n return hexadecimal.test(str);\n };\n\n validator.isHexColor = function (str) {\n return hexcolor.test(str);\n };\n\n validator.isLowercase = function (str) {\n return str === str.toLowerCase();\n };\n\n validator.isUppercase = function (str) {\n return str === str.toUpperCase();\n };\n\n validator.isInt = function (str, options) {\n options = options || {};\n return int.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max);\n };\n\n validator.isFloat = function (str, options) {\n options = options || {};\n if (str === '' || str === '.') {\n return false;\n }\n return float.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max);\n };\n\n validator.isDivisibleBy = function (str, num) {\n return validator.toFloat(str) % validator.toInt(num) === 0;\n };\n\n validator.isNull = function (str) {\n return str.length === 0;\n };\n\n validator.isLength = function (str, min, max) {\n var surrogatePairs = str.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g) || [];\n var len = str.length - surrogatePairs.length;\n return len >= min && (typeof max === 'undefined' || len <= max);\n };\n\n validator.isByteLength = function (str, min, max) {\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n };\n\n validator.isUUID = function (str, version) {\n var pattern = uuid[version ? version : 'all'];\n return pattern && pattern.test(str);\n };\n\n function getTimezoneOffset(str) {\n var iso8601Parts = str.match(iso8601)\n , timezone, sign, hours, minutes;\n if (!iso8601Parts) {\n str = str.toLowerCase();\n timezone = str.match(/(?:\\s|gmt\\s*)(-|\\+)(\\d{1,4})(\\s|$)/);\n if (!timezone) {\n return str.indexOf('gmt') !== -1 ? 0 : null;\n }\n sign = timezone[1];\n var offset = timezone[2];\n if (offset.length === 3) {\n offset = '0' + offset;\n }\n if (offset.length <= 2) {\n hours = 0;\n minutes = parseInt(offset);\n } else {\n hours = parseInt(offset.slice(0, 2));\n minutes = parseInt(offset.slice(2, 4));\n }\n } else {\n timezone = iso8601Parts[21];\n if (!timezone) {\n return null;\n }\n if (timezone === 'z' || timezone === 'Z') {\n return 0;\n }\n sign = iso8601Parts[22];\n if (timezone.indexOf(':') !== -1) {\n hours = parseInt(iso8601Parts[23]);\n minutes = parseInt(iso8601Parts[24]);\n } else {\n hours = 0;\n minutes = parseInt(iso8601Parts[23]);\n }\n }\n return (hours * 60 + minutes) * (sign === '-' ? 1 : -1);\n }\n\n validator.isDate = function (str) {\n var normalizedDate = new Date(Date.parse(str));\n if (isNaN(normalizedDate)) {\n return false;\n }\n\n // normalizedDate is in the user's timezone. Apply the input\n // timezone offset to the date so that the year and day match\n // the input\n var timezoneOffset = getTimezoneOffset(str);\n if (timezoneOffset !== null) {\n var timezoneDifference = normalizedDate.getTimezoneOffset() -\n timezoneOffset;\n normalizedDate = new Date(normalizedDate.getTime() +\n 60000 * timezoneDifference);\n }\n\n var day = String(normalizedDate.getDate());\n var dayOrYear, dayOrYearMatches, year;\n //check for valid double digits that could be late days\n //check for all matches since a string like '12/23' is a valid date\n //ignore everything with nearby colons\n dayOrYearMatches = str.match(/(^|[^:\\d])[23]\\d([^:\\d]|$)/g);\n if (!dayOrYearMatches) {\n return true;\n }\n dayOrYear = dayOrYearMatches.map(function(digitString) {\n return digitString.match(/\\d+/g)[0];\n }).join('/');\n\n year = String(normalizedDate.getFullYear()).slice(-2);\n if (dayOrYear === day || dayOrYear === year) {\n return true;\n } else if ((dayOrYear === (day + '/' + year)) || (dayOrYear === (year + '/' + day))) {\n return true;\n }\n return false;\n };\n\n validator.isAfter = function (str, date) {\n var comparison = validator.toDate(date || new Date())\n , original = validator.toDate(str);\n return !!(original && comparison && original > comparison);\n };\n\n validator.isBefore = function (str, date) {\n var comparison = validator.toDate(date || new Date())\n , original = validator.toDate(str);\n return !!(original && comparison && original < comparison);\n };\n\n validator.isIn = function (str, options) {\n var i;\n if (Object.prototype.toString.call(options) === '[object Array]') {\n var array = [];\n for (i in options) {\n array[i] = validator.toString(options[i]);\n }\n return array.indexOf(str) >= 0;\n } else if (typeof options === 'object') {\n return options.hasOwnProperty(str);\n } else if (options && typeof options.indexOf === 'function') {\n return options.indexOf(str) >= 0;\n }\n return false;\n };\n\n validator.isWhitelisted = function (str, chars) {\n for (var i = str.length - 1; i >= 0; i--) {\n if (chars.indexOf(str[i]) === -1) {\n return false;\n }\n }\n\n return true;\n };\n\n validator.isCreditCard = function (str) {\n var sanitized = str.replace(/[^0-9]+/g, '');\n if (!creditCard.test(sanitized)) {\n return false;\n }\n var sum = 0, digit, tmpNum, shouldDouble;\n for (var i = sanitized.length - 1; i >= 0; i--) {\n digit = sanitized.substring(i, (i + 1));\n tmpNum = parseInt(digit, 10);\n if (shouldDouble) {\n tmpNum *= 2;\n if (tmpNum >= 10) {\n sum += ((tmpNum % 10) + 1);\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n shouldDouble = !shouldDouble;\n }\n return !!((sum % 10) === 0 ? sanitized : false);\n };\n\n validator.isISIN = function (str) {\n if (!isin.test(str)) {\n return false;\n }\n\n var checksumStr = str.replace(/[A-Z]/g, function(character) {\n return parseInt(character, 36);\n });\n\n var sum = 0, digit, tmpNum, shouldDouble = true;\n for (var i = checksumStr.length - 2; i >= 0; i--) {\n digit = checksumStr.substring(i, (i + 1));\n tmpNum = parseInt(digit, 10);\n if (shouldDouble) {\n tmpNum *= 2;\n if (tmpNum >= 10) {\n sum += tmpNum + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n shouldDouble = !shouldDouble;\n }\n\n return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;\n };\n\n validator.isISBN = function (str, version) {\n version = validator.toString(version);\n if (!version) {\n return validator.isISBN(str, 10) || validator.isISBN(str, 13);\n }\n var sanitized = str.replace(/[\\s-]+/g, '')\n , checksum = 0, i;\n if (version === '10') {\n if (!isbn10Maybe.test(sanitized)) {\n return false;\n }\n for (i = 0; i < 9; i++) {\n checksum += (i + 1) * sanitized.charAt(i);\n }\n if (sanitized.charAt(9) === 'X') {\n checksum += 10 * 10;\n } else {\n checksum += 10 * sanitized.charAt(9);\n }\n if ((checksum % 11) === 0) {\n return !!sanitized;\n }\n } else if (version === '13') {\n if (!isbn13Maybe.test(sanitized)) {\n return false;\n }\n var factor = [ 1, 3 ];\n for (i = 0; i < 12; i++) {\n checksum += factor[i % 2] * sanitized.charAt(i);\n }\n if (sanitized.charAt(12) - ((10 - (checksum % 10)) % 10) === 0) {\n return !!sanitized;\n }\n }\n return false;\n };\n\n validator.isMobilePhone = function(str, locale) {\n if (locale in phones) {\n return phones[locale].test(str);\n }\n return false;\n };\n\n var default_currency_options = {\n symbol: '$'\n , require_symbol: false\n , allow_space_after_symbol: false\n , symbol_after_digits: false\n , allow_negatives: true\n , parens_for_negatives: false\n , negative_sign_before_digits: false\n , negative_sign_after_digits: false\n , allow_negative_sign_placeholder: false\n , thousands_separator: ','\n , decimal_separator: '.'\n , allow_space_after_digits: false\n };\n\n validator.isCurrency = function (str, options) {\n options = merge(options, default_currency_options);\n\n return currencyRegex(options).test(str);\n };\n\n validator.isJSON = function (str) {\n try {\n var obj = JSON.parse(str);\n return !!obj && typeof obj === 'object';\n } catch (e) {}\n return false;\n };\n\n validator.isMultibyte = function (str) {\n return multibyte.test(str);\n };\n\n validator.isAscii = function (str) {\n return ascii.test(str);\n };\n\n validator.isFullWidth = function (str) {\n return fullWidth.test(str);\n };\n\n validator.isHalfWidth = function (str) {\n return halfWidth.test(str);\n };\n\n validator.isVariableWidth = function (str) {\n return fullWidth.test(str) && halfWidth.test(str);\n };\n\n validator.isSurrogatePair = function (str) {\n return surrogatePair.test(str);\n };\n\n validator.isBase64 = function (str) {\n return base64.test(str);\n };\n\n validator.isMongoId = function (str) {\n return validator.isHexadecimal(str) && str.length === 24;\n };\n\n validator.isISO8601 = function (str) {\n return iso8601.test(str);\n };\n\n validator.ltrim = function (str, chars) {\n var pattern = chars ? new RegExp('^[' + chars + ']+', 'g') : /^\\s+/g;\n return str.replace(pattern, '');\n };\n\n validator.rtrim = function (str, chars) {\n var pattern = chars ? new RegExp('[' + chars + ']+$', 'g') : /\\s+$/g;\n return str.replace(pattern, '');\n };\n\n validator.trim = function (str, chars) {\n var pattern = chars ? new RegExp('^[' + chars + ']+|[' + chars + ']+$', 'g') : /^\\s+|\\s+$/g;\n return str.replace(pattern, '');\n };\n\n validator.escape = function (str) {\n return (str.replace(/&/g, '&')\n .replace(/\"/g, '"')\n .replace(/'/g, ''')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\\//g, '/')\n .replace(/\\`/g, '`'));\n };\n\n validator.stripLow = function (str, keep_new_lines) {\n var chars = keep_new_lines ? '\\\\x00-\\\\x09\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F' : '\\\\x00-\\\\x1F\\\\x7F';\n return validator.blacklist(str, chars);\n };\n\n validator.whitelist = function (str, chars) {\n return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');\n };\n\n validator.blacklist = function (str, chars) {\n return str.replace(new RegExp('[' + chars + ']+', 'g'), '');\n };\n\n var default_normalize_email_options = {\n lowercase: true,\n remove_dots: true,\n remove_extension: true\n };\n\n validator.normalizeEmail = function (email, options) {\n options = merge(options, default_normalize_email_options);\n if (!validator.isEmail(email)) {\n return false;\n }\n var parts = email.split('@', 2);\n parts[1] = parts[1].toLowerCase();\n if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') {\n if (options.remove_extension) {\n parts[0] = parts[0].split('+')[0];\n }\n if (options.remove_dots) {\n parts[0] = parts[0].replace(/\\./g, '');\n }\n if (!parts[0].length) {\n return false;\n }\n parts[0] = parts[0].toLowerCase();\n parts[1] = 'gmail.com';\n } else if (options.lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n return parts.join('@');\n };\n\n function merge(obj, defaults) {\n obj = obj || {};\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n return obj;\n }\n\n function currencyRegex(options) {\n var symbol = '(\\\\' + options.symbol.replace(/\\./g, '\\\\.') + ')' + (options.require_symbol ? '' : '?')\n , negative = '-?'\n , whole_dollar_amount_without_sep = '[1-9]\\\\d*'\n , whole_dollar_amount_with_sep = '[1-9]\\\\d{0,2}(\\\\' + options.thousands_separator + '\\\\d{3})*'\n , valid_whole_dollar_amounts = ['0', whole_dollar_amount_without_sep, whole_dollar_amount_with_sep]\n , whole_dollar_amount = '(' + valid_whole_dollar_amounts.join('|') + ')?'\n , decimal_amount = '(\\\\' + options.decimal_separator + '\\\\d{2})?';\n var pattern = whole_dollar_amount + decimal_amount;\n // default is negative sign before symbol, but there are two other options (besides parens)\n if (options.allow_negatives && !options.parens_for_negatives) {\n if (options.negative_sign_after_digits) {\n pattern += negative;\n }\n else if (options.negative_sign_before_digits) {\n pattern = negative + pattern;\n }\n }\n // South African Rand, for example, uses R 123 (space) and R-123 (no space)\n if (options.allow_negative_sign_placeholder) {\n pattern = '( (?!\\\\-))?' + pattern;\n }\n else if (options.allow_space_after_symbol) {\n pattern = ' ?' + pattern;\n }\n else if (options.allow_space_after_digits) {\n pattern += '( (?!$))?';\n }\n if (options.symbol_after_digits) {\n pattern += symbol;\n } else {\n pattern = symbol + pattern;\n }\n if (options.allow_negatives) {\n if (options.parens_for_negatives) {\n pattern = '(\\\\(' + pattern + '\\\\)|' + pattern + ')';\n }\n else if (!(options.negative_sign_before_digits || options.negative_sign_after_digits)) {\n pattern = negative + pattern;\n }\n }\n return new RegExp(\n '^' +\n // ensure there's a dollar and/or decimal amount, and that it doesn't start with a space or a negative sign followed by a space\n '(?!-? )(?=.*\\\\d)' +\n pattern +\n '$'\n );\n }\n\n validator.init();\n\n return validator;\n\n});\n","module.exports = require(\"npm:validator@4.5.0/validator.js\");","/*jshint maxlen: false*/\n\nvar validator = require(\"validator\");\n\nvar FormatValidators = {\n \"date\": function (date) {\n if (typeof date !== \"string\") {\n return true;\n }\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n var matches = /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(date);\n if (matches === null) {\n return false;\n }\n // var year = matches[1];\n // var month = matches[2];\n // var day = matches[3];\n if (matches[2] < \"01\" || matches[2] > \"12\" || matches[3] < \"01\" || matches[3] > \"31\") {\n return false;\n }\n return true;\n },\n \"date-time\": function (dateTime) {\n if (typeof dateTime !== \"string\") {\n return true;\n }\n // date-time from http://tools.ietf.org/html/rfc3339#section-5.6\n var s = dateTime.toLowerCase().split(\"t\");\n if (!FormatValidators.date(s[0])) {\n return false;\n }\n var matches = /^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(s[1]);\n if (matches === null) {\n return false;\n }\n // var hour = matches[1];\n // var minute = matches[2];\n // var second = matches[3];\n // var fraction = matches[4];\n // var timezone = matches[5];\n if (matches[1] > \"23\" || matches[2] > \"59\" || matches[3] > \"59\") {\n return false;\n }\n return true;\n },\n \"email\": function (email) {\n if (typeof email !== \"string\") {\n return true;\n }\n return validator.isEmail(email, { \"require_tld\": true });\n },\n \"hostname\": function (hostname) {\n if (typeof hostname !== \"string\") {\n return true;\n }\n /*\n http://json-schema.org/latest/json-schema-validation.html#anchor114\n A string instance is valid against this attribute if it is a valid\n representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].\n\n http://tools.ietf.org/html/rfc1034#section-3.5\n\n <digit> ::= any one of the ten digits 0 through 9\n var digit = /[0-9]/;\n\n <letter> ::= any one of the 52 alphabetic characters A through Z in upper case and a through z in lower case\n var letter = /[a-zA-Z]/;\n\n <let-dig> ::= <letter> | <digit>\n var letDig = /[0-9a-zA-Z]/;\n\n <let-dig-hyp> ::= <let-dig> | \"-\"\n var letDigHyp = /[-0-9a-zA-Z]/;\n\n <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n var ldhStr = /[-0-9a-zA-Z]+/;\n\n <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]\n var label = /[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?/;\n\n <subdomain> ::= <label> | <subdomain> \".\" <label>\n var subdomain = /^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/;\n\n <domain> ::= <subdomain> | \" \"\n var domain = null;\n */\n var valid = /^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(hostname);\n if (valid) {\n // the sum of all label octets and label lengths is limited to 255.\n if (hostname.length > 255) { return false; }\n // Each node has a label, which is zero to 63 octets in length\n var labels = hostname.split(\".\");\n for (var i = 0; i < labels.length; i++) { if (labels[i].length > 63) { return false; } }\n }\n return valid;\n },\n \"host-name\": function (hostname) {\n return FormatValidators.hostname.call(this, hostname);\n },\n \"ipv4\": function (ipv4) {\n if (typeof ipv4 !== \"string\") { return true; }\n return validator.isIP(ipv4, 4);\n },\n \"ipv6\": function (ipv6) {\n if (typeof ipv6 !== \"string\") { return true; }\n return validator.isIP(ipv6, 6);\n },\n \"regex\": function (str) {\n try {\n RegExp(str);\n return true;\n } catch (e) {\n return false;\n }\n },\n \"uri\": function (uri) {\n if (this.options.strictUris) {\n return FormatValidators[\"strict-uri\"].apply(this, arguments);\n }\n // https://github.com/zaggino/z-schema/issues/18\n // RegExp from http://tools.ietf.org/html/rfc3986#appendix-B\n return typeof uri !== \"string\" || RegExp(\"^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\\\?([^#]*))?(#(.*))?\").test(uri);\n },\n \"strict-uri\": function (uri) {\n return typeof uri !== \"string\" || validator.isURL(uri);\n }\n};\n\nmodule.exports = FormatValidators;\n","/* */ \n\"use strict\";\nvar FormatValidators = require('./FormatValidators'),\n Report = require('./Report'),\n Utils = require('./Utils');\nvar JsonValidators = {\n multipleOf: function(report, schema, json) {\n if (typeof json !== \"number\") {\n return;\n }\n if (Utils.whatIs(json / schema.multipleOf) !== \"integer\") {\n report.addError(\"MULTIPLE_OF\", [json, schema.multipleOf], null, schema.description);\n }\n },\n maximum: function(report, schema, json) {\n if (typeof json !== \"number\") {\n return;\n }\n if (schema.exclusiveMaximum !== true) {\n if (json > schema.maximum) {\n report.addError(\"MAXIMUM\", [json, schema.maximum], null, schema.description);\n }\n } else {\n if (json >= schema.maximum) {\n report.addError(\"MAXIMUM_EXCLUSIVE\", [json, schema.maximum], null, schema.description);\n }\n }\n },\n exclusiveMaximum: function() {},\n minimum: function(report, schema, json) {\n if (typeof json !== \"number\") {\n return;\n }\n if (schema.exclusiveMinimum !== true) {\n if (json < schema.minimum) {\n report.addError(\"MINIMUM\", [json, schema.minimum], null, schema.description);\n }\n } else {\n if (json <= schema.minimum) {\n report.addError(\"MINIMUM_EXCLUSIVE\", [json, schema.minimum], null, schema.description);\n }\n }\n },\n exclusiveMinimum: function() {},\n maxLength: function(report, schema, json) {\n if (typeof json !== \"string\") {\n return;\n }\n if (Utils.ucs2decode(json).length > schema.maxLength) {\n report.addError(\"MAX_LENGTH\", [json.length, schema.maxLength], null, schema.description);\n }\n },\n minLength: function(report, schema, json) {\n if (typeof json !== \"string\") {\n return;\n }\n if (Utils.ucs2decode(json).length < schema.minLength) {\n report.addError(\"MIN_LENGTH\", [json.length, schema.minLength], null, schema.description);\n }\n },\n pattern: function(report, schema, json) {\n if (typeof json !== \"string\") {\n return;\n }\n if (RegExp(schema.pattern).test(json) === false) {\n report.addError(\"PATTERN\", [schema.pattern, json], null, schema.description);\n }\n },\n additionalItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (schema.additionalItems === false && Array.isArray(schema.items)) {\n if (json.length > schema.items.length) {\n report.addError(\"ARRAY_ADDITIONAL_ITEMS\", null, null, schema.description);\n }\n }\n },\n items: function() {},\n maxItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (json.length > schema.maxItems) {\n report.addError(\"ARRAY_LENGTH_LONG\", [json.length, schema.maxItems], null, schema.description);\n }\n },\n minItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (json.length < schema.minItems) {\n report.addError(\"ARRAY_LENGTH_SHORT\", [json.length, schema.minItems], null, schema.description);\n }\n },\n uniqueItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (schema.uniqueItems === true) {\n var matches = [];\n if (Utils.isUniqueArray(json, matches) === false) {\n report.addError(\"ARRAY_UNIQUE\", matches, null, schema.description);\n }\n }\n },\n maxProperties: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var keysCount = Object.keys(json).length;\n if (keysCount > schema.maxProperties) {\n report.addError(\"OBJECT_PROPERTIES_MAXIMUM\", [keysCount, schema.maxProperties], null, schema.description);\n }\n },\n minProperties: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var keysCount = Object.keys(json).length;\n if (keysCount < schema.minProperties) {\n report.addError(\"OBJECT_PROPERTIES_MINIMUM\", [keysCount, schema.minProperties], null, schema.description);\n }\n },\n required: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var idx = schema.required.length;\n while (idx--) {\n var requiredPropertyName = schema.required[idx];\n if (json[requiredPropertyName] === undefined) {\n report.addError(\"OBJECT_MISSING_REQUIRED_PROPERTY\", [requiredPropertyName], null, schema.description);\n }\n }\n },\n additionalProperties: function(report, schema, json) {\n if (schema.properties === undefined && schema.patternProperties === undefined) {\n return JsonValidators.properties.call(this, report, schema, json);\n }\n },\n patternProperties: function(report, schema, json) {\n if (schema.properties === undefined) {\n return JsonValidators.properties.call(this, report, schema, json);\n }\n },\n properties: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var properties = schema.properties !== undefined ? schema.properties : {};\n var patternProperties = schema.patternProperties !== undefined ? schema.patternProperties : {};\n if (schema.additionalProperties === false) {\n var s = Object.keys(json);\n var p = Object.keys(properties);\n var pp = Object.keys(patternProperties);\n s = Utils.difference(s, p);\n var idx = pp.length;\n while (idx--) {\n var regExp = RegExp(pp[idx]),\n idx2 = s.length;\n while (idx2--) {\n if (regExp.test(s[idx2]) === true) {\n s.splice(idx2, 1);\n }\n }\n }\n if (s.length > 0) {\n var idx3 = this.options.assumeAdditional.length;\n if (idx3) {\n while (idx3--) {\n var io = s.indexOf(this.options.assumeAdditional[idx3]);\n if (io !== -1) {\n s.splice(io, 1);\n }\n }\n }\n if (s.length > 0) {\n report.addError(\"OBJECT_ADDITIONAL_PROPERTIES\", [s], null, schema.description);\n }\n }\n }\n },\n dependencies: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var keys = Object.keys(schema.dependencies),\n idx = keys.length;\n while (idx--) {\n var dependencyName = keys[idx];\n if (json[dependencyName]) {\n var dependencyDefinition = schema.dependencies[dependencyName];\n if (Utils.whatIs(dependencyDefinition) === \"object\") {\n exports.validate.call(this, report, dependencyDefinition, json);\n } else {\n var idx2 = dependencyDefinition.length;\n while (idx2--) {\n var requiredPropertyName = dependencyDefinition[idx2];\n if (json[requiredPropertyName] === undefined) {\n report.addError(\"OBJECT_DEPENDENCY_KEY\", [requiredPropertyName, dependencyName], null, schema.description);\n }\n }\n }\n }\n }\n },\n enum: function(report, schema, json) {\n var match = false,\n idx = schema.enum.length;\n while (idx--) {\n if (Utils.areEqual(json, schema.enum[idx])) {\n match = true;\n break;\n }\n }\n if (match === false) {\n report.addError(\"ENUM_MISMATCH\", [json], null, schema.description);\n }\n },\n allOf: function(report, schema, json) {\n var idx = schema.allOf.length;\n while (idx--) {\n var validateResult = exports.validate.call(this, report, schema.allOf[idx], json);\n if (this.options.breakOnFirstError && validateResult === false) {\n break;\n }\n }\n },\n anyOf: function(report, schema, json) {\n var subReports = [],\n passed = false,\n idx = schema.anyOf.length;\n while (idx-- && passed === false) {\n var subReport = new Report(report);\n subReports.push(subReport);\n passed = exports.validate.call(this, subReport, schema.anyOf[idx], json);\n }\n if (passed === false) {\n report.addError(\"ANY_OF_MISSING\", undefined, subReports, schema.description);\n }\n },\n oneOf: function(report, schema, json) {\n var passes = 0,\n subReports = [],\n idx = schema.oneOf.length;\n while (idx--) {\n var subReport = new Report(report, {maxErrors: 1});\n subReports.push(subReport);\n if (exports.validate.call(this, subReport, schema.oneOf[idx], json) === true) {\n passes++;\n }\n }\n if (passes === 0) {\n report.addError(\"ONE_OF_MISSING\", undefined, subReports, schema.description);\n } else if (passes > 1) {\n report.addError(\"ONE_OF_MULTIPLE\", null, null, schema.description);\n }\n },\n not: function(report, schema, json) {\n var subReport = new Report(report);\n if (exports.validate.call(this, subReport, schema.not, json) === true) {\n report.addError(\"NOT_PASSED\", null, null, schema.description);\n }\n },\n definitions: function() {},\n format: function(report, schema, json) {\n var formatValidatorFn = FormatValidators[schema.format];\n if (typeof formatValidatorFn === \"function\") {\n if (formatValidatorFn.length === 2) {\n report.addAsyncTask(formatValidatorFn, [json], function(result) {\n if (result !== true) {\n report.addError(\"INVALID_FORMAT\", [schema.format, json], null, schema.description);\n }\n });\n } else {\n if (formatValidatorFn.call(this, json) !== true) {\n report.addError(\"INVALID_FORMAT\", [schema.format, json], null, schema.description);\n }\n }\n } else if (this.options.ignoreUnknownFormats !== true) {\n report.addError(\"UNKNOWN_FORMAT\", [schema.format], null, schema.description);\n }\n }\n};\nvar recurseArray = function(report, schema, json) {\n var idx = json.length;\n if (Array.isArray(schema.items)) {\n while (idx--) {\n if (idx < schema.items.length) {\n report.path.push(idx.toString());\n exports.validate.call(this, report, schema.items[idx], json[idx]);\n report.path.pop();\n } else {\n if (typeof schema.additionalItems === \"object\") {\n report.path.push(idx.toString());\n exports.validate.call(this, report, schema.additionalItems, json[idx]);\n report.path.pop();\n }\n }\n }\n } else if (typeof schema.items === \"object\") {\n while (idx--) {\n report.path.push(idx.toString());\n exports.validate.call(this, report, schema.items, json[idx]);\n report.path.pop();\n }\n }\n};\nvar recurseObject = function(report, schema, json) {\n var additionalProperties = schema.additionalProperties;\n if (additionalProperties === true || additionalProperties === undefined) {\n additionalProperties = {};\n }\n var p = schema.properties ? Object.keys(schema.properties) : [];\n var pp = schema.patternProperties ? Object.keys(schema.patternProperties) : [];\n var keys = Object.keys(json),\n idx = keys.length;\n while (idx--) {\n var m = keys[idx],\n propertyValue = json[m];\n var s = [];\n if (p.indexOf(m) !== -1) {\n s.push(schema.properties[m]);\n }\n var idx2 = pp.length;\n while (idx2--) {\n var regexString = pp[idx2];\n if (RegExp(regexString).test(m) === true) {\n s.push(schema.patternProperties[regexString]);\n }\n }\n if (s.length === 0 && additionalProperties !== false) {\n s.push(additionalProperties);\n }\n idx2 = s.length;\n while (idx2--) {\n report.path.push(m);\n exports.validate.call(this, report, s[idx2], propertyValue);\n report.path.pop();\n }\n }\n};\nexports.validate = function(report, schema, json) {\n report.commonErrorMessage = \"JSON_OBJECT_VALIDATION_FAILED\";\n var to = Utils.whatIs(schema);\n if (to !== \"object\") {\n report.addError(\"SCHEMA_NOT_AN_OBJECT\", [to], null, schema.description);\n return false;\n }\n var keys = Object.keys(schema);\n if (keys.length === 0) {\n return true;\n }\n var isRoot = false;\n if (!report.rootSchema) {\n report.rootSchema = schema;\n isRoot = true;\n }\n if (schema.$ref !== undefined) {\n var maxRefs = 99;\n while (schema.$ref && maxRefs > 0) {\n if (!schema.__$refResolved) {\n report.addError(\"REF_UNRESOLVED\", [schema.$ref], null, schema.description);\n break;\n } else if (schema.__$refResolved === schema) {\n break;\n } else {\n schema = schema.__$refResolved;\n keys = Object.keys(schema);\n }\n maxRefs--;\n }\n if (maxRefs === 0) {\n throw new Error(\"Circular dependency by $ref references!\");\n }\n }\n var jsonType = Utils.whatIs(json);\n if (schema.type) {\n if (typeof schema.type === \"string\") {\n if (jsonType !== schema.type && (jsonType !== \"integer\" || schema.type !== \"number\")) {\n report.addError(\"INVALID_TYPE\", [schema.type, jsonType], null, schema.description);\n if (this.options.breakOnFirstError) {\n return false;\n }\n }\n } else {\n if (schema.type.indexOf(jsonType) === -1 && (jsonType !== \"integer\" || schema.type.indexOf(\"number\") === -1)) {\n report.addError(\"INVALID_TYPE\", [schema.type, jsonType], null, schema.description);\n if (this.options.breakOnFirstError) {\n return false;\n }\n }\n }\n }\n var idx = keys.length;\n while (idx--) {\n if (JsonValidators[keys[idx]]) {\n JsonValidators[keys[idx]].call(this, report, schema, json);\n if (report.errors.length && this.options.breakOnFirstError) {\n break;\n }\n }\n }\n if (report.errors.length === 0 || this.options.breakOnFirstError === false) {\n if (jsonType === \"array\") {\n recurseArray.call(this, report, schema, json);\n } else if (jsonType === \"object\") {\n recurseObject.call(this, report, schema, json);\n }\n }\n if (isRoot) {\n report.rootSchema = undefined;\n }\n return report.errors.length === 0;\n};\n","/* */ \n(function(process) {\n function baseGet(object, path, pathKey) {\n if (object == null) {\n return;\n }\n if (pathKey !== undefined && pathKey in toObject(object)) {\n path = [pathKey];\n }\n var index = 0,\n length = path.length;\n while (object != null && index < length) {\n object = object[path[index++]];\n }\n return (index && index == length) ? object : undefined;\n }\n function toObject(value) {\n return isObject(value) ? value : Object(value);\n }\n function isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n }\n module.exports = baseGet;\n})(require('process'));\n","module.exports = require(\"npm:lodash._baseget@3.7.2/index\");","/**\n * lodash 3.0.4 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n\n/** Used to detect host constructors (Safari > 5). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar fnToString = Function.prototype.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/* Native method references for those with the same name as other `lodash` methods. */\nvar nativeIsArray = getNative(Array, 'isArray');\n\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\nvar isArray = nativeIsArray || function(value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;\n","module.exports = require(\"npm:lodash.isarray@3.0.4/index\");","/* */ \n(function(process) {\n var isArray = require('lodash.isarray');\n var rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g;\n var reEscapeChar = /\\\\(\\\\)?/g;\n function baseToString(value) {\n return value == null ? '' : (value + '');\n }\n function toPath(value) {\n if (isArray(value)) {\n return value;\n }\n var result = [];\n baseToString(value).replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n }\n module.exports = toPath;\n})(require('process'));\n","module.exports = require(\"npm:lodash._topath@3.8.1/index\");","/**\n * lodash 3.7.0 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\nvar baseGet = require('lodash._baseget'),\n toPath = require('lodash._topath');\n\n/**\n * Gets the property value of `path` on `object`. If the resolved value is\n * `undefined` the `defaultValue` is used in its place.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, toPath(path), path + '');\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","module.exports = require(\"npm:lodash.get@3.7.0/index\");","/* */ \n\"use strict\";\n\nmodule.exports = {\n\n INVALID_TYPE: \"Expected type {0} but found type {1}\",\n INVALID_FORMAT: \"Object didn't pass validation for format {0}: {1}\",\n ENUM_MISMATCH: \"No enum match for: {0}\",\n ANY_OF_MISSING: \"Data does not match any schemas from 'anyOf'\",\n ONE_OF_MISSING: \"Data does not match any schemas from 'oneOf'\",\n ONE_OF_MULTIPLE: \"Data is valid against more than one schema from 'oneOf'\",\n NOT_PASSED: \"Data matches schema from 'not'\",\n\n // Array errors\n ARRAY_LENGTH_SHORT: \"Array is too short ({0}), minimum {1}\",\n ARRAY_LENGTH_LONG: \"Array is too long ({0}), maximum {1}\",\n ARRAY_UNIQUE: \"Array items are not unique (indexes {0} and {1})\",\n ARRAY_ADDITIONAL_ITEMS: \"Additional items not allowed\",\n\n // Numeric errors\n MULTIPLE_OF: \"Value {0} is not a multiple of {1}\",\n MINIMUM: \"Value {0} is less than minimum {1}\",\n MINIMUM_EXCLUSIVE: \"Value {0} is equal or less than exclusive minimum {1}\",\n MAXIMUM: \"Value {0} is greater than maximum {1}\",\n MAXIMUM_EXCLUSIVE: \"Value {0} is equal or greater than exclusive maximum {1}\",\n\n // Object errors\n OBJECT_PROPERTIES_MINIMUM: \"Too few properties defined ({0}), minimum {1}\",\n OBJECT_PROPERTIES_MAXIMUM: \"Too many properties defined ({0}), maximum {1}\",\n OBJECT_MISSING_REQUIRED_PROPERTY: \"Missing required property: {0}\",\n OBJECT_ADDITIONAL_PROPERTIES: \"Additional properties not allowed: {0}\",\n OBJECT_DEPENDENCY_KEY: \"Dependency failed - key must exist: {0} (due to key: {1})\",\n\n // String errors\n MIN_LENGTH: \"String is too short ({0} chars), minimum {1}\",\n MAX_LENGTH: \"String is too long ({0} chars), maximum {1}\",\n PATTERN: \"String does not match pattern {0}: {1}\",\n\n // Schema validation errors\n KEYWORD_TYPE_EXPECTED: \"Keyword '{0}' is expected to be of type '{1}'\",\n KEYWORD_UNDEFINED_STRICT: \"Keyword '{0}' must be defined in strict mode\",\n KEYWORD_UNEXPECTED: \"Keyword '{0}' is not expected to appear in the schema\",\n KEYWORD_MUST_BE: \"Keyword '{0}' must be {1}\",\n KEYWORD_DEPENDENCY: \"Keyword '{0}' requires keyword '{1}'\",\n KEYWORD_PATTERN: \"Keyword '{0}' is not a valid RegExp pattern: {1}\",\n KEYWORD_VALUE_TYPE: \"Each element of keyword '{0}' array must be a '{1}'\",\n UNKNOWN_FORMAT: \"There is no validation function for format '{0}'\",\n CUSTOM_MODE_FORCE_PROPERTIES: \"{0} must define at least one property if present\",\n\n // Remote errors\n REF_UNRESOLVED: \"Reference has not been resolved during compilation: {0}\",\n UNRESOLVABLE_REFERENCE: \"Reference could not be resolved: {0}\",\n SCHEMA_NOT_REACHABLE: \"Validator was not able to read schema with uri: {0}\",\n SCHEMA_TYPE_EXPECTED: \"Schema is expected to be of type 'object'\",\n SCHEMA_NOT_AN_OBJECT: \"Schema is not an object: {0}\",\n ASYNC_TIMEOUT: \"{0} asynchronous task(s) have timed out after {1} ms\",\n PARENT_SCHEMA_VALIDATION_FAILED: \"Schema failed to validate against its parent schema, see inner errors for details.\",\n REMOTE_NOT_VALID: \"Remote reference didn't compile successfully: {0}\"\n\n};\n","/* */ \n(function(process) {\n \"use strict\";\n var get = require('lodash.get');\n var Errors = require('./Errors');\n var Utils = require('./Utils');\n function Report(parentOrOptions, reportOptions) {\n this.parentReport = parentOrOptions instanceof Report ? parentOrOptions : undefined;\n this.options = parentOrOptions instanceof Report ? parentOrOptions.options : parentOrOptions || {};\n this.reportOptions = reportOptions || {};\n this.errors = [];\n this.path = [];\n this.asyncTasks = [];\n }\n Report.prototype.isValid = function() {\n if (this.asyncTasks.length > 0) {\n throw new Error(\"Async tasks pending, can't answer isValid\");\n }\n return this.errors.length === 0;\n };\n Report.prototype.addAsyncTask = function(fn, args, asyncTaskResultProcessFn) {\n this.asyncTasks.push([fn, args, asyncTaskResultProcessFn]);\n };\n Report.prototype.processAsyncTasks = function(timeout, callback) {\n var validationTimeout = timeout || 2000,\n tasksCount = this.asyncTasks.length,\n idx = tasksCount,\n timedOut = false,\n self = this;\n function finish() {\n process.nextTick(function() {\n var valid = self.errors.length === 0,\n err = valid ? undefined : self.errors;\n callback(err, valid);\n });\n }\n function respond(asyncTaskResultProcessFn) {\n return function(asyncTaskResult) {\n if (timedOut) {\n return;\n }\n asyncTaskResultProcessFn(asyncTaskResult);\n if (--tasksCount === 0) {\n finish();\n }\n };\n }\n if (tasksCount === 0 || this.errors.length > 0) {\n finish();\n return;\n }\n while (idx--) {\n var task = this.asyncTasks[idx];\n task[0].apply(null, task[1].concat(respond(task[2])));\n }\n setTimeout(function() {\n if (tasksCount > 0) {\n timedOut = true;\n self.addError(\"ASYNC_TIMEOUT\", [tasksCount, validationTimeout]);\n callback(self.errors, false);\n }\n }, validationTimeout);\n };\n Report.prototype.getPath = function() {\n var path = [];\n if (this.parentReport) {\n path = path.concat(this.parentReport.path);\n }\n path = path.concat(this.path);\n if (this.options.reportPathAsArray !== true) {\n path = \"#/\" + path.map(function(segment) {\n if (Utils.isAbsoluteUri(segment)) {\n return \"uri(\" + segment + \")\";\n }\n return segment.replace(/\\~/g, \"~0\").replace(/\\//g, \"~1\");\n }).join(\"/\");\n }\n return path;\n };\n Report.prototype.getSchemaId = function() {\n if (!this.rootSchema) {\n return null;\n }\n var path = [];\n if (this.parentReport) {\n path = path.concat(this.parentReport.path);\n }\n path = path.concat(this.path);\n while (path.length > 0) {\n var obj = get(this.rootSchema, path);\n if (obj && obj.id) {\n return obj.id;\n }\n path.pop();\n }\n return this.rootSchema.id;\n };\n Report.prototype.hasError = function(errorCode, params) {\n var idx = this.errors.length;\n while (idx--) {\n if (this.errors[idx].code === errorCode) {\n var match = true;\n var idx2 = this.errors[idx].params.length;\n while (idx2--) {\n if (this.errors[idx].params[idx2] !== params[idx2]) {\n match = false;\n }\n }\n if (match) {\n return match;\n }\n }\n }\n return false;\n };\n Report.prototype.addError = function(errorCode, params, subReports, schemaDescription) {\n if (this.errors.length >= this.reportOptions.maxErrors) {\n return;\n }\n if (!errorCode) {\n throw new Error(\"No errorCode passed into addError()\");\n }\n if (!Errors[errorCode]) {\n throw new Error(\"No errorMessage known for code \" + errorCode);\n }\n params = params || [];\n var idx = params.length,\n errorMessage = Errors[errorCode];\n while (idx--) {\n var whatIs = Utils.whatIs(params[idx]);\n var param = (whatIs === \"object\" || whatIs === \"null\") ? JSON.stringify(params[idx]) : params[idx];\n errorMessage = errorMessage.replace(\"{\" + idx + \"}\", param);\n }\n var err = {\n code: errorCode,\n params: params,\n message: errorMessage,\n path: this.getPath(),\n schemaId: this.getSchemaId()\n };\n if (schemaDescription) {\n err.description = schemaDescription;\n }\n if (subReports != null) {\n if (!Array.isArray(subReports)) {\n subReports = [subReports];\n }\n err.inner = [];\n idx = subReports.length;\n while (idx--) {\n var subReport = subReports[idx],\n idx2 = subReport.errors.length;\n while (idx2--) {\n err.inner.push(subReport.errors[idx2]);\n }\n }\n if (err.inner.length === 0) {\n err.inner = undefined;\n }\n }\n this.errors.push(err);\n };\n module.exports = Report;\n})(require('process'));\n","/* */ \n\"use strict\";\nvar FormatValidators = require('./FormatValidators'),\n JsonValidation = require('./JsonValidation'),\n Report = require('./Report'),\n Utils = require('./Utils');\nvar SchemaValidators = {\n $ref: function(report, schema) {\n if (typeof schema.$ref !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"$ref\", \"string\"]);\n }\n },\n $schema: function(report, schema) {\n if (typeof schema.$schema !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"$schema\", \"string\"]);\n }\n },\n multipleOf: function(report, schema) {\n if (typeof schema.multipleOf !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"multipleOf\", \"number\"]);\n } else if (schema.multipleOf <= 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"multipleOf\", \"strictly greater than 0\"]);\n }\n },\n maximum: function(report, schema) {\n if (typeof schema.maximum !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maximum\", \"number\"]);\n }\n },\n exclusiveMaximum: function(report, schema) {\n if (typeof schema.exclusiveMaximum !== \"boolean\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"exclusiveMaximum\", \"boolean\"]);\n } else if (schema.maximum === undefined) {\n report.addError(\"KEYWORD_DEPENDENCY\", [\"exclusiveMaximum\", \"maximum\"]);\n }\n },\n minimum: function(report, schema) {\n if (typeof schema.minimum !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minimum\", \"number\"]);\n }\n },\n exclusiveMinimum: function(report, schema) {\n if (typeof schema.exclusiveMinimum !== \"boolean\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"exclusiveMinimum\", \"boolean\"]);\n } else if (schema.minimum === undefined) {\n report.addError(\"KEYWORD_DEPENDENCY\", [\"exclusiveMinimum\", \"minimum\"]);\n }\n },\n maxLength: function(report, schema) {\n if (Utils.whatIs(schema.maxLength) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maxLength\", \"integer\"]);\n } else if (schema.maxLength < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"maxLength\", \"greater than, or equal to 0\"]);\n }\n },\n minLength: function(report, schema) {\n if (Utils.whatIs(schema.minLength) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minLength\", \"integer\"]);\n } else if (schema.minLength < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"minLength\", \"greater than, or equal to 0\"]);\n }\n },\n pattern: function(report, schema) {\n if (typeof schema.pattern !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"pattern\", \"string\"]);\n } else {\n try {\n RegExp(schema.pattern);\n } catch (e) {\n report.addError(\"KEYWORD_PATTERN\", [\"pattern\", schema.pattern]);\n }\n }\n },\n additionalItems: function(report, schema) {\n var type = Utils.whatIs(schema.additionalItems);\n if (type !== \"boolean\" && type !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"additionalItems\", [\"boolean\", \"object\"]]);\n } else if (type === \"object\") {\n report.path.push(\"additionalItems\");\n exports.validateSchema.call(this, report, schema.additionalItems);\n report.path.pop();\n }\n },\n items: function(report, schema) {\n var type = Utils.whatIs(schema.items);\n if (type === \"object\") {\n report.path.push(\"items\");\n exports.validateSchema.call(this, report, schema.items);\n report.path.pop();\n } else if (type === \"array\") {\n var idx = schema.items.length;\n while (idx--) {\n report.path.push(\"items\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.items[idx]);\n report.path.pop();\n report.path.pop();\n }\n } else {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"items\", [\"array\", \"object\"]]);\n }\n if (this.options.forceAdditional === true && schema.additionalItems === undefined && Array.isArray(schema.items)) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"additionalItems\"]);\n }\n if (this.options.assumeAdditional && schema.additionalItems === undefined && Array.isArray(schema.items)) {\n schema.additionalItems = false;\n }\n },\n maxItems: function(report, schema) {\n if (typeof schema.maxItems !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maxItems\", \"integer\"]);\n } else if (schema.maxItems < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"maxItems\", \"greater than, or equal to 0\"]);\n }\n },\n minItems: function(report, schema) {\n if (Utils.whatIs(schema.minItems) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minItems\", \"integer\"]);\n } else if (schema.minItems < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"minItems\", \"greater than, or equal to 0\"]);\n }\n },\n uniqueItems: function(report, schema) {\n if (typeof schema.uniqueItems !== \"boolean\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"uniqueItems\", \"boolean\"]);\n }\n },\n maxProperties: function(report, schema) {\n if (Utils.whatIs(schema.maxProperties) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maxProperties\", \"integer\"]);\n } else if (schema.maxProperties < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"maxProperties\", \"greater than, or equal to 0\"]);\n }\n },\n minProperties: function(report, schema) {\n if (Utils.whatIs(schema.minProperties) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minProperties\", \"integer\"]);\n } else if (schema.minProperties < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"minProperties\", \"greater than, or equal to 0\"]);\n }\n },\n required: function(report, schema) {\n if (Utils.whatIs(schema.required) !== \"array\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"required\", \"array\"]);\n } else if (schema.required.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"required\", \"an array with at least one element\"]);\n } else {\n var idx = schema.required.length;\n while (idx--) {\n if (typeof schema.required[idx] !== \"string\") {\n report.addError(\"KEYWORD_VALUE_TYPE\", [\"required\", \"string\"]);\n }\n }\n if (Utils.isUniqueArray(schema.required) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"required\", \"an array with unique items\"]);\n }\n }\n },\n additionalProperties: function(report, schema) {\n var type = Utils.whatIs(schema.additionalProperties);\n if (type !== \"boolean\" && type !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"additionalProperties\", [\"boolean\", \"object\"]]);\n } else if (type === \"object\") {\n report.path.push(\"additionalProperties\");\n exports.validateSchema.call(this, report, schema.additionalProperties);\n report.path.pop();\n }\n },\n properties: function(report, schema) {\n if (Utils.whatIs(schema.properties) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"properties\", \"object\"]);\n return;\n }\n var keys = Object.keys(schema.properties),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx],\n val = schema.properties[key];\n report.path.push(\"properties\");\n report.path.push(key);\n exports.validateSchema.call(this, report, val);\n report.path.pop();\n report.path.pop();\n }\n if (this.options.forceAdditional === true && schema.additionalProperties === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"additionalProperties\"]);\n }\n if (this.options.assumeAdditional && schema.additionalProperties === undefined) {\n schema.additionalProperties = false;\n }\n if (this.options.forceProperties === true && keys.length === 0) {\n report.addError(\"CUSTOM_MODE_FORCE_PROPERTIES\", [\"properties\"]);\n }\n },\n patternProperties: function(report, schema) {\n if (Utils.whatIs(schema.patternProperties) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"patternProperties\", \"object\"]);\n return;\n }\n var keys = Object.keys(schema.patternProperties),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx],\n val = schema.patternProperties[key];\n try {\n RegExp(key);\n } catch (e) {\n report.addError(\"KEYWORD_PATTERN\", [\"patternProperties\", key]);\n }\n report.path.push(\"patternProperties\");\n report.path.push(key.toString());\n exports.validateSchema.call(this, report, val);\n report.path.pop();\n report.path.pop();\n }\n if (this.options.forceProperties === true && keys.length === 0) {\n report.addError(\"CUSTOM_MODE_FORCE_PROPERTIES\", [\"patternProperties\"]);\n }\n },\n dependencies: function(report, schema) {\n if (Utils.whatIs(schema.dependencies) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"dependencies\", \"object\"]);\n } else {\n var keys = Object.keys(schema.dependencies),\n idx = keys.length;\n while (idx--) {\n var schemaKey = keys[idx],\n schemaDependency = schema.dependencies[schemaKey],\n type = Utils.whatIs(schemaDependency);\n if (type === \"object\") {\n report.path.push(\"dependencies\");\n report.path.push(schemaKey);\n exports.validateSchema.call(this, report, schemaDependency);\n report.path.pop();\n report.path.pop();\n } else if (type === \"array\") {\n var idx2 = schemaDependency.length;\n if (idx2 === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"dependencies\", \"not empty array\"]);\n }\n while (idx2--) {\n if (typeof schemaDependency[idx2] !== \"string\") {\n report.addError(\"KEYWORD_VALUE_TYPE\", [\"dependensices\", \"string\"]);\n }\n }\n if (Utils.isUniqueArray(schemaDependency) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"dependencies\", \"an array with unique items\"]);\n }\n } else {\n report.addError(\"KEYWORD_VALUE_TYPE\", [\"dependencies\", \"object or array\"]);\n }\n }\n }\n },\n enum: function(report, schema) {\n if (Array.isArray(schema.enum) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"enum\", \"array\"]);\n } else if (schema.enum.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"enum\", \"an array with at least one element\"]);\n } else if (Utils.isUniqueArray(schema.enum) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"enum\", \"an array with unique elements\"]);\n }\n },\n type: function(report, schema) {\n var primitiveTypes = [\"array\", \"boolean\", \"integer\", \"number\", \"null\", \"object\", \"string\"],\n primitiveTypeStr = primitiveTypes.join(\",\"),\n isArray = Array.isArray(schema.type);\n if (isArray) {\n var idx = schema.type.length;\n while (idx--) {\n if (primitiveTypes.indexOf(schema.type[idx]) === -1) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"type\", primitiveTypeStr]);\n }\n }\n if (Utils.isUniqueArray(schema.type) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"type\", \"an object with unique properties\"]);\n }\n } else if (typeof schema.type === \"string\") {\n if (primitiveTypes.indexOf(schema.type) === -1) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"type\", primitiveTypeStr]);\n }\n } else {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"type\", [\"string\", \"array\"]]);\n }\n if (this.options.noEmptyStrings === true) {\n if (schema.type === \"string\" || isArray && schema.type.indexOf(\"string\") !== -1) {\n if (schema.minLength === undefined && schema.enum === undefined && schema.format === undefined) {\n schema.minLength = 1;\n }\n }\n }\n if (this.options.noEmptyArrays === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.minItems === undefined) {\n schema.minItems = 1;\n }\n }\n }\n if (this.options.forceProperties === true) {\n if (schema.type === \"object\" || isArray && schema.type.indexOf(\"object\") !== -1) {\n if (schema.properties === undefined && schema.patternProperties === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"properties\"]);\n }\n }\n }\n if (this.options.forceItems === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.items === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"items\"]);\n }\n }\n }\n if (this.options.forceMinItems === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.minItems === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"minItems\"]);\n }\n }\n }\n if (this.options.forceMaxItems === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.maxItems === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"maxItems\"]);\n }\n }\n }\n if (this.options.forceMinLength === true) {\n if (schema.type === \"string\" || isArray && schema.type.indexOf(\"string\") !== -1) {\n if (schema.minLength === undefined && schema.format === undefined && schema.enum === undefined && schema.pattern === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"minLength\"]);\n }\n }\n }\n if (this.options.forceMaxLength === true) {\n if (schema.type === \"string\" || isArray && schema.type.indexOf(\"string\") !== -1) {\n if (schema.maxLength === undefined && schema.format === undefined && schema.enum === undefined && schema.pattern === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"maxLength\"]);\n }\n }\n }\n },\n allOf: function(report, schema) {\n if (Array.isArray(schema.allOf) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"allOf\", \"array\"]);\n } else if (schema.allOf.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"allOf\", \"an array with at least one element\"]);\n } else {\n var idx = schema.allOf.length;\n while (idx--) {\n report.path.push(\"allOf\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.allOf[idx]);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n anyOf: function(report, schema) {\n if (Array.isArray(schema.anyOf) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"anyOf\", \"array\"]);\n } else if (schema.anyOf.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"anyOf\", \"an array with at least one element\"]);\n } else {\n var idx = schema.anyOf.length;\n while (idx--) {\n report.path.push(\"anyOf\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.anyOf[idx]);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n oneOf: function(report, schema) {\n if (Array.isArray(schema.oneOf) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"oneOf\", \"array\"]);\n } else if (schema.oneOf.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"oneOf\", \"an array with at least one element\"]);\n } else {\n var idx = schema.oneOf.length;\n while (idx--) {\n report.path.push(\"oneOf\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.oneOf[idx]);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n not: function(report, schema) {\n if (Utils.whatIs(schema.not) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"not\", \"object\"]);\n } else {\n report.path.push(\"not\");\n exports.validateSchema.call(this, report, schema.not);\n report.path.pop();\n }\n },\n definitions: function(report, schema) {\n if (Utils.whatIs(schema.definitions) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"definitions\", \"object\"]);\n } else {\n var keys = Object.keys(schema.definitions),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx],\n val = schema.definitions[key];\n report.path.push(\"definitions\");\n report.path.push(key);\n exports.validateSchema.call(this, report, val);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n format: function(report, schema) {\n if (typeof schema.format !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"format\", \"string\"]);\n } else {\n if (FormatValidators[schema.format] === undefined && this.options.ignoreUnknownFormats !== true) {\n report.addError(\"UNKNOWN_FORMAT\", [schema.format]);\n }\n }\n },\n id: function(report, schema) {\n if (typeof schema.id !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"id\", \"string\"]);\n }\n },\n title: function(report, schema) {\n if (typeof schema.title !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"title\", \"string\"]);\n }\n },\n description: function(report, schema) {\n if (typeof schema.description !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"description\", \"string\"]);\n }\n },\n \"default\": function() {}\n};\nvar validateArrayOfSchemas = function(report, arr) {\n var idx = arr.length;\n while (idx--) {\n exports.validateSchema.call(this, report, arr[idx]);\n }\n return report.isValid();\n};\nexports.validateSchema = function(report, schema) {\n report.commonErrorMessage = \"SCHEMA_VALIDATION_FAILED\";\n if (Array.isArray(schema)) {\n return validateArrayOfSchemas.call(this, report, schema);\n }\n if (schema.__$validated) {\n return true;\n }\n var hasParentSchema = schema.$schema && schema.id !== schema.$schema;\n if (hasParentSchema) {\n if (schema.__$schemaResolved && schema.__$schemaResolved !== schema) {\n var subReport = new Report(report);\n var valid = JsonValidation.validate.call(this, subReport, schema.__$schemaResolved, schema);\n if (valid === false) {\n report.addError(\"PARENT_SCHEMA_VALIDATION_FAILED\", null, subReport);\n }\n } else {\n if (this.options.ignoreUnresolvableReferences !== true) {\n report.addError(\"REF_UNRESOLVED\", [schema.$schema]);\n }\n }\n }\n if (this.options.noTypeless === true) {\n if (schema.type !== undefined) {\n var schemas = [];\n if (Array.isArray(schema.anyOf)) {\n schemas = schemas.concat(schema.anyOf);\n }\n if (Array.isArray(schema.oneOf)) {\n schemas = schemas.concat(schema.oneOf);\n }\n if (Array.isArray(schema.allOf)) {\n schemas = schemas.concat(schema.allOf);\n }\n schemas.forEach(function(sch) {\n if (!sch.type) {\n sch.type = schema.type;\n }\n });\n }\n if (schema.enum === undefined && schema.type === undefined && schema.anyOf === undefined && schema.oneOf === undefined && schema.not === undefined && schema.$ref === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"type\"]);\n }\n }\n var keys = Object.keys(schema),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx];\n if (key.indexOf(\"__\") === 0) {\n continue;\n }\n if (SchemaValidators[key] !== undefined) {\n SchemaValidators[key].call(this, report, schema);\n } else if (!hasParentSchema) {\n if (this.options.noExtraKeywords === true) {\n report.addError(\"KEYWORD_UNEXPECTED\", [key]);\n }\n }\n }\n if (this.options.pedanticCheck === true) {\n if (schema.enum) {\n var tmpSchema = Utils.clone(schema);\n delete tmpSchema.enum;\n delete tmpSchema.default;\n report.path.push(\"enum\");\n idx = schema.enum.length;\n while (idx--) {\n report.path.push(idx.toString());\n JsonValidation.validate.call(this, report, tmpSchema, schema.enum[idx]);\n report.path.pop();\n }\n report.path.pop();\n }\n if (schema.default) {\n report.path.push(\"default\");\n JsonValidation.validate.call(this, report, schema, schema.default);\n report.path.pop();\n }\n }\n var isValid = report.isValid();\n if (isValid) {\n schema.__$validated = true;\n }\n return isValid;\n};\n","/* */ \n\"use strict\";\n\nexports.isAbsoluteUri = function (uri) {\n return /^https?:\\/\\//.test(uri);\n};\n\nexports.isRelativeUri = function (uri) {\n // relative URIs that end with a hash sign, issue #56\n return /.+#/.test(uri);\n};\n\nexports.whatIs = function (what) {\n\n var to = typeof what;\n\n if (to === \"object\") {\n if (what === null) {\n return \"null\";\n }\n if (Array.isArray(what)) {\n return \"array\";\n }\n return \"object\"; // typeof what === 'object' && what === Object(what) && !Array.isArray(what);\n }\n\n if (to === \"number\") {\n if (Number.isFinite(what)) {\n if (what % 1 === 0) {\n return \"integer\";\n } else {\n return \"number\";\n }\n }\n if (Number.isNaN(what)) {\n return \"not-a-number\";\n }\n return \"unknown-number\";\n }\n\n return to; // undefined, boolean, string, function\n\n};\n\nexports.areEqual = function areEqual(json1, json2) {\n // http://json-schema.org/latest/json-schema-core.html#rfc.section.3.6\n\n // Two JSON values are said to be equal if and only if:\n // both are nulls; or\n // both are booleans, and have the same value; or\n // both are strings, and have the same value; or\n // both are numbers, and have the same mathematical value; or\n if (json1 === json2) {\n return true;\n }\n\n var i, len;\n\n // both are arrays, and:\n if (Array.isArray(json1) && Array.isArray(json2)) {\n // have the same number of items; and\n if (json1.length !== json2.length) {\n return false;\n }\n // items at the same index are equal according to this definition; or\n len = json1.length;\n for (i = 0; i < len; i++) {\n if (!areEqual(json1[i], json2[i])) {\n return false;\n }\n }\n return true;\n }\n\n // both are objects, and:\n if (exports.whatIs(json1) === \"object\" && exports.whatIs(json2) === \"object\") {\n // have the same set of property names; and\n var keys1 = Object.keys(json1);\n var keys2 = Object.keys(json2);\n if (!areEqual(keys1, keys2)) {\n return false;\n }\n // values for a same property name are equal according to this definition.\n len = keys1.length;\n for (i = 0; i < len; i++) {\n if (!areEqual(json1[keys1[i]], json2[keys1[i]])) {\n return false;\n }\n }\n return true;\n }\n\n return false;\n};\n\nexports.isUniqueArray = function (arr, indexes) {\n var i, j, l = arr.length;\n for (i = 0; i < l; i++) {\n for (j = i + 1; j < l; j++) {\n if (exports.areEqual(arr[i], arr[j])) {\n if (indexes) { indexes.push(i, j); }\n return false;\n }\n }\n }\n return true;\n};\n\nexports.difference = function (bigSet, subSet) {\n var arr = [],\n idx = bigSet.length;\n while (idx--) {\n if (subSet.indexOf(bigSet[idx]) === -1) {\n arr.push(bigSet[idx]);\n }\n }\n return arr;\n};\n\n// NOT a deep version of clone\nexports.clone = function (src) {\n if (typeof src === \"undefined\") { return void 0; }\n if (typeof src !== \"object\" || src === null) { return src; }\n var res, idx;\n if (Array.isArray(src)) {\n res = [];\n idx = src.length;\n while (idx--) {\n res[idx] = src[idx];\n }\n } else {\n res = {};\n var keys = Object.keys(src);\n idx = keys.length;\n while (idx--) {\n var key = keys[idx];\n res[key] = src[key];\n }\n }\n return res;\n};\n\nexports.cloneDeep = function (src) {\n var visited = [], cloned = [];\n function cloneDeep(src) {\n if (typeof src !== \"object\" || src === null) { return src; }\n var res, idx, cidx;\n\n cidx = visited.indexOf(src);\n if (cidx !== -1) { return cloned[cidx]; }\n\n visited.push(src);\n if (Array.isArray(src)) {\n res = [];\n cloned.push(res);\n idx = src.length;\n while (idx--) {\n res[idx] = cloneDeep(src[idx]);\n }\n } else {\n res = {};\n cloned.push(res);\n var keys = Object.keys(src);\n idx = keys.length;\n while (idx--) {\n var key = keys[idx];\n res[key] = cloneDeep(src[key]);\n }\n }\n return res;\n }\n return cloneDeep(src);\n};\n\n/*\n following function comes from punycode.js library\n see: https://github.com/bestiejs/punycode.js\n*/\n/*jshint -W016*/\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see <https://mathiasbynens.be/notes/javascript-encoding>\n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nexports.ucs2decode = function (string) {\n var output = [],\n counter = 0,\n length = string.length,\n value,\n extra;\n while (counter < length) {\n value = string.charCodeAt(counter++);\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n // high surrogate, and there is a next character\n extra = string.charCodeAt(counter++);\n if ((extra & 0xFC00) == 0xDC00) { // low surrogate\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // unmatched surrogate; only append this code unit, in case the next\n // code unit is the high surrogate of a surrogate pair\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n return output;\n};\n/*jshint +W016*/\n","{\n \"id\": \"http://json-schema.org/draft-04/schema#\",\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"description\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"positiveInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"positiveIntegerDefault0\": {\n \"allOf\": [ { \"$ref\": \"#/definitions/positiveInteger\" }, { \"default\": 0 } ]\n },\n \"simpleTypes\": {\n \"enum\": [ \"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\" ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n },\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"$schema\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": {},\n \"multipleOf\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"exclusiveMinimum\": true\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxLength\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": {}\n },\n \"maxItems\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxProperties\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"enum\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"dependencies\": {\n \"exclusiveMaximum\": [ \"maximum\" ],\n \"exclusiveMinimum\": [ \"minimum\" ]\n },\n \"default\": {}\n}\n","{\n \"$schema\": \"http://json-schema.org/draft-04/hyper-schema#\",\n \"id\": \"http://json-schema.org/draft-04/hyper-schema#\",\n \"title\": \"JSON Hyper-Schema\",\n \"allOf\": [\n {\n \"$ref\": \"http://json-schema.org/draft-04/schema#\"\n }\n ],\n \"properties\": {\n \"additionalItems\": {\n \"anyOf\": [\n {\n \"type\": \"boolean\"\n },\n {\n \"$ref\": \"#\"\n }\n ]\n },\n \"additionalProperties\": {\n \"anyOf\": [\n {\n \"type\": \"boolean\"\n },\n {\n \"$ref\": \"#\"\n }\n ]\n },\n \"dependencies\": {\n \"additionalProperties\": {\n \"anyOf\": [\n {\n \"$ref\": \"#\"\n },\n {\n \"type\": \"array\"\n }\n ]\n }\n },\n \"items\": {\n \"anyOf\": [\n {\n \"$ref\": \"#\"\n },\n {\n \"$ref\": \"#/definitions/schemaArray\"\n }\n ]\n },\n \"definitions\": {\n \"additionalProperties\": {\n \"$ref\": \"#\"\n }\n },\n \"patternProperties\": {\n \"additionalProperties\": {\n \"$ref\": \"#\"\n }\n },\n \"properties\": {\n \"additionalProperties\": {\n \"$ref\": \"#\"\n }\n },\n \"allOf\": {\n \"$ref\": \"#/definitions/schemaArray\"\n },\n \"anyOf\": {\n \"$ref\": \"#/definitions/schemaArray\"\n },\n \"oneOf\": {\n \"$ref\": \"#/definitions/schemaArray\"\n },\n \"not\": {\n \"$ref\": \"#\"\n },\n\n \"links\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/linkDescription\"\n }\n },\n \"fragmentResolution\": {\n \"type\": \"string\"\n },\n \"media\": {\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"description\": \"A media type, as described in RFC 2046\",\n \"type\": \"string\"\n },\n \"binaryEncoding\": {\n \"description\": \"A content encoding scheme, as described in RFC 2045\",\n \"type\": \"string\"\n }\n }\n },\n \"pathStart\": {\n \"description\": \"Instances' URIs must start with this value for this schema to apply to them\",\n \"type\": \"string\",\n \"format\": \"uri\"\n }\n },\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#\"\n }\n },\n \"linkDescription\": {\n \"title\": \"Link Description Object\",\n \"type\": \"object\",\n \"required\": [ \"href\", \"rel\" ],\n \"properties\": {\n \"href\": {\n \"description\": \"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing\",\n \"type\": \"string\"\n },\n \"rel\": {\n \"description\": \"relation to the target resource of the link\",\n \"type\": \"string\"\n },\n \"title\": {\n \"description\": \"a title for the link\",\n \"type\": \"string\"\n },\n \"targetSchema\": {\n \"description\": \"JSON Schema describing the link target\",\n \"$ref\": \"#\"\n },\n \"mediaType\": {\n \"description\": \"media type (as defined by RFC 2046) describing the link target\",\n \"type\": \"string\"\n },\n \"method\": {\n \"description\": \"method for requesting the target of the link (e.g. for HTTP this might be \\\"GET\\\" or \\\"DELETE\\\")\",\n \"type\": \"string\"\n },\n \"encType\": {\n \"description\": \"The media type in which to submit data along with the request\",\n \"type\": \"string\",\n \"default\": \"application/json\"\n },\n \"schema\": {\n \"description\": \"Schema describing the data to submit along with the request\",\n \"$ref\": \"#\"\n }\n }\n }\n }\n}\n\n","/* */ \n(function(process) {\n \"use strict\";\n require('./Polyfills');\n var get = require('lodash.get');\n var Report = require('./Report');\n var FormatValidators = require('./FormatValidators');\n var JsonValidation = require('./JsonValidation');\n var SchemaCache = require('./SchemaCache');\n var SchemaCompilation = require('./SchemaCompilation');\n var SchemaValidation = require('./SchemaValidation');\n var Utils = require('./Utils');\n var Draft4Schema = require('./schemas/schema.json!systemjs-json');\n var Draft4HyperSchema = require('./schemas/hyper-schema.json!systemjs-json');\n var defaultOptions = {\n asyncTimeout: 2000,\n forceAdditional: false,\n assumeAdditional: false,\n forceItems: false,\n forceMinItems: false,\n forceMaxItems: false,\n forceMinLength: false,\n forceMaxLength: false,\n forceProperties: false,\n ignoreUnresolvableReferences: false,\n noExtraKeywords: false,\n noTypeless: false,\n noEmptyStrings: false,\n noEmptyArrays: false,\n strictUris: false,\n strictMode: false,\n reportPathAsArray: false,\n breakOnFirstError: true,\n pedanticCheck: false,\n ignoreUnknownFormats: false\n };\n function ZSchema(options) {\n this.cache = {};\n this.referenceCache = [];\n this.setRemoteReference(\"http://json-schema.org/draft-04/schema\", Draft4Schema);\n this.setRemoteReference(\"http://json-schema.org/draft-04/hyper-schema\", Draft4HyperSchema);\n if (typeof options === \"object\") {\n var keys = Object.keys(options),\n idx = keys.length,\n key;\n while (idx--) {\n key = keys[idx];\n if (defaultOptions[key] === undefined) {\n throw new Error(\"Unexpected option passed to constructor: \" + key);\n }\n }\n keys = Object.keys(defaultOptions);\n idx = keys.length;\n while (idx--) {\n key = keys[idx];\n if (options[key] === undefined) {\n options[key] = Utils.clone(defaultOptions[key]);\n }\n }\n this.options = options;\n } else {\n this.options = Utils.clone(defaultOptions);\n }\n if (this.options.strictMode === true) {\n this.options.forceAdditional = true;\n this.options.forceItems = true;\n this.options.forceMaxLength = true;\n this.options.forceProperties = true;\n this.options.noExtraKeywords = true;\n this.options.noTypeless = true;\n this.options.noEmptyStrings = true;\n this.options.noEmptyArrays = true;\n }\n }\n ZSchema.prototype.compileSchema = function(schema) {\n var report = new Report(this.options);\n schema = SchemaCache.getSchema.call(this, report, schema);\n SchemaCompilation.compileSchema.call(this, report, schema);\n this.lastReport = report;\n return report.isValid();\n };\n ZSchema.prototype.validateSchema = function(schema) {\n if (Array.isArray(schema) && schema.length === 0) {\n throw new Error(\".validateSchema was called with an empty array\");\n }\n var report = new Report(this.options);\n schema = SchemaCache.getSchema.call(this, report, schema);\n var compiled = SchemaCompilation.compileSchema.call(this, report, schema);\n if (compiled) {\n SchemaValidation.validateSchema.call(this, report, schema);\n }\n this.lastReport = report;\n return report.isValid();\n };\n ZSchema.prototype.validate = function(json, schema, options, callback) {\n if (Utils.whatIs(options) === \"function\") {\n callback = options;\n options = {};\n }\n if (!options) {\n options = {};\n }\n var whatIs = Utils.whatIs(schema);\n if (whatIs !== \"string\" && whatIs !== \"object\") {\n var e = new Error(\"Invalid .validate call - schema must be an string or object but \" + whatIs + \" was passed!\");\n if (callback) {\n process.nextTick(function() {\n callback(e, false);\n });\n return;\n }\n throw e;\n }\n var foundError = false;\n var report = new Report(this.options);\n if (typeof schema === \"string\") {\n var schemaName = schema;\n schema = SchemaCache.getSchema.call(this, report, schemaName);\n if (!schema) {\n throw new Error(\"Schema with id '\" + schemaName + \"' wasn't found in the validator cache!\");\n }\n } else {\n schema = SchemaCache.getSchema.call(this, report, schema);\n }\n var compiled = false;\n if (!foundError) {\n compiled = SchemaCompilation.compileSchema.call(this, report, schema);\n }\n if (!compiled) {\n this.lastReport = report;\n foundError = true;\n }\n var validated = false;\n if (!foundError) {\n validated = SchemaValidation.validateSchema.call(this, report, schema);\n }\n if (!validated) {\n this.lastReport = report;\n foundError = true;\n }\n if (options.schemaPath) {\n report.rootSchema = schema;\n schema = get(schema, options.schemaPath);\n if (!schema) {\n throw new Error(\"Schema path '\" + options.schemaPath + \"' wasn't found in the schema!\");\n }\n }\n if (!foundError) {\n JsonValidation.validate.call(this, report, schema, json);\n }\n if (callback) {\n report.processAsyncTasks(this.options.asyncTimeout, callback);\n return;\n } else if (report.asyncTasks.length > 0) {\n throw new Error(\"This validation has async tasks and cannot be done in sync mode, please provide callback argument.\");\n }\n this.lastReport = report;\n return report.isValid();\n };\n ZSchema.prototype.getLastError = function() {\n if (this.lastReport.errors.length === 0) {\n return null;\n }\n var e = new Error();\n e.name = \"z-schema validation error\";\n e.message = this.lastReport.commonErrorMessage;\n e.details = this.lastReport.errors;\n return e;\n };\n ZSchema.prototype.getLastErrors = function() {\n return this.lastReport && this.lastReport.errors.length > 0 ? this.lastReport.errors : undefined;\n };\n ZSchema.prototype.getMissingReferences = function(arr) {\n arr = arr || this.lastReport.errors;\n var res = [],\n idx = arr.length;\n while (idx--) {\n var error = arr[idx];\n if (error.code === \"UNRESOLVABLE_REFERENCE\") {\n var reference = error.params[0];\n if (res.indexOf(reference) === -1) {\n res.push(reference);\n }\n }\n if (error.inner) {\n res = res.concat(this.getMissingReferences(error.inner));\n }\n }\n return res;\n };\n ZSchema.prototype.getMissingRemoteReferences = function() {\n var missingReferences = this.getMissingReferences(),\n missingRemoteReferences = [],\n idx = missingReferences.length;\n while (idx--) {\n var remoteReference = SchemaCache.getRemotePath(missingReferences[idx]);\n if (remoteReference && missingRemoteReferences.indexOf(remoteReference) === -1) {\n missingRemoteReferences.push(remoteReference);\n }\n }\n return missingRemoteReferences;\n };\n ZSchema.prototype.setRemoteReference = function(uri, schema) {\n if (typeof schema === \"string\") {\n schema = JSON.parse(schema);\n } else {\n schema = Utils.cloneDeep(schema);\n }\n SchemaCache.cacheSchemaByUri.call(this, uri, schema);\n };\n ZSchema.prototype.getResolvedSchema = function(schema) {\n var report = new Report(this.options);\n schema = SchemaCache.getSchema.call(this, report, schema);\n schema = Utils.cloneDeep(schema);\n var visited = [];\n var cleanup = function(schema) {\n var key,\n typeOf = Utils.whatIs(schema);\n if (typeOf !== \"object\" && typeOf !== \"array\") {\n return;\n }\n if (schema.___$visited) {\n return;\n }\n schema.___$visited = true;\n visited.push(schema);\n if (schema.$ref && schema.__$refResolved) {\n var from = schema.__$refResolved;\n var to = schema;\n delete schema.$ref;\n delete schema.__$refResolved;\n for (key in from) {\n if (from.hasOwnProperty(key)) {\n to[key] = from[key];\n }\n }\n }\n for (key in schema) {\n if (schema.hasOwnProperty(key)) {\n if (key.indexOf(\"__$\") === 0) {\n delete schema[key];\n } else {\n cleanup(schema[key]);\n }\n }\n }\n };\n cleanup(schema);\n visited.forEach(function(s) {\n delete s.___$visited;\n });\n this.lastReport = report;\n if (report.isValid()) {\n return schema;\n } else {\n throw this.getLastError();\n }\n };\n ZSchema.prototype.setSchemaReader = function(schemaReader) {\n return ZSchema.setSchemaReader(schemaReader);\n };\n ZSchema.prototype.getSchemaReader = function() {\n return ZSchema.schemaReader;\n };\n ZSchema.setSchemaReader = function(schemaReader) {\n ZSchema.schemaReader = schemaReader;\n };\n ZSchema.registerFormat = function(formatName, validatorFunction) {\n FormatValidators[formatName] = validatorFunction;\n };\n ZSchema.unregisterFormat = function(formatName) {\n delete FormatValidators[formatName];\n };\n ZSchema.getRegisteredFormats = function() {\n return Object.keys(FormatValidators);\n };\n ZSchema.getDefaultOptions = function() {\n return Utils.cloneDeep(defaultOptions);\n };\n module.exports = ZSchema;\n})(require('process'));\n","module.exports = require(\"npm:z-schema@3.16.1/src/ZSchema.js\");","{\n \"title\": \"A JSON Schema for Swagger 2.0 API.\",\n \"id\": \"http://swagger.io/v2/schema.json#\",\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"type\": \"object\",\n \"required\": [\n \"swagger\",\n \"info\",\n \"paths\"\n ],\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"swagger\": {\n \"type\": \"string\",\n \"enum\": [\n \"2.0\"\n ],\n \"description\": \"The Swagger version of this document.\"\n },\n \"info\": {\n \"$ref\": \"#/definitions/info\"\n },\n \"host\": {\n \"type\": \"string\",\n \"pattern\": \"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$\",\n \"description\": \"The host (name or ip) of the API. Example: 'swagger.io'\"\n },\n \"basePath\": {\n \"type\": \"string\",\n \"pattern\": \"^/\",\n \"description\": \"The base path to the API. Example: '/api'.\"\n },\n \"schemes\": {\n \"$ref\": \"#/definitions/schemesList\"\n },\n \"consumes\": {\n \"description\": \"A list of MIME types accepted by the API.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"produces\": {\n \"description\": \"A list of MIME types the API can produce.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"paths\": {\n \"$ref\": \"#/definitions/paths\"\n },\n \"definitions\": {\n \"$ref\": \"#/definitions/definitions\"\n },\n \"parameters\": {\n \"$ref\": \"#/definitions/parameterDefinitions\"\n },\n \"responses\": {\n \"$ref\": \"#/definitions/responseDefinitions\"\n },\n \"security\": {\n \"$ref\": \"#/definitions/security\"\n },\n \"securityDefinitions\": {\n \"$ref\": \"#/definitions/securityDefinitions\"\n },\n \"tags\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/tag\"\n },\n \"uniqueItems\": true\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n }\n },\n \"definitions\": {\n \"info\": {\n \"type\": \"object\",\n \"description\": \"General information about the API.\",\n \"required\": [\n \"version\",\n \"title\"\n ],\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"A unique and precise title of the API.\"\n },\n \"version\": {\n \"type\": \"string\",\n \"description\": \"A semantic version number of the API.\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed.\"\n },\n \"termsOfService\": {\n \"type\": \"string\",\n \"description\": \"The terms of service for the API.\"\n },\n \"contact\": {\n \"$ref\": \"#/definitions/contact\"\n },\n \"license\": {\n \"$ref\": \"#/definitions/license\"\n }\n }\n },\n \"contact\": {\n \"type\": \"object\",\n \"description\": \"Contact information for the owners of the API.\",\n \"additionalProperties\": false,\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The identifying name of the contact person/organization.\"\n },\n \"url\": {\n \"type\": \"string\",\n \"description\": \"The URL pointing to the contact information.\",\n \"format\": \"uri\"\n },\n \"email\": {\n \"type\": \"string\",\n \"description\": \"The email address of the contact person/organization.\",\n \"format\": \"email\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"license\": {\n \"type\": \"object\",\n \"required\": [\n \"name\"\n ],\n \"additionalProperties\": false,\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the license type. It's encouraged to use an OSI compatible license.\"\n },\n \"url\": {\n \"type\": \"string\",\n \"description\": \"The URL pointing to the license.\",\n \"format\": \"uri\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"paths\": {\n \"type\": \"object\",\n \"description\": \"Relative paths to the individual endpoints. They must be relative to the 'basePath'.\",\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n },\n \"^/\": {\n \"$ref\": \"#/definitions/pathItem\"\n }\n },\n \"additionalProperties\": false\n },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/schema\"\n },\n \"description\": \"One or more JSON objects describing the schemas being consumed and produced by the API.\"\n },\n \"parameterDefinitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/parameter\"\n },\n \"description\": \"One or more JSON representations for parameters\"\n },\n \"responseDefinitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/response\"\n },\n \"description\": \"One or more JSON representations for parameters\"\n },\n \"externalDocs\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"description\": \"information about external documentation\",\n \"required\": [\n \"url\"\n ],\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"examples\": {\n \"type\": \"object\",\n \"additionalProperties\": true\n },\n \"mimeType\": {\n \"type\": \"string\",\n \"description\": \"The MIME type of the HTTP message.\"\n },\n \"operation\": {\n \"type\": \"object\",\n \"required\": [\n \"responses\"\n ],\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"uniqueItems\": true\n },\n \"summary\": {\n \"type\": \"string\",\n \"description\": \"A brief summary of the operation.\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A longer description of the operation, GitHub Flavored Markdown is allowed.\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n },\n \"operationId\": {\n \"type\": \"string\",\n \"description\": \"A unique identifier of the operation.\"\n },\n \"produces\": {\n \"description\": \"A list of MIME types the API can produce.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"consumes\": {\n \"description\": \"A list of MIME types the API can consume.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"parameters\": {\n \"$ref\": \"#/definitions/parametersList\"\n },\n \"responses\": {\n \"$ref\": \"#/definitions/responses\"\n },\n \"schemes\": {\n \"$ref\": \"#/definitions/schemesList\"\n },\n \"deprecated\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"security\": {\n \"$ref\": \"#/definitions/security\"\n }\n }\n },\n \"pathItem\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\"\n },\n \"get\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"put\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"post\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"delete\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"options\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"head\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"patch\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"parameters\": {\n \"$ref\": \"#/definitions/parametersList\"\n }\n }\n },\n \"responses\": {\n \"type\": \"object\",\n \"description\": \"Response objects names can either be any valid HTTP status code or 'default'.\",\n \"minProperties\": 1,\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^([0-9]{3})$|^(default)$\": {\n \"$ref\": \"#/definitions/responseValue\"\n },\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"not\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n }\n },\n \"responseValue\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/response\"\n },\n {\n \"$ref\": \"#/definitions/jsonReference\"\n }\n ]\n },\n \"response\": {\n \"type\": \"object\",\n \"required\": [\n \"description\"\n ],\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"schema\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/schema\"\n },\n {\n \"$ref\": \"#/definitions/fileSchema\"\n }\n ]\n },\n \"headers\": {\n \"$ref\": \"#/definitions/headers\"\n },\n \"examples\": {\n \"$ref\": \"#/definitions/examples\"\n }\n },\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"headers\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/header\"\n }\n },\n \"header\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"vendorExtension\": {\n \"description\": \"Any property starting with x- is valid.\",\n \"additionalProperties\": true,\n \"additionalItems\": true\n },\n \"bodyParameter\": {\n \"type\": \"object\",\n \"required\": [\n \"name\",\n \"in\",\n \"schema\"\n ],\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"body\"\n ]\n },\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"schema\": {\n \"$ref\": \"#/definitions/schema\"\n }\n },\n \"additionalProperties\": false\n },\n \"headerParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"header\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"queryParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"query\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"allowEmptyValue\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"allows sending a parameter by name only or with an empty value.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"formDataParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"formData\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"allowEmptyValue\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"allows sending a parameter by name only or with an empty value.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\",\n \"file\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"pathParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"required\": [\n \"required\"\n ],\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"enum\": [\n true\n ],\n \"description\": \"Determines whether or not this parameter is required or optional.\"\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"path\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"nonBodyParameter\": {\n \"type\": \"object\",\n \"required\": [\n \"name\",\n \"in\",\n \"type\"\n ],\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/headerParameterSubSchema\"\n },\n {\n \"$ref\": \"#/definitions/formDataParameterSubSchema\"\n },\n {\n \"$ref\": \"#/definitions/queryParameterSubSchema\"\n },\n {\n \"$ref\": \"#/definitions/pathParameterSubSchema\"\n }\n ]\n },\n \"parameter\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/bodyParameter\"\n },\n {\n \"$ref\": \"#/definitions/nonBodyParameter\"\n }\n ]\n },\n \"schema\": {\n \"type\": \"object\",\n \"description\": \"A deterministic version of a JSON Schema object.\",\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\"\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n },\n \"description\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n },\n \"default\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n },\n \"multipleOf\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n },\n \"maximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"pattern\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"uniqueItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n },\n \"maxProperties\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minProperties\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"required\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n },\n \"enum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n },\n \"additionalProperties\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/definitions/schema\"\n },\n {\n \"type\": \"boolean\"\n }\n ],\n \"default\": {}\n },\n \"type\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/type\"\n },\n \"items\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/definitions/schema\"\n },\n {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"$ref\": \"#/definitions/schema\"\n }\n }\n ],\n \"default\": {}\n },\n \"allOf\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"$ref\": \"#/definitions/schema\"\n }\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/schema\"\n },\n \"default\": {}\n },\n \"discriminator\": {\n \"type\": \"string\"\n },\n \"readOnly\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"xml\": {\n \"$ref\": \"#/definitions/xml\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n },\n \"example\": {}\n },\n \"additionalProperties\": false\n },\n \"fileSchema\": {\n \"type\": \"object\",\n \"description\": \"A deterministic version of a JSON Schema object.\",\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"required\": [\n \"type\"\n ],\n \"properties\": {\n \"format\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n },\n \"description\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n },\n \"default\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n },\n \"required\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"file\"\n ]\n },\n \"readOnly\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n },\n \"example\": {}\n },\n \"additionalProperties\": false\n },\n \"primitivesItems\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"security\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/securityRequirement\"\n },\n \"uniqueItems\": true\n },\n \"securityRequirement\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"uniqueItems\": true\n }\n },\n \"xml\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"namespace\": {\n \"type\": \"string\"\n },\n \"prefix\": {\n \"type\": \"string\"\n },\n \"attribute\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"wrapped\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"tag\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"name\"\n ],\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"securityDefinitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/basicAuthenticationSecurity\"\n },\n {\n \"$ref\": \"#/definitions/apiKeySecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2ImplicitSecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2PasswordSecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2ApplicationSecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2AccessCodeSecurity\"\n }\n ]\n }\n },\n \"basicAuthenticationSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"basic\"\n ]\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"apiKeySecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"name\",\n \"in\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"apiKey\"\n ]\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"in\": {\n \"type\": \"string\",\n \"enum\": [\n \"header\",\n \"query\"\n ]\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2ImplicitSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"authorizationUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"implicit\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"authorizationUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2PasswordSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"tokenUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"password\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2ApplicationSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"tokenUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"application\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2AccessCodeSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"authorizationUrl\",\n \"tokenUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"accessCode\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"authorizationUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2Scopes\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"string\"\n }\n },\n \"mediaTypeList\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/mimeType\"\n },\n \"uniqueItems\": true\n },\n \"parametersList\": {\n \"type\": \"array\",\n \"description\": \"The parameters needed to send a valid API call.\",\n \"additionalItems\": false,\n \"items\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/parameter\"\n },\n {\n \"$ref\": \"#/definitions/jsonReference\"\n }\n ]\n },\n \"uniqueItems\": true\n },\n \"schemesList\": {\n \"type\": \"array\",\n \"description\": \"The transfer protocol of the API.\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"http\",\n \"https\",\n \"ws\",\n \"wss\"\n ]\n },\n \"uniqueItems\": true\n },\n \"collectionFormat\": {\n \"type\": \"string\",\n \"enum\": [\n \"csv\",\n \"ssv\",\n \"tsv\",\n \"pipes\"\n ],\n \"default\": \"csv\"\n },\n \"collectionFormatWithMulti\": {\n \"type\": \"string\",\n \"enum\": [\n \"csv\",\n \"ssv\",\n \"tsv\",\n \"pipes\",\n \"multi\"\n ],\n \"default\": \"csv\"\n },\n \"title\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n },\n \"description\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n },\n \"default\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n },\n \"multipleOf\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n },\n \"maximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"pattern\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"uniqueItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n },\n \"jsonReference\": {\n \"type\": \"object\",\n \"required\": [\n \"$ref\"\n ],\n \"additionalProperties\": false,\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\"\n }\n }\n }\n }\n}","/* */ \n'use strict';\nvar util = require('./util'),\n ono = require('ono'),\n ZSchema = require('z-schema'),\n swaggerSchema = require('swagger-schema-official/schema');\nmodule.exports = validateSchema;\ninitializeZSchema();\nfunction validateSchema(api) {\n util.debug('Validating against the Swagger 2.0 schema');\n var isValid = ZSchema.validate(api, swaggerSchema);\n if (isValid) {\n util.debug(' Validated successfully');\n } else {\n var err = ZSchema.getLastError();\n var message = 'Swagger schema validation failed. \\n' + formatZSchemaError(err.details);\n throw ono.syntax(err, {details: err.details}, message);\n }\n}\nfunction initializeZSchema() {\n ZSchema = new ZSchema({\n breakOnFirstError: true,\n noExtraKeywords: true,\n ignoreUnknownFormats: false,\n reportPathAsArray: true\n });\n}\nfunction formatZSchemaError(errors, indent) {\n indent = indent || ' ';\n var message = '';\n errors.forEach(function(error, index) {\n message += util.format('%s%s at #/%s\\n', indent, error.message, error.path.join('/'));\n if (error.inner) {\n message += formatZSchemaError(error.inner, indent + ' ');\n }\n });\n return message;\n}\n","/* */ \nmodule.exports = ['get', 'put', 'post', 'delete', 'options', 'head', 'patch'];\n","module.exports = require(\"npm:swagger-methods@1.0.0/lib/index.js\");","/* */ \n'use strict';\nvar util = require('./util'),\n ono = require('ono'),\n swaggerMethods = require('swagger-methods'),\n primitiveTypes = ['array', 'boolean', 'integer', 'number', 'string'],\n schemaTypes = ['array', 'boolean', 'integer', 'number', 'string', 'object', 'null', undefined];\nmodule.exports = validateSpec;\nfunction validateSpec(api) {\n util.debug('Validating against the Swagger 2.0 spec');\n var paths = Object.keys(api.paths || {});\n paths.forEach(function(pathName) {\n var path = api.paths[pathName];\n var pathId = '/paths' + pathName;\n if (path && pathName.indexOf('/') === 0) {\n validatePath(api, path, pathId);\n }\n });\n util.debug(' Validated successfully');\n}\nfunction validatePath(api, path, pathId) {\n swaggerMethods.forEach(function(operationName) {\n var operation = path[operationName];\n var operationId = pathId + '/' + operationName;\n if (operation) {\n validateParameters(api, path, pathId, operation, operationId);\n var responses = Object.keys(operation.responses || {});\n responses.forEach(function(responseName) {\n var response = operation.responses[responseName];\n var responseId = operationId + '/responses/' + responseName;\n validateResponse(responseName, response, responseId);\n });\n }\n });\n}\nfunction validateParameters(api, path, pathId, operation, operationId) {\n var pathParams = path.parameters || [];\n var operationParams = operation.parameters || [];\n try {\n checkForDuplicates(pathParams);\n } catch (e) {\n throw ono.syntax(e, 'Validation failed. %s has duplicate parameters', pathId);\n }\n try {\n checkForDuplicates(operationParams);\n } catch (e) {\n throw ono.syntax(e, 'Validation failed. %s has duplicate parameters', operationId);\n }\n var params = pathParams.reduce(function(combinedParams, value) {\n var duplicate = combinedParams.some(function(param) {\n return param.in === value.in && param.name === value.name;\n });\n if (!duplicate) {\n combinedParams.push(value);\n }\n return combinedParams;\n }, operationParams.slice());\n validateBodyParameters(params, operationId);\n validatePathParameters(params, pathId, operationId);\n validateParameterTypes(params, api, operation, operationId);\n}\nfunction validateBodyParameters(params, operationId) {\n var bodyParams = params.filter(function(param) {\n return param.in === 'body';\n });\n var formParams = params.filter(function(param) {\n return param.in === 'formData';\n });\n if (bodyParams.length > 1) {\n throw ono.syntax('Validation failed. %s has %d body parameters. Only one is allowed.', operationId, bodyParams.length);\n } else if (bodyParams.length > 0 && formParams.length > 0) {\n throw ono.syntax('Validation failed. %s has body parameters and formData parameters. Only one or the other is allowed.', operationId);\n }\n}\nfunction validatePathParameters(params, pathId, operationId) {\n var placeholders = pathId.match(util.swaggerParamRegExp) || [];\n for (var i = 0; i < placeholders.length; i++) {\n for (var j = i + 1; j < placeholders.length; j++) {\n if (placeholders[i] === placeholders[j]) {\n throw ono.syntax('Validation failed. %s has multiple path placeholders named %s', operationId, placeholders[i]);\n }\n }\n }\n params.filter(function(param) {\n return param.in === 'path';\n }).forEach(function(param) {\n if (param.required !== true) {\n throw ono.syntax('Validation failed. Path parameters cannot be optional. Set required=true for the \"%s\" parameter at %s', param.name, operationId);\n }\n var match = placeholders.indexOf('{' + param.name + '}');\n if (match === -1) {\n throw ono.syntax('Validation failed. %s has a path parameter named \"%s\", ' + 'but there is no corresponding {%s} in the path string', operationId, param.name, param.name);\n }\n placeholders.splice(match, 1);\n });\n if (placeholders.length > 0) {\n throw ono.syntax('Validation failed. %s is missing path parameter(s) for %s', operationId, placeholders);\n }\n}\nfunction validateParameterTypes(params, api, operation, operationId) {\n params.forEach(function(param) {\n var parameterId = operationId + '/parameters/' + param.name;\n var schema,\n validTypes;\n switch (param.in) {\n case 'body':\n schema = param.schema;\n validTypes = schemaTypes;\n break;\n case 'formData':\n schema = param;\n validTypes = primitiveTypes.concat('file');\n break;\n default:\n schema = param;\n validTypes = primitiveTypes;\n }\n validateSchema(schema, parameterId, validTypes);\n if (schema.type === 'file') {\n var consumes = operation.consumes || api.consumes || [];\n if (consumes.indexOf('multipart/form-data') === -1 && consumes.indexOf('application/x-www-form-urlencoded') === -1) {\n throw ono.syntax('Validation failed. %s has a file parameter, so it must consume multipart/form-data ' + 'or application/x-www-form-urlencoded', operationId);\n }\n }\n });\n}\nfunction checkForDuplicates(params) {\n for (var i = 0; i < params.length - 1; i++) {\n var outer = params[i];\n for (var j = i + 1; j < params.length; j++) {\n var inner = params[j];\n if (outer.name === inner.name && outer.in === inner.in) {\n throw ono.syntax('Validation failed. Found multiple %s parameters named \"%s\"', outer.in, outer.name);\n }\n }\n }\n}\nfunction validateResponse(code, response, responseId) {\n if (code !== 'default' && (code < 100 || code > 599)) {\n throw ono.syntax('Validation failed. %s has an invalid response code (%s)', responseId, code);\n }\n var headers = Object.keys(response.headers || {});\n headers.forEach(function(headerName) {\n var header = response.headers[headerName];\n var headerId = responseId + '/headers/' + headerName;\n validateSchema(header, headerId, primitiveTypes);\n });\n if (response.schema) {\n var validTypes = schemaTypes.concat('file');\n if (validTypes.indexOf(response.schema.type) === -1) {\n throw ono.syntax('Validation failed. %s has an invalid response schema type (%s)', responseId, response.schema.type);\n }\n }\n}\nfunction validateSchema(schema, schemaId, validTypes) {\n if (validTypes.indexOf(schema.type) === -1) {\n throw ono.syntax('Validation failed. %s has an invalid type (%s)', schemaId, schema.type);\n }\n if (schema.type === 'array' && !schema.items) {\n throw ono.syntax('Validation failed. %s is an array, so it must include an \"items\" schema', schemaId);\n }\n}\n","/* */ \n'use strict';\nvar debug = require('debug'),\n util = require('util');\nexports.format = util.format;\nexports.inherits = util.inherits;\nexports.debug = debug('swagger:parser');\nexports.swaggerParamRegExp = /\\{([^/}]+)}/g;\n","/* */ \n'use strict';\nvar $RefParserOptions = require('json-schema-ref-parser/lib/options'),\n util = require('util');\nmodule.exports = ParserOptions;\nfunction ParserOptions(options) {\n this.validate = {\n schema: true,\n spec: true\n };\n $RefParserOptions.apply(this, arguments);\n}\nutil.inherits(ParserOptions, $RefParserOptions);\n","/* */ \n'use strict';\n\n/** @type {Promise} **/\nmodule.exports = typeof Promise === 'function' ? Promise : require('es6-promise').Promise;\n","/* */ \n(function(Buffer) {\n 'use strict';\n module.exports = $RefParserOptions;\n function $RefParserOptions(options) {\n this.allow = {\n json: true,\n yaml: true,\n empty: true,\n unknown: true\n };\n this.$refs = {\n internal: true,\n external: true,\n circular: true\n };\n this.cache = {\n fs: 60,\n http: 5 * 60,\n https: 5 * 60\n };\n this.http = {\n headers: {},\n timeout: 5000,\n redirects: 5,\n withCredentials: false\n };\n merge(options, this);\n }\n function merge(src, dest) {\n if (src) {\n var topKeys = Object.keys(src);\n for (var i = 0; i < topKeys.length; i++) {\n var topKey = topKeys[i];\n var srcChild = src[topKey];\n if (dest[topKey] === undefined) {\n dest[topKey] = srcChild;\n } else {\n var childKeys = Object.keys(srcChild);\n for (var j = 0; j < childKeys.length; j++) {\n var childKey = childKeys[j];\n var srcChildValue = srcChild[childKey];\n if (srcChildValue !== undefined) {\n dest[topKey][childKey] = srcChildValue;\n }\n }\n }\n }\n }\n }\n})(require('buffer').Buffer);\n","/* */ \n'use strict';\nvar Options = require('./options'),\n util = require('./util'),\n url = require('url'),\n ono = require('ono');\nmodule.exports = $Refs;\nfunction $Refs() {\n this.circular = false;\n this._basePath = '';\n this._$refs = {};\n}\n$Refs.prototype.paths = function(types) {\n var paths = getPaths(this._$refs, arguments);\n return paths.map(function(path) {\n return path.decoded;\n });\n};\n$Refs.prototype.values = function(types) {\n var $refs = this._$refs;\n var paths = getPaths($refs, arguments);\n return paths.reduce(function(obj, path) {\n obj[path.decoded] = $refs[path.encoded].value;\n return obj;\n }, {});\n};\n$Refs.prototype.toJSON = $Refs.prototype.values;\n$Refs.prototype.isExpired = function(path) {\n var $ref = this._get$Ref(path);\n return $ref === undefined || $ref.isExpired();\n};\n$Refs.prototype.expire = function(path) {\n var $ref = this._get$Ref(path);\n if ($ref) {\n $ref.expire();\n }\n};\n$Refs.prototype.exists = function(path) {\n try {\n this._resolve(path);\n return true;\n } catch (e) {\n return false;\n }\n};\n$Refs.prototype.get = function(path, options) {\n return this._resolve(path, options).value;\n};\n$Refs.prototype.set = function(path, value, options) {\n path = url.resolve(this._basePath, path);\n var withoutHash = util.path.stripHash(path);\n var $ref = this._$refs[withoutHash];\n if (!$ref) {\n throw ono('Error resolving $ref pointer \"%s\". \\n\"%s\" not found.', path, withoutHash);\n }\n options = new Options(options);\n $ref.set(path, value, options);\n};\n$Refs.prototype._resolve = function(path, options) {\n path = url.resolve(this._basePath, path);\n var withoutHash = util.path.stripHash(path);\n var $ref = this._$refs[withoutHash];\n if (!$ref) {\n throw ono('Error resolving $ref pointer \"%s\". \\n\"%s\" not found.', path, withoutHash);\n }\n options = new Options(options);\n return $ref.resolve(path, options);\n};\n$Refs.prototype._get$Ref = function(path) {\n path = url.resolve(this._basePath, path);\n var withoutHash = util.path.stripHash(path);\n return this._$refs[withoutHash];\n};\nfunction getPaths($refs, types) {\n var paths = Object.keys($refs);\n types = Array.isArray(types[0]) ? types[0] : Array.prototype.slice.call(types);\n if (types.length > 0 && types[0]) {\n paths = paths.filter(function(key) {\n return types.indexOf($refs[key].pathType) !== -1;\n });\n }\n return paths.map(function(path) {\n return {\n encoded: path,\n decoded: $refs[path].pathType === 'fs' ? util.path.urlToLocalPath(path, true) : path\n };\n });\n}\n","/* */ \nif (System._nodeRequire) {\n module.exports = System._nodeRequire('fs');\n}\nelse {\n\n exports.readFileSync = function(address) {\n var output;\n var xhr = new XMLHttpRequest();\n xhr.open('GET', address, false);\n xhr.onreadystatechange = function(e) {\n if (xhr.readyState == 4) {\n var status = xhr.status;\n if ((status > 399 && status < 600) || status == 400) {\n throw 'File read error on ' + address;\n }\n else\n output = xhr.responseText;\n }\n }\n xhr.send(null);\n return output;\n };\n\n}\n","module.exports = require(\"github:jspm/nodelibs-fs@0.1.2/index\");","/* */ \nexports = module.exports = require('./lib/_stream_readable');\nexports.Stream = require('stream-browserify/index');\nexports.Readable = exports;\nexports.Writable = require('./lib/_stream_writable');\nexports.Duplex = require('./lib/_stream_duplex');\nexports.Transform = require('./lib/_stream_transform');\nexports.PassThrough = require('./lib/_stream_passthrough');\n","/* */ \nmodule.exports = require('./lib/_stream_writable');\n","/* */ \nmodule.exports = require('./lib/_stream_duplex');\n","/* */ \nmodule.exports = require('./lib/_stream_transform');\n","/* */ \nmodule.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n","module.exports = require(\"npm:isarray@0.0.1/index.js\");","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n }\n throw TypeError('Uncaught, unspecified \"error\" event.');\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n len = arguments.length;\n args = new Array(len - 1);\n for (i = 1; i < len; i++)\n args[i - 1] = arguments[i];\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n len = arguments.length;\n args = new Array(len - 1);\n for (i = 1; i < len; i++)\n args[i - 1] = arguments[i];\n\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n var m;\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n var ret;\n if (!emitter._events || !emitter._events[type])\n ret = 0;\n else if (isFunction(emitter._events[type]))\n ret = 1;\n else\n ret = emitter._events[type].length;\n return ret;\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n","module.exports = require(\"npm:events@1.0.2/events.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('events') : require('events');","module.exports = require(\"github:jspm/nodelibs-events@0.1.1/index\");","/* */ \n(function(Buffer) {\n var Buffer = require('buffer').Buffer;\n var isBufferEncoding = Buffer.isEncoding || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n case 'raw':\n return true;\n default:\n return false;\n }\n };\n function assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n }\n var StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n this.charBuffer = new Buffer(6);\n this.charReceived = 0;\n this.charLength = 0;\n };\n StringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n while (this.charLength) {\n var available = (buffer.length >= this.charLength - this.charReceived) ? this.charLength - this.charReceived : buffer.length;\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n if (this.charReceived < this.charLength) {\n return '';\n }\n buffer = buffer.slice(available, buffer.length);\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n this.detectIncompleteChar(buffer);\n var end = buffer.length;\n if (this.charLength) {\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n charStr += buffer.toString(this.encoding, 0, end);\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n return charStr;\n };\n StringDecoder.prototype.detectIncompleteChar = function(buffer) {\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n };\n StringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n return res;\n };\n function passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n }\n function utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n }\n function base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n }\n})(require('buffer').Buffer);\n","module.exports = require(\"npm:string_decoder@0.10.31/index.js\");","/* */ \n(function(Buffer, process) {\n module.exports = Readable;\n var isArray = require('isarray');\n var Buffer = require('buffer').Buffer;\n Readable.ReadableState = ReadableState;\n var EE = require('events').EventEmitter;\n if (!EE.listenerCount)\n EE.listenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n };\n var Stream = require('stream-browserify/index');\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var StringDecoder;\n var debug = require('@empty');\n if (debug && debug.debuglog) {\n debug = debug.debuglog('stream');\n } else {\n debug = function() {};\n }\n util.inherits(Readable, Stream);\n function ReadableState(options, stream) {\n var Duplex = require('./_stream_duplex');\n options = options || {};\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n this.highWaterMark = ~~this.highWaterMark;\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n this.sync = true;\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.objectMode = !!options.objectMode;\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n this.ranOut = false;\n this.awaitDrain = 0;\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = require('string_decoder').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n }\n function Readable(options) {\n var Duplex = require('./_stream_duplex');\n if (!(this instanceof Readable))\n return new Readable(options);\n this._readableState = new ReadableState(options, this);\n this.readable = true;\n Stream.call(this);\n }\n Readable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n if (util.isString(chunk) && !state.objectMode) {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n return readableAddChunk(this, state, chunk, encoding, false);\n };\n Readable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n };\n function readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (util.isNullOrUndefined(chunk)) {\n state.reading = false;\n if (!state.ended)\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n if (!addToFront)\n state.reading = false;\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n if (state.needReadable)\n emitReadable(stream);\n }\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n return needMoreData(state);\n }\n function needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n }\n Readable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = require('string_decoder').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n };\n var MAX_HWM = 0x800000;\n function roundUpToNextPowerOf2(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n n--;\n for (var p = 1; p < 32; p <<= 1)\n n |= n >> p;\n n++;\n }\n return n;\n }\n function howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n if (isNaN(n) || util.isNull(n)) {\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n if (n <= 0)\n return 0;\n if (n > state.highWaterMark)\n state.highWaterMark = roundUpToNextPowerOf2(n);\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else\n return state.length;\n }\n return n;\n }\n Readable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n if (!util.isNumber(n) || n > 0)\n state.emittedReadable = false;\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n n = howMuchToRead(n, state);\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n var doRead = state.needReadable;\n debug('need readable', doRead);\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n if (state.length === 0)\n state.needReadable = true;\n this._read(state.highWaterMark);\n state.sync = false;\n }\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n if (util.isNull(ret)) {\n state.needReadable = true;\n n = 0;\n }\n state.length -= n;\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n if (!util.isNull(ret))\n this.emit('data', ret);\n return ret;\n };\n function chunkInvalid(state, chunk) {\n var er = null;\n if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n }\n function onEofChunk(stream, state) {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n emitReadable(stream);\n }\n function emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n process.nextTick(function() {\n emitReadable_(stream);\n });\n else\n emitReadable_(stream);\n }\n }\n function emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n }\n function maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(function() {\n maybeReadMore_(stream, state);\n });\n }\n }\n function maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n }\n Readable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n };\n Readable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n function onend() {\n debug('onend');\n dest.end();\n }\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n function cleanup() {\n debug('cleanup');\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n src.pause();\n }\n }\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EE.listenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n dest.emit('pipe', src);\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n return dest;\n };\n function pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n }\n Readable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n if (state.pipesCount === 0)\n return this;\n if (state.pipesCount === 1) {\n if (dest && dest !== state.pipes)\n return this;\n if (!dest)\n dest = state.pipes;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n if (!dest) {\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n dest.emit('unpipe', this);\n return this;\n };\n Readable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n var self = this;\n process.nextTick(function() {\n debug('readable nexttick read 0');\n self.read(0);\n });\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n return res;\n };\n Readable.prototype.addListener = Readable.prototype.on;\n Readable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n if (!state.reading) {\n debug('resume read 0');\n this.read(0);\n }\n resume(this, state);\n }\n return this;\n };\n function resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(function() {\n resume_(stream, state);\n });\n }\n }\n function resume_(stream, state) {\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n }\n Readable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n };\n function flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n }\n Readable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n self.push(null);\n });\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n if (!chunk || !state.objectMode && !chunk.length)\n return;\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n for (var i in stream) {\n if (util.isFunction(stream[i]) && util.isUndefined(this[i])) {\n this[i] = function(method) {\n return function() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n return self;\n };\n Readable._fromList = fromList;\n function fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n if (list.length === 0)\n return null;\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n if (stringMode)\n ret = list.join('');\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n if (n < list[0].length) {\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n ret = list.shift();\n } else {\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n var c = 0;\n for (var i = 0,\n l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n c += cpy;\n }\n }\n }\n return ret;\n }\n function endReadable(stream) {\n var state = stream._readableState;\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(function() {\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n });\n }\n }\n function forEach(xs, f) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n }\n function indexOf(xs, x) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n if (xs[i] === x)\n return i;\n }\n return -1;\n }\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(Buffer, process) {\n module.exports = Writable;\n var Buffer = require('buffer').Buffer;\n Writable.WritableState = WritableState;\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var Stream = require('stream-browserify/index');\n util.inherits(Writable, Stream);\n function WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n }\n function WritableState(options, stream) {\n var Duplex = require('./_stream_duplex');\n options = options || {};\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n this.objectMode = !!options.objectMode;\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n this.highWaterMark = ~~this.highWaterMark;\n this.needDrain = false;\n this.ending = false;\n this.ended = false;\n this.finished = false;\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n this.length = 0;\n this.writing = false;\n this.corked = 0;\n this.sync = true;\n this.bufferProcessing = false;\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n this.writecb = null;\n this.writelen = 0;\n this.buffer = [];\n this.pendingcb = 0;\n this.prefinished = false;\n this.errorEmitted = false;\n }\n function Writable(options) {\n var Duplex = require('./_stream_duplex');\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n this._writableState = new WritableState(options, this);\n this.writable = true;\n Stream.call(this);\n }\n Writable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n };\n function writeAfterEnd(stream, state, cb) {\n var er = new Error('write after end');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n }\n function validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n valid = false;\n }\n return valid;\n }\n Writable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n if (!util.isFunction(cb))\n cb = function() {};\n if (state.ended)\n writeAfterEnd(this, state, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n return ret;\n };\n Writable.prototype.cork = function() {\n var state = this._writableState;\n state.corked++;\n };\n Writable.prototype.uncork = function() {\n var state = this._writableState;\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.buffer.length)\n clearBuffer(this, state);\n }\n };\n function decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && util.isString(chunk)) {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n }\n function writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark;\n if (!ret)\n state.needDrain = true;\n if (state.writing || state.corked)\n state.buffer.push(new WriteReq(chunk, encoding, cb));\n else\n doWrite(stream, state, false, len, chunk, encoding, cb);\n return ret;\n }\n function doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n }\n function onwriteError(stream, state, sync, er, cb) {\n if (sync)\n process.nextTick(function() {\n state.pendingcb--;\n cb(er);\n });\n else {\n state.pendingcb--;\n cb(er);\n }\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n }\n function onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n }\n function onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n onwriteStateUpdate(state);\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n var finished = needFinish(stream, state);\n if (!finished && !state.corked && !state.bufferProcessing && state.buffer.length) {\n clearBuffer(stream, state);\n }\n if (sync) {\n process.nextTick(function() {\n afterWrite(stream, state, finished, cb);\n });\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n }\n function afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n }\n function onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n }\n function clearBuffer(stream, state) {\n state.bufferProcessing = true;\n if (stream._writev && state.buffer.length > 1) {\n var cbs = [];\n for (var c = 0; c < state.buffer.length; c++)\n cbs.push(state.buffer[c].callback);\n state.pendingcb++;\n doWrite(stream, state, true, state.length, state.buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n state.buffer = [];\n } else {\n for (var c = 0; c < state.buffer.length; c++) {\n var entry = state.buffer[c];\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n if (state.writing) {\n c++;\n break;\n }\n }\n if (c < state.buffer.length)\n state.buffer = state.buffer.slice(c);\n else\n state.buffer.length = 0;\n }\n state.bufferProcessing = false;\n }\n Writable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n };\n Writable.prototype._writev = null;\n Writable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n if (util.isFunction(chunk)) {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n if (!util.isNullOrUndefined(chunk))\n this.write(chunk, encoding);\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n };\n function needFinish(stream, state) {\n return (state.ending && state.length === 0 && !state.finished && !state.writing);\n }\n function prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n function finishMaybe(stream, state) {\n var need = needFinish(stream, state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else\n prefinish(stream, state);\n }\n return need;\n }\n function endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n process.nextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n }\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(process) {\n module.exports = Duplex;\n var objectKeys = Object.keys || function(obj) {\n var keys = [];\n for (var key in obj)\n keys.push(key);\n return keys;\n };\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var Readable = require('./_stream_readable');\n var Writable = require('./_stream_writable');\n util.inherits(Duplex, Readable);\n forEach(objectKeys(Writable.prototype), function(method) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n });\n function Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n if (options && options.readable === false)\n this.readable = false;\n if (options && options.writable === false)\n this.writable = false;\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n function onend() {\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n process.nextTick(this.end.bind(this));\n }\n function forEach(xs, f) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n }\n})(require('process'));\n","/* */ \n(function(process) {\n module.exports = Transform;\n var Duplex = require('./_stream_duplex');\n var util = require('core-util-is');\n util.inherits = require('inherits');\n util.inherits(Transform, Duplex);\n function TransformState(options, stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n }\n function afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n ts.writechunk = null;\n ts.writecb = null;\n if (!util.isNullOrUndefined(data))\n stream.push(data);\n if (cb)\n cb(er);\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n }\n function Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n Duplex.call(this, options);\n this._transformState = new TransformState(options, this);\n var stream = this;\n this._readableState.needReadable = true;\n this._readableState.sync = false;\n this.once('prefinish', function() {\n if (util.isFunction(this._flush))\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n }\n Transform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n };\n Transform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n };\n Transform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n };\n Transform.prototype._read = function(n) {\n var ts = this._transformState;\n if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n ts.needTransform = true;\n }\n };\n function done(stream, er) {\n if (er)\n return stream.emit('error', er);\n var ws = stream._writableState;\n var ts = stream._transformState;\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n return stream.push(null);\n }\n})(require('process'));\n","/* */ \n(function(Buffer) {\n function isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n }\n exports.isArray = isArray;\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n exports.isBoolean = isBoolean;\n function isNull(arg) {\n return arg === null;\n }\n exports.isNull = isNull;\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n exports.isNullOrUndefined = isNullOrUndefined;\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n exports.isNumber = isNumber;\n function isString(arg) {\n return typeof arg === 'string';\n }\n exports.isString = isString;\n function isSymbol(arg) {\n return typeof arg === 'symbol';\n }\n exports.isSymbol = isSymbol;\n function isUndefined(arg) {\n return arg === void 0;\n }\n exports.isUndefined = isUndefined;\n function isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n }\n exports.isRegExp = isRegExp;\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n exports.isObject = isObject;\n function isDate(d) {\n return objectToString(d) === '[object Date]';\n }\n exports.isDate = isDate;\n function isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n }\n exports.isError = isError;\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n exports.isFunction = isFunction;\n function isPrimitive(arg) {\n return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || typeof arg === 'undefined';\n }\n exports.isPrimitive = isPrimitive;\n exports.isBuffer = Buffer.isBuffer;\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n})(require('buffer').Buffer);\n","module.exports = require(\"npm:core-util-is@1.0.2/lib/util.js\");","/* */ \nmodule.exports = PassThrough;\nvar Transform = require('./_stream_transform');\nvar util = require('core-util-is');\nutil.inherits = require('inherits');\nutil.inherits(PassThrough, Transform);\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n Transform.call(this, options);\n}\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n","/* */ \nmodule.exports = require('./lib/_stream_passthrough');\n","/* */ \nmodule.exports = Stream;\nvar EE = require('events').EventEmitter;\nvar inherits = require('inherits');\ninherits(Stream, EE);\nStream.Readable = require('readable-stream/readable');\nStream.Writable = require('readable-stream/writable');\nStream.Duplex = require('readable-stream/duplex');\nStream.Transform = require('readable-stream/transform');\nStream.PassThrough = require('readable-stream/passthrough');\nStream.Stream = Stream;\nfunction Stream() {\n EE.call(this);\n}\nStream.prototype.pipe = function(dest, options) {\n var source = this;\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n source.on('data', ondata);\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n dest.on('drain', ondrain);\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n var didOnEnd = false;\n function onend() {\n if (didOnEnd)\n return;\n didOnEnd = true;\n dest.end();\n }\n function onclose() {\n if (didOnEnd)\n return;\n didOnEnd = true;\n if (typeof dest.destroy === 'function')\n dest.destroy();\n }\n function onerror(er) {\n cleanup();\n if (EE.listenerCount(this, 'error') === 0) {\n throw er;\n }\n }\n source.on('error', onerror);\n dest.on('error', onerror);\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n dest.removeListener('close', cleanup);\n }\n source.on('end', cleanup);\n source.on('close', cleanup);\n dest.on('close', cleanup);\n dest.emit('pipe', source);\n return dest;\n};\n","module.exports = require(\"npm:stream-browserify@1.0.0/index.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('stream') : require('stream-browserify');","module.exports = require(\"github:jspm/nodelibs-stream@0.1.0/index\");","/* */ \nvar Stream = require('stream');\nvar util = require('util');\nvar Response = module.exports = function(res) {\n this.offset = 0;\n this.readable = true;\n};\nutil.inherits(Response, Stream);\nvar capable = {\n streaming: true,\n status2: true\n};\nfunction parseHeaders(res) {\n var lines = res.getAllResponseHeaders().split(/\\r?\\n/);\n var headers = {};\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i];\n if (line === '')\n continue;\n var m = line.match(/^([^:]+):\\s*(.*)/);\n if (m) {\n var key = m[1].toLowerCase(),\n value = m[2];\n if (headers[key] !== undefined) {\n if (isArray(headers[key])) {\n headers[key].push(value);\n } else {\n headers[key] = [headers[key], value];\n }\n } else {\n headers[key] = value;\n }\n } else {\n headers[line] = true;\n }\n }\n return headers;\n}\nResponse.prototype.getResponse = function(xhr) {\n var respType = String(xhr.responseType).toLowerCase();\n if (respType === 'blob')\n return xhr.responseBlob || xhr.response;\n if (respType === 'arraybuffer')\n return xhr.response;\n return xhr.responseText;\n};\nResponse.prototype.getHeader = function(key) {\n return this.headers[key.toLowerCase()];\n};\nResponse.prototype.handle = function(res) {\n if (res.readyState === 2 && capable.status2) {\n try {\n this.statusCode = res.status;\n this.headers = parseHeaders(res);\n } catch (err) {\n capable.status2 = false;\n }\n if (capable.status2) {\n this.emit('ready');\n }\n } else if (capable.streaming && res.readyState === 3) {\n try {\n if (!this.statusCode) {\n this.statusCode = res.status;\n this.headers = parseHeaders(res);\n this.emit('ready');\n }\n } catch (err) {}\n try {\n this._emitData(res);\n } catch (err) {\n capable.streaming = false;\n }\n } else if (res.readyState === 4) {\n if (!this.statusCode) {\n this.statusCode = res.status;\n this.emit('ready');\n }\n this._emitData(res);\n if (res.error) {\n this.emit('error', this.getResponse(res));\n } else\n this.emit('end');\n this.emit('close');\n }\n};\nResponse.prototype._emitData = function(res) {\n var respBody = this.getResponse(res);\n if (respBody.toString().match(/ArrayBuffer/)) {\n this.emit('data', new Uint8Array(respBody, this.offset));\n this.offset = respBody.byteLength;\n return;\n }\n if (respBody.length > this.offset) {\n this.emit('data', respBody.slice(this.offset));\n this.offset = respBody.length;\n }\n};\nvar isArray = Array.isArray || function(xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n","/* */ \n\"format cjs\";\n;(function () {\n\n var object = typeof exports != 'undefined' ? exports : this; // #8: web workers\n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n function InvalidCharacterError(message) {\n this.message = message;\n }\n InvalidCharacterError.prototype = new Error;\n InvalidCharacterError.prototype.name = 'InvalidCharacterError';\n\n // encoder\n // [https://gist.github.com/999166] by [https://github.com/nignag]\n object.btoa || (\n object.btoa = function (input) {\n for (\n // initialize result and counter\n var block, charCode, idx = 0, map = chars, output = '';\n // if the next input index does not exist:\n // change the mapping table to \"=\"\n // check if d has no fractional digits\n input.charAt(idx | 0) || (map = '=', idx % 1);\n // \"8 - idx % 1 * 8\" generates the sequence 2, 4, 6, 8\n output += map.charAt(63 & block >> 8 - idx % 1 * 8)\n ) {\n charCode = input.charCodeAt(idx += 3/4);\n if (charCode > 0xFF) {\n throw new InvalidCharacterError(\"'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.\");\n }\n block = block << 8 | charCode;\n }\n return output;\n });\n\n // decoder\n // [https://gist.github.com/1020396] by [https://github.com/atk]\n object.atob || (\n object.atob = function (input) {\n input = input.replace(/=+$/, '');\n if (input.length % 4 == 1) {\n throw new InvalidCharacterError(\"'atob' failed: The string to be decoded is not correctly encoded.\");\n }\n for (\n // initialize result and counters\n var bc = 0, bs, buffer, idx = 0, output = '';\n // get next character\n buffer = input.charAt(idx++);\n // character found in table? initialize bit storage and add its ascii value;\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n // and if not first of each 4 characters,\n // convert the first 8 bits to one ascii character\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n // try to find character in table (0-63, not found => -1)\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n\n}());\n","module.exports = require(\"npm:Base64@0.2.1/base64.js\");","/* */ \nvar Stream = require('stream');\nvar Response = require('./response');\nvar Base64 = require('Base64');\nvar inherits = require('inherits');\nvar Request = module.exports = function(xhr, params) {\n var self = this;\n self.writable = true;\n self.xhr = xhr;\n self.body = [];\n self.uri = (params.protocol || 'http:') + '//' + params.host + (params.port ? ':' + params.port : '') + (params.path || '/');\n ;\n if (typeof params.withCredentials === 'undefined') {\n params.withCredentials = true;\n }\n try {\n xhr.withCredentials = params.withCredentials;\n } catch (e) {}\n if (params.responseType)\n try {\n xhr.responseType = params.responseType;\n } catch (e) {}\n xhr.open(params.method || 'GET', self.uri, true);\n xhr.onerror = function(event) {\n self.emit('error', new Error('Network error'));\n };\n self._headers = {};\n if (params.headers) {\n var keys = objectKeys(params.headers);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!self.isSafeRequestHeader(key))\n continue;\n var value = params.headers[key];\n self.setHeader(key, value);\n }\n }\n if (params.auth) {\n this.setHeader('Authorization', 'Basic ' + Base64.btoa(params.auth));\n }\n var res = new Response;\n res.on('close', function() {\n self.emit('close');\n });\n res.on('ready', function() {\n self.emit('response', res);\n });\n res.on('error', function(err) {\n self.emit('error', err);\n });\n xhr.onreadystatechange = function() {\n if (xhr.__aborted)\n return;\n res.handle(xhr);\n };\n};\ninherits(Request, Stream);\nRequest.prototype.setHeader = function(key, value) {\n this._headers[key.toLowerCase()] = value;\n};\nRequest.prototype.getHeader = function(key) {\n return this._headers[key.toLowerCase()];\n};\nRequest.prototype.removeHeader = function(key) {\n delete this._headers[key.toLowerCase()];\n};\nRequest.prototype.write = function(s) {\n this.body.push(s);\n};\nRequest.prototype.destroy = function(s) {\n this.xhr.__aborted = true;\n this.xhr.abort();\n this.emit('close');\n};\nRequest.prototype.end = function(s) {\n if (s !== undefined)\n this.body.push(s);\n var keys = objectKeys(this._headers);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = this._headers[key];\n if (isArray(value)) {\n for (var j = 0; j < value.length; j++) {\n this.xhr.setRequestHeader(key, value[j]);\n }\n } else\n this.xhr.setRequestHeader(key, value);\n }\n if (this.body.length === 0) {\n this.xhr.send('');\n } else if (typeof this.body[0] === 'string') {\n this.xhr.send(this.body.join(''));\n } else if (isArray(this.body[0])) {\n var body = [];\n for (var i = 0; i < this.body.length; i++) {\n body.push.apply(body, this.body[i]);\n }\n this.xhr.send(body);\n } else if (/Array/.test(Object.prototype.toString.call(this.body[0]))) {\n var len = 0;\n for (var i = 0; i < this.body.length; i++) {\n len += this.body[i].length;\n }\n var body = new (this.body[0].constructor)(len);\n var k = 0;\n for (var i = 0; i < this.body.length; i++) {\n var b = this.body[i];\n for (var j = 0; j < b.length; j++) {\n body[k++] = b[j];\n }\n }\n this.xhr.send(body);\n } else if (isXHR2Compatible(this.body[0])) {\n this.xhr.send(this.body[0]);\n } else {\n var body = '';\n for (var i = 0; i < this.body.length; i++) {\n body += this.body[i].toString();\n }\n this.xhr.send(body);\n }\n};\nRequest.unsafeHeaders = [\"accept-charset\", \"accept-encoding\", \"access-control-request-headers\", \"access-control-request-method\", \"connection\", \"content-length\", \"cookie\", \"cookie2\", \"content-transfer-encoding\", \"date\", \"expect\", \"host\", \"keep-alive\", \"origin\", \"referer\", \"te\", \"trailer\", \"transfer-encoding\", \"upgrade\", \"user-agent\", \"via\"];\nRequest.prototype.isSafeRequestHeader = function(headerName) {\n if (!headerName)\n return false;\n return indexOf(Request.unsafeHeaders, headerName.toLowerCase()) === -1;\n};\nvar objectKeys = Object.keys || function(obj) {\n var keys = [];\n for (var key in obj)\n keys.push(key);\n return keys;\n};\nvar isArray = Array.isArray || function(xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\nvar indexOf = function(xs, x) {\n if (xs.indexOf)\n return xs.indexOf(x);\n for (var i = 0; i < xs.length; i++) {\n if (xs[i] === x)\n return i;\n }\n return -1;\n};\nvar isXHR2Compatible = function(obj) {\n if (typeof Blob !== 'undefined' && obj instanceof Blob)\n return true;\n if (typeof ArrayBuffer !== 'undefined' && obj instanceof ArrayBuffer)\n return true;\n if (typeof FormData !== 'undefined' && obj instanceof FormData)\n return true;\n};\n","/* */ \nif (System._nodeRequire) {\n module.exports = System._nodeRequire('http');\n} else {\n var http = module.exports;\n var EventEmitter = require('events').EventEmitter;\n var Request = require('./lib/request');\n var url = require('url');\n http.request = function(params, cb) {\n if (typeof params === 'string') {\n params = url.parse(params);\n }\n if (!params)\n params = {};\n if (!params.host && !params.port) {\n params.port = parseInt(window.location.port, 10);\n }\n if (!params.host && params.hostname) {\n params.host = params.hostname;\n }\n if (!params.protocol) {\n if (params.scheme) {\n params.protocol = params.scheme + ':';\n } else {\n params.protocol = window.location.protocol;\n }\n }\n if (!params.host) {\n params.host = window.location.hostname || window.location.host;\n }\n if (/:/.test(params.host)) {\n if (!params.port) {\n params.port = params.host.split(':')[1];\n }\n params.host = params.host.split(':')[0];\n }\n if (!params.port)\n params.port = params.protocol == 'https:' ? 443 : 80;\n var req = new Request(new xhrHttp, params);\n if (cb)\n req.on('response', cb);\n return req;\n };\n http.get = function(params, cb) {\n params.method = 'GET';\n var req = http.request(params, cb);\n req.end();\n return req;\n };\n http.Agent = function() {};\n http.Agent.defaultMaxSockets = 4;\n var xhrHttp = (function() {\n if (typeof window === 'undefined') {\n throw new Error('no window object present');\n } else if (window.XMLHttpRequest) {\n return window.XMLHttpRequest;\n } else if (window.ActiveXObject) {\n var axs = ['Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.3.0', 'Microsoft.XMLHTTP'];\n for (var i = 0; i < axs.length; i++) {\n try {\n var ax = new (window.ActiveXObject)(axs[i]);\n return function() {\n if (ax) {\n var ax_ = ax;\n ax = null;\n return ax_;\n } else {\n return new (window.ActiveXObject)(axs[i]);\n }\n };\n } catch (e) {}\n }\n throw new Error('ajax not supported in this browser');\n } else {\n throw new Error('ajax not supported in this browser');\n }\n })();\n http.STATUS_CODES = {\n 100: 'Continue',\n 101: 'Switching Protocols',\n 102: 'Processing',\n 200: 'OK',\n 201: 'Created',\n 202: 'Accepted',\n 203: 'Non-Authoritative Information',\n 204: 'No Content',\n 205: 'Reset Content',\n 206: 'Partial Content',\n 207: 'Multi-Status',\n 300: 'Multiple Choices',\n 301: 'Moved Permanently',\n 302: 'Moved Temporarily',\n 303: 'See Other',\n 304: 'Not Modified',\n 305: 'Use Proxy',\n 307: 'Temporary Redirect',\n 400: 'Bad Request',\n 401: 'Unauthorized',\n 402: 'Payment Required',\n 403: 'Forbidden',\n 404: 'Not Found',\n 405: 'Method Not Allowed',\n 406: 'Not Acceptable',\n 407: 'Proxy Authentication Required',\n 408: 'Request Time-out',\n 409: 'Conflict',\n 410: 'Gone',\n 411: 'Length Required',\n 412: 'Precondition Failed',\n 413: 'Request Entity Too Large',\n 414: 'Request-URI Too Large',\n 415: 'Unsupported Media Type',\n 416: 'Requested Range Not Satisfiable',\n 417: 'Expectation Failed',\n 418: 'I\\'m a teapot',\n 422: 'Unprocessable Entity',\n 423: 'Locked',\n 424: 'Failed Dependency',\n 425: 'Unordered Collection',\n 426: 'Upgrade Required',\n 428: 'Precondition Required',\n 429: 'Too Many Requests',\n 431: 'Request Header Fields Too Large',\n 500: 'Internal Server Error',\n 501: 'Not Implemented',\n 502: 'Bad Gateway',\n 503: 'Service Unavailable',\n 504: 'Gateway Time-out',\n 505: 'HTTP Version Not Supported',\n 506: 'Variant Also Negotiates',\n 507: 'Insufficient Storage',\n 509: 'Bandwidth Limit Exceeded',\n 510: 'Not Extended',\n 511: 'Network Authentication Required'\n };\n}\n","module.exports = require(\"github:jspm/nodelibs-http@1.7.1/index.js\");","/* */ \nvar http = require('http');\nvar https = module.exports;\nfor (var key in http) {\n if (http.hasOwnProperty(key))\n https[key] = http[key];\n}\n;\nhttps.request = function(params, cb) {\n if (!params)\n params = {};\n params.scheme = 'https';\n return http.request.call(this, params, cb);\n};\n","module.exports = require(\"npm:https-browserify@0.0.0/index.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('https') : require('https-browserify');","module.exports = require(\"github:jspm/nodelibs-https@0.1.0/index\");","/* */ \n(function(Buffer) {\n 'use strict';\n var http = require('http'),\n https = require('https'),\n url = require('url'),\n util = require('./util'),\n Promise = require('./promise'),\n ono = require('ono');\n module.exports = download;\n function download(u, options, redirects) {\n return new Promise(function(resolve, reject) {\n u = url.parse(u);\n redirects = redirects || [];\n redirects.push(u.href);\n get(u, options).then(function(res) {\n if (res.statusCode >= 400) {\n throw ono({status: res.statusCode}, 'HTTP ERROR %d', res.statusCode);\n } else if (res.statusCode >= 300) {\n if (redirects.length > options.http.redirects) {\n reject(ono({status: res.statusCode}, 'Error downloading %s. \\nToo many redirects: \\n %s', redirects[0], redirects.join(' \\n ')));\n } else if (!res.headers.location) {\n throw ono({status: res.statusCode}, 'HTTP %d redirect with no location header', res.statusCode);\n } else {\n util.debug('HTTP %d redirect %s -> %s', res.statusCode, u.href, res.headers.location);\n var redirectTo = url.resolve(u, res.headers.location);\n download(redirectTo, options, redirects).then(resolve, reject);\n }\n } else if (res.statusCode === 204 && !options.allow.empty) {\n throw ono({status: 204}, 'HTTP 204 (No Content)');\n } else {\n resolve(res.body || new Buffer(0));\n }\n }).catch(function(err) {\n reject(ono(err, 'Error downloading', u.href));\n });\n });\n }\n function get(u, options) {\n return new Promise(function(resolve, reject) {\n util.debug('GET', u.href);\n var protocol = u.protocol === 'https:' ? https : http;\n var req = protocol.get({\n hostname: u.hostname,\n port: u.port,\n path: u.path,\n auth: u.auth,\n headers: options.http.headers,\n withCredentials: options.http.withCredentials\n });\n if (typeof req.setTimeout === 'function') {\n req.setTimeout(options.http.timeout);\n }\n req.on('timeout', function() {\n req.abort();\n });\n req.on('error', reject);\n req.once('response', function(res) {\n res.body = new Buffer(0);\n res.on('data', function(data) {\n res.body = Buffer.concat([res.body, new Buffer(data)]);\n });\n res.on('error', reject);\n res.on('end', function() {\n resolve(res);\n });\n });\n });\n }\n})(require('buffer').Buffer);\n","/* */ \n(function(Buffer) {\n 'use strict';\n var YAML = require('./yaml'),\n util = require('./util'),\n ono = require('ono');\n module.exports = parse;\n function parse(data, path, options) {\n var parsed;\n try {\n if (options.allow.yaml) {\n util.debug('Parsing YAML file: %s', path);\n parsed = YAML.parse(data.toString());\n util.debug(' Parsed successfully');\n } else if (options.allow.json) {\n util.debug('Parsing JSON file: %s', path);\n parsed = JSON.parse(data.toString());\n util.debug(' Parsed successfully');\n } else {\n parsed = data;\n }\n } catch (e) {\n var ext = util.path.extname(path);\n if (options.allow.unknown && ['.json', '.yaml', '.yml'].indexOf(ext) === -1) {\n util.debug(' Unknown file format. Not parsed.');\n parsed = data;\n } else {\n throw ono.syntax(e, 'Error parsing \"%s\"', path);\n }\n }\n if (isEmpty(parsed) && !options.allow.empty) {\n throw ono.syntax('Error parsing \"%s\". \\nParsed value is empty', path);\n }\n return parsed;\n }\n function isEmpty(value) {\n return !value || (typeof value === 'object' && Object.keys(value).length === 0) || (typeof value === 'string' && value.trim().length === 0) || (value instanceof Buffer && value.length === 0);\n }\n})(require('buffer').Buffer);\n","/* */ \n\"format cjs\";\n(function(process) {\n (function() {\n \"use strict\";\n function lib$es6$promise$utils$$objectOrFunction(x) {\n return typeof x === 'function' || (typeof x === 'object' && x !== null);\n }\n function lib$es6$promise$utils$$isFunction(x) {\n return typeof x === 'function';\n }\n function lib$es6$promise$utils$$isMaybeThenable(x) {\n return typeof x === 'object' && x !== null;\n }\n var lib$es6$promise$utils$$_isArray;\n if (!Array.isArray) {\n lib$es6$promise$utils$$_isArray = function(x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n } else {\n lib$es6$promise$utils$$_isArray = Array.isArray;\n }\n var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray;\n var lib$es6$promise$asap$$len = 0;\n var lib$es6$promise$asap$$vertxNext;\n var lib$es6$promise$asap$$customSchedulerFn;\n var lib$es6$promise$asap$$asap = function asap(callback, arg) {\n lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;\n lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;\n lib$es6$promise$asap$$len += 2;\n if (lib$es6$promise$asap$$len === 2) {\n if (lib$es6$promise$asap$$customSchedulerFn) {\n lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush);\n } else {\n lib$es6$promise$asap$$scheduleFlush();\n }\n }\n };\n function lib$es6$promise$asap$$setScheduler(scheduleFn) {\n lib$es6$promise$asap$$customSchedulerFn = scheduleFn;\n }\n function lib$es6$promise$asap$$setAsap(asapFn) {\n lib$es6$promise$asap$$asap = asapFn;\n }\n var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;\n var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {};\n var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;\n var lib$es6$promise$asap$$isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n var lib$es6$promise$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n function lib$es6$promise$asap$$useNextTick() {\n return function() {\n process.nextTick(lib$es6$promise$asap$$flush);\n };\n }\n function lib$es6$promise$asap$$useVertxTimer() {\n return function() {\n lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush);\n };\n }\n function lib$es6$promise$asap$$useMutationObserver() {\n var iterations = 0;\n var observer = new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);\n var node = document.createTextNode('');\n observer.observe(node, {characterData: true});\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n }\n function lib$es6$promise$asap$$useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = lib$es6$promise$asap$$flush;\n return function() {\n channel.port2.postMessage(0);\n };\n }\n function lib$es6$promise$asap$$useSetTimeout() {\n return function() {\n setTimeout(lib$es6$promise$asap$$flush, 1);\n };\n }\n var lib$es6$promise$asap$$queue = new Array(1000);\n function lib$es6$promise$asap$$flush() {\n for (var i = 0; i < lib$es6$promise$asap$$len; i += 2) {\n var callback = lib$es6$promise$asap$$queue[i];\n var arg = lib$es6$promise$asap$$queue[i + 1];\n callback(arg);\n lib$es6$promise$asap$$queue[i] = undefined;\n lib$es6$promise$asap$$queue[i + 1] = undefined;\n }\n lib$es6$promise$asap$$len = 0;\n }\n function lib$es6$promise$asap$$attemptVertx() {\n try {\n var r = require;\n var vertx = r('vertx');\n lib$es6$promise$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return lib$es6$promise$asap$$useVertxTimer();\n } catch (e) {\n return lib$es6$promise$asap$$useSetTimeout();\n }\n }\n var lib$es6$promise$asap$$scheduleFlush;\n if (lib$es6$promise$asap$$isNode) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useNextTick();\n } else if (lib$es6$promise$asap$$BrowserMutationObserver) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMutationObserver();\n } else if (lib$es6$promise$asap$$isWorker) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMessageChannel();\n } else if (lib$es6$promise$asap$$browserWindow === undefined && typeof require === 'function') {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$attemptVertx();\n } else {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout();\n }\n function lib$es6$promise$then$$then(onFulfillment, onRejection) {\n var parent = this;\n var state = parent._state;\n if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) {\n return this;\n }\n var child = new this.constructor(lib$es6$promise$$internal$$noop);\n var result = parent._result;\n if (state) {\n var callback = arguments[state - 1];\n lib$es6$promise$asap$$asap(function() {\n lib$es6$promise$$internal$$invokeCallback(state, child, callback, result);\n });\n } else {\n lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection);\n }\n return child;\n }\n var lib$es6$promise$then$$default = lib$es6$promise$then$$then;\n function lib$es6$promise$promise$resolve$$resolve(object) {\n var Constructor = this;\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$resolve(promise, object);\n return promise;\n }\n var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve;\n function lib$es6$promise$$internal$$noop() {}\n var lib$es6$promise$$internal$$PENDING = void 0;\n var lib$es6$promise$$internal$$FULFILLED = 1;\n var lib$es6$promise$$internal$$REJECTED = 2;\n var lib$es6$promise$$internal$$GET_THEN_ERROR = new lib$es6$promise$$internal$$ErrorObject();\n function lib$es6$promise$$internal$$selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n }\n function lib$es6$promise$$internal$$cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n function lib$es6$promise$$internal$$getThen(promise) {\n try {\n return promise.then;\n } catch (error) {\n lib$es6$promise$$internal$$GET_THEN_ERROR.error = error;\n return lib$es6$promise$$internal$$GET_THEN_ERROR;\n }\n }\n function lib$es6$promise$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n try {\n then.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n }\n function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) {\n lib$es6$promise$asap$$asap(function(promise) {\n var sealed = false;\n var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n } else {\n lib$es6$promise$$internal$$fulfill(promise, value);\n }\n }, function(reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n lib$es6$promise$$internal$$reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n if (!sealed && error) {\n sealed = true;\n lib$es6$promise$$internal$$reject(promise, error);\n }\n }, promise);\n }\n function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) {\n if (thenable._state === lib$es6$promise$$internal$$FULFILLED) {\n lib$es6$promise$$internal$$fulfill(promise, thenable._result);\n } else if (thenable._state === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, thenable._result);\n } else {\n lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }, function(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n });\n }\n }\n function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable, then) {\n if (maybeThenable.constructor === promise.constructor && then === lib$es6$promise$then$$default && constructor.resolve === lib$es6$promise$promise$resolve$$default) {\n lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable);\n } else {\n if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error);\n } else if (then === undefined) {\n lib$es6$promise$$internal$$fulfill(promise, maybeThenable);\n } else if (lib$es6$promise$utils$$isFunction(then)) {\n lib$es6$promise$$internal$$handleForeignThenable(promise, maybeThenable, then);\n } else {\n lib$es6$promise$$internal$$fulfill(promise, maybeThenable);\n }\n }\n }\n function lib$es6$promise$$internal$$resolve(promise, value) {\n if (promise === value) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFulfillment());\n } else if (lib$es6$promise$utils$$objectOrFunction(value)) {\n lib$es6$promise$$internal$$handleMaybeThenable(promise, value, lib$es6$promise$$internal$$getThen(value));\n } else {\n lib$es6$promise$$internal$$fulfill(promise, value);\n }\n }\n function lib$es6$promise$$internal$$publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n lib$es6$promise$$internal$$publish(promise);\n }\n function lib$es6$promise$$internal$$fulfill(promise, value) {\n if (promise._state !== lib$es6$promise$$internal$$PENDING) {\n return;\n }\n promise._result = value;\n promise._state = lib$es6$promise$$internal$$FULFILLED;\n if (promise._subscribers.length !== 0) {\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise);\n }\n }\n function lib$es6$promise$$internal$$reject(promise, reason) {\n if (promise._state !== lib$es6$promise$$internal$$PENDING) {\n return;\n }\n promise._state = lib$es6$promise$$internal$$REJECTED;\n promise._result = reason;\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise);\n }\n function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n parent._onerror = null;\n subscribers[length] = child;\n subscribers[length + lib$es6$promise$$internal$$FULFILLED] = onFulfillment;\n subscribers[length + lib$es6$promise$$internal$$REJECTED] = onRejection;\n if (length === 0 && parent._state) {\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent);\n }\n }\n function lib$es6$promise$$internal$$publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n if (subscribers.length === 0) {\n return;\n }\n var child,\n callback,\n detail = promise._result;\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n if (child) {\n lib$es6$promise$$internal$$invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n promise._subscribers.length = 0;\n }\n function lib$es6$promise$$internal$$ErrorObject() {\n this.error = null;\n }\n var lib$es6$promise$$internal$$TRY_CATCH_ERROR = new lib$es6$promise$$internal$$ErrorObject();\n function lib$es6$promise$$internal$$tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch (e) {\n lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e;\n return lib$es6$promise$$internal$$TRY_CATCH_ERROR;\n }\n }\n function lib$es6$promise$$internal$$invokeCallback(settled, promise, callback, detail) {\n var hasCallback = lib$es6$promise$utils$$isFunction(callback),\n value,\n error,\n succeeded,\n failed;\n if (hasCallback) {\n value = lib$es6$promise$$internal$$tryCatch(callback, detail);\n if (value === lib$es6$promise$$internal$$TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value = null;\n } else {\n succeeded = true;\n }\n if (promise === value) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n if (promise._state !== lib$es6$promise$$internal$$PENDING) {} else if (hasCallback && succeeded) {\n lib$es6$promise$$internal$$resolve(promise, value);\n } else if (failed) {\n lib$es6$promise$$internal$$reject(promise, error);\n } else if (settled === lib$es6$promise$$internal$$FULFILLED) {\n lib$es6$promise$$internal$$fulfill(promise, value);\n } else if (settled === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, value);\n }\n }\n function lib$es6$promise$$internal$$initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }, function rejectPromise(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n });\n } catch (e) {\n lib$es6$promise$$internal$$reject(promise, e);\n }\n }\n function lib$es6$promise$promise$all$$all(entries) {\n return new lib$es6$promise$enumerator$$default(this, entries).promise;\n }\n var lib$es6$promise$promise$all$$default = lib$es6$promise$promise$all$$all;\n function lib$es6$promise$promise$race$$race(entries) {\n var Constructor = this;\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n if (!lib$es6$promise$utils$$isArray(entries)) {\n lib$es6$promise$$internal$$reject(promise, new TypeError('You must pass an array to race.'));\n return promise;\n }\n var length = entries.length;\n function onFulfillment(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }\n function onRejection(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n }\n for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {\n lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection);\n }\n return promise;\n }\n var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race;\n function lib$es6$promise$promise$reject$$reject(reason) {\n var Constructor = this;\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$reject(promise, reason);\n return promise;\n }\n var lib$es6$promise$promise$reject$$default = lib$es6$promise$promise$reject$$reject;\n var lib$es6$promise$promise$$counter = 0;\n function lib$es6$promise$promise$$needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n function lib$es6$promise$promise$$needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n var lib$es6$promise$promise$$default = lib$es6$promise$promise$$Promise;\n function lib$es6$promise$promise$$Promise(resolver) {\n this._id = lib$es6$promise$promise$$counter++;\n this._state = undefined;\n this._result = undefined;\n this._subscribers = [];\n if (lib$es6$promise$$internal$$noop !== resolver) {\n typeof resolver !== 'function' && lib$es6$promise$promise$$needsResolver();\n this instanceof lib$es6$promise$promise$$Promise ? lib$es6$promise$$internal$$initializePromise(this, resolver) : lib$es6$promise$promise$$needsNew();\n }\n }\n lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default;\n lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default;\n lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default;\n lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default;\n lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler;\n lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap;\n lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap;\n lib$es6$promise$promise$$Promise.prototype = {\n constructor: lib$es6$promise$promise$$Promise,\n then: lib$es6$promise$then$$default,\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n };\n var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator;\n function lib$es6$promise$enumerator$$Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(lib$es6$promise$$internal$$noop);\n if (Array.isArray(input)) {\n this._input = input;\n this.length = input.length;\n this._remaining = input.length;\n this._result = new Array(this.length);\n if (this.length === 0) {\n lib$es6$promise$$internal$$fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate();\n if (this._remaining === 0) {\n lib$es6$promise$$internal$$fulfill(this.promise, this._result);\n }\n }\n } else {\n lib$es6$promise$$internal$$reject(this.promise, this._validationError());\n }\n }\n lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() {\n return new Error('Array Methods must be provided an Array');\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() {\n var length = this.length;\n var input = this._input;\n for (var i = 0; this._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {\n this._eachEntry(input[i], i);\n }\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) {\n var c = this._instanceConstructor;\n var resolve = c.resolve;\n if (resolve === lib$es6$promise$promise$resolve$$default) {\n var then = lib$es6$promise$$internal$$getThen(entry);\n if (then === lib$es6$promise$then$$default && entry._state !== lib$es6$promise$$internal$$PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === lib$es6$promise$promise$$default) {\n var promise = new c(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$handleMaybeThenable(promise, entry, then);\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function(resolve) {\n resolve(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve(entry), i);\n }\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) {\n var promise = this.promise;\n if (promise._state === lib$es6$promise$$internal$$PENDING) {\n this._remaining--;\n if (state === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n if (this._remaining === 0) {\n lib$es6$promise$$internal$$fulfill(promise, this._result);\n }\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) {\n var enumerator = this;\n lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) {\n enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value);\n }, function(reason) {\n enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason);\n });\n };\n function lib$es6$promise$polyfill$$polyfill() {\n var local;\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n var P = local.Promise;\n if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) {\n return;\n }\n local.Promise = lib$es6$promise$promise$$default;\n }\n var lib$es6$promise$polyfill$$default = lib$es6$promise$polyfill$$polyfill;\n var lib$es6$promise$umd$$ES6Promise = {\n 'Promise': lib$es6$promise$promise$$default,\n 'polyfill': lib$es6$promise$polyfill$$default\n };\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return lib$es6$promise$umd$$ES6Promise;\n });\n } else if (typeof module !== 'undefined' && module['exports']) {\n module['exports'] = lib$es6$promise$umd$$ES6Promise;\n } else if (typeof this !== 'undefined') {\n this['ES6Promise'] = lib$es6$promise$umd$$ES6Promise;\n }\n lib$es6$promise$polyfill$$default();\n }).call(this);\n})(require('process'));\n","module.exports = require(\"npm:es6-promise@3.1.2/dist/es6-promise.js\");","/* */ \n'use strict';\n\n/** @type {Promise} **/\nmodule.exports = typeof Promise === 'function' ? Promise : require('es6-promise').Promise;\n","/* */ \n(function(process) {\n 'use strict';\n var fs = require('fs'),\n download = require('./download'),\n parse = require('./parse'),\n util = require('./util'),\n $Ref = require('./ref'),\n Promise = require('./promise'),\n url = require('url'),\n ono = require('ono');\n module.exports = read;\n function read(path, $refs, options) {\n try {\n path = util.path.stripHash(path);\n util.debug('Reading %s', path);\n var $ref = $refs._get$Ref(path);\n if ($ref && !$ref.isExpired()) {\n util.debug(' cached from %s', $ref.pathType);\n return Promise.resolve({\n $ref: $ref,\n cached: true\n });\n }\n $ref = new $Ref($refs, path);\n return read$Ref($ref, options);\n } catch (e) {\n return Promise.reject(e);\n }\n }\n function read$Ref($ref, options) {\n try {\n var promise = options.$refs.external && (read$RefFile($ref, options) || read$RefUrl($ref, options));\n if (promise) {\n return promise.then(function(data) {\n var value = parse(data, $ref.path, options);\n $ref.setValue(value, options);\n return {\n $ref: $ref,\n cached: false\n };\n });\n } else {\n return Promise.reject(ono.syntax('Unable to resolve $ref pointer \"%s\"', $ref.path));\n }\n } catch (e) {\n return Promise.reject(e);\n }\n }\n function read$RefFile($ref, options) {\n if (process.browser || util.path.isUrl($ref.path)) {\n return;\n }\n $ref.pathType = 'fs';\n return new Promise(function(resolve, reject) {\n var file;\n try {\n file = util.path.urlToLocalPath($ref.path);\n } catch (err) {\n reject(ono.uri(err, 'Malformed URI: %s', $ref.path));\n }\n util.debug('Opening file: %s', file);\n try {\n fs.readFile(file, function(err, data) {\n if (err) {\n reject(ono(err, 'Error opening file \"%s\"', $ref.path));\n } else {\n resolve(data);\n }\n });\n } catch (err) {\n reject(ono(err, 'Error opening file \"%s\"', file));\n }\n });\n }\n function read$RefUrl($ref, options) {\n var u = url.parse($ref.path);\n if (process.browser && !u.protocol) {\n u.protocol = url.parse(location.href).protocol;\n }\n if (u.protocol === 'http:') {\n $ref.pathType = 'http';\n return download(u, options);\n } else if (u.protocol === 'https:') {\n $ref.pathType = 'https';\n return download(u, options);\n }\n }\n})(require('process'));\n","/* */ \n'use strict';\nvar Promise = require('./promise'),\n $Ref = require('./ref'),\n Pointer = require('./pointer'),\n read = require('./read'),\n util = require('./util'),\n url = require('url');\nmodule.exports = resolve;\nfunction resolve(parser, options) {\n try {\n if (!options.$refs.external) {\n return Promise.resolve();\n }\n util.debug('Resolving $ref pointers in %s', parser.$refs._basePath);\n var promises = crawl(parser.schema, parser.$refs._basePath + '#', parser.$refs, options);\n return Promise.all(promises);\n } catch (e) {\n return Promise.reject(e);\n }\n}\nfunction crawl(obj, path, $refs, options) {\n var promises = [];\n if (obj && typeof obj === 'object') {\n Object.keys(obj).forEach(function(key) {\n var keyPath = Pointer.join(path, key);\n var value = obj[key];\n if ($Ref.isExternal$Ref(value)) {\n var promise = resolve$Ref(value, keyPath, $refs, options);\n promises.push(promise);\n } else {\n promises = promises.concat(crawl(value, keyPath, $refs, options));\n }\n });\n }\n return promises;\n}\nfunction resolve$Ref($ref, path, $refs, options) {\n util.debug('Resolving $ref pointer \"%s\" at %s', $ref.$ref, path);\n var resolvedPath = url.resolve(path, $ref.$ref);\n return read(resolvedPath, $refs, options).then(function(result) {\n if (!result.cached) {\n util.debug('Resolving $ref pointers in %s', result.$ref.path);\n var promises = crawl(result.$ref.value, result.$ref.path + '#', $refs, options);\n return Promise.all(promises);\n }\n });\n}\n","/* */ \n'use strict';\nvar $Ref = require('./ref'),\n Pointer = require('./pointer'),\n util = require('./util'),\n url = require('url');\nmodule.exports = bundle;\nfunction bundle(parser, options) {\n util.debug('Bundling $ref pointers in %s', parser.$refs._basePath);\n var inventory = [];\n crawl(parser.schema, parser.$refs._basePath + '#', '#', inventory, parser.$refs, options);\n remap(inventory);\n}\nfunction crawl(obj, path, pathFromRoot, inventory, $refs, options) {\n if (obj && typeof obj === 'object') {\n var keys = Object.keys(obj);\n var defs = keys.indexOf('definitions');\n if (defs > 0) {\n keys.splice(0, 0, keys.splice(defs, 1)[0]);\n }\n keys.forEach(function(key) {\n var keyPath = Pointer.join(path, key);\n var keyPathFromRoot = Pointer.join(pathFromRoot, key);\n var value = obj[key];\n if ($Ref.is$Ref(value)) {\n if (!inventory.some(function(i) {\n return i.parent === obj && i.key === key;\n })) {\n inventory$Ref(obj, key, path, keyPathFromRoot, inventory, $refs, options);\n }\n } else {\n crawl(value, keyPath, keyPathFromRoot, inventory, $refs, options);\n }\n });\n }\n}\nfunction inventory$Ref($refParent, $refKey, path, pathFromRoot, inventory, $refs, options) {\n var $ref = $refParent[$refKey];\n var $refPath = url.resolve(path, $ref.$ref);\n var pointer = $refs._resolve($refPath, options);\n var depth = Pointer.parse(pathFromRoot).length;\n var file = util.path.stripHash(pointer.path);\n var hash = util.path.getHash(pointer.path);\n var external = file !== $refs._basePath;\n var extended = Object.keys($ref).length > 1;\n inventory.push({\n $ref: $ref,\n parent: $refParent,\n key: $refKey,\n pathFromRoot: pathFromRoot,\n depth: depth,\n file: file,\n hash: hash,\n value: pointer.value,\n circular: pointer.circular,\n extended: extended,\n external: external\n });\n crawl(pointer.value, pointer.path, pathFromRoot, inventory, $refs, options);\n}\nfunction remap(inventory) {\n inventory.sort(function(a, b) {\n if (a.file !== b.file) {\n return a.file < b.file ? -1 : +1;\n } else if (a.hash !== b.hash) {\n return a.hash < b.hash ? -1 : +1;\n } else if (a.circular !== b.circular) {\n return a.circular ? -1 : +1;\n } else if (a.extended !== b.extended) {\n return a.extended ? +1 : -1;\n } else if (a.depth !== b.depth) {\n return a.depth - b.depth;\n } else {\n return b.pathFromRoot.lastIndexOf('/definitions') - a.pathFromRoot.lastIndexOf('/definitions');\n }\n });\n var file,\n hash,\n pathFromRoot;\n inventory.forEach(function(i) {\n util.debug('Re-mapping $ref pointer \"%s\" at %s', i.$ref.$ref, i.pathFromRoot);\n if (!i.external) {\n i.$ref.$ref = i.hash;\n } else if (i.file !== file || i.hash.indexOf(hash) !== 0) {\n file = i.file;\n hash = i.hash;\n pathFromRoot = i.pathFromRoot;\n i.$ref = i.parent[i.key] = util.dereference(i.$ref, i.value);\n if (i.circular) {\n i.$ref.$ref = i.pathFromRoot;\n }\n } else {\n i.$ref.$ref = Pointer.join(pathFromRoot, Pointer.parse(i.hash));\n }\n util.debug(' new value: %s', (i.$ref && i.$ref.$ref) ? i.$ref.$ref : '[object Object]');\n });\n}\n","/* */ \n(function(process) {\n \"use strict\";\n var next = (global.process && process.nextTick) || global.setImmediate || function(f) {\n setTimeout(f, 0);\n };\n module.exports = function maybe(cb, promise) {\n if (cb) {\n promise.then(function(result) {\n next(function() {\n cb(null, result);\n });\n }, function(err) {\n next(function() {\n cb(err);\n });\n });\n return undefined;\n } else {\n return promise;\n }\n };\n})(require('process'));\n","module.exports = require(\"npm:call-me-maybe@1.0.1/index.js\");","/* */ \n'use strict';\nvar common = require('./common');\nfunction Mark(name, buffer, position, line, column) {\n this.name = name;\n this.buffer = buffer;\n this.position = position;\n this.line = line;\n this.column = column;\n}\nMark.prototype.getSnippet = function getSnippet(indent, maxLength) {\n var head,\n start,\n tail,\n end,\n snippet;\n if (!this.buffer) {\n return null;\n }\n indent = indent || 4;\n maxLength = maxLength || 75;\n head = '';\n start = this.position;\n while (start > 0 && -1 === '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(start - 1))) {\n start -= 1;\n if (this.position - start > (maxLength / 2 - 1)) {\n head = ' ... ';\n start += 5;\n break;\n }\n }\n tail = '';\n end = this.position;\n while (end < this.buffer.length && -1 === '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(end))) {\n end += 1;\n if (end - this.position > (maxLength / 2 - 1)) {\n tail = ' ... ';\n end -= 5;\n break;\n }\n }\n snippet = this.buffer.slice(start, end);\n return common.repeat(' ', indent) + head + snippet + tail + '\\n' + common.repeat(' ', indent + this.position - start + head.length) + '^';\n};\nMark.prototype.toString = function toString(compact) {\n var snippet,\n where = '';\n if (this.name) {\n where += 'in \"' + this.name + '\" ';\n }\n where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);\n if (!compact) {\n snippet = this.getSnippet();\n if (snippet) {\n where += ':\\n' + snippet;\n }\n }\n return where;\n};\nmodule.exports = Mark;\n","/* */ \n'use strict';\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Mark = require('./mark');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar CONTEXT_FLOW_IN = 1;\nvar CONTEXT_FLOW_OUT = 2;\nvar CONTEXT_BLOCK_IN = 3;\nvar CONTEXT_BLOCK_OUT = 4;\nvar CHOMPING_CLIP = 1;\nvar CHOMPING_STRIP = 2;\nvar CHOMPING_KEEP = 3;\nvar PATTERN_NON_PRINTABLE = /[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\nvar PATTERN_NON_ASCII_LINE_BREAKS = /[\\x85\\u2028\\u2029]/;\nvar PATTERN_FLOW_INDICATORS = /[,\\[\\]\\{\\}]/;\nvar PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\\-]+!)$/i;\nvar PATTERN_TAG_URI = /^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*'\\(\\)\\[\\]])*$/i;\nfunction is_EOL(c) {\n return (c === 0x0A) || (c === 0x0D);\n}\nfunction is_WHITE_SPACE(c) {\n return (c === 0x09) || (c === 0x20);\n}\nfunction is_WS_OR_EOL(c) {\n return (c === 0x09) || (c === 0x20) || (c === 0x0A) || (c === 0x0D);\n}\nfunction is_FLOW_INDICATOR(c) {\n return 0x2C === c || 0x5B === c || 0x5D === c || 0x7B === c || 0x7D === c;\n}\nfunction fromHexCode(c) {\n var lc;\n if ((0x30 <= c) && (c <= 0x39)) {\n return c - 0x30;\n }\n lc = c | 0x20;\n if ((0x61 <= lc) && (lc <= 0x66)) {\n return lc - 0x61 + 10;\n }\n return -1;\n}\nfunction escapedHexLen(c) {\n if (c === 0x78) {\n return 2;\n }\n if (c === 0x75) {\n return 4;\n }\n if (c === 0x55) {\n return 8;\n }\n return 0;\n}\nfunction fromDecimalCode(c) {\n if ((0x30 <= c) && (c <= 0x39)) {\n return c - 0x30;\n }\n return -1;\n}\nfunction simpleEscapeSequence(c) {\n return (c === 0x30) ? '\\x00' : (c === 0x61) ? '\\x07' : (c === 0x62) ? '\\x08' : (c === 0x74) ? '\\x09' : (c === 0x09) ? '\\x09' : (c === 0x6E) ? '\\x0A' : (c === 0x76) ? '\\x0B' : (c === 0x66) ? '\\x0C' : (c === 0x72) ? '\\x0D' : (c === 0x65) ? '\\x1B' : (c === 0x20) ? ' ' : (c === 0x22) ? '\\x22' : (c === 0x2F) ? '/' : (c === 0x5C) ? '\\x5C' : (c === 0x4E) ? '\\x85' : (c === 0x5F) ? '\\xA0' : (c === 0x4C) ? '\\u2028' : (c === 0x50) ? '\\u2029' : '';\n}\nfunction charFromCodepoint(c) {\n if (c <= 0xFFFF) {\n return String.fromCharCode(c);\n }\n return String.fromCharCode(((c - 0x010000) >> 10) + 0xD800, ((c - 0x010000) & 0x03FF) + 0xDC00);\n}\nvar simpleEscapeCheck = new Array(256);\nvar simpleEscapeMap = new Array(256);\nfor (var i = 0; i < 256; i++) {\n simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;\n simpleEscapeMap[i] = simpleEscapeSequence(i);\n}\nfunction State(input, options) {\n this.input = input;\n this.filename = options['filename'] || null;\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.onWarning = options['onWarning'] || null;\n this.legacy = options['legacy'] || false;\n this.json = options['json'] || false;\n this.implicitTypes = this.schema.compiledImplicit;\n this.typeMap = this.schema.compiledTypeMap;\n this.length = input.length;\n this.position = 0;\n this.line = 0;\n this.lineStart = 0;\n this.lineIndent = 0;\n this.documents = [];\n}\nfunction generateError(state, message) {\n return new YAMLException(message, new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));\n}\nfunction throwError(state, message) {\n throw generateError(state, message);\n}\nfunction throwWarning(state, message) {\n if (state.onWarning) {\n state.onWarning.call(null, generateError(state, message));\n }\n}\nvar directiveHandlers = {\n YAML: function handleYamlDirective(state, name, args) {\n var match,\n major,\n minor;\n if (null !== state.version) {\n throwError(state, 'duplication of %YAML directive');\n }\n if (1 !== args.length) {\n throwError(state, 'YAML directive accepts exactly one argument');\n }\n match = /^([0-9]+)\\.([0-9]+)$/.exec(args[0]);\n if (null === match) {\n throwError(state, 'ill-formed argument of the YAML directive');\n }\n major = parseInt(match[1], 10);\n minor = parseInt(match[2], 10);\n if (1 !== major) {\n throwError(state, 'unacceptable YAML version of the document');\n }\n state.version = args[0];\n state.checkLineBreaks = (minor < 2);\n if (1 !== minor && 2 !== minor) {\n throwWarning(state, 'unsupported YAML version of the document');\n }\n },\n TAG: function handleTagDirective(state, name, args) {\n var handle,\n prefix;\n if (2 !== args.length) {\n throwError(state, 'TAG directive accepts exactly two arguments');\n }\n handle = args[0];\n prefix = args[1];\n if (!PATTERN_TAG_HANDLE.test(handle)) {\n throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');\n }\n if (_hasOwnProperty.call(state.tagMap, handle)) {\n throwError(state, 'there is a previously declared suffix for \"' + handle + '\" tag handle');\n }\n if (!PATTERN_TAG_URI.test(prefix)) {\n throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');\n }\n state.tagMap[handle] = prefix;\n }\n};\nfunction captureSegment(state, start, end, checkJson) {\n var _position,\n _length,\n _character,\n _result;\n if (start < end) {\n _result = state.input.slice(start, end);\n if (checkJson) {\n for (_position = 0, _length = _result.length; _position < _length; _position += 1) {\n _character = _result.charCodeAt(_position);\n if (!(0x09 === _character || 0x20 <= _character && _character <= 0x10FFFF)) {\n throwError(state, 'expected valid JSON character');\n }\n }\n } else if (PATTERN_NON_PRINTABLE.test(_result)) {\n throwError(state, 'the stream contains non-printable characters');\n }\n state.result += _result;\n }\n}\nfunction mergeMappings(state, destination, source, overridableKeys) {\n var sourceKeys,\n key,\n index,\n quantity;\n if (!common.isObject(source)) {\n throwError(state, 'cannot merge mappings; the provided source object is unacceptable');\n }\n sourceKeys = Object.keys(source);\n for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {\n key = sourceKeys[index];\n if (!_hasOwnProperty.call(destination, key)) {\n destination[key] = source[key];\n overridableKeys[key] = true;\n }\n }\n}\nfunction storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode) {\n var index,\n quantity;\n keyNode = String(keyNode);\n if (null === _result) {\n _result = {};\n }\n if ('tag:yaml.org,2002:merge' === keyTag) {\n if (Array.isArray(valueNode)) {\n for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {\n mergeMappings(state, _result, valueNode[index], overridableKeys);\n }\n } else {\n mergeMappings(state, _result, valueNode, overridableKeys);\n }\n } else {\n if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {\n throwError(state, 'duplicated mapping key');\n }\n _result[keyNode] = valueNode;\n delete overridableKeys[keyNode];\n }\n return _result;\n}\nfunction readLineBreak(state) {\n var ch;\n ch = state.input.charCodeAt(state.position);\n if (0x0A === ch) {\n state.position++;\n } else if (0x0D === ch) {\n state.position++;\n if (0x0A === state.input.charCodeAt(state.position)) {\n state.position++;\n }\n } else {\n throwError(state, 'a line break is expected');\n }\n state.line += 1;\n state.lineStart = state.position;\n}\nfunction skipSeparationSpace(state, allowComments, checkIndent) {\n var lineBreaks = 0,\n ch = state.input.charCodeAt(state.position);\n while (0 !== ch) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (allowComments && 0x23 === ch) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0x0A && ch !== 0x0D && 0 !== ch);\n }\n if (is_EOL(ch)) {\n readLineBreak(state);\n ch = state.input.charCodeAt(state.position);\n lineBreaks++;\n state.lineIndent = 0;\n while (0x20 === ch) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n } else {\n break;\n }\n }\n if (-1 !== checkIndent && 0 !== lineBreaks && state.lineIndent < checkIndent) {\n throwWarning(state, 'deficient indentation');\n }\n return lineBreaks;\n}\nfunction testDocumentSeparator(state) {\n var _position = state.position,\n ch;\n ch = state.input.charCodeAt(_position);\n if ((0x2D === ch || 0x2E === ch) && state.input.charCodeAt(_position + 1) === ch && state.input.charCodeAt(_position + 2) === ch) {\n _position += 3;\n ch = state.input.charCodeAt(_position);\n if (ch === 0 || is_WS_OR_EOL(ch)) {\n return true;\n }\n }\n return false;\n}\nfunction writeFoldedLines(state, count) {\n if (1 === count) {\n state.result += ' ';\n } else if (count > 1) {\n state.result += common.repeat('\\n', count - 1);\n }\n}\nfunction readPlainScalar(state, nodeIndent, withinFlowCollection) {\n var preceding,\n following,\n captureStart,\n captureEnd,\n hasPendingContent,\n _line,\n _lineStart,\n _lineIndent,\n _kind = state.kind,\n _result = state.result,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || 0x23 === ch || 0x26 === ch || 0x2A === ch || 0x21 === ch || 0x7C === ch || 0x3E === ch || 0x27 === ch || 0x22 === ch || 0x25 === ch || 0x40 === ch || 0x60 === ch) {\n return false;\n }\n if (0x3F === ch || 0x2D === ch) {\n following = state.input.charCodeAt(state.position + 1);\n if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {\n return false;\n }\n }\n state.kind = 'scalar';\n state.result = '';\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n while (0 !== ch) {\n if (0x3A === ch) {\n following = state.input.charCodeAt(state.position + 1);\n if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {\n break;\n }\n } else if (0x23 === ch) {\n preceding = state.input.charCodeAt(state.position - 1);\n if (is_WS_OR_EOL(preceding)) {\n break;\n }\n } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || withinFlowCollection && is_FLOW_INDICATOR(ch)) {\n break;\n } else if (is_EOL(ch)) {\n _line = state.line;\n _lineStart = state.lineStart;\n _lineIndent = state.lineIndent;\n skipSeparationSpace(state, false, -1);\n if (state.lineIndent >= nodeIndent) {\n hasPendingContent = true;\n ch = state.input.charCodeAt(state.position);\n continue;\n } else {\n state.position = captureEnd;\n state.line = _line;\n state.lineStart = _lineStart;\n state.lineIndent = _lineIndent;\n break;\n }\n }\n if (hasPendingContent) {\n captureSegment(state, captureStart, captureEnd, false);\n writeFoldedLines(state, state.line - _line);\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n }\n if (!is_WHITE_SPACE(ch)) {\n captureEnd = state.position + 1;\n }\n ch = state.input.charCodeAt(++state.position);\n }\n captureSegment(state, captureStart, captureEnd, false);\n if (state.result) {\n return true;\n }\n state.kind = _kind;\n state.result = _result;\n return false;\n}\nfunction readSingleQuotedScalar(state, nodeIndent) {\n var ch,\n captureStart,\n captureEnd;\n ch = state.input.charCodeAt(state.position);\n if (0x27 !== ch) {\n return false;\n }\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n while (0 !== (ch = state.input.charCodeAt(state.position))) {\n if (0x27 === ch) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n if (0x27 === ch) {\n captureStart = captureEnd = state.position;\n state.position++;\n } else {\n return true;\n }\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a single quoted scalar');\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n throwError(state, 'unexpected end of the stream within a single quoted scalar');\n}\nfunction readDoubleQuotedScalar(state, nodeIndent) {\n var captureStart,\n captureEnd,\n hexLength,\n hexResult,\n tmp,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (0x22 !== ch) {\n return false;\n }\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n while (0 !== (ch = state.input.charCodeAt(state.position))) {\n if (0x22 === ch) {\n captureSegment(state, captureStart, state.position, true);\n state.position++;\n return true;\n } else if (0x5C === ch) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n if (is_EOL(ch)) {\n skipSeparationSpace(state, false, nodeIndent);\n } else if (ch < 256 && simpleEscapeCheck[ch]) {\n state.result += simpleEscapeMap[ch];\n state.position++;\n } else if ((tmp = escapedHexLen(ch)) > 0) {\n hexLength = tmp;\n hexResult = 0;\n for (; hexLength > 0; hexLength--) {\n ch = state.input.charCodeAt(++state.position);\n if ((tmp = fromHexCode(ch)) >= 0) {\n hexResult = (hexResult << 4) + tmp;\n } else {\n throwError(state, 'expected hexadecimal character');\n }\n }\n state.result += charFromCodepoint(hexResult);\n state.position++;\n } else {\n throwError(state, 'unknown escape sequence');\n }\n captureStart = captureEnd = state.position;\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a double quoted scalar');\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n throwError(state, 'unexpected end of the stream within a double quoted scalar');\n}\nfunction readFlowCollection(state, nodeIndent) {\n var readNext = true,\n _line,\n _tag = state.tag,\n _result,\n _anchor = state.anchor,\n following,\n terminator,\n isPair,\n isExplicitPair,\n isMapping,\n overridableKeys = {},\n keyNode,\n keyTag,\n valueNode,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch === 0x5B) {\n terminator = 0x5D;\n isMapping = false;\n _result = [];\n } else if (ch === 0x7B) {\n terminator = 0x7D;\n isMapping = true;\n _result = {};\n } else {\n return false;\n }\n if (null !== state.anchor) {\n state.anchorMap[state.anchor] = _result;\n }\n ch = state.input.charCodeAt(++state.position);\n while (0 !== ch) {\n skipSeparationSpace(state, true, nodeIndent);\n ch = state.input.charCodeAt(state.position);\n if (ch === terminator) {\n state.position++;\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = isMapping ? 'mapping' : 'sequence';\n state.result = _result;\n return true;\n } else if (!readNext) {\n throwError(state, 'missed comma between flow collection entries');\n }\n keyTag = keyNode = valueNode = null;\n isPair = isExplicitPair = false;\n if (0x3F === ch) {\n following = state.input.charCodeAt(state.position + 1);\n if (is_WS_OR_EOL(following)) {\n isPair = isExplicitPair = true;\n state.position++;\n skipSeparationSpace(state, true, nodeIndent);\n }\n }\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n keyTag = state.tag;\n keyNode = state.result;\n skipSeparationSpace(state, true, nodeIndent);\n ch = state.input.charCodeAt(state.position);\n if ((isExplicitPair || state.line === _line) && 0x3A === ch) {\n isPair = true;\n ch = state.input.charCodeAt(++state.position);\n skipSeparationSpace(state, true, nodeIndent);\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n valueNode = state.result;\n }\n if (isMapping) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);\n } else if (isPair) {\n _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));\n } else {\n _result.push(keyNode);\n }\n skipSeparationSpace(state, true, nodeIndent);\n ch = state.input.charCodeAt(state.position);\n if (0x2C === ch) {\n readNext = true;\n ch = state.input.charCodeAt(++state.position);\n } else {\n readNext = false;\n }\n }\n throwError(state, 'unexpected end of the stream within a flow collection');\n}\nfunction readBlockScalar(state, nodeIndent) {\n var captureStart,\n folding,\n chomping = CHOMPING_CLIP,\n detectedIndent = false,\n textIndent = nodeIndent,\n emptyLines = 0,\n atMoreIndented = false,\n tmp,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch === 0x7C) {\n folding = false;\n } else if (ch === 0x3E) {\n folding = true;\n } else {\n return false;\n }\n state.kind = 'scalar';\n state.result = '';\n while (0 !== ch) {\n ch = state.input.charCodeAt(++state.position);\n if (0x2B === ch || 0x2D === ch) {\n if (CHOMPING_CLIP === chomping) {\n chomping = (0x2B === ch) ? CHOMPING_KEEP : CHOMPING_STRIP;\n } else {\n throwError(state, 'repeat of a chomping mode identifier');\n }\n } else if ((tmp = fromDecimalCode(ch)) >= 0) {\n if (tmp === 0) {\n throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');\n } else if (!detectedIndent) {\n textIndent = nodeIndent + tmp - 1;\n detectedIndent = true;\n } else {\n throwError(state, 'repeat of an indentation width identifier');\n }\n } else {\n break;\n }\n }\n if (is_WHITE_SPACE(ch)) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (is_WHITE_SPACE(ch));\n if (0x23 === ch) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (!is_EOL(ch) && (0 !== ch));\n }\n }\n while (0 !== ch) {\n readLineBreak(state);\n state.lineIndent = 0;\n ch = state.input.charCodeAt(state.position);\n while ((!detectedIndent || state.lineIndent < textIndent) && (0x20 === ch)) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n if (!detectedIndent && state.lineIndent > textIndent) {\n textIndent = state.lineIndent;\n }\n if (is_EOL(ch)) {\n emptyLines++;\n continue;\n }\n if (state.lineIndent < textIndent) {\n if (chomping === CHOMPING_KEEP) {\n state.result += common.repeat('\\n', emptyLines);\n } else if (chomping === CHOMPING_CLIP) {\n if (detectedIndent) {\n state.result += '\\n';\n }\n }\n break;\n }\n if (folding) {\n if (is_WHITE_SPACE(ch)) {\n atMoreIndented = true;\n state.result += common.repeat('\\n', emptyLines + 1);\n } else if (atMoreIndented) {\n atMoreIndented = false;\n state.result += common.repeat('\\n', emptyLines + 1);\n } else if (0 === emptyLines) {\n if (detectedIndent) {\n state.result += ' ';\n }\n } else {\n state.result += common.repeat('\\n', emptyLines);\n }\n } else if (detectedIndent) {\n state.result += common.repeat('\\n', emptyLines + 1);\n } else {\n state.result += common.repeat('\\n', emptyLines);\n }\n detectedIndent = true;\n emptyLines = 0;\n captureStart = state.position;\n while (!is_EOL(ch) && (0 !== ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n captureSegment(state, captureStart, state.position, false);\n }\n return true;\n}\nfunction readBlockSequence(state, nodeIndent) {\n var _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = [],\n following,\n detected = false,\n ch;\n if (null !== state.anchor) {\n state.anchorMap[state.anchor] = _result;\n }\n ch = state.input.charCodeAt(state.position);\n while (0 !== ch) {\n if (0x2D !== ch) {\n break;\n }\n following = state.input.charCodeAt(state.position + 1);\n if (!is_WS_OR_EOL(following)) {\n break;\n }\n detected = true;\n state.position++;\n if (skipSeparationSpace(state, true, -1)) {\n if (state.lineIndent <= nodeIndent) {\n _result.push(null);\n ch = state.input.charCodeAt(state.position);\n continue;\n }\n }\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);\n _result.push(state.result);\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n if ((state.line === _line || state.lineIndent > nodeIndent) && (0 !== ch)) {\n throwError(state, 'bad indentation of a sequence entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'sequence';\n state.result = _result;\n return true;\n }\n return false;\n}\nfunction readBlockMapping(state, nodeIndent, flowIndent) {\n var following,\n allowCompact,\n _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = {},\n overridableKeys = {},\n keyTag = null,\n keyNode = null,\n valueNode = null,\n atExplicitKey = false,\n detected = false,\n ch;\n if (null !== state.anchor) {\n state.anchorMap[state.anchor] = _result;\n }\n ch = state.input.charCodeAt(state.position);\n while (0 !== ch) {\n following = state.input.charCodeAt(state.position + 1);\n _line = state.line;\n if ((0x3F === ch || 0x3A === ch) && is_WS_OR_EOL(following)) {\n if (0x3F === ch) {\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n detected = true;\n atExplicitKey = true;\n allowCompact = true;\n } else if (atExplicitKey) {\n atExplicitKey = false;\n allowCompact = true;\n } else {\n throwError(state, 'incomplete explicit mapping pair; a key node is missed');\n }\n state.position += 1;\n ch = following;\n } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {\n if (state.line === _line) {\n ch = state.input.charCodeAt(state.position);\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (0x3A === ch) {\n ch = state.input.charCodeAt(++state.position);\n if (!is_WS_OR_EOL(ch)) {\n throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');\n }\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n detected = true;\n atExplicitKey = false;\n allowCompact = false;\n keyTag = state.tag;\n keyNode = state.result;\n } else if (detected) {\n throwError(state, 'can not read an implicit mapping pair; a colon is missed');\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true;\n }\n } else if (detected) {\n throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true;\n }\n } else {\n break;\n }\n if (state.line === _line || state.lineIndent > nodeIndent) {\n if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {\n if (atExplicitKey) {\n keyNode = state.result;\n } else {\n valueNode = state.result;\n }\n }\n if (!atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);\n keyTag = keyNode = valueNode = null;\n }\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n }\n if (state.lineIndent > nodeIndent && (0 !== ch)) {\n throwError(state, 'bad indentation of a mapping entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n }\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'mapping';\n state.result = _result;\n }\n return detected;\n}\nfunction readTagProperty(state) {\n var _position,\n isVerbatim = false,\n isNamed = false,\n tagHandle,\n tagName,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (0x21 !== ch) {\n return false;\n }\n if (null !== state.tag) {\n throwError(state, 'duplication of a tag property');\n }\n ch = state.input.charCodeAt(++state.position);\n if (0x3C === ch) {\n isVerbatim = true;\n ch = state.input.charCodeAt(++state.position);\n } else if (0x21 === ch) {\n isNamed = true;\n tagHandle = '!!';\n ch = state.input.charCodeAt(++state.position);\n } else {\n tagHandle = '!';\n }\n _position = state.position;\n if (isVerbatim) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (0 !== ch && 0x3E !== ch);\n if (state.position < state.length) {\n tagName = state.input.slice(_position, state.position);\n ch = state.input.charCodeAt(++state.position);\n } else {\n throwError(state, 'unexpected end of the stream within a verbatim tag');\n }\n } else {\n while (0 !== ch && !is_WS_OR_EOL(ch)) {\n if (0x21 === ch) {\n if (!isNamed) {\n tagHandle = state.input.slice(_position - 1, state.position + 1);\n if (!PATTERN_TAG_HANDLE.test(tagHandle)) {\n throwError(state, 'named tag handle cannot contain such characters');\n }\n isNamed = true;\n _position = state.position + 1;\n } else {\n throwError(state, 'tag suffix cannot contain exclamation marks');\n }\n }\n ch = state.input.charCodeAt(++state.position);\n }\n tagName = state.input.slice(_position, state.position);\n if (PATTERN_FLOW_INDICATORS.test(tagName)) {\n throwError(state, 'tag suffix cannot contain flow indicator characters');\n }\n }\n if (tagName && !PATTERN_TAG_URI.test(tagName)) {\n throwError(state, 'tag name cannot contain such characters: ' + tagName);\n }\n if (isVerbatim) {\n state.tag = tagName;\n } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {\n state.tag = state.tagMap[tagHandle] + tagName;\n } else if ('!' === tagHandle) {\n state.tag = '!' + tagName;\n } else if ('!!' === tagHandle) {\n state.tag = 'tag:yaml.org,2002:' + tagName;\n } else {\n throwError(state, 'undeclared tag handle \"' + tagHandle + '\"');\n }\n return true;\n}\nfunction readAnchorProperty(state) {\n var _position,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (0x26 !== ch) {\n return false;\n }\n if (null !== state.anchor) {\n throwError(state, 'duplication of an anchor property');\n }\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n while (0 !== ch && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (state.position === _position) {\n throwError(state, 'name of an anchor node must contain at least one character');\n }\n state.anchor = state.input.slice(_position, state.position);\n return true;\n}\nfunction readAlias(state) {\n var _position,\n alias,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (0x2A !== ch) {\n return false;\n }\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n while (0 !== ch && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (state.position === _position) {\n throwError(state, 'name of an alias node must contain at least one character');\n }\n alias = state.input.slice(_position, state.position);\n if (!state.anchorMap.hasOwnProperty(alias)) {\n throwError(state, 'unidentified alias \"' + alias + '\"');\n }\n state.result = state.anchorMap[alias];\n skipSeparationSpace(state, true, -1);\n return true;\n}\nfunction composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {\n var allowBlockStyles,\n allowBlockScalars,\n allowBlockCollections,\n indentStatus = 1,\n atNewLine = false,\n hasContent = false,\n typeIndex,\n typeQuantity,\n type,\n flowIndent,\n blockIndent;\n state.tag = null;\n state.anchor = null;\n state.kind = null;\n state.result = null;\n allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;\n if (allowToSeek) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n }\n }\n if (1 === indentStatus) {\n while (readTagProperty(state) || readAnchorProperty(state)) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n allowBlockCollections = allowBlockStyles;\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n } else {\n allowBlockCollections = false;\n }\n }\n }\n if (allowBlockCollections) {\n allowBlockCollections = atNewLine || allowCompact;\n }\n if (1 === indentStatus || CONTEXT_BLOCK_OUT === nodeContext) {\n if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {\n flowIndent = parentIndent;\n } else {\n flowIndent = parentIndent + 1;\n }\n blockIndent = state.position - state.lineStart;\n if (1 === indentStatus) {\n if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {\n hasContent = true;\n } else {\n if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {\n hasContent = true;\n } else if (readAlias(state)) {\n hasContent = true;\n if (null !== state.tag || null !== state.anchor) {\n throwError(state, 'alias node should not have any properties');\n }\n } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {\n hasContent = true;\n if (null === state.tag) {\n state.tag = '?';\n }\n }\n if (null !== state.anchor) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else if (0 === indentStatus) {\n hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);\n }\n }\n if (null !== state.tag && '!' !== state.tag) {\n if ('?' === state.tag) {\n for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {\n type = state.implicitTypes[typeIndex];\n if (type.resolve(state.result)) {\n state.result = type.construct(state.result);\n state.tag = type.tag;\n if (null !== state.anchor) {\n state.anchorMap[state.anchor] = state.result;\n }\n break;\n }\n }\n } else if (_hasOwnProperty.call(state.typeMap, state.tag)) {\n type = state.typeMap[state.tag];\n if (null !== state.result && type.kind !== state.kind) {\n throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be \"' + type.kind + '\", not \"' + state.kind + '\"');\n }\n if (!type.resolve(state.result)) {\n throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');\n } else {\n state.result = type.construct(state.result);\n if (null !== state.anchor) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else {\n throwError(state, 'unknown tag !<' + state.tag + '>');\n }\n }\n return null !== state.tag || null !== state.anchor || hasContent;\n}\nfunction readDocument(state) {\n var documentStart = state.position,\n _position,\n directiveName,\n directiveArgs,\n hasDirectives = false,\n ch;\n state.version = null;\n state.checkLineBreaks = state.legacy;\n state.tagMap = {};\n state.anchorMap = {};\n while (0 !== (ch = state.input.charCodeAt(state.position))) {\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n if (state.lineIndent > 0 || 0x25 !== ch) {\n break;\n }\n hasDirectives = true;\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n while (0 !== ch && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n directiveName = state.input.slice(_position, state.position);\n directiveArgs = [];\n if (directiveName.length < 1) {\n throwError(state, 'directive name must not be less than one character in length');\n }\n while (0 !== ch) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (0x23 === ch) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (0 !== ch && !is_EOL(ch));\n break;\n }\n if (is_EOL(ch)) {\n break;\n }\n _position = state.position;\n while (0 !== ch && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n directiveArgs.push(state.input.slice(_position, state.position));\n }\n if (0 !== ch) {\n readLineBreak(state);\n }\n if (_hasOwnProperty.call(directiveHandlers, directiveName)) {\n directiveHandlers[directiveName](state, directiveName, directiveArgs);\n } else {\n throwWarning(state, 'unknown document directive \"' + directiveName + '\"');\n }\n }\n skipSeparationSpace(state, true, -1);\n if (0 === state.lineIndent && 0x2D === state.input.charCodeAt(state.position) && 0x2D === state.input.charCodeAt(state.position + 1) && 0x2D === state.input.charCodeAt(state.position + 2)) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n } else if (hasDirectives) {\n throwError(state, 'directives end mark is expected');\n }\n composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);\n skipSeparationSpace(state, true, -1);\n if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {\n throwWarning(state, 'non-ASCII line breaks are interpreted as content');\n }\n state.documents.push(state.result);\n if (state.position === state.lineStart && testDocumentSeparator(state)) {\n if (0x2E === state.input.charCodeAt(state.position)) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n }\n return;\n }\n if (state.position < (state.length - 1)) {\n throwError(state, 'end of the stream or a document separator is expected');\n } else {\n return;\n }\n}\nfunction loadDocuments(input, options) {\n input = String(input);\n options = options || {};\n if (input.length !== 0) {\n if (0x0A !== input.charCodeAt(input.length - 1) && 0x0D !== input.charCodeAt(input.length - 1)) {\n input += '\\n';\n }\n if (input.charCodeAt(0) === 0xFEFF) {\n input = input.slice(1);\n }\n }\n var state = new State(input, options);\n state.input += '\\0';\n while (0x20 === state.input.charCodeAt(state.position)) {\n state.lineIndent += 1;\n state.position += 1;\n }\n while (state.position < (state.length - 1)) {\n readDocument(state);\n }\n return state.documents;\n}\nfunction loadAll(input, iterator, options) {\n var documents = loadDocuments(input, options),\n index,\n length;\n for (index = 0, length = documents.length; index < length; index += 1) {\n iterator(documents[index]);\n }\n}\nfunction load(input, options) {\n var documents = loadDocuments(input, options);\n if (0 === documents.length) {\n return undefined;\n } else if (1 === documents.length) {\n return documents[0];\n }\n throw new YAMLException('expected a single document in the stream, but found more');\n}\nfunction safeLoadAll(input, output, options) {\n loadAll(input, output, common.extend({schema: DEFAULT_SAFE_SCHEMA}, options));\n}\nfunction safeLoad(input, options) {\n return load(input, common.extend({schema: DEFAULT_SAFE_SCHEMA}, options));\n}\nmodule.exports.loadAll = loadAll;\nmodule.exports.load = load;\nmodule.exports.safeLoadAll = safeLoadAll;\nmodule.exports.safeLoad = safeLoad;\n","/* */ \n'use strict';\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\nvar _toString = Object.prototype.toString;\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar CHAR_TAB = 0x09;\nvar CHAR_LINE_FEED = 0x0A;\nvar CHAR_CARRIAGE_RETURN = 0x0D;\nvar CHAR_SPACE = 0x20;\nvar CHAR_EXCLAMATION = 0x21;\nvar CHAR_DOUBLE_QUOTE = 0x22;\nvar CHAR_SHARP = 0x23;\nvar CHAR_PERCENT = 0x25;\nvar CHAR_AMPERSAND = 0x26;\nvar CHAR_SINGLE_QUOTE = 0x27;\nvar CHAR_ASTERISK = 0x2A;\nvar CHAR_COMMA = 0x2C;\nvar CHAR_MINUS = 0x2D;\nvar CHAR_COLON = 0x3A;\nvar CHAR_GREATER_THAN = 0x3E;\nvar CHAR_QUESTION = 0x3F;\nvar CHAR_COMMERCIAL_AT = 0x40;\nvar CHAR_LEFT_SQUARE_BRACKET = 0x5B;\nvar CHAR_RIGHT_SQUARE_BRACKET = 0x5D;\nvar CHAR_GRAVE_ACCENT = 0x60;\nvar CHAR_LEFT_CURLY_BRACKET = 0x7B;\nvar CHAR_VERTICAL_LINE = 0x7C;\nvar CHAR_RIGHT_CURLY_BRACKET = 0x7D;\nvar ESCAPE_SEQUENCES = {};\nESCAPE_SEQUENCES[0x00] = '\\\\0';\nESCAPE_SEQUENCES[0x07] = '\\\\a';\nESCAPE_SEQUENCES[0x08] = '\\\\b';\nESCAPE_SEQUENCES[0x09] = '\\\\t';\nESCAPE_SEQUENCES[0x0A] = '\\\\n';\nESCAPE_SEQUENCES[0x0B] = '\\\\v';\nESCAPE_SEQUENCES[0x0C] = '\\\\f';\nESCAPE_SEQUENCES[0x0D] = '\\\\r';\nESCAPE_SEQUENCES[0x1B] = '\\\\e';\nESCAPE_SEQUENCES[0x22] = '\\\\\"';\nESCAPE_SEQUENCES[0x5C] = '\\\\\\\\';\nESCAPE_SEQUENCES[0x85] = '\\\\N';\nESCAPE_SEQUENCES[0xA0] = '\\\\_';\nESCAPE_SEQUENCES[0x2028] = '\\\\L';\nESCAPE_SEQUENCES[0x2029] = '\\\\P';\nvar DEPRECATED_BOOLEANS_SYNTAX = ['y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'];\nfunction compileStyleMap(schema, map) {\n var result,\n keys,\n index,\n length,\n tag,\n style,\n type;\n if (null === map) {\n return {};\n }\n result = {};\n keys = Object.keys(map);\n for (index = 0, length = keys.length; index < length; index += 1) {\n tag = keys[index];\n style = String(map[tag]);\n if ('!!' === tag.slice(0, 2)) {\n tag = 'tag:yaml.org,2002:' + tag.slice(2);\n }\n type = schema.compiledTypeMap[tag];\n if (type && _hasOwnProperty.call(type.styleAliases, style)) {\n style = type.styleAliases[style];\n }\n result[tag] = style;\n }\n return result;\n}\nfunction encodeHex(character) {\n var string,\n handle,\n length;\n string = character.toString(16).toUpperCase();\n if (character <= 0xFF) {\n handle = 'x';\n length = 2;\n } else if (character <= 0xFFFF) {\n handle = 'u';\n length = 4;\n } else if (character <= 0xFFFFFFFF) {\n handle = 'U';\n length = 8;\n } else {\n throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');\n }\n return '\\\\' + handle + common.repeat('0', length - string.length) + string;\n}\nfunction State(options) {\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.indent = Math.max(1, (options['indent'] || 2));\n this.skipInvalid = options['skipInvalid'] || false;\n this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);\n this.styleMap = compileStyleMap(this.schema, options['styles'] || null);\n this.sortKeys = options['sortKeys'] || false;\n this.lineWidth = options['lineWidth'] || 80;\n this.noRefs = options['noRefs'] || false;\n this.implicitTypes = this.schema.compiledImplicit;\n this.explicitTypes = this.schema.compiledExplicit;\n this.tag = null;\n this.result = '';\n this.duplicates = [];\n this.usedDuplicates = null;\n}\nfunction indentString(string, spaces) {\n var ind = common.repeat(' ', spaces),\n position = 0,\n next = -1,\n result = '',\n line,\n length = string.length;\n while (position < length) {\n next = string.indexOf('\\n', position);\n if (next === -1) {\n line = string.slice(position);\n position = length;\n } else {\n line = string.slice(position, next + 1);\n position = next + 1;\n }\n if (line.length && line !== '\\n') {\n result += ind;\n }\n result += line;\n }\n return result;\n}\nfunction generateNextLine(state, level) {\n return '\\n' + common.repeat(' ', state.indent * level);\n}\nfunction testImplicitResolving(state, str) {\n var index,\n length,\n type;\n for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {\n type = state.implicitTypes[index];\n if (type.resolve(str)) {\n return true;\n }\n }\n return false;\n}\nfunction StringBuilder(source) {\n this.source = source;\n this.result = '';\n this.checkpoint = 0;\n}\nStringBuilder.prototype.takeUpTo = function(position) {\n var er;\n if (position < this.checkpoint) {\n er = new Error('position should be > checkpoint');\n er.position = position;\n er.checkpoint = this.checkpoint;\n throw er;\n }\n this.result += this.source.slice(this.checkpoint, position);\n this.checkpoint = position;\n return this;\n};\nStringBuilder.prototype.escapeChar = function() {\n var character,\n esc;\n character = this.source.charCodeAt(this.checkpoint);\n esc = ESCAPE_SEQUENCES[character] || encodeHex(character);\n this.result += esc;\n this.checkpoint += 1;\n return this;\n};\nStringBuilder.prototype.finish = function() {\n if (this.source.length > this.checkpoint) {\n this.takeUpTo(this.source.length);\n }\n};\nfunction writeScalar(state, object, level, iskey) {\n var simple,\n first,\n spaceWrap,\n folded,\n literal,\n single,\n double,\n sawLineFeed,\n linePosition,\n longestLine,\n indent,\n max,\n character,\n position,\n escapeSeq,\n hexEsc,\n previous,\n lineLength,\n modifier,\n trailingLineBreaks,\n result;\n if (0 === object.length) {\n state.dump = \"''\";\n return;\n }\n if (-1 !== DEPRECATED_BOOLEANS_SYNTAX.indexOf(object)) {\n state.dump = \"'\" + object + \"'\";\n return;\n }\n simple = true;\n first = object.length ? object.charCodeAt(0) : 0;\n spaceWrap = (CHAR_SPACE === first || CHAR_SPACE === object.charCodeAt(object.length - 1));\n if (CHAR_MINUS === first || CHAR_QUESTION === first || CHAR_COMMERCIAL_AT === first || CHAR_GRAVE_ACCENT === first) {\n simple = false;\n }\n if (spaceWrap || (state.flowLevel > -1 && state.flowLevel <= level)) {\n if (spaceWrap) {\n simple = false;\n }\n folded = false;\n literal = false;\n } else {\n folded = !iskey;\n literal = !iskey;\n }\n single = true;\n double = new StringBuilder(object);\n sawLineFeed = false;\n linePosition = 0;\n longestLine = 0;\n indent = state.indent * level;\n max = state.lineWidth;\n if (max === -1) {\n max = 9007199254740991;\n }\n if (indent < 40) {\n max -= indent;\n } else {\n max = 40;\n }\n for (position = 0; position < object.length; position++) {\n character = object.charCodeAt(position);\n if (simple) {\n if (!simpleChar(character)) {\n simple = false;\n } else {\n continue;\n }\n }\n if (single && character === CHAR_SINGLE_QUOTE) {\n single = false;\n }\n escapeSeq = ESCAPE_SEQUENCES[character];\n hexEsc = needsHexEscape(character);\n if (!escapeSeq && !hexEsc) {\n continue;\n }\n if (character !== CHAR_LINE_FEED && character !== CHAR_DOUBLE_QUOTE && character !== CHAR_SINGLE_QUOTE) {\n folded = false;\n literal = false;\n } else if (character === CHAR_LINE_FEED) {\n sawLineFeed = true;\n single = false;\n if (position > 0) {\n previous = object.charCodeAt(position - 1);\n if (previous === CHAR_SPACE) {\n literal = false;\n folded = false;\n }\n }\n if (folded) {\n lineLength = position - linePosition;\n linePosition = position;\n if (lineLength > longestLine) {\n longestLine = lineLength;\n }\n }\n }\n if (character !== CHAR_DOUBLE_QUOTE) {\n single = false;\n }\n double.takeUpTo(position);\n double.escapeChar();\n }\n if (simple && testImplicitResolving(state, object)) {\n simple = false;\n }\n modifier = '';\n if (folded || literal) {\n trailingLineBreaks = 0;\n if (object.charCodeAt(object.length - 1) === CHAR_LINE_FEED) {\n trailingLineBreaks += 1;\n if (object.charCodeAt(object.length - 2) === CHAR_LINE_FEED) {\n trailingLineBreaks += 1;\n }\n }\n if (trailingLineBreaks === 0) {\n modifier = '-';\n } else if (trailingLineBreaks === 2) {\n modifier = '+';\n }\n }\n if (literal && longestLine < max || state.tag !== null) {\n folded = false;\n }\n if (!sawLineFeed) {\n literal = false;\n }\n if (simple) {\n state.dump = object;\n } else if (single) {\n state.dump = '\\'' + object + '\\'';\n } else if (folded) {\n result = fold(object, max);\n state.dump = '>' + modifier + '\\n' + indentString(result, indent);\n } else if (literal) {\n if (!modifier) {\n object = object.replace(/\\n$/, '');\n }\n state.dump = '|' + modifier + '\\n' + indentString(object, indent);\n } else if (double) {\n double.finish();\n state.dump = '\"' + double.result + '\"';\n } else {\n throw new Error('Failed to dump scalar value');\n }\n return;\n}\nfunction fold(object, max) {\n var result = '',\n position = 0,\n length = object.length,\n trailing = /\\n+$/.exec(object),\n newLine;\n if (trailing) {\n length = trailing.index + 1;\n }\n while (position < length) {\n newLine = object.indexOf('\\n', position);\n if (newLine > length || newLine === -1) {\n if (result) {\n result += '\\n\\n';\n }\n result += foldLine(object.slice(position, length), max);\n position = length;\n } else {\n if (result) {\n result += '\\n\\n';\n }\n result += foldLine(object.slice(position, newLine), max);\n position = newLine + 1;\n }\n }\n if (trailing && trailing[0] !== '\\n') {\n result += trailing[0];\n }\n return result;\n}\nfunction foldLine(line, max) {\n if (line === '') {\n return line;\n }\n var foldRe = /[^\\s] [^\\s]/g,\n result = '',\n prevMatch = 0,\n foldStart = 0,\n match = foldRe.exec(line),\n index,\n foldEnd,\n folded;\n while (match) {\n index = match.index;\n if (index - foldStart > max) {\n if (prevMatch !== foldStart) {\n foldEnd = prevMatch;\n } else {\n foldEnd = index;\n }\n if (result) {\n result += '\\n';\n }\n folded = line.slice(foldStart, foldEnd);\n result += folded;\n foldStart = foldEnd + 1;\n }\n prevMatch = index + 1;\n match = foldRe.exec(line);\n }\n if (result) {\n result += '\\n';\n }\n if (foldStart !== prevMatch && line.length - foldStart > max) {\n result += line.slice(foldStart, prevMatch) + '\\n' + line.slice(prevMatch + 1);\n } else {\n result += line.slice(foldStart);\n }\n return result;\n}\nfunction simpleChar(character) {\n return CHAR_TAB !== character && CHAR_LINE_FEED !== character && CHAR_CARRIAGE_RETURN !== character && CHAR_COMMA !== character && CHAR_LEFT_SQUARE_BRACKET !== character && CHAR_RIGHT_SQUARE_BRACKET !== character && CHAR_LEFT_CURLY_BRACKET !== character && CHAR_RIGHT_CURLY_BRACKET !== character && CHAR_SHARP !== character && CHAR_AMPERSAND !== character && CHAR_ASTERISK !== character && CHAR_EXCLAMATION !== character && CHAR_VERTICAL_LINE !== character && CHAR_GREATER_THAN !== character && CHAR_SINGLE_QUOTE !== character && CHAR_DOUBLE_QUOTE !== character && CHAR_PERCENT !== character && CHAR_COLON !== character && !ESCAPE_SEQUENCES[character] && !needsHexEscape(character);\n}\nfunction needsHexEscape(character) {\n return !((0x00020 <= character && character <= 0x00007E) || (0x00085 === character) || (0x000A0 <= character && character <= 0x00D7FF) || (0x0E000 <= character && character <= 0x00FFFD) || (0x10000 <= character && character <= 0x10FFFF));\n}\nfunction writeFlowSequence(state, level, object) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n for (index = 0, length = object.length; index < length; index += 1) {\n if (writeNode(state, level, object[index], false, false)) {\n if (0 !== index) {\n _result += ', ';\n }\n _result += state.dump;\n }\n }\n state.tag = _tag;\n state.dump = '[' + _result + ']';\n}\nfunction writeBlockSequence(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n for (index = 0, length = object.length; index < length; index += 1) {\n if (writeNode(state, level + 1, object[index], true, true)) {\n if (!compact || 0 !== index) {\n _result += generateNextLine(state, level);\n }\n _result += '- ' + state.dump;\n }\n }\n state.tag = _tag;\n state.dump = _result || '[]';\n}\nfunction writeFlowMapping(state, level, object) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n pairBuffer;\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n if (0 !== index) {\n pairBuffer += ', ';\n }\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n if (!writeNode(state, level, objectKey, false, false)) {\n continue;\n }\n if (state.dump.length > 1024) {\n pairBuffer += '? ';\n }\n pairBuffer += state.dump + ': ';\n if (!writeNode(state, level, objectValue, false, false)) {\n continue;\n }\n pairBuffer += state.dump;\n _result += pairBuffer;\n }\n state.tag = _tag;\n state.dump = '{' + _result + '}';\n}\nfunction writeBlockMapping(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n explicitPair,\n pairBuffer;\n if (state.sortKeys === true) {\n objectKeyList.sort();\n } else if (typeof state.sortKeys === 'function') {\n objectKeyList.sort(state.sortKeys);\n } else if (state.sortKeys) {\n throw new YAMLException('sortKeys must be a boolean or a function');\n }\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n if (!compact || 0 !== index) {\n pairBuffer += generateNextLine(state, level);\n }\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n if (!writeNode(state, level + 1, objectKey, true, true, true)) {\n continue;\n }\n explicitPair = (null !== state.tag && '?' !== state.tag) || (state.dump && state.dump.length > 1024);\n if (explicitPair) {\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += '?';\n } else {\n pairBuffer += '? ';\n }\n }\n pairBuffer += state.dump;\n if (explicitPair) {\n pairBuffer += generateNextLine(state, level);\n }\n if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {\n continue;\n }\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += ':';\n } else {\n pairBuffer += ': ';\n }\n pairBuffer += state.dump;\n _result += pairBuffer;\n }\n state.tag = _tag;\n state.dump = _result || '{}';\n}\nfunction detectType(state, object, explicit) {\n var _result,\n typeList,\n index,\n length,\n type,\n style;\n typeList = explicit ? state.explicitTypes : state.implicitTypes;\n for (index = 0, length = typeList.length; index < length; index += 1) {\n type = typeList[index];\n if ((type.instanceOf || type.predicate) && (!type.instanceOf || (('object' === typeof object) && (object instanceof type.instanceOf))) && (!type.predicate || type.predicate(object))) {\n state.tag = explicit ? type.tag : '?';\n if (type.represent) {\n style = state.styleMap[type.tag] || type.defaultStyle;\n if ('[object Function]' === _toString.call(type.represent)) {\n _result = type.represent(object, style);\n } else if (_hasOwnProperty.call(type.represent, style)) {\n _result = type.represent[style](object, style);\n } else {\n throw new YAMLException('!<' + type.tag + '> tag resolver accepts not \"' + style + '\" style');\n }\n state.dump = _result;\n }\n return true;\n }\n }\n return false;\n}\nfunction writeNode(state, level, object, block, compact, iskey) {\n state.tag = null;\n state.dump = object;\n if (!detectType(state, object, false)) {\n detectType(state, object, true);\n }\n var type = _toString.call(state.dump);\n if (block) {\n block = (0 > state.flowLevel || state.flowLevel > level);\n }\n var objectOrArray = '[object Object]' === type || '[object Array]' === type,\n duplicateIndex,\n duplicate;\n if (objectOrArray) {\n duplicateIndex = state.duplicates.indexOf(object);\n duplicate = duplicateIndex !== -1;\n }\n if ((null !== state.tag && '?' !== state.tag) || duplicate || (2 !== state.indent && level > 0)) {\n compact = false;\n }\n if (duplicate && state.usedDuplicates[duplicateIndex]) {\n state.dump = '*ref_' + duplicateIndex;\n } else {\n if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {\n state.usedDuplicates[duplicateIndex] = true;\n }\n if ('[object Object]' === type) {\n if (block && (0 !== Object.keys(state.dump).length)) {\n writeBlockMapping(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowMapping(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if ('[object Array]' === type) {\n if (block && (0 !== state.dump.length)) {\n writeBlockSequence(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowSequence(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if ('[object String]' === type) {\n if ('?' !== state.tag) {\n writeScalar(state, state.dump, level, iskey);\n }\n } else {\n if (state.skipInvalid) {\n return false;\n }\n throw new YAMLException('unacceptable kind of an object to dump ' + type);\n }\n if (null !== state.tag && '?' !== state.tag) {\n state.dump = '!<' + state.tag + '> ' + state.dump;\n }\n }\n return true;\n}\nfunction getDuplicateReferences(object, state) {\n var objects = [],\n duplicatesIndexes = [],\n index,\n length;\n inspectNode(object, objects, duplicatesIndexes);\n for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {\n state.duplicates.push(objects[duplicatesIndexes[index]]);\n }\n state.usedDuplicates = new Array(length);\n}\nfunction inspectNode(object, objects, duplicatesIndexes) {\n var objectKeyList,\n index,\n length;\n if (null !== object && 'object' === typeof object) {\n index = objects.indexOf(object);\n if (-1 !== index) {\n if (-1 === duplicatesIndexes.indexOf(index)) {\n duplicatesIndexes.push(index);\n }\n } else {\n objects.push(object);\n if (Array.isArray(object)) {\n for (index = 0, length = object.length; index < length; index += 1) {\n inspectNode(object[index], objects, duplicatesIndexes);\n }\n } else {\n objectKeyList = Object.keys(object);\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);\n }\n }\n }\n }\n}\nfunction dump(input, options) {\n options = options || {};\n var state = new State(options);\n if (!state.noRefs) {\n getDuplicateReferences(input, state);\n }\n if (writeNode(state, 0, input, true, true)) {\n return state.dump + '\\n';\n }\n return '';\n}\nfunction safeDump(input, options) {\n return dump(input, common.extend({schema: DEFAULT_SAFE_SCHEMA}, options));\n}\nmodule.exports.dump = dump;\nmodule.exports.safeDump = safeDump;\n","/* */ \n'use strict';\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Type = require('./type');\nfunction compileList(schema, name, result) {\n var exclude = [];\n schema.include.forEach(function(includedSchema) {\n result = compileList(includedSchema, name, result);\n });\n schema[name].forEach(function(currentType) {\n result.forEach(function(previousType, previousIndex) {\n if (previousType.tag === currentType.tag) {\n exclude.push(previousIndex);\n }\n });\n result.push(currentType);\n });\n return result.filter(function(type, index) {\n return -1 === exclude.indexOf(index);\n });\n}\nfunction compileMap() {\n var result = {},\n index,\n length;\n function collectType(type) {\n result[type.tag] = type;\n }\n for (index = 0, length = arguments.length; index < length; index += 1) {\n arguments[index].forEach(collectType);\n }\n return result;\n}\nfunction Schema(definition) {\n this.include = definition.include || [];\n this.implicit = definition.implicit || [];\n this.explicit = definition.explicit || [];\n this.implicit.forEach(function(type) {\n if (type.loadKind && 'scalar' !== type.loadKind) {\n throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');\n }\n });\n this.compiledImplicit = compileList(this, 'implicit', []);\n this.compiledExplicit = compileList(this, 'explicit', []);\n this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);\n}\nSchema.DEFAULT = null;\nSchema.create = function createSchema() {\n var schemas,\n types;\n switch (arguments.length) {\n case 1:\n schemas = Schema.DEFAULT;\n types = arguments[0];\n break;\n case 2:\n schemas = arguments[0];\n types = arguments[1];\n break;\n default:\n throw new YAMLException('Wrong number of arguments for Schema.create function');\n }\n schemas = common.toArray(schemas);\n types = common.toArray(types);\n if (!schemas.every(function(schema) {\n return schema instanceof Schema;\n })) {\n throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');\n }\n if (!types.every(function(type) {\n return type instanceof Type;\n })) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n return new Schema({\n include: schemas,\n explicit: types\n });\n};\nmodule.exports = Schema;\n","/* */ \n'use strict';\nvar Type = require('../type');\nmodule.exports = new Type('tag:yaml.org,2002:str', {\n kind: 'scalar',\n construct: function(data) {\n return null !== data ? data : '';\n }\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nmodule.exports = new Type('tag:yaml.org,2002:seq', {\n kind: 'sequence',\n construct: function(data) {\n return null !== data ? data : [];\n }\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nmodule.exports = new Type('tag:yaml.org,2002:map', {\n kind: 'mapping',\n construct: function(data) {\n return null !== data ? data : {};\n }\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({explicit: [require('../type/str'), require('../type/seq'), require('../type/map')]});\n","/* */ \n'use strict';\nvar Type = require('../type');\nfunction resolveYamlNull(data) {\n if (null === data) {\n return true;\n }\n var max = data.length;\n return (max === 1 && data === '~') || (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));\n}\nfunction constructYamlNull() {\n return null;\n}\nfunction isNull(object) {\n return null === object;\n}\nmodule.exports = new Type('tag:yaml.org,2002:null', {\n kind: 'scalar',\n resolve: resolveYamlNull,\n construct: constructYamlNull,\n predicate: isNull,\n represent: {\n canonical: function() {\n return '~';\n },\n lowercase: function() {\n return 'null';\n },\n uppercase: function() {\n return 'NULL';\n },\n camelcase: function() {\n return 'Null';\n }\n },\n defaultStyle: 'lowercase'\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nfunction resolveYamlBoolean(data) {\n if (null === data) {\n return false;\n }\n var max = data.length;\n return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));\n}\nfunction constructYamlBoolean(data) {\n return data === 'true' || data === 'True' || data === 'TRUE';\n}\nfunction isBoolean(object) {\n return '[object Boolean]' === Object.prototype.toString.call(object);\n}\nmodule.exports = new Type('tag:yaml.org,2002:bool', {\n kind: 'scalar',\n resolve: resolveYamlBoolean,\n construct: constructYamlBoolean,\n predicate: isBoolean,\n represent: {\n lowercase: function(object) {\n return object ? 'true' : 'false';\n },\n uppercase: function(object) {\n return object ? 'TRUE' : 'FALSE';\n },\n camelcase: function(object) {\n return object ? 'True' : 'False';\n }\n },\n defaultStyle: 'lowercase'\n});\n","/* */ \n'use strict';\nvar common = require('../common');\nvar Type = require('../type');\nfunction isHexCode(c) {\n return ((0x30 <= c) && (c <= 0x39)) || ((0x41 <= c) && (c <= 0x46)) || ((0x61 <= c) && (c <= 0x66));\n}\nfunction isOctCode(c) {\n return ((0x30 <= c) && (c <= 0x37));\n}\nfunction isDecCode(c) {\n return ((0x30 <= c) && (c <= 0x39));\n}\nfunction resolveYamlInteger(data) {\n if (null === data) {\n return false;\n }\n var max = data.length,\n index = 0,\n hasDigits = false,\n ch;\n if (!max) {\n return false;\n }\n ch = data[index];\n if (ch === '-' || ch === '+') {\n ch = data[++index];\n }\n if (ch === '0') {\n if (index + 1 === max) {\n return true;\n }\n ch = data[++index];\n if (ch === 'b') {\n index++;\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') {\n continue;\n }\n if (ch !== '0' && ch !== '1') {\n return false;\n }\n hasDigits = true;\n }\n return hasDigits;\n }\n if (ch === 'x') {\n index++;\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') {\n continue;\n }\n if (!isHexCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n return hasDigits;\n }\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') {\n continue;\n }\n if (!isOctCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n return hasDigits;\n }\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') {\n continue;\n }\n if (ch === ':') {\n break;\n }\n if (!isDecCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n if (!hasDigits) {\n return false;\n }\n if (ch !== ':') {\n return true;\n }\n return /^(:[0-5]?[0-9])+$/.test(data.slice(index));\n}\nfunction constructYamlInteger(data) {\n var value = data,\n sign = 1,\n ch,\n base,\n digits = [];\n if (value.indexOf('_') !== -1) {\n value = value.replace(/_/g, '');\n }\n ch = value[0];\n if (ch === '-' || ch === '+') {\n if (ch === '-') {\n sign = -1;\n }\n value = value.slice(1);\n ch = value[0];\n }\n if ('0' === value) {\n return 0;\n }\n if (ch === '0') {\n if (value[1] === 'b') {\n return sign * parseInt(value.slice(2), 2);\n }\n if (value[1] === 'x') {\n return sign * parseInt(value, 16);\n }\n return sign * parseInt(value, 8);\n }\n if (value.indexOf(':') !== -1) {\n value.split(':').forEach(function(v) {\n digits.unshift(parseInt(v, 10));\n });\n value = 0;\n base = 1;\n digits.forEach(function(d) {\n value += (d * base);\n base *= 60;\n });\n return sign * value;\n }\n return sign * parseInt(value, 10);\n}\nfunction isInteger(object) {\n return ('[object Number]' === Object.prototype.toString.call(object)) && (0 === object % 1 && !common.isNegativeZero(object));\n}\nmodule.exports = new Type('tag:yaml.org,2002:int', {\n kind: 'scalar',\n resolve: resolveYamlInteger,\n construct: constructYamlInteger,\n predicate: isInteger,\n represent: {\n binary: function(object) {\n return '0b' + object.toString(2);\n },\n octal: function(object) {\n return '0' + object.toString(8);\n },\n decimal: function(object) {\n return object.toString(10);\n },\n hexadecimal: function(object) {\n return '0x' + object.toString(16).toUpperCase();\n }\n },\n defaultStyle: 'decimal',\n styleAliases: {\n binary: [2, 'bin'],\n octal: [8, 'oct'],\n decimal: [10, 'dec'],\n hexadecimal: [16, 'hex']\n }\n});\n","/* */ \n'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (null === subject);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (null !== subject);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) {\n return sequence;\n } else if (isNothing(sequence)) {\n return [];\n }\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (0 === number) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n","/* */ \n'use strict';\nvar common = require('../common');\nvar Type = require('../type');\nvar YAML_FLOAT_PATTERN = new RegExp('^(?:[-+]?(?:[0-9][0-9_]*)\\\\.[0-9_]*(?:[eE][-+][0-9]+)?' + '|\\\\.[0-9_]+(?:[eE][-+][0-9]+)?' + '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*' + '|[-+]?\\\\.(?:inf|Inf|INF)' + '|\\\\.(?:nan|NaN|NAN))$');\nfunction resolveYamlFloat(data) {\n if (null === data) {\n return false;\n }\n if (!YAML_FLOAT_PATTERN.test(data)) {\n return false;\n }\n return true;\n}\nfunction constructYamlFloat(data) {\n var value,\n sign,\n base,\n digits;\n value = data.replace(/_/g, '').toLowerCase();\n sign = '-' === value[0] ? -1 : 1;\n digits = [];\n if (0 <= '+-'.indexOf(value[0])) {\n value = value.slice(1);\n }\n if ('.inf' === value) {\n return (1 === sign) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;\n } else if ('.nan' === value) {\n return NaN;\n } else if (0 <= value.indexOf(':')) {\n value.split(':').forEach(function(v) {\n digits.unshift(parseFloat(v, 10));\n });\n value = 0.0;\n base = 1;\n digits.forEach(function(d) {\n value += d * base;\n base *= 60;\n });\n return sign * value;\n }\n return sign * parseFloat(value, 10);\n}\nvar SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;\nfunction representYamlFloat(object, style) {\n var res;\n if (isNaN(object)) {\n switch (style) {\n case 'lowercase':\n return '.nan';\n case 'uppercase':\n return '.NAN';\n case 'camelcase':\n return '.NaN';\n }\n } else if (Number.POSITIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase':\n return '.inf';\n case 'uppercase':\n return '.INF';\n case 'camelcase':\n return '.Inf';\n }\n } else if (Number.NEGATIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase':\n return '-.inf';\n case 'uppercase':\n return '-.INF';\n case 'camelcase':\n return '-.Inf';\n }\n } else if (common.isNegativeZero(object)) {\n return '-0.0';\n }\n res = object.toString(10);\n return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;\n}\nfunction isFloat(object) {\n return ('[object Number]' === Object.prototype.toString.call(object)) && (0 !== object % 1 || common.isNegativeZero(object));\n}\nmodule.exports = new Type('tag:yaml.org,2002:float', {\n kind: 'scalar',\n resolve: resolveYamlFloat,\n construct: constructYamlFloat,\n predicate: isFloat,\n represent: representYamlFloat,\n defaultStyle: 'lowercase'\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({\n include: [require('./failsafe')],\n implicit: [require('../type/null'), require('../type/bool'), require('../type/int'), require('../type/float')]\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({include: [require('./json')]});\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar YAML_TIMESTAMP_REGEXP = new RegExp('^([0-9][0-9][0-9][0-9])' + '-([0-9][0-9]?)' + '-([0-9][0-9]?)' + '(?:(?:[Tt]|[ \\\\t]+)' + '([0-9][0-9]?)' + ':([0-9][0-9])' + ':([0-9][0-9])' + '(?:\\\\.([0-9]*))?' + '(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)' + '(?::([0-9][0-9]))?))?)?$');\nfunction resolveYamlTimestamp(data) {\n if (null === data) {\n return false;\n }\n if (YAML_TIMESTAMP_REGEXP.exec(data) === null) {\n return false;\n }\n return true;\n}\nfunction constructYamlTimestamp(data) {\n var match,\n year,\n month,\n day,\n hour,\n minute,\n second,\n fraction = 0,\n delta = null,\n tz_hour,\n tz_minute,\n date;\n match = YAML_TIMESTAMP_REGEXP.exec(data);\n if (null === match) {\n throw new Error('Date resolve error');\n }\n year = +(match[1]);\n month = +(match[2]) - 1;\n day = +(match[3]);\n if (!match[4]) {\n return new Date(Date.UTC(year, month, day));\n }\n hour = +(match[4]);\n minute = +(match[5]);\n second = +(match[6]);\n if (match[7]) {\n fraction = match[7].slice(0, 3);\n while (fraction.length < 3) {\n fraction += '0';\n }\n fraction = +fraction;\n }\n if (match[9]) {\n tz_hour = +(match[10]);\n tz_minute = +(match[11] || 0);\n delta = (tz_hour * 60 + tz_minute) * 60000;\n if ('-' === match[9]) {\n delta = -delta;\n }\n }\n date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));\n if (delta) {\n date.setTime(date.getTime() - delta);\n }\n return date;\n}\nfunction representYamlTimestamp(object) {\n return object.toISOString();\n}\nmodule.exports = new Type('tag:yaml.org,2002:timestamp', {\n kind: 'scalar',\n resolve: resolveYamlTimestamp,\n construct: constructYamlTimestamp,\n instanceOf: Date,\n represent: representYamlTimestamp\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nfunction resolveYamlMerge(data) {\n return '<<' === data || null === data;\n}\nmodule.exports = new Type('tag:yaml.org,2002:merge', {\n kind: 'scalar',\n resolve: resolveYamlMerge\n});\n","/* */ \n(function(Buffer) {\n 'use strict';\n var NodeBuffer = require('@empty').Buffer;\n var Type = require('../type');\n var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\n\\r';\n function resolveYamlBinary(data) {\n if (null === data) {\n return false;\n }\n var code,\n idx,\n bitlen = 0,\n max = data.length,\n map = BASE64_MAP;\n for (idx = 0; idx < max; idx++) {\n code = map.indexOf(data.charAt(idx));\n if (code > 64) {\n continue;\n }\n if (code < 0) {\n return false;\n }\n bitlen += 6;\n }\n return (bitlen % 8) === 0;\n }\n function constructYamlBinary(data) {\n var idx,\n tailbits,\n input = data.replace(/[\\r\\n=]/g, ''),\n max = input.length,\n map = BASE64_MAP,\n bits = 0,\n result = [];\n for (idx = 0; idx < max; idx++) {\n if ((idx % 4 === 0) && idx) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n }\n bits = (bits << 6) | map.indexOf(input.charAt(idx));\n }\n tailbits = (max % 4) * 6;\n if (tailbits === 0) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n } else if (tailbits === 18) {\n result.push((bits >> 10) & 0xFF);\n result.push((bits >> 2) & 0xFF);\n } else if (tailbits === 12) {\n result.push((bits >> 4) & 0xFF);\n }\n if (NodeBuffer) {\n return new NodeBuffer(result);\n }\n return result;\n }\n function representYamlBinary(object) {\n var result = '',\n bits = 0,\n idx,\n tail,\n max = object.length,\n map = BASE64_MAP;\n for (idx = 0; idx < max; idx++) {\n if ((idx % 3 === 0) && idx) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n }\n bits = (bits << 8) + object[idx];\n }\n tail = max % 3;\n if (tail === 0) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n } else if (tail === 2) {\n result += map[(bits >> 10) & 0x3F];\n result += map[(bits >> 4) & 0x3F];\n result += map[(bits << 2) & 0x3F];\n result += map[64];\n } else if (tail === 1) {\n result += map[(bits >> 2) & 0x3F];\n result += map[(bits << 4) & 0x3F];\n result += map[64];\n result += map[64];\n }\n return result;\n }\n function isBinary(object) {\n return NodeBuffer && NodeBuffer.isBuffer(object);\n }\n module.exports = new Type('tag:yaml.org,2002:binary', {\n kind: 'scalar',\n resolve: resolveYamlBinary,\n construct: constructYamlBinary,\n predicate: isBinary,\n represent: representYamlBinary\n });\n})(require('@empty').Buffer);\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar _toString = Object.prototype.toString;\nfunction resolveYamlOmap(data) {\n if (null === data) {\n return true;\n }\n var objectKeys = [],\n index,\n length,\n pair,\n pairKey,\n pairHasKey,\n object = data;\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n pairHasKey = false;\n if ('[object Object]' !== _toString.call(pair)) {\n return false;\n }\n for (pairKey in pair) {\n if (_hasOwnProperty.call(pair, pairKey)) {\n if (!pairHasKey) {\n pairHasKey = true;\n } else {\n return false;\n }\n }\n }\n if (!pairHasKey) {\n return false;\n }\n if (-1 === objectKeys.indexOf(pairKey)) {\n objectKeys.push(pairKey);\n } else {\n return false;\n }\n }\n return true;\n}\nfunction constructYamlOmap(data) {\n return null !== data ? data : [];\n}\nmodule.exports = new Type('tag:yaml.org,2002:omap', {\n kind: 'sequence',\n resolve: resolveYamlOmap,\n construct: constructYamlOmap\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar _toString = Object.prototype.toString;\nfunction resolveYamlPairs(data) {\n if (null === data) {\n return true;\n }\n var index,\n length,\n pair,\n keys,\n result,\n object = data;\n result = new Array(object.length);\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n if ('[object Object]' !== _toString.call(pair)) {\n return false;\n }\n keys = Object.keys(pair);\n if (1 !== keys.length) {\n return false;\n }\n result[index] = [keys[0], pair[keys[0]]];\n }\n return true;\n}\nfunction constructYamlPairs(data) {\n if (null === data) {\n return [];\n }\n var index,\n length,\n pair,\n keys,\n result,\n object = data;\n result = new Array(object.length);\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n keys = Object.keys(pair);\n result[index] = [keys[0], pair[keys[0]]];\n }\n return result;\n}\nmodule.exports = new Type('tag:yaml.org,2002:pairs', {\n kind: 'sequence',\n resolve: resolveYamlPairs,\n construct: constructYamlPairs\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction resolveYamlSet(data) {\n if (null === data) {\n return true;\n }\n var key,\n object = data;\n for (key in object) {\n if (_hasOwnProperty.call(object, key)) {\n if (null !== object[key]) {\n return false;\n }\n }\n }\n return true;\n}\nfunction constructYamlSet(data) {\n return null !== data ? data : {};\n}\nmodule.exports = new Type('tag:yaml.org,2002:set', {\n kind: 'mapping',\n resolve: resolveYamlSet,\n construct: constructYamlSet\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({\n include: [require('./core')],\n implicit: [require('../type/timestamp'), require('../type/merge')],\n explicit: [require('../type/binary'), require('../type/omap'), require('../type/pairs'), require('../type/set')]\n});\n","/* */ \n'use strict';\nvar Type = require('../../type');\nfunction resolveJavascriptUndefined() {\n return true;\n}\nfunction constructJavascriptUndefined() {\n return undefined;\n}\nfunction representJavascriptUndefined() {\n return '';\n}\nfunction isUndefined(object) {\n return 'undefined' === typeof object;\n}\nmodule.exports = new Type('tag:yaml.org,2002:js/undefined', {\n kind: 'scalar',\n resolve: resolveJavascriptUndefined,\n construct: constructJavascriptUndefined,\n predicate: isUndefined,\n represent: representJavascriptUndefined\n});\n","/* */ \n'use strict';\nvar Type = require('../../type');\nfunction resolveJavascriptRegExp(data) {\n if (null === data) {\n return false;\n }\n if (0 === data.length) {\n return false;\n }\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n if ('/' === regexp[0]) {\n if (tail) {\n modifiers = tail[1];\n }\n if (modifiers.length > 3) {\n return false;\n }\n if (regexp[regexp.length - modifiers.length - 1] !== '/') {\n return false;\n }\n regexp = regexp.slice(1, regexp.length - modifiers.length - 1);\n }\n try {\n return true;\n } catch (error) {\n return false;\n }\n}\nfunction constructJavascriptRegExp(data) {\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n if ('/' === regexp[0]) {\n if (tail) {\n modifiers = tail[1];\n }\n regexp = regexp.slice(1, regexp.length - modifiers.length - 1);\n }\n return new RegExp(regexp, modifiers);\n}\nfunction representJavascriptRegExp(object) {\n var result = '/' + object.source + '/';\n if (object.global) {\n result += 'g';\n }\n if (object.multiline) {\n result += 'm';\n }\n if (object.ignoreCase) {\n result += 'i';\n }\n return result;\n}\nfunction isRegExp(object) {\n return '[object RegExp]' === Object.prototype.toString.call(object);\n}\nmodule.exports = new Type('tag:yaml.org,2002:js/regexp', {\n kind: 'scalar',\n resolve: resolveJavascriptRegExp,\n construct: constructJavascriptRegExp,\n predicate: isRegExp,\n represent: representJavascriptRegExp\n});\n","/* */ \n'use strict';\nvar YAMLException = require('./exception');\nvar TYPE_CONSTRUCTOR_OPTIONS = ['kind', 'resolve', 'construct', 'instanceOf', 'predicate', 'represent', 'defaultStyle', 'styleAliases'];\nvar YAML_NODE_KINDS = ['scalar', 'sequence', 'mapping'];\nfunction compileStyleAliases(map) {\n var result = {};\n if (null !== map) {\n Object.keys(map).forEach(function(style) {\n map[style].forEach(function(alias) {\n result[String(alias)] = style;\n });\n });\n }\n return result;\n}\nfunction Type(tag, options) {\n options = options || {};\n Object.keys(options).forEach(function(name) {\n if (-1 === TYPE_CONSTRUCTOR_OPTIONS.indexOf(name)) {\n throw new YAMLException('Unknown option \"' + name + '\" is met in definition of \"' + tag + '\" YAML type.');\n }\n });\n this.tag = tag;\n this.kind = options['kind'] || null;\n this.resolve = options['resolve'] || function() {\n return true;\n };\n this.construct = options['construct'] || function(data) {\n return data;\n };\n this.instanceOf = options['instanceOf'] || null;\n this.predicate = options['predicate'] || null;\n this.represent = options['represent'] || null;\n this.defaultStyle = options['defaultStyle'] || null;\n this.styleAliases = compileStyleAliases(options['styleAliases'] || null);\n if (-1 === YAML_NODE_KINDS.indexOf(this.kind)) {\n throw new YAMLException('Unknown kind \"' + this.kind + '\" is specified for \"' + tag + '\" YAML type.');\n }\n}\nmodule.exports = Type;\n","/* */ \n'use strict';\nvar esprima;\ntry {\n var _require = require;\n esprima = _require('esprima');\n} catch (_) {\n if (typeof window !== 'undefined') {\n esprima = window.esprima;\n }\n}\nvar Type = require('../../type');\nfunction resolveJavascriptFunction(data) {\n if (null === data) {\n return false;\n }\n try {\n var source = '(' + data + ')',\n ast = esprima.parse(source, {range: true});\n if ('Program' !== ast.type || 1 !== ast.body.length || 'ExpressionStatement' !== ast.body[0].type || 'FunctionExpression' !== ast.body[0].expression.type) {\n return false;\n }\n return true;\n } catch (err) {\n return false;\n }\n}\nfunction constructJavascriptFunction(data) {\n var source = '(' + data + ')',\n ast = esprima.parse(source, {range: true}),\n params = [],\n body;\n if ('Program' !== ast.type || 1 !== ast.body.length || 'ExpressionStatement' !== ast.body[0].type || 'FunctionExpression' !== ast.body[0].expression.type) {\n throw new Error('Failed to resolve function');\n }\n ast.body[0].expression.params.forEach(function(param) {\n params.push(param.name);\n });\n body = ast.body[0].expression.body.range;\n return new Function(params, source.slice(body[0] + 1, body[1] - 1));\n}\nfunction representJavascriptFunction(object) {\n return object.toString();\n}\nfunction isFunction(object) {\n return '[object Function]' === Object.prototype.toString.call(object);\n}\nmodule.exports = new Type('tag:yaml.org,2002:js/function', {\n kind: 'scalar',\n resolve: resolveJavascriptFunction,\n construct: constructJavascriptFunction,\n predicate: isFunction,\n represent: representJavascriptFunction\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = Schema.DEFAULT = new Schema({\n include: [require('./default_safe')],\n explicit: [require('../type/js/undefined'), require('../type/js/regexp'), require('../type/js/function')]\n});\n","// YAML error class. http://stackoverflow.com/questions/8458984\n//\n'use strict';\n\nfunction YAMLException(reason, mark) {\n // Super constructor\n Error.call(this);\n\n // Include stack trace in error object\n if (Error.captureStackTrace) {\n // Chrome and NodeJS\n Error.captureStackTrace(this, this.constructor);\n } else {\n // FF, IE 10+ and Safari 6+. Fallback for others\n this.stack = (new Error()).stack || '';\n }\n\n this.name = 'YAMLException';\n this.reason = reason;\n this.mark = mark;\n this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');\n}\n\n\n// Inherit from Error\nYAMLException.prototype = Object.create(Error.prototype);\nYAMLException.prototype.constructor = YAMLException;\n\n\nYAMLException.prototype.toString = function toString(compact) {\n var result = this.name + ': ';\n\n result += this.reason || '(unknown reason)';\n\n if (!compact && this.mark) {\n result += ' ' + this.mark.toString();\n }\n\n return result;\n};\n\n\nmodule.exports = YAMLException;\n","/* */ \n'use strict';\nvar loader = require('./js-yaml/loader');\nvar dumper = require('./js-yaml/dumper');\nfunction deprecated(name) {\n return function() {\n throw new Error('Function ' + name + ' is deprecated and cannot be used.');\n };\n}\nmodule.exports.Type = require('./js-yaml/type');\nmodule.exports.Schema = require('./js-yaml/schema');\nmodule.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.JSON_SCHEMA = require('./js-yaml/schema/json');\nmodule.exports.CORE_SCHEMA = require('./js-yaml/schema/core');\nmodule.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');\nmodule.exports.load = loader.load;\nmodule.exports.loadAll = loader.loadAll;\nmodule.exports.safeLoad = loader.safeLoad;\nmodule.exports.safeLoadAll = loader.safeLoadAll;\nmodule.exports.dump = dumper.dump;\nmodule.exports.safeDump = dumper.safeDump;\nmodule.exports.YAMLException = require('./js-yaml/exception');\nmodule.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');\nmodule.exports.scan = deprecated('scan');\nmodule.exports.parse = deprecated('parse');\nmodule.exports.compose = deprecated('compose');\nmodule.exports.addConstructor = deprecated('addConstructor');\n","/* */ \n'use strict';\nvar yaml = require('./lib/js-yaml');\nmodule.exports = yaml;\n","module.exports = require(\"npm:js-yaml@3.5.2/index\");","/* eslint lines-around-comment: [2, {beforeBlockComment: false}] */\n'use strict';\n\nvar yaml = require('js-yaml'),\n ono = require('ono');\n\n/**\n * Simple YAML parsing functions, similar to {@link JSON.parse} and {@link JSON.stringify}\n */\nmodule.exports = {\n /**\n * Parses a YAML string and returns the value.\n *\n * @param {string} text - The YAML string to be parsed\n * @param {function} [reviver] - Not currently supported. Provided for consistency with {@link JSON.parse}\n * @returns {*}\n */\n parse: function yamlParse(text, reviver) {\n try {\n return yaml.safeLoad(text);\n }\n catch (e) {\n if (e instanceof Error) {\n throw e;\n }\n else {\n // https://github.com/nodeca/js-yaml/issues/153\n throw ono(e, e.message);\n }\n }\n },\n\n /**\n * Converts a JavaScript value to a YAML string.\n *\n * @param {*} value - The value to convert to YAML\n * @param {function|array} replacer - Not currently supported. Provided for consistency with {@link JSON.stringify}\n * @param {string|number} space - The number of spaces to use for indentation, or a string containing the number of spaces.\n * @returns {string}\n */\n stringify: function yamlStringify(value, replacer, space) {\n try {\n var indent = (typeof space === 'string' ? space.length : space) || 2;\n return yaml.safeDump(value, {indent: indent});\n }\n catch (e) {\n if (e instanceof Error) {\n throw e;\n }\n else {\n // https://github.com/nodeca/js-yaml/issues/153\n throw ono(e, e.message);\n }\n }\n }\n};\n","/* */ \n(function(Buffer) {\n 'use strict';\n var Promise = require('./promise'),\n Options = require('./options'),\n $Refs = require('./refs'),\n $Ref = require('./ref'),\n read = require('./read'),\n resolve = require('./resolve'),\n bundle = require('./bundle'),\n dereference = require('./dereference'),\n util = require('./util'),\n url = require('url'),\n maybe = require('call-me-maybe'),\n ono = require('ono');\n module.exports = $RefParser;\n module.exports.YAML = require('./yaml');\n function $RefParser() {\n this.schema = null;\n this.$refs = new $Refs();\n }\n $RefParser.parse = function(schema, options, callback) {\n var Class = this;\n return new Class().parse(schema, options, callback);\n };\n $RefParser.prototype.parse = function(schema, options, callback) {\n var args = normalizeArgs(arguments);\n if (args.schema && typeof args.schema === 'object') {\n this.schema = args.schema;\n this.$refs._basePath = '';\n var $ref = new $Ref(this.$refs, this.$refs._basePath);\n $ref.setValue(this.schema, args.options);\n return maybe(args.callback, Promise.resolve(this.schema));\n }\n if (!args.schema || typeof args.schema !== 'string') {\n var err = ono('Expected a file path, URL, or object. Got %s', args.schema);\n return maybe(args.callback, Promise.reject(err));\n }\n var me = this;\n args.schema = util.path.localPathToUrl(args.schema);\n args.schema = url.resolve(util.path.cwd(), args.schema);\n this.$refs._basePath = util.path.stripHash(args.schema);\n return read(args.schema, this.$refs, args.options).then(function(result) {\n var value = result.$ref.value;\n if (!value || typeof value !== 'object' || value instanceof Buffer) {\n throw ono.syntax('\"%s\" is not a valid JSON Schema', me.$refs._basePath);\n } else {\n me.schema = value;\n return maybe(args.callback, Promise.resolve(me.schema));\n }\n }).catch(function(e) {\n return maybe(args.callback, Promise.reject(e));\n });\n };\n $RefParser.resolve = function(schema, options, callback) {\n var Class = this;\n return new Class().resolve(schema, options, callback);\n };\n $RefParser.prototype.resolve = function(schema, options, callback) {\n var me = this;\n var args = normalizeArgs(arguments);\n return this.parse(args.schema, args.options).then(function() {\n return resolve(me, args.options);\n }).then(function() {\n return maybe(args.callback, Promise.resolve(me.$refs));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n };\n $RefParser.bundle = function(schema, options, callback) {\n var Class = this;\n return new Class().bundle(schema, options, callback);\n };\n $RefParser.prototype.bundle = function(schema, options, callback) {\n var me = this;\n var args = normalizeArgs(arguments);\n return this.resolve(args.schema, args.options).then(function() {\n bundle(me, args.options);\n return maybe(args.callback, Promise.resolve(me.schema));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n };\n $RefParser.dereference = function(schema, options, callback) {\n var Class = this;\n return new Class().dereference(schema, options, callback);\n };\n $RefParser.prototype.dereference = function(schema, options, callback) {\n var me = this;\n var args = normalizeArgs(arguments);\n return this.resolve(args.schema, args.options).then(function() {\n dereference(me, args.options);\n return maybe(args.callback, Promise.resolve(me.schema));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n };\n function normalizeArgs(args) {\n var options = args[1],\n callback = args[2];\n if (typeof options === 'function') {\n callback = options;\n options = undefined;\n }\n if (!(options instanceof Options)) {\n options = new Options(options);\n }\n return {\n schema: args[0],\n options: options,\n callback: callback\n };\n }\n})(require('buffer').Buffer);\n","module.exports = require(\"npm:json-schema-ref-parser@2.2.0/lib/index.js\");","/* */ \n(function(Buffer) {\n 'use strict';\n module.exports = $Ref;\n var Pointer = require('./pointer'),\n util = require('./util');\n function $Ref($refs, path) {\n path = util.path.stripHash(path);\n $refs._$refs[path] = this;\n this.$refs = $refs;\n this.path = path;\n this.pathType = undefined;\n this.value = undefined;\n this.expires = undefined;\n }\n $Ref.prototype.isExpired = function() {\n return !!(this.expires && this.expires <= new Date());\n };\n $Ref.prototype.expire = function() {\n this.expires = new Date();\n };\n $Ref.prototype.setValue = function(value, options) {\n this.value = value;\n var cacheDuration = options.cache[this.pathType];\n if (cacheDuration > 0) {\n var expires = Date.now() + (cacheDuration * 1000);\n this.expires = new Date(expires);\n }\n };\n $Ref.prototype.exists = function(path) {\n try {\n this.resolve(path);\n return true;\n } catch (e) {\n return false;\n }\n };\n $Ref.prototype.get = function(path, options) {\n return this.resolve(path, options).value;\n };\n $Ref.prototype.resolve = function(path, options) {\n var pointer = new Pointer(this, path);\n return pointer.resolve(this.value, options);\n };\n $Ref.prototype.set = function(path, value, options) {\n var pointer = new Pointer(this, path);\n this.value = pointer.set(this.value, value, options);\n };\n $Ref.is$Ref = function(value) {\n return value && typeof value === 'object' && typeof value.$ref === 'string' && value.$ref.length > 0;\n };\n $Ref.isExternal$Ref = function(value) {\n return $Ref.is$Ref(value) && value.$ref[0] !== '#';\n };\n $Ref.isAllowed$Ref = function(value, options) {\n if ($Ref.is$Ref(value)) {\n if (value.$ref[0] === '#') {\n if (options.$refs.internal) {\n return true;\n }\n } else if (options.$refs.external) {\n return true;\n }\n }\n };\n})(require('buffer').Buffer);\n","/* */ \nvar lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n;(function (exports) {\n\t'use strict';\n\n var Arr = (typeof Uint8Array !== 'undefined')\n ? Uint8Array\n : Array\n\n\tvar PLUS = '+'.charCodeAt(0)\n\tvar SLASH = '/'.charCodeAt(0)\n\tvar NUMBER = '0'.charCodeAt(0)\n\tvar LOWER = 'a'.charCodeAt(0)\n\tvar UPPER = 'A'.charCodeAt(0)\n\tvar PLUS_URL_SAFE = '-'.charCodeAt(0)\n\tvar SLASH_URL_SAFE = '_'.charCodeAt(0)\n\n\tfunction decode (elt) {\n\t\tvar code = elt.charCodeAt(0)\n\t\tif (code === PLUS ||\n\t\t code === PLUS_URL_SAFE)\n\t\t\treturn 62 // '+'\n\t\tif (code === SLASH ||\n\t\t code === SLASH_URL_SAFE)\n\t\t\treturn 63 // '/'\n\t\tif (code < NUMBER)\n\t\t\treturn -1 //no match\n\t\tif (code < NUMBER + 10)\n\t\t\treturn code - NUMBER + 26 + 26\n\t\tif (code < UPPER + 26)\n\t\t\treturn code - UPPER\n\t\tif (code < LOWER + 26)\n\t\t\treturn code - LOWER + 26\n\t}\n\n\tfunction b64ToByteArray (b64) {\n\t\tvar i, j, l, tmp, placeHolders, arr\n\n\t\tif (b64.length % 4 > 0) {\n\t\t\tthrow new Error('Invalid string. Length must be a multiple of 4')\n\t\t}\n\n\t\t// the number of equal signs (place holders)\n\t\t// if there are two placeholders, than the two characters before it\n\t\t// represent one byte\n\t\t// if there is only one, then the three characters before it represent 2 bytes\n\t\t// this is just a cheap hack to not do indexOf twice\n\t\tvar len = b64.length\n\t\tplaceHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0\n\n\t\t// base64 is 4/3 + up to two characters of the original data\n\t\tarr = new Arr(b64.length * 3 / 4 - placeHolders)\n\n\t\t// if there are placeholders, only get up to the last complete 4 chars\n\t\tl = placeHolders > 0 ? b64.length - 4 : b64.length\n\n\t\tvar L = 0\n\n\t\tfunction push (v) {\n\t\t\tarr[L++] = v\n\t\t}\n\n\t\tfor (i = 0, j = 0; i < l; i += 4, j += 3) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))\n\t\t\tpush((tmp & 0xFF0000) >> 16)\n\t\t\tpush((tmp & 0xFF00) >> 8)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\tif (placeHolders === 2) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)\n\t\t\tpush(tmp & 0xFF)\n\t\t} else if (placeHolders === 1) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)\n\t\t\tpush((tmp >> 8) & 0xFF)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\treturn arr\n\t}\n\n\tfunction uint8ToBase64 (uint8) {\n\t\tvar i,\n\t\t\textraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes\n\t\t\toutput = \"\",\n\t\t\ttemp, length\n\n\t\tfunction encode (num) {\n\t\t\treturn lookup.charAt(num)\n\t\t}\n\n\t\tfunction tripletToBase64 (num) {\n\t\t\treturn encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)\n\t\t}\n\n\t\t// go through the array every three bytes, we'll deal with trailing stuff later\n\t\tfor (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {\n\t\t\ttemp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n\t\t\toutput += tripletToBase64(temp)\n\t\t}\n\n\t\t// pad the end with zeros, but make sure to not forget the extra bytes\n\t\tswitch (extraBytes) {\n\t\t\tcase 1:\n\t\t\t\ttemp = uint8[uint8.length - 1]\n\t\t\t\toutput += encode(temp >> 2)\n\t\t\t\toutput += encode((temp << 4) & 0x3F)\n\t\t\t\toutput += '=='\n\t\t\t\tbreak\n\t\t\tcase 2:\n\t\t\t\ttemp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])\n\t\t\t\toutput += encode(temp >> 10)\n\t\t\t\toutput += encode((temp >> 4) & 0x3F)\n\t\t\t\toutput += encode((temp << 2) & 0x3F)\n\t\t\t\toutput += '='\n\t\t\t\tbreak\n\t\t}\n\n\t\treturn output\n\t}\n\n\texports.toByteArray = b64ToByteArray\n\texports.fromByteArray = uint8ToBase64\n}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))\n","module.exports = require(\"npm:base64-js@0.0.8/lib/b64.js\");","/* */ \nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","module.exports = require(\"npm:ieee754@1.1.6/index.js\");","/* */ \nvar toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","module.exports = require(\"npm:isarray@1.0.0/index.js\");","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\nBuffer.poolSize = 8192 // not used by this implementation\n\nvar rootParent = {}\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property\n * on objects.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\nfunction typedArraySupport () {\n function Bar () {}\n try {\n var arr = new Uint8Array(1)\n arr.foo = function () { return 42 }\n arr.constructor = Bar\n return arr.foo() === 42 && // typed array instances can be augmented\n arr.constructor === Bar && // constructor can be set\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\n/**\n * Class: Buffer\n * =============\n *\n * The Buffer constructor returns instances of `Uint8Array` that are augmented\n * with function properties for all the node `Buffer` API functions. We use\n * `Uint8Array` so that square bracket notation works as expected -- it returns\n * a single octet.\n *\n * By augmenting the instances, we can avoid modifying the `Uint8Array`\n * prototype.\n */\nfunction Buffer (arg) {\n if (!(this instanceof Buffer)) {\n // Avoid going through an ArgumentsAdaptorTrampoline in the common case.\n if (arguments.length > 1) return new Buffer(arg, arguments[1])\n return new Buffer(arg)\n }\n\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n this.length = 0\n this.parent = undefined\n }\n\n // Common case.\n if (typeof arg === 'number') {\n return fromNumber(this, arg)\n }\n\n // Slightly less common case.\n if (typeof arg === 'string') {\n return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')\n }\n\n // Unusual.\n return fromObject(this, arg)\n}\n\nfunction fromNumber (that, length) {\n that = allocate(that, length < 0 ? 0 : checked(length) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < length; i++) {\n that[i] = 0\n }\n }\n return that\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'\n\n // Assumption: byteLength() return value is always < kMaxLength.\n var length = byteLength(string, encoding) | 0\n that = allocate(that, length)\n\n that.write(string, encoding)\n return that\n}\n\nfunction fromObject (that, object) {\n if (Buffer.isBuffer(object)) return fromBuffer(that, object)\n\n if (isArray(object)) return fromArray(that, object)\n\n if (object == null) {\n throw new TypeError('must start with number, buffer, array or string')\n }\n\n if (typeof ArrayBuffer !== 'undefined') {\n if (object.buffer instanceof ArrayBuffer) {\n return fromTypedArray(that, object)\n }\n if (object instanceof ArrayBuffer) {\n return fromArrayBuffer(that, object)\n }\n }\n\n if (object.length) return fromArrayLike(that, object)\n\n return fromJsonObject(that, object)\n}\n\nfunction fromBuffer (that, buffer) {\n var length = checked(buffer.length) | 0\n that = allocate(that, length)\n buffer.copy(that, 0, 0, length)\n return that\n}\n\nfunction fromArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Duplicate of fromArray() to keep fromArray() monomorphic.\nfunction fromTypedArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n // Truncating the elements is probably not what people expect from typed\n // arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior\n // of the old Buffer constructor.\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n array.byteLength\n that = Buffer._augment(new Uint8Array(array))\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromTypedArray(that, new Uint8Array(array))\n }\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.\n// Returns a zero-length buffer for inputs that don't conform to the spec.\nfunction fromJsonObject (that, object) {\n var array\n var length = 0\n\n if (object.type === 'Buffer' && isArray(object.data)) {\n array = object.data\n length = checked(array.length) | 0\n }\n that = allocate(that, length)\n\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n} else {\n // pre-set for values that may exist in the future\n Buffer.prototype.length = undefined\n Buffer.prototype.parent = undefined\n}\n\nfunction allocate (that, length) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = Buffer._augment(new Uint8Array(length))\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that.length = length\n that._isBuffer = true\n }\n\n var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1\n if (fromPool) that.parent = rootParent\n\n return that\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (subject, encoding) {\n if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)\n\n var buf = new Buffer(subject, encoding)\n delete buf.parent\n return buf\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n var i = 0\n var len = Math.min(x, y)\n while (i < len) {\n if (a[i] !== b[i]) break\n\n ++i\n }\n\n if (i !== len) {\n x = a[i]\n y = b[i]\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'binary':\n case 'base64':\n case 'raw':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')\n\n if (list.length === 0) {\n return new Buffer(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; i++) {\n length += list[i].length\n }\n }\n\n var buf = new Buffer(length)\n var pos = 0\n for (i = 0; i < list.length; i++) {\n var item = list[i]\n item.copy(buf, pos)\n pos += item.length\n }\n return buf\n}\n\nfunction byteLength (string, encoding) {\n if (typeof string !== 'string') string = '' + string\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'binary':\n // Deprecated\n case 'raw':\n case 'raws':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n start = start | 0\n end = end === undefined || end === Infinity ? this.length : end | 0\n\n if (!encoding) encoding = 'utf8'\n if (start < 0) start = 0\n if (end > this.length) end = this.length\n if (end <= start) return ''\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'binary':\n return binarySlice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return '<Buffer ' + str + '>'\n}\n\nBuffer.prototype.compare = function compare (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return 0\n return Buffer.compare(this, b)\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset) {\n if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff\n else if (byteOffset < -0x80000000) byteOffset = -0x80000000\n byteOffset >>= 0\n\n if (this.length === 0) return -1\n if (byteOffset >= this.length) return -1\n\n // Negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)\n\n if (typeof val === 'string') {\n if (val.length === 0) return -1 // special case: looking for empty string always fails\n return String.prototype.indexOf.call(this, val, byteOffset)\n }\n if (Buffer.isBuffer(val)) {\n return arrayIndexOf(this, val, byteOffset)\n }\n if (typeof val === 'number') {\n if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {\n return Uint8Array.prototype.indexOf.call(this, val, byteOffset)\n }\n return arrayIndexOf(this, [ val ], byteOffset)\n }\n\n function arrayIndexOf (arr, val, byteOffset) {\n var foundIndex = -1\n for (var i = 0; byteOffset + i < arr.length; i++) {\n if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex\n } else {\n foundIndex = -1\n }\n }\n return -1\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\n// `get` is deprecated\nBuffer.prototype.get = function get (offset) {\n console.log('.get() is deprecated. Access using array indexes instead.')\n return this.readUInt8(offset)\n}\n\n// `set` is deprecated\nBuffer.prototype.set = function set (v, offset) {\n console.log('.set() is deprecated. Access using array indexes instead.')\n return this.writeUInt8(v, offset)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new Error('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; i++) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) throw new Error('Invalid hex string')\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction binaryWrite (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n var swap = encoding\n encoding = offset\n offset = length | 0\n length = swap\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'binary':\n return binaryWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction binarySlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; i++) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = Buffer._augment(this.subarray(start, end))\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; i++) {\n newBuf[i] = this[i + start]\n }\n }\n\n if (newBuf.length) newBuf.parent = this.parent || this\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n if (offset < 0) throw new RangeError('index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; i--) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; i++) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n target._set(this.subarray(start, start + len), targetStart)\n }\n\n return len\n}\n\n// fill(value, start=0, end=buffer.length)\nBuffer.prototype.fill = function fill (value, start, end) {\n if (!value) value = 0\n if (!start) start = 0\n if (!end) end = this.length\n\n if (end < start) throw new RangeError('end < start')\n\n // Fill 0 bytes; we're done\n if (end === start) return\n if (this.length === 0) return\n\n if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')\n if (end < 0 || end > this.length) throw new RangeError('end out of bounds')\n\n var i\n if (typeof value === 'number') {\n for (i = start; i < end; i++) {\n this[i] = value\n }\n } else {\n var bytes = utf8ToBytes(value.toString())\n var len = bytes.length\n for (i = start; i < end; i++) {\n this[i] = bytes[i % len]\n }\n }\n\n return this\n}\n\n/**\n * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.\n * Added in Node 0.12. Only available in browsers that support ArrayBuffer.\n */\nBuffer.prototype.toArrayBuffer = function toArrayBuffer () {\n if (typeof Uint8Array !== 'undefined') {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n return (new Buffer(this)).buffer\n } else {\n var buf = new Uint8Array(this.length)\n for (var i = 0, len = buf.length; i < len; i += 1) {\n buf[i] = this[i]\n }\n return buf.buffer\n }\n } else {\n throw new TypeError('Buffer.toArrayBuffer not supported in this browser')\n }\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar BP = Buffer.prototype\n\n/**\n * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods\n */\nBuffer._augment = function _augment (arr) {\n arr.constructor = Buffer\n arr._isBuffer = true\n\n // save reference to original Uint8Array set method before overwriting\n arr._set = arr.set\n\n // deprecated\n arr.get = BP.get\n arr.set = BP.set\n\n arr.write = BP.write\n arr.toString = BP.toString\n arr.toLocaleString = BP.toString\n arr.toJSON = BP.toJSON\n arr.equals = BP.equals\n arr.compare = BP.compare\n arr.indexOf = BP.indexOf\n arr.copy = BP.copy\n arr.slice = BP.slice\n arr.readUIntLE = BP.readUIntLE\n arr.readUIntBE = BP.readUIntBE\n arr.readUInt8 = BP.readUInt8\n arr.readUInt16LE = BP.readUInt16LE\n arr.readUInt16BE = BP.readUInt16BE\n arr.readUInt32LE = BP.readUInt32LE\n arr.readUInt32BE = BP.readUInt32BE\n arr.readIntLE = BP.readIntLE\n arr.readIntBE = BP.readIntBE\n arr.readInt8 = BP.readInt8\n arr.readInt16LE = BP.readInt16LE\n arr.readInt16BE = BP.readInt16BE\n arr.readInt32LE = BP.readInt32LE\n arr.readInt32BE = BP.readInt32BE\n arr.readFloatLE = BP.readFloatLE\n arr.readFloatBE = BP.readFloatBE\n arr.readDoubleLE = BP.readDoubleLE\n arr.readDoubleBE = BP.readDoubleBE\n arr.writeUInt8 = BP.writeUInt8\n arr.writeUIntLE = BP.writeUIntLE\n arr.writeUIntBE = BP.writeUIntBE\n arr.writeUInt16LE = BP.writeUInt16LE\n arr.writeUInt16BE = BP.writeUInt16BE\n arr.writeUInt32LE = BP.writeUInt32LE\n arr.writeUInt32BE = BP.writeUInt32BE\n arr.writeIntLE = BP.writeIntLE\n arr.writeIntBE = BP.writeIntBE\n arr.writeInt8 = BP.writeInt8\n arr.writeInt16LE = BP.writeInt16LE\n arr.writeInt16BE = BP.writeInt16BE\n arr.writeInt32LE = BP.writeInt32LE\n arr.writeInt32BE = BP.writeInt32BE\n arr.writeFloatLE = BP.writeFloatLE\n arr.writeFloatBE = BP.writeFloatBE\n arr.writeDoubleLE = BP.writeDoubleLE\n arr.writeDoubleBE = BP.writeDoubleBE\n arr.fill = BP.fill\n arr.inspect = BP.inspect\n arr.toArrayBuffer = BP.toArrayBuffer\n\n return arr\n}\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; i++) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; i++) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n","module.exports = require(\"npm:buffer@3.6.0/index.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('buffer') : require('buffer');","module.exports = require(\"github:jspm/nodelibs-buffer@0.1.0/index\");","/* */ \n(function(Buffer) {\n 'use strict';\n module.exports = Pointer;\n var $Ref = require('./ref'),\n util = require('./util'),\n url = require('url'),\n ono = require('ono'),\n slashes = /\\//g,\n tildes = /~/g,\n escapedSlash = /~1/g,\n escapedTilde = /~0/g;\n function Pointer($ref, path) {\n this.$ref = $ref;\n this.path = path;\n this.value = undefined;\n this.circular = false;\n }\n Pointer.prototype.resolve = function(obj, options) {\n var tokens = Pointer.parse(this.path);\n this.value = obj;\n for (var i = 0; i < tokens.length; i++) {\n if (resolveIf$Ref(this, options)) {\n this.path = Pointer.join(this.path, tokens.slice(i));\n }\n var token = tokens[i];\n if (this.value[token] === undefined) {\n throw ono.syntax('Error resolving $ref pointer \"%s\". \\nToken \"%s\" does not exist.', this.path, token);\n } else {\n this.value = this.value[token];\n }\n }\n resolveIf$Ref(this, options);\n return this;\n };\n Pointer.prototype.set = function(obj, value, options) {\n var tokens = Pointer.parse(this.path);\n var token;\n if (tokens.length === 0) {\n this.value = value;\n return value;\n }\n this.value = obj;\n for (var i = 0; i < tokens.length - 1; i++) {\n resolveIf$Ref(this, options);\n token = tokens[i];\n if (this.value && this.value[token] !== undefined) {\n this.value = this.value[token];\n } else {\n this.value = setValue(this, token, {});\n }\n }\n resolveIf$Ref(this, options);\n token = tokens[tokens.length - 1];\n setValue(this, token, value);\n return obj;\n };\n Pointer.parse = function(path) {\n var pointer = util.path.getHash(path).substr(1);\n if (!pointer) {\n return [];\n }\n pointer = pointer.split('/');\n for (var i = 0; i < pointer.length; i++) {\n pointer[i] = decodeURI(pointer[i].replace(escapedSlash, '/').replace(escapedTilde, '~'));\n }\n if (pointer[0] !== '') {\n throw ono.syntax('Invalid $ref pointer \"%s\". Pointers must begin with \"#/\"', pointer);\n }\n return pointer.slice(1);\n };\n Pointer.join = function(base, tokens) {\n if (base.indexOf('#') === -1) {\n base += '#';\n }\n tokens = Array.isArray(tokens) ? tokens : [tokens];\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n base += '/' + encodeURI(token.replace(tildes, '~0').replace(slashes, '~1'));\n }\n return base;\n };\n function resolveIf$Ref(pointer, options) {\n if ($Ref.isAllowed$Ref(pointer.value, options)) {\n var $refPath = url.resolve(pointer.path, pointer.value.$ref);\n if ($refPath === pointer.path) {\n pointer.circular = true;\n } else {\n var resolved = pointer.$ref.$refs._resolve($refPath);\n if (Object.keys(pointer.value).length === 1) {\n pointer.$ref = resolved.$ref;\n pointer.path = resolved.path;\n pointer.value = resolved.value;\n } else {\n pointer.value = util.dereference(pointer.value, resolved.value);\n }\n return true;\n }\n }\n }\n function setValue(pointer, token, value) {\n if (pointer.value && typeof pointer.value === 'object') {\n if (token === '-' && Array.isArray(pointer.value)) {\n pointer.value.push(value);\n } else {\n pointer.value[token] = value;\n }\n } else {\n throw ono.syntax('Error assigning $ref pointer \"%s\". \\nCannot set \"%s\" of a non-object.', pointer.path, token);\n }\n return value;\n }\n})(require('buffer').Buffer);\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} options\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options){\n options = options || {};\n if ('string' == typeof val) return parse(val);\n return options.long\n ? long(val)\n : short(val);\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = '' + str;\n if (str.length > 10000) return;\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);\n if (!match) return;\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction short(ms) {\n if (ms >= d) return Math.round(ms / d) + 'd';\n if (ms >= h) return Math.round(ms / h) + 'h';\n if (ms >= m) return Math.round(ms / m) + 'm';\n if (ms >= s) return Math.round(ms / s) + 's';\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction long(ms) {\n return plural(ms, d, 'day')\n || plural(ms, h, 'hour')\n || plural(ms, m, 'minute')\n || plural(ms, s, 'second')\n || ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) return;\n if (ms < n * 1.5) return Math.floor(ms / n) + ' ' + name;\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n","module.exports = require(\"npm:ms@0.7.1/index\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = debug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lowercased letter, i.e. \"n\".\n */\n\nexports.formatters = {};\n\n/**\n * Previously assigned color.\n */\n\nvar prevColor = 0;\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n *\n * @return {Number}\n * @api private\n */\n\nfunction selectColor() {\n return exports.colors[prevColor++ % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction debug(namespace) {\n\n // define the `disabled` version\n function disabled() {\n }\n disabled.enabled = false;\n\n // define the `enabled` version\n function enabled() {\n\n var self = enabled;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // add the `color` if not set\n if (null == self.useColors) self.useColors = exports.useColors();\n if (null == self.color && self.useColors) self.color = selectColor();\n\n var args = Array.prototype.slice.call(arguments);\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %o\n args = ['%o'].concat(args);\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n if ('function' === typeof exports.formatArgs) {\n args = exports.formatArgs.apply(self, args);\n }\n var logFn = enabled.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n enabled.enabled = true;\n\n var fn = exports.enabled(namespace) ? enabled : disabled;\n\n fn.namespace = namespace;\n\n return fn;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n var split = (namespaces || '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n","/* */ \nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage();\nexports.colors = ['lightseagreen', 'forestgreen', 'goldenrod', 'dodgerblue', 'darkorchid', 'crimson'];\nfunction useColors() {\n return ('WebkitAppearance' in document.documentElement.style) || (window.console && (console.firebug || (console.exception && console.table))) || (navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31);\n}\nexports.formatters.j = function(v) {\n return JSON.stringify(v);\n};\nfunction formatArgs() {\n var args = arguments;\n var useColors = this.useColors;\n args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);\n if (!useColors)\n return args;\n var c = 'color: ' + this.color;\n args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-z%]/g, function(match) {\n if ('%%' === match)\n return;\n index++;\n if ('%c' === match) {\n lastC = index;\n }\n });\n args.splice(lastC, 0, c);\n return args;\n}\nfunction log() {\n return 'object' === typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments);\n}\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch (e) {}\n}\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch (e) {}\n return r;\n}\nexports.enable(load());\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n","module.exports = require(\"npm:debug@2.2.0/browser.js\");","/* */ \n(function(process) {\n 'use strict';\n var isWindows = /^win/.test(process.platform),\n forwardSlashPattern = /\\//g,\n protocolPattern = /^([a-z0-9.+-]+):\\/\\//i;\n var urlEncodePatterns = [/\\?/g, '%3F', /\\#/g, '%23', isWindows ? /\\\\/g : /\\//, '/'];\n var urlDecodePatterns = [/\\%23/g, '#', /\\%24/g, '$', /\\%26/g, '&', /\\%2C/g, ',', /\\%40/g, '@'];\n exports.cwd = function cwd() {\n return process.browser ? location.href : process.cwd() + '/';\n };\n exports.isUrl = function isUrl(path) {\n var protocol = protocolPattern.exec(path);\n if (protocol) {\n protocol = protocol[1].toLowerCase();\n return protocol !== 'file';\n }\n return false;\n };\n exports.localPathToUrl = function localPathToUrl(path) {\n if (!process.browser && !exports.isUrl(path)) {\n for (var i = 0; i < urlEncodePatterns.length; i += 2) {\n path = path.replace(urlEncodePatterns[i], urlEncodePatterns[i + 1]);\n }\n path = encodeURI(path);\n }\n return path;\n };\n exports.urlToLocalPath = function urlToLocalPath(url, keepFileProtocol) {\n url = decodeURI(url);\n for (var i = 0; i < urlDecodePatterns.length; i += 2) {\n url = url.replace(urlDecodePatterns[i], urlDecodePatterns[i + 1]);\n }\n var isFileUrl = url.substr(0, 7).toLowerCase() === 'file://';\n if (isFileUrl) {\n var protocol = 'file:///';\n var path = url[7] === '/' ? url.substr(8) : url.substr(7);\n if (isWindows && path[1] === '/') {\n path = path[0] + ':' + path.substr(1);\n }\n if (keepFileProtocol) {\n url = protocol + path;\n } else {\n isFileUrl = false;\n url = isWindows ? path : '/' + path;\n }\n }\n if (isWindows && !isFileUrl) {\n url = url.replace(forwardSlashPattern, '\\\\');\n }\n return url;\n };\n exports.getHash = function getHash(path) {\n var hashIndex = path.indexOf('#');\n if (hashIndex >= 0) {\n return path.substr(hashIndex);\n }\n return '#';\n };\n exports.stripHash = function stripHash(path) {\n var hashIndex = path.indexOf('#');\n if (hashIndex >= 0) {\n path = path.substr(0, hashIndex);\n }\n return path;\n };\n exports.extname = function extname(path) {\n var lastDot = path.lastIndexOf('.');\n if (lastDot >= 0) {\n return path.substr(lastDot).toLowerCase();\n }\n return '';\n };\n})(require('process'));\n","/* */ \n'use strict';\nvar debug = require('debug'),\n path = require('./path');\nexports.debug = debug('json-schema-ref-parser');\nexports.path = path;\nexports.dereference = function($ref, resolvedValue) {\n if (resolvedValue && typeof resolvedValue === 'object' && Object.keys($ref).length > 1) {\n var merged = {};\n Object.keys($ref).forEach(function(key) {\n if (key !== '$ref') {\n merged[key] = $ref[key];\n }\n });\n Object.keys(resolvedValue).forEach(function(key) {\n if (!(key in merged)) {\n merged[key] = resolvedValue[key];\n }\n });\n return merged;\n } else {\n return resolvedValue;\n }\n};\n","/* */ \nmodule.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","/* */ \nif (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","module.exports = require(\"npm:inherits@2.0.1/inherits_browser.js\");","/* */ \n(function(process) {\n var formatRegExp = /%[sdj%]/g;\n exports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%')\n return '%';\n if (i >= len)\n return x;\n switch (x) {\n case '%s':\n return String(args[i++]);\n case '%d':\n return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n };\n exports.deprecate = function(fn, msg) {\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n if (process.noDeprecation === true) {\n return fn;\n }\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n return deprecated;\n };\n var debugs = {};\n var debugEnviron;\n exports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n };\n function inspect(obj, opts) {\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n if (arguments.length >= 3)\n ctx.depth = arguments[2];\n if (arguments.length >= 4)\n ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n ctx.showHidden = opts;\n } else if (opts) {\n exports._extend(ctx, opts);\n }\n if (isUndefined(ctx.showHidden))\n ctx.showHidden = false;\n if (isUndefined(ctx.depth))\n ctx.depth = 2;\n if (isUndefined(ctx.colors))\n ctx.colors = false;\n if (isUndefined(ctx.customInspect))\n ctx.customInspect = true;\n if (ctx.colors)\n ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n }\n exports.inspect = inspect;\n inspect.colors = {\n 'bold': [1, 22],\n 'italic': [3, 23],\n 'underline': [4, 24],\n 'inverse': [7, 27],\n 'white': [37, 39],\n 'grey': [90, 39],\n 'black': [30, 39],\n 'blue': [34, 39],\n 'cyan': [36, 39],\n 'green': [32, 39],\n 'magenta': [35, 39],\n 'red': [31, 39],\n 'yellow': [33, 39]\n };\n inspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n 'regexp': 'red'\n };\n function stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str + '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n }\n function stylizeNoColor(str, styleType) {\n return str;\n }\n function arrayToHash(array) {\n var hash = {};\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n return hash;\n }\n function formatValue(ctx, value, recurseTimes) {\n if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== exports.inspect && !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n var base = '',\n array = false,\n braces = ['{', '}'];\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n ctx.seen.push(value);\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n ctx.seen.pop();\n return reduceToSingleString(output, base, braces);\n }\n function formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '').replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n if (isNull(value))\n return ctx.stylize('null', 'null');\n }\n function formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n }\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0,\n l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));\n }\n });\n return output;\n }\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name,\n str,\n desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {value: value[key]};\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n return name + ': ' + str;\n }\n function reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0)\n numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n if (length > 60) {\n return braces[0] + (base === '' ? '' : base + '\\n ') + ' ' + output.join(',\\n ') + ' ' + braces[1];\n }\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n }\n function isArray(ar) {\n return Array.isArray(ar);\n }\n exports.isArray = isArray;\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n exports.isBoolean = isBoolean;\n function isNull(arg) {\n return arg === null;\n }\n exports.isNull = isNull;\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n exports.isNullOrUndefined = isNullOrUndefined;\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n exports.isNumber = isNumber;\n function isString(arg) {\n return typeof arg === 'string';\n }\n exports.isString = isString;\n function isSymbol(arg) {\n return typeof arg === 'symbol';\n }\n exports.isSymbol = isSymbol;\n function isUndefined(arg) {\n return arg === void 0;\n }\n exports.isUndefined = isUndefined;\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n }\n exports.isRegExp = isRegExp;\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n exports.isObject = isObject;\n function isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n }\n exports.isDate = isDate;\n function isError(e) {\n return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);\n }\n exports.isError = isError;\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n exports.isFunction = isFunction;\n function isPrimitive(arg) {\n return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || typeof arg === 'undefined';\n }\n exports.isPrimitive = isPrimitive;\n exports.isBuffer = require('./support/isBufferBrowser');\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n function pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n }\n var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n function timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n }\n exports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n };\n exports.inherits = require('inherits');\n exports._extend = function(origin, add) {\n if (!add || !isObject(add))\n return origin;\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n };\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n})(require('process'));\n","module.exports = require(\"npm:util@0.10.3/util.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('util') : require('util');","module.exports = require(\"github:jspm/nodelibs-util@0.1.0/index\");","/**!\n * Ono v2.0.1\n *\n * @link https://github.com/BigstickCarpet/ono\n * @license MIT\n */\n'use strict';\n\nvar util = require('util'),\n slice = Array.prototype.slice,\n vendorSpecificErrorProperties = [\n 'name', 'message', 'description', 'number', 'fileName', 'lineNumber', 'columnNumber',\n 'sourceURL', 'line', 'column', 'stack'\n ];\n\nmodule.exports = create(Error);\nmodule.exports.error = create(Error);\nmodule.exports.eval = create(EvalError);\nmodule.exports.range = create(RangeError);\nmodule.exports.reference = create(ReferenceError);\nmodule.exports.syntax = create(SyntaxError);\nmodule.exports.type = create(TypeError);\nmodule.exports.uri = create(URIError);\nmodule.exports.formatter = util.format;\n\n/**\n * Creates a new {@link ono} function that creates the given Error class.\n *\n * @param {Class} Klass - The Error subclass to create\n * @returns {ono}\n */\nfunction create(Klass) {\n /**\n * @param {Error} [err] - The original error, if any\n * @param {object} [props] - An object whose properties will be added to the error object\n * @param {string} [message] - The error message. May contain {@link util#format} placeholders\n * @param {...*} [params] - Parameters that map to the `message` placeholders\n * @returns {Error}\n */\n return function ono(err, props, message, params) {\n var formattedMessage, stack;\n var formatter = module.exports.formatter;\n\n if (typeof(err) === 'string') {\n formattedMessage = formatter.apply(null, arguments);\n err = props = undefined;\n }\n else if (typeof(props) === 'string') {\n formattedMessage = formatter.apply(null, slice.call(arguments, 1));\n }\n else {\n formattedMessage = formatter.apply(null, slice.call(arguments, 2));\n }\n\n if (!(err instanceof Error)) {\n props = err;\n err = undefined;\n }\n\n if (err) {\n // The inner-error's message will be added to the new message\n formattedMessage += (formattedMessage ? ' \\n' : '') + err.message;\n }\n\n // Create the new error\n // NOTE: DON'T move this to a separate function! We don't want to pollute the stack trace\n var newError = new Klass(formattedMessage);\n\n // Extend the new error with the additional properties\n extendError(newError, err); // Copy properties of the original error\n extendToJSON(newError); // Replace the original toJSON method\n extend(newError, props); // Copy custom properties, possibly including a custom toJSON method\n\n return newError;\n };\n}\n\n/**\n * Extends the targetError with the properties of the source error.\n *\n * @param {Error} targetError - The error object to extend\n * @param {?Error} sourceError - The source error object, if any\n */\nfunction extendError(targetError, sourceError) {\n if (sourceError) {\n var stack = sourceError.stack;\n if (stack) {\n targetError.stack += ' \\n\\n' + sourceError.stack;\n }\n\n extend(targetError, sourceError, true);\n }\n}\n\n/**\n * JavaScript engines differ in how errors are serialized to JSON - especially when it comes\n * to custom error properties and stack traces. So we add our own toJSON method that ALWAYS\n * outputs every property of the error.\n */\nfunction extendToJSON(error) {\n error.toJSON = errorToJSON;\n\n // Also add an inspect() method, for compatibility with Node.js' `util.inspect()` method\n error.inspect = errorToJSON;\n}\n\n/**\n * Extends the target object with the properties of the source object.\n *\n * @param {object} target - The object to extend\n * @param {?source} source - The object whose properties are copied\n * @param {boolean} omitVendorSpecificProperties - Skip vendor-specific Error properties\n */\nfunction extend(target, source, omitVendorSpecificProperties) {\n if (source && typeof(source) === 'object') {\n var keys = Object.keys(source);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n // Don't bother trying to copy read-only vendor-specific Error properties\n if (omitVendorSpecificProperties && vendorSpecificErrorProperties.indexOf(key) >= 0) {\n continue;\n }\n\n try {\n target[key] = source[key];\n }\n catch (e) {\n // This property is read-only, so it can't be copied\n }\n }\n }\n}\n\n/**\n * Custom JSON serializer for Error objects.\n * Returns all built-in error properties, as well as extended properties.\n *\n * @returns {object}\n */\nfunction errorToJSON() {\n // jshint -W040\n var json = {};\n\n // Get all the properties of this error\n var keys = Object.keys(this);\n\n // Also include vendor-specific properties from the prototype\n keys = keys.concat(vendorSpecificErrorProperties);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = this[key];\n if (value !== undefined) {\n json[key] = value;\n }\n }\n\n return json;\n}\n","module.exports = require(\"npm:ono@2.0.1/lib/index.js\");","/* */ \n\"format cjs\";\n(function(process) {\n ;\n (function(root) {\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n var freeModule = typeof module == 'object' && module && !module.nodeType && module;\n var freeGlobal = typeof global == 'object' && global;\n if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {\n root = freeGlobal;\n }\n var punycode,\n maxInt = 2147483647,\n base = 36,\n tMin = 1,\n tMax = 26,\n skew = 38,\n damp = 700,\n initialBias = 72,\n initialN = 128,\n delimiter = '-',\n regexPunycode = /^xn--/,\n regexNonASCII = /[^\\x20-\\x7E]/,\n regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g,\n errors = {\n 'overflow': 'Overflow: input needs wider integers to process',\n 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n 'invalid-input': 'Invalid input'\n },\n baseMinusTMin = base - tMin,\n floor = Math.floor,\n stringFromCharCode = String.fromCharCode,\n key;\n function error(type) {\n throw RangeError(errors[type]);\n }\n function map(array, fn) {\n var length = array.length;\n var result = [];\n while (length--) {\n result[length] = fn(array[length]);\n }\n return result;\n }\n function mapDomain(string, fn) {\n var parts = string.split('@');\n var result = '';\n if (parts.length > 1) {\n result = parts[0] + '@';\n string = parts[1];\n }\n string = string.replace(regexSeparators, '\\x2E');\n var labels = string.split('.');\n var encoded = map(labels, fn).join('.');\n return result + encoded;\n }\n function ucs2decode(string) {\n var output = [],\n counter = 0,\n length = string.length,\n value,\n extra;\n while (counter < length) {\n value = string.charCodeAt(counter++);\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n extra = string.charCodeAt(counter++);\n if ((extra & 0xFC00) == 0xDC00) {\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n return output;\n }\n function ucs2encode(array) {\n return map(array, function(value) {\n var output = '';\n if (value > 0xFFFF) {\n value -= 0x10000;\n output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n value = 0xDC00 | value & 0x3FF;\n }\n output += stringFromCharCode(value);\n return output;\n }).join('');\n }\n function basicToDigit(codePoint) {\n if (codePoint - 48 < 10) {\n return codePoint - 22;\n }\n if (codePoint - 65 < 26) {\n return codePoint - 65;\n }\n if (codePoint - 97 < 26) {\n return codePoint - 97;\n }\n return base;\n }\n function digitToBasic(digit, flag) {\n return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n }\n function adapt(delta, numPoints, firstTime) {\n var k = 0;\n delta = firstTime ? floor(delta / damp) : delta >> 1;\n delta += floor(delta / numPoints);\n for (; delta > baseMinusTMin * tMax >> 1; k += base) {\n delta = floor(delta / baseMinusTMin);\n }\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n }\n function decode(input) {\n var output = [],\n inputLength = input.length,\n out,\n i = 0,\n n = initialN,\n bias = initialBias,\n basic,\n j,\n index,\n oldi,\n w,\n k,\n digit,\n t,\n baseMinusT;\n basic = input.lastIndexOf(delimiter);\n if (basic < 0) {\n basic = 0;\n }\n for (j = 0; j < basic; ++j) {\n if (input.charCodeAt(j) >= 0x80) {\n error('not-basic');\n }\n output.push(input.charCodeAt(j));\n }\n for (index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {\n for (oldi = i, w = 1, k = base; ; k += base) {\n if (index >= inputLength) {\n error('invalid-input');\n }\n digit = basicToDigit(input.charCodeAt(index++));\n if (digit >= base || digit > floor((maxInt - i) / w)) {\n error('overflow');\n }\n i += digit * w;\n t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n if (digit < t) {\n break;\n }\n baseMinusT = base - t;\n if (w > floor(maxInt / baseMinusT)) {\n error('overflow');\n }\n w *= baseMinusT;\n }\n out = output.length + 1;\n bias = adapt(i - oldi, out, oldi == 0);\n if (floor(i / out) > maxInt - n) {\n error('overflow');\n }\n n += floor(i / out);\n i %= out;\n output.splice(i++, 0, n);\n }\n return ucs2encode(output);\n }\n function encode(input) {\n var n,\n delta,\n handledCPCount,\n basicLength,\n bias,\n j,\n m,\n q,\n k,\n t,\n currentValue,\n output = [],\n inputLength,\n handledCPCountPlusOne,\n baseMinusT,\n qMinusT;\n input = ucs2decode(input);\n inputLength = input.length;\n n = initialN;\n delta = 0;\n bias = initialBias;\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n if (currentValue < 0x80) {\n output.push(stringFromCharCode(currentValue));\n }\n }\n handledCPCount = basicLength = output.length;\n if (basicLength) {\n output.push(delimiter);\n }\n while (handledCPCount < inputLength) {\n for (m = maxInt, j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n if (currentValue >= n && currentValue < m) {\n m = currentValue;\n }\n }\n handledCPCountPlusOne = handledCPCount + 1;\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n error('overflow');\n }\n delta += (m - n) * handledCPCountPlusOne;\n n = m;\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n if (currentValue < n && ++delta > maxInt) {\n error('overflow');\n }\n if (currentValue == n) {\n for (q = delta, k = base; ; k += base) {\n t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n if (q < t) {\n break;\n }\n qMinusT = q - t;\n baseMinusT = base - t;\n output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));\n q = floor(qMinusT / baseMinusT);\n }\n output.push(stringFromCharCode(digitToBasic(q, 0)));\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n delta = 0;\n ++handledCPCount;\n }\n }\n ++delta;\n ++n;\n }\n return output.join('');\n }\n function toUnicode(input) {\n return mapDomain(input, function(string) {\n return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;\n });\n }\n function toASCII(input) {\n return mapDomain(input, function(string) {\n return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;\n });\n }\n punycode = {\n 'version': '1.3.2',\n 'ucs2': {\n 'decode': ucs2decode,\n 'encode': ucs2encode\n },\n 'decode': decode,\n 'encode': encode,\n 'toASCII': toASCII,\n 'toUnicode': toUnicode\n };\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n define('punycode', function() {\n return punycode;\n });\n } else if (freeExports && freeModule) {\n if (module.exports == freeExports) {\n freeModule.exports = punycode;\n } else {\n for (key in punycode) {\n punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n }\n }\n } else {\n root.punycode = punycode;\n }\n }(this));\n})(require('process'));\n","module.exports = require(\"npm:punycode@1.3.2/punycode.js\");","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n","/* */ \n'use strict';\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');\n","module.exports = require(\"npm:querystring@0.2.0/index\");","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar punycode = require('punycode');\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = require('querystring');\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a puny coded representation of \"domain\".\n // It only converts the part of the domain name that\n // has non ASCII characters. I.e. it dosent matter if\n // you call it with a domain that already is in ASCII.\n var domainArray = this.hostname.split('.');\n var newOut = [];\n for (var i = 0; i < domainArray.length; ++i) {\n var s = domainArray[i];\n newOut.push(s.match(/[^A-Za-z0-9_-]/) ?\n 'xn--' + punycode.encode(s) : s);\n }\n this.hostname = newOut.join('.');\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n Object.keys(this).forEach(function(k) {\n result[k] = this[k];\n }, this);\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n Object.keys(relative).forEach(function(k) {\n if (k !== 'protocol')\n result[k] = relative[k];\n });\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n Object.keys(relative).forEach(function(k) {\n result[k] = relative[k];\n });\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host) && (last === '.' || last === '..') ||\n last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last == '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n\nfunction isString(arg) {\n return typeof arg === \"string\";\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isNull(arg) {\n return arg === null;\n}\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\n","module.exports = require(\"npm:url@0.10.3/url.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('url') : require('url');","module.exports = require(\"github:jspm/nodelibs-url@0.1.0/index\");","/* */ \n'use strict';\nvar $Ref = require('./ref'),\n Pointer = require('./pointer'),\n util = require('./util'),\n ono = require('ono'),\n url = require('url');\nmodule.exports = dereference;\nfunction dereference(parser, options) {\n util.debug('Dereferencing $ref pointers in %s', parser.$refs._basePath);\n parser.$refs.circular = false;\n crawl(parser.schema, parser.$refs._basePath, '#', [], parser.$refs, options);\n}\nfunction crawl(obj, path, pathFromRoot, parents, $refs, options) {\n var isCircular = false;\n if (obj && typeof obj === 'object') {\n parents.push(obj);\n Object.keys(obj).forEach(function(key) {\n var keyPath = Pointer.join(path, key);\n var keyPathFromRoot = Pointer.join(pathFromRoot, key);\n var value = obj[key];\n var circular = false;\n if ($Ref.isAllowed$Ref(value, options)) {\n var dereferenced = dereference$Ref(value, keyPath, keyPathFromRoot, parents, $refs, options);\n circular = dereferenced.circular;\n obj[key] = dereferenced.value;\n } else {\n if (parents.indexOf(value) === -1) {\n circular = crawl(value, keyPath, keyPathFromRoot, parents, $refs, options);\n } else {\n circular = foundCircularReference(keyPath, $refs, options);\n }\n }\n isCircular = isCircular || circular;\n });\n parents.pop();\n }\n return isCircular;\n}\nfunction dereference$Ref($ref, path, pathFromRoot, parents, $refs, options) {\n util.debug('Dereferencing $ref pointer \"%s\" at %s', $ref.$ref, path);\n var $refPath = url.resolve(path, $ref.$ref);\n var pointer = $refs._resolve($refPath, options);\n var directCircular = pointer.circular;\n var circular = directCircular || parents.indexOf(pointer.value) !== -1;\n circular && foundCircularReference(path, $refs, options);\n var dereferencedValue = util.dereference($ref, pointer.value);\n if (!circular) {\n circular = crawl(dereferencedValue, pointer.path, pathFromRoot, parents, $refs, options);\n }\n if (circular && !directCircular && options.$refs.circular === 'ignore') {\n dereferencedValue = $ref;\n }\n if (directCircular) {\n dereferencedValue.$ref = pathFromRoot;\n }\n return {\n circular: circular,\n value: dereferencedValue\n };\n}\nfunction foundCircularReference(keyPath, $refs, options) {\n $refs.circular = true;\n if (!options.$refs.circular) {\n throw ono.reference('Circular $ref pointer found at %s', keyPath);\n }\n return true;\n}\n","/* */ \n'use strict';\nvar validateSchema = require('./validate-schema'),\n validateSpec = require('./validate-spec'),\n util = require('./util'),\n Options = require('./options'),\n Promise = require('./promise'),\n maybe = require('call-me-maybe'),\n ono = require('ono'),\n $RefParser = require('json-schema-ref-parser'),\n dereference = require('json-schema-ref-parser/lib/dereference');\nmodule.exports = SwaggerParser;\nfunction SwaggerParser() {\n $RefParser.apply(this, arguments);\n}\nutil.inherits(SwaggerParser, $RefParser);\nSwaggerParser.YAML = $RefParser.YAML;\nSwaggerParser.parse = $RefParser.parse;\nSwaggerParser.resolve = $RefParser.resolve;\nSwaggerParser.bundle = $RefParser.bundle;\nSwaggerParser.dereference = $RefParser.dereference;\nObject.defineProperty(SwaggerParser.prototype, 'api', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.schema;\n }\n});\nSwaggerParser.prototype.parse = function(api, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = undefined;\n }\n options = new Options(options);\n var apiParam = api;\n return $RefParser.prototype.parse.call(this, api, options).then(function(schema) {\n var supportedSwaggerVersions = ['2.0'];\n if (schema.swagger === undefined || schema.info === undefined || schema.paths === undefined) {\n throw ono.syntax('%s is not a valid Swagger API definition', apiParam);\n } else if (typeof schema.swagger === 'number') {\n throw ono.syntax('Swagger version number must be a string (e.g. \"2.0\") not a number.');\n } else if (typeof schema.info.version === 'number') {\n throw ono.syntax('API version number must be a string (e.g. \"1.0.0\") not a number.');\n } else if (supportedSwaggerVersions.indexOf(schema.swagger) === -1) {\n throw ono.syntax('Unsupported Swagger version: %d. Swagger Parser only supports version %s', schema.swagger, supportedSwaggerVersions.join(', '));\n }\n return maybe(callback, Promise.resolve(schema));\n }).catch(function(err) {\n return maybe(callback, Promise.reject(err));\n });\n};\nSwaggerParser.validate = function(api, options, callback) {\n var Class = this;\n return new Class().validate(api, options, callback);\n};\nSwaggerParser.prototype.validate = function(api, options, callback) {\n if (typeof options === 'function') {\n callback = options;\n options = undefined;\n }\n options = new Options(options);\n var me = this;\n var circular$RefOption = options.$refs.circular;\n options.validate.schema && (options.$refs.circular = 'ignore');\n return this.dereference(api, options).then(function() {\n options.$refs.circular = circular$RefOption;\n if (options.validate.schema) {\n validateSchema(me.api);\n if (me.$refs.circular) {\n if (circular$RefOption === true) {\n dereference(me, options);\n } else if (circular$RefOption === false) {\n throw ono.reference('The API contains circular references');\n }\n }\n }\n if (options.validate.spec) {\n validateSpec(me.api);\n }\n return maybe(callback, Promise.resolve(me.schema));\n }).catch(function(err) {\n return maybe(callback, Promise.reject(err));\n });\n};\n","module.exports = require(\"npm:swagger-parser@3.4.0/lib/index.js\");","/* */ \n\"format cjs\";\n","/* */ \nvar toInteger = require('./$.to-integer'),\n defined = require('./$.defined');\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,\n b;\n if (i < 0 || i >= l)\n 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 ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","/* */ \n'use strict';\nvar $at = require('./$.string-at')(true);\nrequire('./$.iter-define')(String, 'String', function(iterated) {\n this._t = String(iterated);\n this._i = 0;\n}, function() {\n var O = this._t,\n index = this._i,\n point;\n if (index >= O.length)\n return {\n value: undefined,\n done: true\n };\n point = $at(O, index);\n this._i += point.length;\n return {\n value: point,\n done: false\n };\n});\n","/* */ \nmodule.exports = function(){ /* empty */ };","/* */ \n'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables'),\n step = require('./$.iter-step'),\n Iterators = require('./$.iterators'),\n toIObject = require('./$.to-iobject');\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind) {\n this._t = toIObject(iterated);\n this._i = 0;\n this._k = kind;\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')\n return step(0, index);\n if (kind == 'values')\n return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\nIterators.Arguments = Iterators.Array;\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","/* */ \nrequire('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n","/* */ \nmodule.exports = true;","/* */ \n'use strict';\nvar $ = require('./$'),\n descriptor = require('./$.property-desc'),\n setToStringTag = require('./$.set-to-string-tag'),\n IteratorPrototype = {};\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function() {\n 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'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 getProto = require('./$').getProto,\n ITERATOR = require('./$.wks')('iterator'),\n BUGGY = !([].keys && 'next' in [].keys()),\n FF_ITERATOR = '@@iterator',\n KEYS = 'keys',\n VALUES = 'values';\nvar returnThis = function() {\n 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)\n return proto[kind];\n switch (kind) {\n case KEYS:\n return function keys() {\n return new Constructor(this, kind);\n };\n case VALUES:\n return function values() {\n return new Constructor(this, kind);\n };\n }\n return function entries() {\n return new Constructor(this, kind);\n };\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 methods,\n key;\n if ($native) {\n var IteratorPrototype = getProto($default.call(new Base));\n setToStringTag(IteratorPrototype, TAG, true);\n if (!LIBRARY && has(proto, FF_ITERATOR))\n hide(IteratorPrototype, ITERATOR, returnThis);\n if (DEF_VALUES && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() {\n return $native.call(this);\n };\n }\n }\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\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: !DEF_VALUES ? $default : getMethod('entries')\n };\n if (FORCED)\n for (key in methods) {\n if (!(key in proto))\n redefine(proto, key, methods[key]);\n }\n else\n $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","/* */ \nmodule.exports = function(done, value){\n return {value: value, done: !!done};\n};","/* */ \n'use strict';\nvar core = require('./$.core'),\n $ = require('./$'),\n DESCRIPTORS = require('./$.descriptors'),\n SPECIES = require('./$.wks')('species');\nmodule.exports = function(KEY) {\n var C = core[KEY];\n if (DESCRIPTORS && C && !C[SPECIES])\n $.setDesc(C, SPECIES, {\n configurable: true,\n get: function() {\n return this;\n }\n });\n};\n","/* */ \n'use strict';\nvar $ = require('./$'),\n hide = require('./$.hide'),\n redefineAll = require('./$.redefine-all'),\n ctx = require('./$.ctx'),\n strictNew = require('./$.strict-new'),\n defined = require('./$.defined'),\n forOf = require('./$.for-of'),\n $iterDefine = require('./$.iter-define'),\n step = require('./$.iter-step'),\n ID = require('./$.uid')('id'),\n $has = require('./$.has'),\n isObject = require('./$.is-object'),\n setSpecies = require('./$.set-species'),\n DESCRIPTORS = require('./$.descriptors'),\n isExtensible = Object.isExtensible || isObject,\n SIZE = DESCRIPTORS ? '_s' : 'size',\n id = 0;\nvar fastKey = function(it, create) {\n if (!isObject(it))\n return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!$has(it, ID)) {\n if (!isExtensible(it))\n return 'F';\n if (!create)\n return 'E';\n hide(it, ID, ++id);\n }\n return 'O' + it[ID];\n};\nvar getEntry = function(that, key) {\n var index = fastKey(key),\n entry;\n if (index !== 'F')\n return that._i[index];\n for (entry = that._f; entry; entry = entry.n) {\n if (entry.k == key)\n return entry;\n }\n};\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function(that, iterable) {\n strictNew(that, C, NAME);\n that._i = $.create(null);\n that._f = undefined;\n that._l = undefined;\n that[SIZE] = 0;\n if (iterable != undefined)\n forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n clear: function clear() {\n for (var that = this,\n data = that._i,\n entry = that._f; entry; entry = entry.n) {\n entry.r = true;\n if (entry.p)\n entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\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)\n prev.n = next;\n if (next)\n next.p = prev;\n if (that._f == entry)\n that._f = next;\n if (that._l == entry)\n that._l = prev;\n that[SIZE]--;\n }\n return !!entry;\n },\n forEach: function forEach(callbackfn) {\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 while (entry && entry.r)\n entry = entry.p;\n }\n },\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n if (DESCRIPTORS)\n $.setDesc(C.prototype, 'size', {get: function() {\n return defined(this[SIZE]);\n }});\n return C;\n },\n def: function(that, key, value) {\n var entry = getEntry(that, key),\n prev,\n index;\n if (entry) {\n entry.v = value;\n } else {\n that._l = entry = {\n i: index = fastKey(key, true),\n k: key,\n v: value,\n p: prev = that._l,\n n: undefined,\n r: false\n };\n if (!that._f)\n that._f = entry;\n if (prev)\n prev.n = entry;\n that[SIZE]++;\n if (index !== 'F')\n that._i[index] = entry;\n }\n return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP) {\n $iterDefine(C, NAME, function(iterated, kind) {\n this._t = iterated;\n this._k = kind;\n this._l = undefined;\n }, function() {\n var that = this,\n kind = that._k,\n entry = that._l;\n while (entry && entry.r)\n entry = entry.p;\n if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {\n that._t = undefined;\n return step(1);\n }\n if (kind == 'keys')\n return step(0, entry.k);\n if (kind == 'values')\n return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n setSpecies(NAME);\n }\n};\n","/* */ \nmodule.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};","/* */ \nvar $ = require('./$'),\n createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value) {\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value) {\n object[key] = value;\n return object;\n};\n","/* */ \nmodule.exports = require('./$.hide');\n","/* */ \nvar redefine = require('./$.redefine');\nmodule.exports = function(target, src) {\n for (var key in src)\n redefine(target, key, src[key]);\n return target;\n};\n","/* */ \nmodule.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};","/* */ \nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};","/* */ \nvar def = require('./$').setDesc,\n has = require('./$.has'),\n TAG = require('./$.wks')('toStringTag');\nmodule.exports = function(it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG))\n def(it, TAG, {\n configurable: true,\n value: tag\n });\n};\n","/* */ \nmodule.exports = !require('./$.fails')(function() {\n return Object.defineProperty({}, 'a', {get: function() {\n return 7;\n }}).a != 7;\n});\n","/* */ \n'use strict';\nvar $ = require('./$'),\n global = require('./$.global'),\n $export = require('./$.export'),\n fails = require('./$.fails'),\n hide = require('./$.hide'),\n redefineAll = require('./$.redefine-all'),\n forOf = require('./$.for-of'),\n strictNew = require('./$.strict-new'),\n isObject = require('./$.is-object'),\n setToStringTag = require('./$.set-to-string-tag'),\n DESCRIPTORS = require('./$.descriptors');\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 if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function() {\n new C().entries().next();\n }))) {\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable) {\n strictNew(target, C, NAME);\n target._c = new Base;\n if (iterable != undefined)\n forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','), function(KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in proto && !(IS_WEAK && KEY == 'clear'))\n hide(C.prototype, KEY, function(a, b) {\n if (!IS_ADDER && IS_WEAK && !isObject(a))\n return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if ('size' in proto)\n $.setDesc(C.prototype, 'size', {get: function() {\n return this._c.size;\n }});\n }\n setToStringTag(C, NAME);\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n if (!IS_WEAK)\n common.setStrong(C, NAME, IS_MAP);\n return C;\n};\n","/* */ \n'use strict';\nvar strong = require('./$.collection-strong');\nrequire('./$.collection')('Set', function(get) {\n return function Set() {\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n}, {add: function add(value) {\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }}, strong);\n","/* */ \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 } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined)\n anObject(ret.call(iterator));\n throw e;\n }\n};\n","/* */ \nvar Iterators = require('./$.iterators'),\n ITERATOR = require('./$.wks')('iterator'),\n ArrayProto = Array.prototype;\nmodule.exports = function(it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\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};","/* */ \nvar toInteger = require('./$.to-integer'),\n min = Math.min;\nmodule.exports = function(it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0;\n};\n","/* */ \nmodule.exports = {};","/* */ \nvar classof = require('./$.classof'),\n ITERATOR = require('./$.wks')('iterator'),\n Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it) {\n if (it != undefined)\n return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];\n};\n","/* */ \nvar 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');\nmodule.exports = function(iterable, entries, fn, that) {\n var iterFn = getIterFn(iterable),\n f = ctx(fn, that, entries ? 2 : 1),\n index = 0,\n length,\n step,\n iterator;\n if (typeof iterFn != 'function')\n throw TypeError(iterable + ' is not iterable!');\n if (isArrayIter(iterFn))\n for (length = toLength(iterable.length); length > index; index++) {\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n }\n else\n for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) {\n call(iterator, f, step.value, entries);\n }\n};\n","/* */ \nvar 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","/* */ \nvar id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};","/* */ \nvar store = require('./$.shared')('wks'),\n uid = require('./$.uid'),\n Symbol = require('./$.global').Symbol;\nmodule.exports = function(name) {\n return store[name] || (store[name] = Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n","/* */ \nvar cof = require('./$.cof'),\n TAG = require('./$.wks')('toStringTag'),\n ARG = cof(function() {\n return arguments;\n }()) == 'Arguments';\nmodule.exports = function(it) {\n var O,\n T,\n B;\n return it === undefined ? 'Undefined' : it === null ? 'Null' : typeof(T = (O = Object(it))[TAG]) == 'string' ? T : ARG ? cof(O) : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","/* */ \nvar forOf = require('./$.for-of'),\n classof = require('./$.classof');\nmodule.exports = function(NAME) {\n return function toJSON() {\n if (classof(this) != NAME)\n throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n","/* */ \nvar $export = require('./$.export');\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n","/* */ \nrequire('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };","'use strict';\n\nexport var methods = new Set(['get', 'put', 'post', 'delete', 'options', 'head', 'patch']);\n","'use strict';\nimport SwaggerParser from 'swagger-parser';\nimport JsonPointer from './JsonPointer';\nimport {methods as swaggerMethods} from './swagger-defs';\n\nexport default class SchemaManager {\n constructor() {\n if (SchemaManager.prototype._instance) {\n return SchemaManager.prototype._instance;\n }\n\n SchemaManager.prototype._instance = this;\n\n this._schema = {};\n }\n\n static instance() {\n return new SchemaManager();\n }\n\n load(url) {\n let promise = new Promise((resolve, reject) => {\n this._schema = {};\n\n SwaggerParser.bundle(url, {http: {withCredentials: false}})\n .then(\n (schema) => {\n this._schema = schema;\n resolve(this._schema);\n this.init();\n },\n (err) => reject(err)\n );\n });\n\n return promise;\n }\n\n /* calculate common used values */\n init() {\n this.apiUrl = this._schema.schemes[0] + '://' + this._schema.host + this._schema.basePath;\n if (this.apiUrl.endsWith('/')) {\n this.apiUrl = this.apiUrl.substr(0, this.apiUrl.length - 1);\n }\n }\n\n get schema() {\n // TODO: consider returning promise\n return this._schema;\n }\n\n byPointer(pointer) {\n let res = null;\n try {\n // TODO: remove decodeURIComponent after this issue is fixed: https://github.com/BigstickCarpet/swagger-parser/issues/31\n res = JsonPointer.get(this._schema, decodeURIComponent(pointer));\n } catch(e) {/*skip*/ }\n return res;\n }\n\n resolveRefs(obj) {\n Object.keys(obj).forEach(key => {\n if (obj[key].$ref) {\n let resolved = this.byPointer(obj[key].$ref);\n resolved._pointer = obj[key].$ref;\n obj[key] = resolved;\n }\n });\n return obj;\n }\n\n getMethodParams(methodPtr, resolveRefs) {\n /* inject JsonPointer into array elements */\n function injectPointers(array, root) {\n if (!Array.isArray(array)) {\n throw new Error(`parameters must be an array. Got ${typeof array} at ${root}`);\n }\n return array.map((element, idx) => {\n element._pointer = JsonPointer.join(root, idx);\n return element;\n });\n }\n\n // accept pointer directly to parameters as well\n if (JsonPointer.baseName(methodPtr) === 'parameters') {\n methodPtr = JsonPointer.dirName(methodPtr);\n }\n\n //get path params\n let pathParamsPtr = JsonPointer.join(JsonPointer.dirName(methodPtr), ['parameters']);\n let pathParams = this.byPointer(pathParamsPtr) || [];\n\n let methodParamsPtr = JsonPointer.join(methodPtr, ['parameters']);\n let methodParams = this.byPointer(methodParamsPtr) || [];\n pathParams = injectPointers(pathParams, pathParamsPtr);\n methodParams = injectPointers(methodParams, methodParamsPtr);\n\n if (resolveRefs) {\n methodParams = this.resolveRefs(methodParams);\n pathParams = this.resolveRefs(pathParams);\n }\n return methodParams.concat(pathParams);\n }\n\n getTagsMap() {\n let tags = this._schema.tags || [];\n var tagsMap = {};\n for (let tag of tags) {\n tagsMap[tag.name] = {\n description: tag.description,\n 'x-traitTag': tag['x-traitTag'] || false\n };\n }\n\n return tagsMap;\n }\n\n /* returns ES6 Map */\n buildMenuTree() {\n let tag2MethodMapping = new Map();\n\n let definedTags = this._schema.tags || [];\n // add tags into map to preserve order\n for (let tag of definedTags) {\n tag2MethodMapping.set(tag.name, {\n 'description': tag.description,\n 'x-traitTag': tag['x-traitTag'],\n 'methods': []\n });\n }\n\n let paths = this._schema.paths;\n for (let path of Object.keys(paths)) {\n let methods = Object.keys(paths[path]).filter((k) => swaggerMethods.has(k));\n for (let method of methods) {\n let methodInfo = paths[path][method];\n let tags = methodInfo.tags;\n\n //TODO: mb need to do something cleverer\n if (!tags || !tags.length) {\n tags = ['[Other]'];\n }\n let methodPointer = JsonPointer.compile(['paths', path, method]);\n let methodSummary = methodInfo.summary;\n for (let tag of tags) {\n let tagDetails = tag2MethodMapping.get(tag);\n if (!tagDetails) {\n tagDetails = {};\n tag2MethodMapping.set(tag, tagDetails);\n }\n if (tagDetails['x-traitTag']) continue;\n if (!tagDetails.methods) tagDetails.methods = [];\n tagDetails.methods.push({\n pointer: methodPointer,\n summary: methodSummary,\n operationId: methodInfo.operationId\n });\n }\n }\n }\n return tag2MethodMapping;\n }\n\n findDerivedDefinitions(defPointer) {\n let definition = this.byPointer(defPointer);\n if (!definition) throw new Error(`Can't load schema at ${defPointer}`);\n if (!definition.discriminator) return [];\n\n let globalDefs = this._schema.definitions || {};\n let res = [];\n for (let defName of Object.keys(globalDefs)) {\n if (!globalDefs[defName].allOf) continue;\n\n let subTypes = globalDefs[defName].allOf;\n let idx = subTypes.findIndex((subType) => {\n if (subType.$ref === defPointer) return true;\n return false;\n });\n if (idx < 0) continue;\n\n res.push({name: defName, $ref: `#/definitions/${defName}`});\n }\n return res;\n }\n\n}\n","/* */ \nvar toObject = require('./$.to-object');\nrequire('./$.object-sap')('keys', function($keys) {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","/* */ \nrequire('../../modules/es6.object.keys');\nmodule.exports = require('../../modules/$.core').Object.keys;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/keys\"), __esModule: true };","\n/* **********************************************\n Begin prism-core.js\n********************************************** */\n\nvar _self = (typeof window !== 'undefined')\n\t? window // if in browser\n\t: (\n\t\t(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)\n\t\t? self // if in worker\n\t\t: {} // if in node js\n\t);\n\n/**\n * Prism: Lightweight, robust, elegant syntax highlighting\n * MIT license http://www.opensource.org/licenses/mit-license.php/\n * @author Lea Verou http://lea.verou.me\n */\n\nvar Prism = (function(){\n\n// Private helper vars\nvar lang = /\\blang(?:uage)?-(?!\\*)(\\w+)\\b/i;\n\nvar _ = _self.Prism = {\n\tutil: {\n\t\tencode: function (tokens) {\n\t\t\tif (tokens instanceof Token) {\n\t\t\t\treturn new Token(tokens.type, _.util.encode(tokens.content), tokens.alias);\n\t\t\t} else if (_.util.type(tokens) === 'Array') {\n\t\t\t\treturn tokens.map(_.util.encode);\n\t\t\t} else {\n\t\t\t\treturn tokens.replace(/&/g, '&').replace(/</g, '<').replace(/\\u00a0/g, ' ');\n\t\t\t}\n\t\t},\n\n\t\ttype: function (o) {\n\t\t\treturn Object.prototype.toString.call(o).match(/\\[object (\\w+)\\]/)[1];\n\t\t},\n\n\t\t// Deep clone a language definition (e.g. to extend it)\n\t\tclone: function (o) {\n\t\t\tvar type = _.util.type(o);\n\n\t\t\tswitch (type) {\n\t\t\t\tcase 'Object':\n\t\t\t\t\tvar clone = {};\n\n\t\t\t\t\tfor (var key in o) {\n\t\t\t\t\t\tif (o.hasOwnProperty(key)) {\n\t\t\t\t\t\t\tclone[key] = _.util.clone(o[key]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn clone;\n\n\t\t\t\tcase 'Array':\n\t\t\t\t\t// Check for existence for IE8\n\t\t\t\t\treturn o.map && o.map(function(v) { return _.util.clone(v); });\n\t\t\t}\n\n\t\t\treturn o;\n\t\t}\n\t},\n\n\tlanguages: {\n\t\textend: function (id, redef) {\n\t\t\tvar lang = _.util.clone(_.languages[id]);\n\n\t\t\tfor (var key in redef) {\n\t\t\t\tlang[key] = redef[key];\n\t\t\t}\n\n\t\t\treturn lang;\n\t\t},\n\n\t\t/**\n\t\t * Insert a token before another token in a language literal\n\t\t * As this needs to recreate the object (we cannot actually insert before keys in object literals),\n\t\t * we cannot just provide an object, we need anobject and a key.\n\t\t * @param inside The key (or language id) of the parent\n\t\t * @param before The key to insert before. If not provided, the function appends instead.\n\t\t * @param insert Object with the key/value pairs to insert\n\t\t * @param root The object that contains `inside`. If equal to Prism.languages, it can be omitted.\n\t\t */\n\t\tinsertBefore: function (inside, before, insert, root) {\n\t\t\troot = root || _.languages;\n\t\t\tvar grammar = root[inside];\n\t\t\t\n\t\t\tif (arguments.length == 2) {\n\t\t\t\tinsert = arguments[1];\n\t\t\t\t\n\t\t\t\tfor (var newToken in insert) {\n\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\tgrammar[newToken] = insert[newToken];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn grammar;\n\t\t\t}\n\t\t\t\n\t\t\tvar ret = {};\n\n\t\t\tfor (var token in grammar) {\n\n\t\t\t\tif (grammar.hasOwnProperty(token)) {\n\n\t\t\t\t\tif (token == before) {\n\n\t\t\t\t\t\tfor (var newToken in insert) {\n\n\t\t\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\t\t\tret[newToken] = insert[newToken];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tret[token] = grammar[token];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Update references in other language definitions\n\t\t\t_.languages.DFS(_.languages, function(key, value) {\n\t\t\t\tif (value === root[inside] && key != inside) {\n\t\t\t\t\tthis[key] = ret;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn root[inside] = ret;\n\t\t},\n\n\t\t// Traverse a language definition with Depth First Search\n\t\tDFS: function(o, callback, type) {\n\t\t\tfor (var i in o) {\n\t\t\t\tif (o.hasOwnProperty(i)) {\n\t\t\t\t\tcallback.call(o, i, o[i], type || i);\n\n\t\t\t\t\tif (_.util.type(o[i]) === 'Object') {\n\t\t\t\t\t\t_.languages.DFS(o[i], callback);\n\t\t\t\t\t}\n\t\t\t\t\telse if (_.util.type(o[i]) === 'Array') {\n\t\t\t\t\t\t_.languages.DFS(o[i], callback, i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\tplugins: {},\n\t\n\thighlightAll: function(async, callback) {\n\t\tvar elements = document.querySelectorAll('code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code');\n\n\t\tfor (var i=0, element; element = elements[i++];) {\n\t\t\t_.highlightElement(element, async === true, callback);\n\t\t}\n\t},\n\n\thighlightElement: function(element, async, callback) {\n\t\t// Find language\n\t\tvar language, grammar, parent = element;\n\n\t\twhile (parent && !lang.test(parent.className)) {\n\t\t\tparent = parent.parentNode;\n\t\t}\n\n\t\tif (parent) {\n\t\t\tlanguage = (parent.className.match(lang) || [,''])[1];\n\t\t\tgrammar = _.languages[language];\n\t\t}\n\n\t\t// Set language on the element, if not present\n\t\telement.className = element.className.replace(lang, '').replace(/\\s+/g, ' ') + ' language-' + language;\n\n\t\t// Set language on the parent, for styling\n\t\tparent = element.parentNode;\n\n\t\tif (/pre/i.test(parent.nodeName)) {\n\t\t\tparent.className = parent.className.replace(lang, '').replace(/\\s+/g, ' ') + ' language-' + language;\n\t\t}\n\n\t\tvar code = element.textContent;\n\n\t\tvar env = {\n\t\t\telement: element,\n\t\t\tlanguage: language,\n\t\t\tgrammar: grammar,\n\t\t\tcode: code\n\t\t};\n\n\t\tif (!code || !grammar) {\n\t\t\t_.hooks.run('complete', env);\n\t\t\treturn;\n\t\t}\n\n\t\t_.hooks.run('before-highlight', env);\n\n\t\tif (async && _self.Worker) {\n\t\t\tvar worker = new Worker(_.filename);\n\n\t\t\tworker.onmessage = function(evt) {\n\t\t\t\tenv.highlightedCode = evt.data;\n\n\t\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t};\n\n\t\t\tworker.postMessage(JSON.stringify({\n\t\t\t\tlanguage: env.language,\n\t\t\t\tcode: env.code,\n\t\t\t\timmediateClose: true\n\t\t\t}));\n\t\t}\n\t\telse {\n\t\t\tenv.highlightedCode = _.highlight(env.code, env.grammar, env.language);\n\n\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\tcallback && callback.call(element);\n\n\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t_.hooks.run('complete', env);\n\t\t}\n\t},\n\n\thighlight: function (text, grammar, language) {\n\t\tvar tokens = _.tokenize(text, grammar);\n\t\treturn Token.stringify(_.util.encode(tokens), language);\n\t},\n\n\ttokenize: function(text, grammar, language) {\n\t\tvar Token = _.Token;\n\n\t\tvar strarr = [text];\n\n\t\tvar rest = grammar.rest;\n\n\t\tif (rest) {\n\t\t\tfor (var token in rest) {\n\t\t\t\tgrammar[token] = rest[token];\n\t\t\t}\n\n\t\t\tdelete grammar.rest;\n\t\t}\n\n\t\ttokenloop: for (var token in grammar) {\n\t\t\tif(!grammar.hasOwnProperty(token) || !grammar[token]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar patterns = grammar[token];\n\t\t\tpatterns = (_.util.type(patterns) === \"Array\") ? patterns : [patterns];\n\n\t\t\tfor (var j = 0; j < patterns.length; ++j) {\n\t\t\t\tvar pattern = patterns[j],\n\t\t\t\t\tinside = pattern.inside,\n\t\t\t\t\tlookbehind = !!pattern.lookbehind,\n\t\t\t\t\tlookbehindLength = 0,\n\t\t\t\t\talias = pattern.alias;\n\n\t\t\t\tpattern = pattern.pattern || pattern;\n\n\t\t\t\tfor (var i=0; i<strarr.length; i++) { // Don’t cache length as it changes during the loop\n\n\t\t\t\t\tvar str = strarr[i];\n\n\t\t\t\t\tif (strarr.length > text.length) {\n\t\t\t\t\t\t// Something went terribly wrong, ABORT, ABORT!\n\t\t\t\t\t\tbreak tokenloop;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (str instanceof Token) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tpattern.lastIndex = 0;\n\n\t\t\t\t\tvar match = pattern.exec(str);\n\n\t\t\t\t\tif (match) {\n\t\t\t\t\t\tif(lookbehind) {\n\t\t\t\t\t\t\tlookbehindLength = match[1].length;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar from = match.index - 1 + lookbehindLength,\n\t\t\t\t\t\t\tmatch = match[0].slice(lookbehindLength),\n\t\t\t\t\t\t\tlen = match.length,\n\t\t\t\t\t\t\tto = from + len,\n\t\t\t\t\t\t\tbefore = str.slice(0, from + 1),\n\t\t\t\t\t\t\tafter = str.slice(to + 1);\n\n\t\t\t\t\t\tvar args = [i, 1];\n\n\t\t\t\t\t\tif (before) {\n\t\t\t\t\t\t\targs.push(before);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar wrapped = new Token(token, inside? _.tokenize(match, inside) : match, alias);\n\n\t\t\t\t\t\targs.push(wrapped);\n\n\t\t\t\t\t\tif (after) {\n\t\t\t\t\t\t\targs.push(after);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tArray.prototype.splice.apply(strarr, args);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn strarr;\n\t},\n\n\thooks: {\n\t\tall: {},\n\n\t\tadd: function (name, callback) {\n\t\t\tvar hooks = _.hooks.all;\n\n\t\t\thooks[name] = hooks[name] || [];\n\n\t\t\thooks[name].push(callback);\n\t\t},\n\n\t\trun: function (name, env) {\n\t\t\tvar callbacks = _.hooks.all[name];\n\n\t\t\tif (!callbacks || !callbacks.length) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i=0, callback; callback = callbacks[i++];) {\n\t\t\t\tcallback(env);\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar Token = _.Token = function(type, content, alias) {\n\tthis.type = type;\n\tthis.content = content;\n\tthis.alias = alias;\n};\n\nToken.stringify = function(o, language, parent) {\n\tif (typeof o == 'string') {\n\t\treturn o;\n\t}\n\n\tif (_.util.type(o) === 'Array') {\n\t\treturn o.map(function(element) {\n\t\t\treturn Token.stringify(element, language, o);\n\t\t}).join('');\n\t}\n\n\tvar env = {\n\t\ttype: o.type,\n\t\tcontent: Token.stringify(o.content, language, parent),\n\t\ttag: 'span',\n\t\tclasses: ['token', o.type],\n\t\tattributes: {},\n\t\tlanguage: language,\n\t\tparent: parent\n\t};\n\n\tif (env.type == 'comment') {\n\t\tenv.attributes['spellcheck'] = 'true';\n\t}\n\n\tif (o.alias) {\n\t\tvar aliases = _.util.type(o.alias) === 'Array' ? o.alias : [o.alias];\n\t\tArray.prototype.push.apply(env.classes, aliases);\n\t}\n\n\t_.hooks.run('wrap', env);\n\n\tvar attributes = '';\n\n\tfor (var name in env.attributes) {\n\t\tattributes += (attributes ? ' ' : '') + name + '=\"' + (env.attributes[name] || '') + '\"';\n\t}\n\n\treturn '<' + env.tag + ' class=\"' + env.classes.join(' ') + '\" ' + attributes + '>' + env.content + '</' + env.tag + '>';\n\n};\n\nif (!_self.document) {\n\tif (!_self.addEventListener) {\n\t\t// in Node.js\n\t\treturn _self.Prism;\n\t}\n \t// In worker\n\t_self.addEventListener('message', function(evt) {\n\t\tvar message = JSON.parse(evt.data),\n\t\t lang = message.language,\n\t\t code = message.code,\n\t\t immediateClose = message.immediateClose;\n\n\t\t_self.postMessage(_.highlight(code, _.languages[lang], lang));\n\t\tif (immediateClose) {\n\t\t\t_self.close();\n\t\t}\n\t}, false);\n\n\treturn _self.Prism;\n}\n\n// Get current script and highlight\nvar script = document.getElementsByTagName('script');\n\nscript = script[script.length - 1];\n\nif (script) {\n\t_.filename = script.src;\n\n\tif (document.addEventListener && !script.hasAttribute('data-manual')) {\n\t\tdocument.addEventListener('DOMContentLoaded', _.highlightAll);\n\t}\n}\n\nreturn _self.Prism;\n\n})();\n\nif (typeof module !== 'undefined' && module.exports) {\n\tmodule.exports = Prism;\n}\n\n// hack for components to work correctly in node.js\nif (typeof global !== 'undefined') {\n\tglobal.Prism = Prism;\n}\n\n\n/* **********************************************\n Begin prism-markup.js\n********************************************** */\n\nPrism.languages.markup = {\n\t'comment': /<!--[\\w\\W]*?-->/,\n\t'prolog': /<\\?[\\w\\W]+?\\?>/,\n\t'doctype': /<!DOCTYPE[\\w\\W]+?>/,\n\t'cdata': /<!\\[CDATA\\[[\\w\\W]*?]]>/i,\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=.$<]+(?:\\s+[^\\s>\\/=]+(?:=(?:(\"|')(?:\\\\\\1|\\\\?(?!\\1)[\\w\\W])*\\1|[^\\s'\">=]+))?)*\\s*\\/?>/i,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/i,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=(?:('|\")[\\w\\W]*?(\\1)|[^\\s>]+)/i,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /[=>\"']/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': /&#?[\\da-z]{1,8};/i\n};\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function(env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&/, '&');\n\t}\n});\n\nPrism.languages.xml = Prism.languages.markup;\nPrism.languages.html = Prism.languages.markup;\nPrism.languages.mathml = Prism.languages.markup;\nPrism.languages.svg = Prism.languages.markup;\n\n\n/* **********************************************\n Begin prism-css.js\n********************************************** */\n\nPrism.languages.css = {\n\t'comment': /\\/\\*[\\w\\W]*?\\*\\//,\n\t'atrule': {\n\t\tpattern: /@[\\w-]+?.*?(;|(?=\\s*\\{))/i,\n\t\tinside: {\n\t\t\t'rule': /@[\\w-]+/\n\t\t\t// See rest below\n\t\t}\n\t},\n\t'url': /url\\((?:([\"'])(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1|.*?)\\)/i,\n\t'selector': /[^\\{\\}\\s][^\\{\\};]*?(?=\\s*\\{)/,\n\t'string': /(\"|')(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t'property': /(\\b|\\B)[\\w-]+(?=\\s*:)/i,\n\t'important': /\\B!important\\b/i,\n\t'function': /[-a-z0-9]+(?=\\()/i,\n\t'punctuation': /[(){};:]/\n};\n\nPrism.languages.css['atrule'].inside.rest = Prism.util.clone(Prism.languages.css);\n\nif (Prism.languages.markup) {\n\tPrism.languages.insertBefore('markup', 'tag', {\n\t\t'style': {\n\t\t\tpattern: /(<style[\\w\\W]*?>)[\\w\\W]*?(?=<\\/style>)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.css,\n\t\t\talias: 'language-css'\n\t\t}\n\t});\n\t\n\tPrism.languages.insertBefore('inside', 'attr-value', {\n\t\t'style-attr': {\n\t\t\tpattern: /\\s*style=(\"|').*?\\1/i,\n\t\t\tinside: {\n\t\t\t\t'attr-name': {\n\t\t\t\t\tpattern: /^\\s*style/i,\n\t\t\t\t\tinside: Prism.languages.markup.tag.inside\n\t\t\t\t},\n\t\t\t\t'punctuation': /^\\s*=\\s*['\"]|['\"]\\s*$/,\n\t\t\t\t'attr-value': {\n\t\t\t\t\tpattern: /.+/i,\n\t\t\t\t\tinside: Prism.languages.css\n\t\t\t\t}\n\t\t\t},\n\t\t\talias: 'language-css'\n\t\t}\n\t}, Prism.languages.markup.tag);\n}\n\n/* **********************************************\n Begin prism-clike.js\n********************************************** */\n\nPrism.languages.clike = {\n\t'comment': [\n\t\t{\n\t\t\tpattern: /(^|[^\\\\])\\/\\*[\\w\\W]*?\\*\\//,\n\t\t\tlookbehind: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^\\\\:])\\/\\/.*/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t'string': /([\"'])(\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t'class-name': {\n\t\tpattern: /((?:\\b(?:class|interface|extends|implements|trait|instanceof|new)\\s+)|(?:catch\\s+\\())[a-z0-9_\\.\\\\]+/i,\n\t\tlookbehind: true,\n\t\tinside: {\n\t\t\tpunctuation: /(\\.|\\\\)/\n\t\t}\n\t},\n\t'keyword': /\\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\\b/,\n\t'boolean': /\\b(true|false)\\b/,\n\t'function': /[a-z0-9_]+(?=\\()/i,\n\t'number': /\\b-?(?:0x[\\da-f]+|\\d*\\.?\\d+(?:e[+-]?\\d+)?)\\b/i,\n\t'operator': /--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*|\\/|~|\\^|%/,\n\t'punctuation': /[{}[\\];(),.:]/\n};\n\n\n/* **********************************************\n Begin prism-javascript.js\n********************************************** */\n\nPrism.languages.javascript = Prism.languages.extend('clike', {\n\t'keyword': /\\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\\b/,\n\t'number': /\\b-?(0x[\\dA-Fa-f]+|0b[01]+|0o[0-7]+|\\d*\\.?\\d+([Ee][+-]?\\d+)?|NaN|Infinity)\\b/,\n\t// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)\n\t'function': /[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*(?=\\()/i\n});\n\nPrism.languages.insertBefore('javascript', 'keyword', {\n\t'regex': {\n\t\tpattern: /(^|[^/])\\/(?!\\/)(\\[.+?]|\\\\.|[^/\\\\\\r\\n])+\\/[gimyu]{0,5}(?=\\s*($|[\\r\\n,.;})]))/,\n\t\tlookbehind: true\n\t}\n});\n\nPrism.languages.insertBefore('javascript', 'class-name', {\n\t'template-string': {\n\t\tpattern: /`(?:\\\\`|\\\\?[^`])*`/,\n\t\tinside: {\n\t\t\t'interpolation': {\n\t\t\t\tpattern: /\\$\\{[^}]+\\}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation-punctuation': {\n\t\t\t\t\t\tpattern: /^\\$\\{|\\}$/,\n\t\t\t\t\t\talias: 'punctuation'\n\t\t\t\t\t},\n\t\t\t\t\trest: Prism.languages.javascript\n\t\t\t\t}\n\t\t\t},\n\t\t\t'string': /[\\s\\S]+/\n\t\t}\n\t}\n});\n\nif (Prism.languages.markup) {\n\tPrism.languages.insertBefore('markup', 'tag', {\n\t\t'script': {\n\t\t\tpattern: /(<script[\\w\\W]*?>)[\\w\\W]*?(?=<\\/script>)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript,\n\t\t\talias: 'language-javascript'\n\t\t}\n\t});\n}\n\nPrism.languages.js = Prism.languages.javascript;\n\n/* **********************************************\n Begin prism-file-highlight.js\n********************************************** */\n\n(function () {\n\tif (typeof self === 'undefined' || !self.Prism || !self.document || !document.querySelector) {\n\t\treturn;\n\t}\n\n\tself.Prism.fileHighlight = function() {\n\n\t\tvar Extensions = {\n\t\t\t'js': 'javascript',\n\t\t\t'html': 'markup',\n\t\t\t'svg': 'markup',\n\t\t\t'xml': 'markup',\n\t\t\t'py': 'python',\n\t\t\t'rb': 'ruby',\n\t\t\t'ps1': 'powershell',\n\t\t\t'psm1': 'powershell'\n\t\t};\n\n\t\tif(Array.prototype.forEach) { // Check to prevent error in IE8\n\t\t\tArray.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {\n\t\t\t\tvar src = pre.getAttribute('data-src');\n\n\t\t\t\tvar language, parent = pre;\n\t\t\t\tvar lang = /\\blang(?:uage)?-(?!\\*)(\\w+)\\b/i;\n\t\t\t\twhile (parent && !lang.test(parent.className)) {\n\t\t\t\t\tparent = parent.parentNode;\n\t\t\t\t}\n\n\t\t\t\tif (parent) {\n\t\t\t\t\tlanguage = (pre.className.match(lang) || [, ''])[1];\n\t\t\t\t}\n\n\t\t\t\tif (!language) {\n\t\t\t\t\tvar extension = (src.match(/\\.(\\w+)$/) || [, ''])[1];\n\t\t\t\t\tlanguage = Extensions[extension] || extension;\n\t\t\t\t}\n\n\t\t\t\tvar code = document.createElement('code');\n\t\t\t\tcode.className = 'language-' + language;\n\n\t\t\t\tpre.textContent = '';\n\n\t\t\t\tcode.textContent = 'Loading…';\n\n\t\t\t\tpre.appendChild(code);\n\n\t\t\t\tvar xhr = new XMLHttpRequest();\n\n\t\t\t\txhr.open('GET', src, true);\n\n\t\t\t\txhr.onreadystatechange = function () {\n\t\t\t\t\tif (xhr.readyState == 4) {\n\n\t\t\t\t\t\tif (xhr.status < 400 && xhr.responseText) {\n\t\t\t\t\t\t\tcode.textContent = xhr.responseText;\n\n\t\t\t\t\t\t\tPrism.highlightElement(code);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (xhr.status >= 400) {\n\t\t\t\t\t\t\tcode.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcode.textContent = '✖ Error: File does not exist or is empty';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\txhr.send(null);\n\t\t\t});\n\t\t}\n\n\t};\n\n\tself.Prism.fileHighlight();\n\n})();\n","module.exports = require(\"npm:prismjs@1.3.0/prism.js\");","/* */ \n\"format cjs\";\nPrism.languages.actionscript = Prism.languages.extend('javascript', {\n\t'keyword': /\\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\\b/,\n\t'operator': /\\+\\+|--|(?:[+\\-*\\/%^]|&&?|\\|\\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/\n});\nPrism.languages.actionscript['class-name'].alias = 'function';\n\nif (Prism.languages.markup) {\n\tPrism.languages.insertBefore('actionscript', 'string', {\n\t\t'xml': {\n\t\t\tpattern: /(^|[^.])<\\/?\\w+(?:\\s+[^\\s>\\/=]+=(\"|')(?:\\\\\\1|\\\\?(?!\\1)[\\w\\W])*\\2)*\\s*\\/?>/,\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\trest: Prism.languages.markup\n\t\t\t}\n\t\t}\n\t});\n}","/* */ \n\"format cjs\";\nPrism.languages.c = Prism.languages.extend('clike', {\n\t'keyword': /\\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\\b/,\n\t'operator': /\\-[>-]?|\\+\\+?|!=?|<<?=?|>>?=?|==?|&&?|\\|?\\||[~^%?*\\/]/,\n\t'number': /\\b-?(?:0x[\\da-f]+|\\d*\\.?\\d+(?:e[+-]?\\d+)?)[ful]*\\b/i\n});\n\nPrism.languages.insertBefore('c', 'string', {\n\t'macro': {\n\t\t// allow for multiline macro definitions\n\t\t// spaces after the # character compile fine with gcc\n\t\tpattern: /(^\\s*)#\\s*[a-z]+([^\\r\\n\\\\]|\\\\.|\\\\(?:\\r\\n?|\\n))*/im,\n\t\tlookbehind: true,\n\t\talias: 'property',\n\t\tinside: {\n\t\t\t// highlight the path of the include statement as a string\n\t\t\t'string': {\n\t\t\t\tpattern: /(#\\s*include\\s*)(<.+?>|(\"|')(\\\\?.)+?\\3)/,\n\t\t\t\tlookbehind: true\n\t\t\t},\n\t\t\t// highlight macro directives as keywords\n\t\t\t'directive': {\n\t\t\t\tpattern: /(#\\s*)\\b(define|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\\b/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t}\n\t\t}\n\t},\n\t// highlight predefined macros as constants\n\t'constant': /\\b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|stdin|stdout|stderr)\\b/\n});\n\ndelete Prism.languages.c['class-name'];\ndelete Prism.languages.c['boolean'];\n","/* */ \n\"format cjs\";\nPrism.languages.cpp = Prism.languages.extend('c', {\n\t'keyword': /\\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\\b/,\n\t'boolean': /\\b(true|false)\\b/,\n\t'operator': /[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\\->|:{1,2}|={1,2}|\\^|~|%|&{1,2}|\\|?\\||\\?|\\*|\\/|\\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\\b/\n});\n\nPrism.languages.insertBefore('cpp', 'keyword', {\n\t'class-name': {\n\t\tpattern: /(class\\s+)[a-z0-9_]+/i,\n\t\tlookbehind: true\n\t}\n});","/* */ \n\"format cjs\";\nPrism.languages.csharp = Prism.languages.extend('clike', {\n\t'keyword': /\\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\\b/,\n\t'string': [\n\t\t/@(\"|')(\\1\\1|\\\\\\1|\\\\?(?!\\1)[\\s\\S])*\\1/,\n\t\t/(\"|')(\\\\?.)*?\\1/\n\t],\n\t'number': /\\b-?(0x[\\da-f]+|\\d*\\.?\\d+f?)\\b/i\n});\n\nPrism.languages.insertBefore('csharp', 'keyword', {\n\t'preprocessor': {\n\t\tpattern: /(^\\s*)#.*/m,\n\t\tlookbehind: true,\n\t\talias: 'property',\n\t\tinside: {\n\t\t\t// highlight preprocessor directives as keywords\n\t\t\t'directive': {\n\t\t\t\tpattern: /(\\s*#)\\b(define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\\b/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t}\n\t\t}\n\t}\n});\n","/* */ \n\"format cjs\";\n/**\n * Original by Aaron Harun: http://aahacreative.com/2012/07/31/php-syntax-highlighting-prism/\n * Modified by Miles Johnson: http://milesj.me\n *\n * Supports the following:\n * \t\t- Extends clike syntax\n * \t\t- Support for PHP 5.3+ (namespaces, traits, generators, etc)\n * \t\t- Smarter constant and function matching\n *\n * Adds the following new token classes:\n * \t\tconstant, delimiter, variable, function, package\n */\n\nPrism.languages.php = Prism.languages.extend('clike', {\n\t'keyword': /\\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\\b/i,\n\t'constant': /\\b[A-Z0-9_]{2,}\\b/,\n\t'comment': {\n\t\tpattern: /(^|[^\\\\])(?:\\/\\*[\\w\\W]*?\\*\\/|\\/\\/.*)/,\n\t\tlookbehind: true\n\t}\n});\n\n// Shell-like comments are matched after strings, because they are less\n// common than strings containing hashes...\nPrism.languages.insertBefore('php', 'class-name', {\n\t'shell-comment': {\n\t\tpattern: /(^|[^\\\\])#.*/,\n\t\tlookbehind: true,\n\t\talias: 'comment'\n\t}\n});\n\nPrism.languages.insertBefore('php', 'keyword', {\n\t'delimiter': /\\?>|<\\?(?:php)?/i,\n\t'variable': /\\$\\w+\\b/i,\n\t'package': {\n\t\tpattern: /(\\\\|namespace\\s+|use\\s+)[\\w\\\\]+/,\n\t\tlookbehind: true,\n\t\tinside: {\n\t\t\tpunctuation: /\\\\/\n\t\t}\n\t}\n});\n\n// Must be defined after the function pattern\nPrism.languages.insertBefore('php', 'operator', {\n\t'property': {\n\t\tpattern: /(->)[\\w]+/,\n\t\tlookbehind: true\n\t}\n});\n\n// Add HTML support of the markup language exists\nif (Prism.languages.markup) {\n\n\t// Tokenize all inline PHP blocks that are wrapped in <?php ?>\n\t// This allows for easy PHP + markup highlighting\n\tPrism.hooks.add('before-highlight', function(env) {\n\t\tif (env.language !== 'php') {\n\t\t\treturn;\n\t\t}\n\n\t\tenv.tokenStack = [];\n\n\t\tenv.backupCode = env.code;\n\t\tenv.code = env.code.replace(/(?:<\\?php|<\\?)[\\w\\W]*?(?:\\?>)/ig, function(match) {\n\t\t\tenv.tokenStack.push(match);\n\n\t\t\treturn '{{{PHP' + env.tokenStack.length + '}}}';\n\t\t});\n\t});\n\n\t// Restore env.code for other plugins (e.g. line-numbers)\n\tPrism.hooks.add('before-insert', function(env) {\n\t\tif (env.language === 'php') {\n\t\t\tenv.code = env.backupCode;\n\t\t\tdelete env.backupCode;\n\t\t}\n\t});\n\n\t// Re-insert the tokens after highlighting\n\tPrism.hooks.add('after-highlight', function(env) {\n\t\tif (env.language !== 'php') {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (var i = 0, t; t = env.tokenStack[i]; i++) {\n\t\t\t// The replace prevents $$, $&, $`, $', $n, $nn from being interpreted as special patterns\n\t\t\tenv.highlightedCode = env.highlightedCode.replace('{{{PHP' + (i + 1) + '}}}', Prism.highlight(t, env.grammar, 'php').replace(/\\$/g, '$$$$'));\n\t\t}\n\n\t\tenv.element.innerHTML = env.highlightedCode;\n\t});\n\n\t// Wrap tokens in classes that are missing them\n\tPrism.hooks.add('wrap', function(env) {\n\t\tif (env.language === 'php' && env.type === 'markup') {\n\t\t\tenv.content = env.content.replace(/(\\{\\{\\{PHP[0-9]+\\}\\}\\})/g, \"<span class=\\\"token php\\\">$1</span>\");\n\t\t}\n\t});\n\n\t// Add the rules before all others\n\tPrism.languages.insertBefore('php', 'comment', {\n\t\t'markup': {\n\t\t\tpattern: /<[^?]\\/?(.*?)>/,\n\t\t\tinside: Prism.languages.markup\n\t\t},\n\t\t'php': /\\{\\{\\{PHP[0-9]+\\}\\}\\}/\n\t});\n}\n","/* */ \n\"format cjs\";\n(function(Prism) {\n\n// Ignore comments starting with { to privilege string interpolation highlighting\nvar comment = /#(?!\\{).+/,\n interpolation = {\n \tpattern: /#\\{[^}]+\\}/,\n \talias: 'variable'\n };\n\nPrism.languages.coffeescript = Prism.languages.extend('javascript', {\n\t'comment': comment,\n\t'string': [\n\n\t\t// Strings are multiline\n\t\t/'(?:\\\\?[^\\\\])*?'/,\n\n\t\t{\n\t\t\t// Strings are multiline\n\t\t\tpattern: /\"(?:\\\\?[^\\\\])*?\"/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t}\n\t],\n\t'keyword': /\\b(and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\\b/,\n\t'class-member': {\n\t\tpattern: /@(?!\\d)\\w+/,\n\t\talias: 'variable'\n\t}\n});\n\nPrism.languages.insertBefore('coffeescript', 'comment', {\n\t'multiline-comment': {\n\t\tpattern: /###[\\s\\S]+?###/,\n\t\talias: 'comment'\n\t},\n\n\t// Block regexp can contain comments and interpolation\n\t'block-regex': {\n\t\tpattern: /\\/{3}[\\s\\S]*?\\/{3}/,\n\t\talias: 'regex',\n\t\tinside: {\n\t\t\t'comment': comment,\n\t\t\t'interpolation': interpolation\n\t\t}\n\t}\n});\n\nPrism.languages.insertBefore('coffeescript', 'string', {\n\t'inline-javascript': {\n\t\tpattern: /`(?:\\\\?[\\s\\S])*?`/,\n\t\tinside: {\n\t\t\t'delimiter': {\n\t\t\t\tpattern: /^`|`$/,\n\t\t\t\talias: 'punctuation'\n\t\t\t},\n\t\t\trest: Prism.languages.javascript\n\t\t}\n\t},\n\n\t// Block strings\n\t'multiline-string': [\n\t\t{\n\t\t\tpattern: /'''[\\s\\S]*?'''/,\n\t\t\talias: 'string'\n\t\t},\n\t\t{\n\t\t\tpattern: /\"\"\"[\\s\\S]*?\"\"\"/,\n\t\t\talias: 'string',\n\t\t\tinside: {\n\t\t\t\tinterpolation: interpolation\n\t\t\t}\n\t\t}\n\t]\n\n});\n\nPrism.languages.insertBefore('coffeescript', 'keyword', {\n\t// Object property\n\t'property': /(?!\\d)\\w+(?=\\s*:(?!:))/\n});\n\n}(Prism));","/* */ \n\"format cjs\";\nPrism.languages.go = Prism.languages.extend('clike', {\n\t'keyword': /\\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\\b/,\n\t'builtin': /\\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\\b/,\n\t'boolean': /\\b(_|iota|nil|true|false)\\b/,\n\t'operator': /[*\\/%^!=]=?|\\+[=+]?|-[=-]?|\\|[=|]?|&(?:=|&|\\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\\.\\.\\./,\n\t'number': /\\b(-?(0x[a-f\\d]+|(\\d+\\.?\\d*|\\.\\d+)(e[-+]?\\d+)?)i?)\\b/i,\n\t'string': /(\"|'|`)(\\\\?.|\\r|\\n)*?\\1/\n});\ndelete Prism.languages.go['class-name'];\n","/* */ \n\"format cjs\";\nPrism.languages.haskell= {\n\t'comment': {\n\t\tpattern: /(^|[^-!#$%*+=?&@|~.:<>^\\\\\\/])(--[^-!#$%*+=?&@|~.:<>^\\\\\\/].*|{-[\\w\\W]*?-})/m,\n\t\tlookbehind: true\n\t},\n\t'char': /'([^\\\\']|\\\\([abfnrtv\\\\\"'&]|\\^[A-Z@[\\]\\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\\d+|o[0-7]+|x[0-9a-fA-F]+))'/,\n\t'string': /\"([^\\\\\"]|\\\\([abfnrtv\\\\\"'&]|\\^[A-Z@[\\]\\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\\d+|o[0-7]+|x[0-9a-fA-F]+)|\\\\\\s+\\\\)*\"/,\n\t'keyword' : /\\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\\b/,\n\t'import_statement' : {\n\t\t// The imported or hidden names are not included in this import\n\t\t// statement. This is because we want to highlight those exactly like\n\t\t// we do for the names in the program.\n\t\tpattern: /(\\r?\\n|\\r|^)\\s*import\\s+(qualified\\s+)?([A-Z][_a-zA-Z0-9']*)(\\.[A-Z][_a-zA-Z0-9']*)*(\\s+as\\s+([A-Z][_a-zA-Z0-9']*)(\\.[A-Z][_a-zA-Z0-9']*)*)?(\\s+hiding\\b)?/m,\n\t\tinside: {\n\t\t\t'keyword': /\\b(import|qualified|as|hiding)\\b/\n\t\t}\n\t},\n\t// These are builtin variables only. Constructors are highlighted later as a constant.\n\t'builtin': /\\b(abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\\b/,\n\t// decimal integers and floating point numbers | octal integers | hexadecimal integers\n\t'number' : /\\b(\\d+(\\.\\d+)?(e[+-]?\\d+)?|0o[0-7]+|0x[0-9a-f]+)\\b/i,\n\t// Most of this is needed because of the meaning of a single '.'.\n\t// If it stands alone freely, it is the function composition.\n\t// It may also be a separator between a module name and an identifier => no\n\t// operator. If it comes together with other special characters it is an\n\t// operator too.\n\t'operator' : /\\s\\.\\s|[-!#$%*+=?&@|~.:<>^\\\\\\/]*\\.[-!#$%*+=?&@|~.:<>^\\\\\\/]+|[-!#$%*+=?&@|~.:<>^\\\\\\/]+\\.[-!#$%*+=?&@|~.:<>^\\\\\\/]*|[-!#$%*+=?&@|~:<>^\\\\\\/]+|`([A-Z][_a-zA-Z0-9']*\\.)*[_a-z][_a-zA-Z0-9']*`/,\n\t// In Haskell, nearly everything is a variable, do not highlight these.\n\t'hvariable': /\\b([A-Z][_a-zA-Z0-9']*\\.)*[_a-z][_a-zA-Z0-9']*\\b/,\n\t'constant': /\\b([A-Z][_a-zA-Z0-9']*\\.)*[A-Z][_a-zA-Z0-9']*\\b/,\n\t'punctuation' : /[{}[\\];(),.:]/\n};\n","/* */ \n\"format cjs\";\nPrism.languages.java = Prism.languages.extend('clike', {\n\t'keyword': /\\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\\b/,\n\t'number': /\\b0b[01]+\\b|\\b0x[\\da-f]*\\.?[\\da-fp\\-]+\\b|\\b\\d*\\.?\\d+(?:e[+-]?\\d+)?[df]?\\b/i,\n\t'operator': {\n\t\tpattern: /(^|[^.])(?:\\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\\|[|=]?|\\*=?|\\/=?|%=?|\\^=?|[?:~])/m,\n\t\tlookbehind: true\n\t}\n});","/* */ \n\"format cjs\";\nPrism.languages.lua = {\n\t'comment': /^#!.+|--(?:\\[(=*)\\[[\\s\\S]*?\\]\\1\\]|.*)/m,\n\t// \\z may be used to skip the following space\n\t'string': /([\"'])(?:(?!\\1)[^\\\\\\r\\n]|\\\\z(?:\\r\\n|\\s)|\\\\(?:\\r\\n|[\\s\\S]))*\\1|\\[(=*)\\[[\\s\\S]*?\\]\\2\\]/,\n\t'number': /\\b0x[a-f\\d]+\\.?[a-f\\d]*(?:p[+-]?\\d+)?\\b|\\b\\d+(?:\\.\\B|\\.?\\d*(?:e[+-]?\\d+)?\\b)|\\B\\.\\d+(?:e[+-]?\\d+)?\\b/i,\n\t'keyword': /\\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\\b/,\n\t'function': /(?!\\d)\\w+(?=\\s*(?:[({]))/,\n\t'operator': [\n\t\t/[-+*%^&|#]|\\/\\/?|<[<=]?|>[>=]?|[=~]=?/,\n\t\t{\n\t\t\t// Match \"..\" but don't break \"...\"\n\t\t\tpattern: /(^|[^.])\\.\\.(?!\\.)/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t'punctuation': /[\\[\\](){},;]|\\.+|:+/\n};","/* */ \n\"format cjs\";\nPrism.languages.matlab = {\n\t// We put string before comment, because of printf() patterns that contain \"%\"\n\t'string': /\\B'(?:''|[^'\\n])*'/,\n\t'comment': [\n\t\t/%\\{[\\s\\S]*?\\}%/,\n\t\t/%.+/\n\t],\n\t// FIXME We could handle imaginary numbers as a whole\n\t'number': /\\b-?(?:\\d*\\.?\\d+(?:[eE][+-]?\\d+)?(?:[ij])?|[ij])\\b/,\n\t'keyword': /\\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\\b/,\n\t'function': /(?!\\d)\\w+(?=\\s*\\()/,\n\t'operator': /\\.?[*^\\/\\\\']|[+\\-:@]|[<>=~]=?|&&?|\\|\\|?/,\n\t'punctuation': /\\.{3}|[.,;\\[\\](){}!]/\n};","/* */ \n\"format cjs\";\nPrism.languages.objectivec = Prism.languages.extend('c', {\n\t'keyword': /\\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\\b|(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\\b/,\n\t'string': /(\"|')(\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1|@\"(\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"/,\n\t'operator': /-[->]?|\\+\\+?|!=?|<<?=?|>>?=?|==?|&&?|\\|\\|?|[~^%?*\\/@]/\n});\n","/* */ \n\"format cjs\";\nPrism.languages.perl = {\n\t'comment': [\n\t\t{\n\t\t\t// POD\n\t\t\tpattern: /(^\\s*)=\\w+[\\s\\S]*?=cut.*/m,\n\t\t\tlookbehind: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^\\\\$])#.*/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t// TODO Could be nice to handle Heredoc too.\n\t'string': [\n\t\t// q/.../\n\t\t/\\b(?:q|qq|qx|qw)\\s*([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\t\n\t\t// q a...a\n\t\t/\\b(?:q|qq|qx|qw)\\s+([a-zA-Z0-9])(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\t\n\t\t// q(...)\n\t\t/\\b(?:q|qq|qx|qw)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)/,\n\t\n\t\t// q{...}\n\t\t/\\b(?:q|qq|qx|qw)\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}/,\n\t\n\t\t// q[...]\n\t\t/\\b(?:q|qq|qx|qw)\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]/,\n\t\n\t\t// q<...>\n\t\t/\\b(?:q|qq|qx|qw)\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>/,\n\n\t\t// \"...\", `...`\n\t\t/(\"|`)(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\n\t\t// '...'\n\t\t// FIXME Multi-line single-quoted strings are not supported as they would break variables containing '\n\t\t/'(?:[^'\\\\\\r\\n]|\\\\.)*'/\n\t],\n\t'regex': [\n\t\t// m/.../\n\t\t/\\b(?:m|qr)\\s*([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1[msixpodualngc]*/,\n\t\n\t\t// m a...a\n\t\t/\\b(?:m|qr)\\s+([a-zA-Z0-9])(?:[^\\\\]|\\\\.)*?\\1[msixpodualngc]*/,\n\t\n\t\t// m(...)\n\t\t/\\b(?:m|qr)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)[msixpodualngc]*/,\n\t\n\t\t// m{...}\n\t\t/\\b(?:m|qr)\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}[msixpodualngc]*/,\n\t\n\t\t// m[...]\n\t\t/\\b(?:m|qr)\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\][msixpodualngc]*/,\n\t\n\t\t// m<...>\n\t\t/\\b(?:m|qr)\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>[msixpodualngc]*/,\n\n\t\t// The lookbehinds prevent -s from breaking\n\t\t// FIXME We don't handle change of separator like s(...)[...]\n\t\t// s/.../.../\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\2(?:[^\\\\]|\\\\[\\s\\S])*?\\2[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s a...a...a\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s+([a-zA-Z0-9])(?:[^\\\\]|\\\\[\\s\\S])*?\\2(?:[^\\\\]|\\\\[\\s\\S])*?\\2[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s(...)(...)\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s{...}{...}\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s[...][...]\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\][msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s<...><...>\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// /.../\n\t\t// The look-ahead tries to prevent two divisions on\n\t\t// the same line from being highlighted as regex.\n\t\t// This does not support multi-line regex.\n\t\t/\\/(?:[^\\/\\\\\\r\\n]|\\\\.)*\\/[msixpodualngc]*(?=\\s*(?:$|[\\r\\n,.;})&|\\-+*~<>!?^]|(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\\b))/\n\t],\n\n\t// FIXME Not sure about the handling of ::, ', and #\n\t'variable': [\n\t\t// ${^POSTMATCH}\n\t\t/[&*$@%]\\{\\^[A-Z]+\\}/,\n\t\t// $^V\n\t\t/[&*$@%]\\^[A-Z_]/,\n\t\t// ${...}\n\t\t/[&*$@%]#?(?=\\{)/,\n\t\t// $foo\n\t\t/[&*$@%]#?((::)*'?(?!\\d)[\\w$]+)+(::)*/i,\n\t\t// $1\n\t\t/[&*$@%]\\d+/,\n\t\t// $_, @_, %!\n\t\t// The negative lookahead prevents from breaking the %= operator\n\t\t/(?!%=)[$@%][!\"#$%&'()*+,\\-.\\/:;<=>?@[\\\\\\]^_`{|}~]/\n\t],\n\t'filehandle': {\n\t\t// <>, <FOO>, _\n\t\tpattern: /<(?![<=])\\S*>|\\b_\\b/,\n\t\talias: 'symbol'\n\t},\n\t'vstring': {\n\t\t// v1.2, 1.2.3\n\t\tpattern: /v\\d+(\\.\\d+)*|\\d+(\\.\\d+){2,}/,\n\t\talias: 'string'\n\t},\n\t'function': {\n\t\tpattern: /sub [a-z0-9_]+/i,\n\t\tinside: {\n\t\t\tkeyword: /sub/\n\t\t}\n\t},\n\t'keyword': /\\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|say|state|sub|switch|undef|unless|until|use|when|while)\\b/,\n\t'number': /\\b-?(0x[\\dA-Fa-f](_?[\\dA-Fa-f])*|0b[01](_?[01])*|(\\d(_?\\d)*)?\\.?\\d(_?\\d)*([Ee][+-]?\\d+)?)\\b/,\n\t'operator': /-[rwxoRWXOezsfdlpSbctugkTBMAC]\\b|\\+[+=]?|-[-=>]?|\\*\\*?=?|\\/\\/?=?|=[=~>]?|~[~=]?|\\|\\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\\.(?:=|\\.\\.?)?|[\\\\?]|\\bx(?:=|\\b)|\\b(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\\b/,\n\t'punctuation': /[{}[\\];(),:]/\n};\n","/* */ \n\"format cjs\";\nPrism.languages.python= {\n\t'triple-quoted-string': {\n\t\tpattern: /\"\"\"[\\s\\S]+?\"\"\"|'''[\\s\\S]+?'''/,\n\t\talias: 'string'\n\t},\n\t'comment': {\n\t\tpattern: /(^|[^\\\\])#.*/,\n\t\tlookbehind: true\n\t},\n\t'string': /(\"|')(?:\\\\?.)*?\\1/,\n\t'function' : {\n\t\tpattern: /((?:^|\\s)def[ \\t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\\()/g,\n\t\tlookbehind: true\n\t},\n\t'class-name': {\n\t\tpattern: /(\\bclass\\s+)[a-z0-9_]+/i,\n\t\tlookbehind: true\n\t},\n\t'keyword' : /\\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\\b/,\n\t'boolean' : /\\b(?:True|False)\\b/,\n\t'number' : /\\b-?(?:0[bo])?(?:(?:\\d|0x[\\da-f])[\\da-f]*\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?j?\\b/i,\n\t'operator' : /[-+%=]=?|!=|\\*\\*?=?|\\/\\/?=?|<[<=>]?|>[=>]?|[&|^~]|\\b(?:or|and|not)\\b/,\n\t'punctuation' : /[{}[\\];(),.:]/\n};\n","/* */ \n\"format cjs\";\nPrism.languages.r = {\n\t'comment': /#.*/,\n\t'string': /(['\"])(?:\\\\?.)*?\\1/,\n\t'percent-operator': {\n\t\t// Includes user-defined operators\n\t\t// and %%, %*%, %/%, %in%, %o%, %x%\n\t\tpattern: /%[^%\\s]*%/,\n\t\talias: 'operator'\n\t},\n\t'boolean': /\\b(?:TRUE|FALSE)\\b/,\n\t'ellipsis': /\\.\\.(?:\\.|\\d+)/,\n\t'number': [\n\t\t/\\b(?:NaN|Inf)\\b/,\n\t\t/\\b(?:0x[\\dA-Fa-f]+(?:\\.\\d*)?|\\d*\\.?\\d+)(?:[EePp][+-]?\\d+)?[iL]?\\b/\n\t],\n\t'keyword': /\\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\\b/,\n\t'operator': /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\\|\\|?|[+*\\/^$@~]/,\n\t'punctuation': /[(){}\\[\\],;]/\n};","/* */ \n\"format cjs\";\n/**\n * Original by Samuel Flores\n *\n * Adds the following new token classes:\n * \t\tconstant, builtin, variable, symbol, regex\n */\n(function(Prism) {\n\tPrism.languages.ruby = Prism.languages.extend('clike', {\n\t\t'comment': /#(?!\\{[^\\r\\n]*?\\}).*/,\n\t\t'keyword': /\\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\\b/\n\t});\n\n\tvar interpolation = {\n\t\tpattern: /#\\{[^}]+\\}/,\n\t\tinside: {\n\t\t\t'delimiter': {\n\t\t\t\tpattern: /^#\\{|\\}$/,\n\t\t\t\talias: 'tag'\n\t\t\t},\n\t\t\trest: Prism.util.clone(Prism.languages.ruby)\n\t\t}\n\t};\n\n\tPrism.languages.insertBefore('ruby', 'keyword', {\n\t\t'regex': [\n\t\t\t{\n\t\t\t\tpattern: /%r([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /%r\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Here we need to specifically allow interpolation\n\t\t\t\tpattern: /%r\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /%r\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\][gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /%r<(?:[^<>\\\\]|\\\\[\\s\\S])*>[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /(^|[^/])\\/(?!\\/)(\\[.+?]|\\\\.|[^/\\r\\n])+\\/[gim]{0,3}(?=\\s*($|[\\r\\n,.;})]))/,\n\t\t\t\tlookbehind: true\n\t\t\t}\n\t\t],\n\t\t'variable': /[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\\b)/,\n\t\t'symbol': /:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\\b)/\n\t});\n\n\tPrism.languages.insertBefore('ruby', 'number', {\n\t\t'builtin': /\\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\\b/,\n\t\t'constant': /\\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\\b)/\n\t});\n\n\tPrism.languages.ruby.string = [\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t// Here we need to specifically allow interpolation\n\t\t\tpattern: /%[qQiIwWxs]?\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?<(?:[^<>\\\\]|\\\\[\\s\\S])*>/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /(\"|')(#\\{[^}]+\\}|\\\\(?:\\r?\\n|\\r)|\\\\?.)*?\\1/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t}\n\t];\n}(Prism));","/* */ \n\"format cjs\";\n(function(Prism) {\n\tvar insideString = {\n\t\tvariable: [\n\t\t\t// Arithmetic Environment\n\t\t\t{\n\t\t\t\tpattern: /\\$?\\(\\([\\w\\W]+?\\)\\)/,\n\t\t\t\tinside: {\n\t\t\t\t\t// If there is a $ sign at the beginning highlight $(( and )) as variable\n\t\t\t\t\tvariable: [{\n\t\t\t\t\t\t\tpattern: /(^\\$\\(\\([\\w\\W]+)\\)\\)/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t},\n\t\t\t\t\t\t/^\\$\\(\\(/,\n\t\t\t\t\t],\n\t\t\t\t\tnumber: /\\b-?(?:0x[\\dA-Fa-f]+|\\d*\\.?\\d+(?:[Ee]-?\\d+)?)\\b/,\n\t\t\t\t\t// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic\n\t\t\t\t\toperator: /--?|-=|\\+\\+?|\\+=|!=?|~|\\*\\*?|\\*=|\\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\\^=?|\\|\\|?|\\|=|\\?|:/,\n\t\t\t\t\t// If there is no $ sign at the beginning highlight (( and )) as punctuation\n\t\t\t\t\tpunctuation: /\\(\\(?|\\)\\)?|,|;/\n\t\t\t\t}\n\t\t\t},\n\t\t\t// Command Substitution\n\t\t\t{\n\t\t\t\tpattern: /\\$\\([^)]+\\)|`[^`]+`/,\n\t\t\t\tinside: {\n\t\t\t\t\tvariable: /^\\$\\(|^`|\\)$|`$/\n\t\t\t\t}\n\t\t\t},\n\t\t\t/\\$(?:[a-z0-9_#\\?\\*!@]+|\\{[^}]+\\})/i\n\t\t],\n\t};\n\n\tPrism.languages.bash = {\n\t\t'shebang': {\n\t\t\tpattern: /^#!\\s*\\/bin\\/bash|^#!\\s*\\/bin\\/sh/,\n\t\t\talias: 'important'\n\t\t},\n\t\t'comment': {\n\t\t\tpattern: /(^|[^\"{\\\\])#.*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'string': [\n\t\t\t//Support for Here-Documents https://en.wikipedia.org/wiki/Here_document\n\t\t\t{\n\t\t\t\tpattern: /((?:^|[^<])<<\\s*)(?:\"|')?(\\w+?)(?:\"|')?\\s*\\r?\\n(?:[\\s\\S])*?\\r?\\n\\2/g,\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: insideString\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /(\"|')(?:\\\\?[\\s\\S])*?\\1/g,\n\t\t\t\tinside: insideString\n\t\t\t}\n\t\t],\n\t\t'variable': insideString.variable,\n\t\t// Originally based on http://ss64.com/bash/\n\t\t'function': {\n\t\t\tpattern: /(^|\\s|;|\\||&)(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|\\s|;|\\||&)/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'keyword': {\n\t\t\tpattern: /(^|\\s|;|\\||&)(?:let|:|\\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\\s|;|\\||&)/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'boolean': {\n\t\t\tpattern: /(^|\\s|;|\\||&)(?:true|false)(?=$|\\s|;|\\||&)/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'operator': /&&?|\\|\\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,\n\t\t'punctuation': /\\$?\\(\\(?|\\)\\)?|\\.\\.|[{}[\\];]/\n\t};\n\n\tvar inside = insideString.variable[1].inside;\n\tinside['function'] = Prism.languages.bash['function'];\n\tinside.keyword = Prism.languages.bash.keyword;\n\tinside.boolean = Prism.languages.bash.boolean;\n\tinside.operator = Prism.languages.bash.operator;\n\tinside.punctuation = Prism.languages.bash.punctuation;\n})(Prism);","/* */ \n\"format cjs\";\n// issues: nested multiline comments\nPrism.languages.swift = Prism.languages.extend('clike', {\n\t'string': {\n\t\tpattern: /(\"|')(\\\\(?:\\((?:[^()]|\\([^)]+\\))+\\)|\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t\tinside: {\n\t\t\t'interpolation': {\n\t\t\t\tpattern: /\\\\\\((?:[^()]|\\([^)]+\\))+\\)/,\n\t\t\t\tinside: {\n\t\t\t\t\tdelimiter: {\n\t\t\t\t\t\tpattern: /^\\\\\\(|\\)$/,\n\t\t\t\t\t\talias: 'variable'\n\t\t\t\t\t}\n\t\t\t\t\t// See rest below\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t'keyword': /\\b(as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|Protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\\b/,\n\t'number': /\\b([\\d_]+(\\.[\\de_]+)?|0x[a-f0-9_]+(\\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b/i,\n\t'constant': /\\b(nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\\b/,\n\t'atrule': /@\\b(IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\\b/,\n\t'builtin': /\\b([A-Z]\\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\\b/\n});\nPrism.languages.swift['string'].inside['interpolation'].inside.rest = Prism.util.clone(Prism.languages.swift);","/* */ \n\"format cjs\";\nPrism.languages.vim = {\n\t'string': /\"(?:[^\"\\\\\\r\\n]|\\\\.)*\"|'(?:[^'\\r\\n]|'')*'/,\n\t'comment': /\".*/,\n\t'function': /\\w+(?=\\()/,\n\t'keyword': /\\b(?:ab|abbreviate|abc|abclear|abo|aboveleft|al|all|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|ar|args|argu|argument|as|ascii|bad|badd|ba|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bN|bNext|bo|botright|bp|bprevious|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|br|brewind|bro|browse|bufdo|b|buffer|buffers|bun|bunload|bw|bwipeout|ca|cabbrev|cabc|cabclear|caddb|caddbuffer|cad|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cgetb|cgetbuffer|cgete|cgetexpr|cg|cgetfile|c|change|changes|chd|chdir|che|checkpath|checkt|checktime|cla|clast|cl|clist|clo|close|cmapc|cmapclear|cnew|cnewer|cn|cnext|cN|cNext|cnf|cnfile|cNfcNfile|cnorea|cnoreabbrev|col|colder|colo|colorscheme|comc|comclear|comp|compiler|conf|confirm|con|continue|cope|copen|co|copy|cpf|cpfile|cp|cprevious|cq|cquit|cr|crewind|cuna|cunabbrev|cu|cunmap|cw|cwindow|debugg|debuggreedy|delc|delcommand|d|delete|delf|delfunction|delm|delmarks|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|di|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|earlier|echoe|echoerr|echom|echomsg|echon|e|edit|el|else|elsei|elseif|em|emenu|endfo|endfor|endf|endfunction|endfun|en|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fina|finally|fin|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|folddoc|folddoclosed|foldd|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|ha|hardcopy|h|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iuna|iunabbrev|iu|iunmap|j|join|ju|jumps|k|keepalt|keepj|keepjumps|kee|keepmarks|laddb|laddbuffer|lad|laddexpr|laddf|laddfile|lan|language|la|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|let|left|lefta|leftabove|lex|lexpr|lf|lfile|lfir|lfirst|lgetb|lgetbuffer|lgete|lgetexpr|lg|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|l|list|ll|lla|llast|lli|llist|lmak|lmake|lm|lmap|lmapc|lmapclear|lnew|lnewer|lne|lnext|lN|lNext|lnf|lnfile|lNf|lNfile|ln|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lpf|lpfile|lp|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|mak|make|ma|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkvie|mkview|mkv|mkvimrc|mod|mode|m|move|mzf|mzfile|mz|mzscheme|nbkey|new|n|next|N|Next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|omapc|omapclear|on|only|o|open|opt|options|ou|ounmap|pc|pclose|ped|pedit|pe|perl|perld|perldo|po|pop|popu|popu|popup|pp|ppop|pre|preserve|prev|previous|p|print|P|Print|profd|profdel|prof|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptN|ptNext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|pyf|pyfile|py|python|qa|qall|q|quit|quita|quitall|r|read|rec|recover|redi|redir|red|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|rub|ruby|rubyd|rubydo|rubyf|rubyfile|ru|runtime|rv|rviminfo|sal|sall|san|sandbox|sa|sargument|sav|saveas|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbN|sbNext|sbp|sbprevious|sbr|sbrewind|sb|sbuffer|scripte|scriptencoding|scrip|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sla|slast|sl|sleep|sm|smagic|sm|smap|smapc|smapclear|sme|smenu|sn|snext|sN|sNext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|sor|sort|so|source|spelld|spelldump|spe|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|sp|split|spr|sprevious|sre|srewind|sta|stag|startg|startgreplace|star|startinsert|startr|startreplace|stj|stjump|st|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tab|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabnew|tabn|tabnext|tabN|tabNext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|ta|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tm|tmenu|tn|tnext|tN|tNext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tu|tunmenu|una|unabbreviate|u|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|verb|verbose|ve|version|vert|vertical|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|vi|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|wa|wall|wh|while|winc|wincmd|windo|winp|winpos|win|winsize|wn|wnext|wN|wNext|wp|wprevious|wq|wqa|wqall|w|write|ws|wsverb|wv|wviminfo|X|xa|xall|x|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|XMLent|XMLns|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\\b/,\n\t'builtin': /\\b(?:autocmd|acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|t_AB|t_AF|t_al|t_AL|t_bc|t_cd|t_ce|t_Ce|t_cl|t_cm|t_Co|t_cs|t_Cs|t_CS|t_CV|t_da|t_db|t_dl|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_fs|t_IE|t_IS|t_k1|t_K1|t_k2|t_k3|t_K3|t_k4|t_K4|t_k5|t_K5|t_k6|t_K6|t_k7|t_K7|t_k8|t_K8|t_k9|t_K9|t_KA|t_kb|t_kB|t_KB|t_KC|t_kd|t_kD|t_KD|t_ke|t_KE|t_KF|t_KG|t_kh|t_KH|t_kI|t_KI|t_KJ|t_KK|t_kl|t_KL|t_kN|t_kP|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_RI|t_RV|t_Sb|t_se|t_Sf|t_SI|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_WP|t_WS|t_xs|t_ZH|t_ZR)\\b/,\n\t'number': /\\b(?:0x[\\da-f]+|\\d+(?:\\.\\d+)?)\\b/i,\n\t'operator': /\\|\\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\\/%?]|\\b(?:is(?:not)?)\\b/,\n\t'punctuation': /[{}[\\](),;:]/\n};","/* */ \n\"format cjs\";\n/**\n * marked - a markdown parser\n * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)\n * https://github.com/chjj/marked\n */\n\n;(function() {\n\n/**\n * Block-Level Grammar\n */\n\nvar block = {\n newline: /^\\n+/,\n code: /^( {4}[^\\n]+\\n*)+/,\n fences: noop,\n hr: /^( *[-*_]){3,} *(?:\\n+|$)/,\n heading: /^ *(#{1,6}) *([^\\n]+?) *#* *(?:\\n+|$)/,\n nptable: noop,\n lheading: /^([^\\n]+)\\n *(=|-){2,} *(?:\\n+|$)/,\n blockquote: /^( *>[^\\n]+(\\n(?!def)[^\\n]+)*\\n*)+/,\n list: /^( *)(bull) [\\s\\S]+?(?:hr|def|\\n{2,}(?! )(?!\\1bull )\\n*|\\s*$)/,\n html: /^ *(?:comment *(?:\\n|\\s*$)|closed *(?:\\n{2,}|\\s*$)|closing *(?:\\n{2,}|\\s*$))/,\n def: /^ *\\[([^\\]]+)\\]: *<?([^\\s>]+)>?(?: +[\"(]([^\\n]+)[\")])? *(?:\\n+|$)/,\n table: noop,\n paragraph: /^((?:[^\\n]+\\n?(?!hr|heading|lheading|blockquote|tag|def))+)\\n*/,\n text: /^[^\\n]+/\n};\n\nblock.bullet = /(?:[*+-]|\\d+\\.)/;\nblock.item = /^( *)(bull) [^\\n]*(?:\\n(?!\\1bull )[^\\n]*)*/;\nblock.item = replace(block.item, 'gm')\n (/bull/g, block.bullet)\n ();\n\nblock.list = replace(block.list)\n (/bull/g, block.bullet)\n ('hr', '\\\\n+(?=\\\\1?(?:[-*_] *){3,}(?:\\\\n+|$))')\n ('def', '\\\\n+(?=' + block.def.source + ')')\n ();\n\nblock.blockquote = replace(block.blockquote)\n ('def', block.def)\n ();\n\nblock._tag = '(?!(?:'\n + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'\n + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'\n + '|span|br|wbr|ins|del|img)\\\\b)\\\\w+(?!:/|[^\\\\w\\\\s@]*@)\\\\b';\n\nblock.html = replace(block.html)\n ('comment', /<!--[\\s\\S]*?-->/)\n ('closed', /<(tag)[\\s\\S]+?<\\/\\1>/)\n ('closing', /<tag(?:\"[^\"]*\"|'[^']*'|[^'\">])*?>/)\n (/tag/g, block._tag)\n ();\n\nblock.paragraph = replace(block.paragraph)\n ('hr', block.hr)\n ('heading', block.heading)\n ('lheading', block.lheading)\n ('blockquote', block.blockquote)\n ('tag', '<' + block._tag)\n ('def', block.def)\n ();\n\n/**\n * Normal Block Grammar\n */\n\nblock.normal = merge({}, block);\n\n/**\n * GFM Block Grammar\n */\n\nblock.gfm = merge({}, block.normal, {\n fences: /^ *(`{3,}|~{3,})[ \\.]*(\\S+)? *\\n([\\s\\S]*?)\\s*\\1 *(?:\\n+|$)/,\n paragraph: /^/,\n heading: /^ *(#{1,6}) +([^\\n]+?) *#* *(?:\\n+|$)/\n});\n\nblock.gfm.paragraph = replace(block.paragraph)\n ('(?!', '(?!'\n + block.gfm.fences.source.replace('\\\\1', '\\\\2') + '|'\n + block.list.source.replace('\\\\1', '\\\\3') + '|')\n ();\n\n/**\n * GFM + Tables Block Grammar\n */\n\nblock.tables = merge({}, block.gfm, {\n nptable: /^ *(\\S.*\\|.*)\\n *([-:]+ *\\|[-| :]*)\\n((?:.*\\|.*(?:\\n|$))*)\\n*/,\n table: /^ *\\|(.+)\\n *\\|( *[-:]+[-| :]*)\\n((?: *\\|.*(?:\\n|$))*)\\n*/\n});\n\n/**\n * Block Lexer\n */\n\nfunction Lexer(options) {\n this.tokens = [];\n this.tokens.links = {};\n this.options = options || marked.defaults;\n this.rules = block.normal;\n\n if (this.options.gfm) {\n if (this.options.tables) {\n this.rules = block.tables;\n } else {\n this.rules = block.gfm;\n }\n }\n}\n\n/**\n * Expose Block Rules\n */\n\nLexer.rules = block;\n\n/**\n * Static Lex Method\n */\n\nLexer.lex = function(src, options) {\n var lexer = new Lexer(options);\n return lexer.lex(src);\n};\n\n/**\n * Preprocessing\n */\n\nLexer.prototype.lex = function(src) {\n src = src\n .replace(/\\r\\n|\\r/g, '\\n')\n .replace(/\\t/g, ' ')\n .replace(/\\u00a0/g, ' ')\n .replace(/\\u2424/g, '\\n');\n\n return this.token(src, true);\n};\n\n/**\n * Lexing\n */\n\nLexer.prototype.token = function(src, top, bq) {\n var src = src.replace(/^ +$/gm, '')\n , next\n , loose\n , cap\n , bull\n , b\n , item\n , space\n , i\n , l;\n\n while (src) {\n // newline\n if (cap = this.rules.newline.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[0].length > 1) {\n this.tokens.push({\n type: 'space'\n });\n }\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n cap = cap[0].replace(/^ {4}/gm, '');\n this.tokens.push({\n type: 'code',\n text: !this.options.pedantic\n ? cap.replace(/\\n+$/, '')\n : cap\n });\n continue;\n }\n\n // fences (gfm)\n if (cap = this.rules.fences.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'code',\n lang: cap[2],\n text: cap[3] || ''\n });\n continue;\n }\n\n // heading\n if (cap = this.rules.heading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[1].length,\n text: cap[2]\n });\n continue;\n }\n\n // table no leading pipe (gfm)\n if (top && (cap = this.rules.nptable.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i].split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // lheading\n if (cap = this.rules.lheading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[2] === '=' ? 1 : 2,\n text: cap[1]\n });\n continue;\n }\n\n // hr\n if (cap = this.rules.hr.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'hr'\n });\n continue;\n }\n\n // blockquote\n if (cap = this.rules.blockquote.exec(src)) {\n src = src.substring(cap[0].length);\n\n this.tokens.push({\n type: 'blockquote_start'\n });\n\n cap = cap[0].replace(/^ *> ?/gm, '');\n\n // Pass `top` to keep the current\n // \"toplevel\" state. This is exactly\n // how markdown.pl works.\n this.token(cap, top, true);\n\n this.tokens.push({\n type: 'blockquote_end'\n });\n\n continue;\n }\n\n // list\n if (cap = this.rules.list.exec(src)) {\n src = src.substring(cap[0].length);\n bull = cap[2];\n\n this.tokens.push({\n type: 'list_start',\n ordered: bull.length > 1\n });\n\n // Get each top-level item.\n cap = cap[0].match(this.rules.item);\n\n next = false;\n l = cap.length;\n i = 0;\n\n for (; i < l; i++) {\n item = cap[i];\n\n // Remove the list item's bullet\n // so it is seen as the next token.\n space = item.length;\n item = item.replace(/^ *([*+-]|\\d+\\.) +/, '');\n\n // Outdent whatever the\n // list item contains. Hacky.\n if (~item.indexOf('\\n ')) {\n space -= item.length;\n item = !this.options.pedantic\n ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')\n : item.replace(/^ {1,4}/gm, '');\n }\n\n // Determine whether the next list item belongs here.\n // Backpedal if it does not belong in this list.\n if (this.options.smartLists && i !== l - 1) {\n b = block.bullet.exec(cap[i + 1])[0];\n if (bull !== b && !(bull.length > 1 && b.length > 1)) {\n src = cap.slice(i + 1).join('\\n') + src;\n i = l - 1;\n }\n }\n\n // Determine whether item is loose or not.\n // Use: /(^|\\n)(?! )[^\\n]+\\n\\n(?!\\s*$)/\n // for discount behavior.\n loose = next || /\\n\\n(?!\\s*$)/.test(item);\n if (i !== l - 1) {\n next = item.charAt(item.length - 1) === '\\n';\n if (!loose) loose = next;\n }\n\n this.tokens.push({\n type: loose\n ? 'loose_item_start'\n : 'list_item_start'\n });\n\n // Recurse.\n this.token(item, false, bq);\n\n this.tokens.push({\n type: 'list_item_end'\n });\n }\n\n this.tokens.push({\n type: 'list_end'\n });\n\n continue;\n }\n\n // html\n if (cap = this.rules.html.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: this.options.sanitize\n ? 'paragraph'\n : 'html',\n pre: !this.options.sanitizer\n && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'),\n text: cap[0]\n });\n continue;\n }\n\n // def\n if ((!bq && top) && (cap = this.rules.def.exec(src))) {\n src = src.substring(cap[0].length);\n this.tokens.links[cap[1].toLowerCase()] = {\n href: cap[2],\n title: cap[3]\n };\n continue;\n }\n\n // table (gfm)\n if (top && (cap = this.rules.table.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/(?: *\\| *)?\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i]\n .replace(/^ *\\| *| *\\| *$/g, '')\n .split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // top-level paragraph\n if (top && (cap = this.rules.paragraph.exec(src))) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'paragraph',\n text: cap[1].charAt(cap[1].length - 1) === '\\n'\n ? cap[1].slice(0, -1)\n : cap[1]\n });\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n // Top-level should never reach here.\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'text',\n text: cap[0]\n });\n continue;\n }\n\n if (src) {\n throw new\n Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return this.tokens;\n};\n\n/**\n * Inline-Level Grammar\n */\n\nvar inline = {\n escape: /^\\\\([\\\\`*{}\\[\\]()#+\\-.!_>])/,\n autolink: /^<([^ >]+(@|:\\/)[^ >]+)>/,\n url: noop,\n tag: /^<!--[\\s\\S]*?-->|^<\\/?\\w+(?:\"[^\"]*\"|'[^']*'|[^'\">])*?>/,\n link: /^!?\\[(inside)\\]\\(href\\)/,\n reflink: /^!?\\[(inside)\\]\\s*\\[([^\\]]*)\\]/,\n nolink: /^!?\\[((?:\\[[^\\]]*\\]|[^\\[\\]])*)\\]/,\n strong: /^__([\\s\\S]+?)__(?!_)|^\\*\\*([\\s\\S]+?)\\*\\*(?!\\*)/,\n em: /^\\b_((?:[^_]|__)+?)_\\b|^\\*((?:\\*\\*|[\\s\\S])+?)\\*(?!\\*)/,\n code: /^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,\n br: /^ {2,}\\n(?!\\s*$)/,\n del: noop,\n text: /^[\\s\\S]+?(?=[\\\\<!\\[_*`]| {2,}\\n|$)/\n};\n\ninline._inside = /(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*/;\ninline._href = /\\s*<?([\\s\\S]*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*/;\n\ninline.link = replace(inline.link)\n ('inside', inline._inside)\n ('href', inline._href)\n ();\n\ninline.reflink = replace(inline.reflink)\n ('inside', inline._inside)\n ();\n\n/**\n * Normal Inline Grammar\n */\n\ninline.normal = merge({}, inline);\n\n/**\n * Pedantic Inline Grammar\n */\n\ninline.pedantic = merge({}, inline.normal, {\n strong: /^__(?=\\S)([\\s\\S]*?\\S)__(?!_)|^\\*\\*(?=\\S)([\\s\\S]*?\\S)\\*\\*(?!\\*)/,\n em: /^_(?=\\S)([\\s\\S]*?\\S)_(?!_)|^\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)/\n});\n\n/**\n * GFM Inline Grammar\n */\n\ninline.gfm = merge({}, inline.normal, {\n escape: replace(inline.escape)('])', '~|])')(),\n url: /^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,\n del: /^~~(?=\\S)([\\s\\S]*?\\S)~~/,\n text: replace(inline.text)\n (']|', '~]|')\n ('|', '|https?://|')\n ()\n});\n\n/**\n * GFM + Line Breaks Inline Grammar\n */\n\ninline.breaks = merge({}, inline.gfm, {\n br: replace(inline.br)('{2,}', '*')(),\n text: replace(inline.gfm.text)('{2,}', '*')()\n});\n\n/**\n * Inline Lexer & Compiler\n */\n\nfunction InlineLexer(links, options) {\n this.options = options || marked.defaults;\n this.links = links;\n this.rules = inline.normal;\n this.renderer = this.options.renderer || new Renderer;\n this.renderer.options = this.options;\n\n if (!this.links) {\n throw new\n Error('Tokens array requires a `links` property.');\n }\n\n if (this.options.gfm) {\n if (this.options.breaks) {\n this.rules = inline.breaks;\n } else {\n this.rules = inline.gfm;\n }\n } else if (this.options.pedantic) {\n this.rules = inline.pedantic;\n }\n}\n\n/**\n * Expose Inline Rules\n */\n\nInlineLexer.rules = inline;\n\n/**\n * Static Lexing/Compiling Method\n */\n\nInlineLexer.output = function(src, links, options) {\n var inline = new InlineLexer(links, options);\n return inline.output(src);\n};\n\n/**\n * Lexing/Compiling\n */\n\nInlineLexer.prototype.output = function(src) {\n var out = ''\n , link\n , text\n , href\n , cap;\n\n while (src) {\n // escape\n if (cap = this.rules.escape.exec(src)) {\n src = src.substring(cap[0].length);\n out += cap[1];\n continue;\n }\n\n // autolink\n if (cap = this.rules.autolink.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[2] === '@') {\n text = cap[1].charAt(6) === ':'\n ? this.mangle(cap[1].substring(7))\n : this.mangle(cap[1]);\n href = this.mangle('mailto:') + text;\n } else {\n text = escape(cap[1]);\n href = text;\n }\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // url (gfm)\n if (!this.inLink && (cap = this.rules.url.exec(src))) {\n src = src.substring(cap[0].length);\n text = escape(cap[1]);\n href = text;\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // tag\n if (cap = this.rules.tag.exec(src)) {\n if (!this.inLink && /^<a /i.test(cap[0])) {\n this.inLink = true;\n } else if (this.inLink && /^<\\/a>/i.test(cap[0])) {\n this.inLink = false;\n }\n src = src.substring(cap[0].length);\n out += this.options.sanitize\n ? this.options.sanitizer\n ? this.options.sanitizer(cap[0])\n : escape(cap[0])\n : cap[0]\n continue;\n }\n\n // link\n if (cap = this.rules.link.exec(src)) {\n src = src.substring(cap[0].length);\n this.inLink = true;\n out += this.outputLink(cap, {\n href: cap[2],\n title: cap[3]\n });\n this.inLink = false;\n continue;\n }\n\n // reflink, nolink\n if ((cap = this.rules.reflink.exec(src))\n || (cap = this.rules.nolink.exec(src))) {\n src = src.substring(cap[0].length);\n link = (cap[2] || cap[1]).replace(/\\s+/g, ' ');\n link = this.links[link.toLowerCase()];\n if (!link || !link.href) {\n out += cap[0].charAt(0);\n src = cap[0].substring(1) + src;\n continue;\n }\n this.inLink = true;\n out += this.outputLink(cap, link);\n this.inLink = false;\n continue;\n }\n\n // strong\n if (cap = this.rules.strong.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.strong(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // em\n if (cap = this.rules.em.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.em(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.codespan(escape(cap[2], true));\n continue;\n }\n\n // br\n if (cap = this.rules.br.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.br();\n continue;\n }\n\n // del (gfm)\n if (cap = this.rules.del.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.del(this.output(cap[1]));\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.text(escape(this.smartypants(cap[0])));\n continue;\n }\n\n if (src) {\n throw new\n Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return out;\n};\n\n/**\n * Compile Link\n */\n\nInlineLexer.prototype.outputLink = function(cap, link) {\n var href = escape(link.href)\n , title = link.title ? escape(link.title) : null;\n\n return cap[0].charAt(0) !== '!'\n ? this.renderer.link(href, title, this.output(cap[1]))\n : this.renderer.image(href, title, escape(cap[1]));\n};\n\n/**\n * Smartypants Transformations\n */\n\nInlineLexer.prototype.smartypants = function(text) {\n if (!this.options.smartypants) return text;\n return text\n // em-dashes\n .replace(/---/g, '\\u2014')\n // en-dashes\n .replace(/--/g, '\\u2013')\n // opening singles\n .replace(/(^|[-\\u2014/(\\[{\"\\s])'/g, '$1\\u2018')\n // closing singles & apostrophes\n .replace(/'/g, '\\u2019')\n // opening doubles\n .replace(/(^|[-\\u2014/(\\[{\\u2018\\s])\"/g, '$1\\u201c')\n // closing doubles\n .replace(/\"/g, '\\u201d')\n // ellipses\n .replace(/\\.{3}/g, '\\u2026');\n};\n\n/**\n * Mangle Links\n */\n\nInlineLexer.prototype.mangle = function(text) {\n if (!this.options.mangle) return text;\n var out = ''\n , l = text.length\n , i = 0\n , ch;\n\n for (; i < l; i++) {\n ch = text.charCodeAt(i);\n if (Math.random() > 0.5) {\n ch = 'x' + ch.toString(16);\n }\n out += '&#' + ch + ';';\n }\n\n return out;\n};\n\n/**\n * Renderer\n */\n\nfunction Renderer(options) {\n this.options = options || {};\n}\n\nRenderer.prototype.code = function(code, lang, escaped) {\n if (this.options.highlight) {\n var out = this.options.highlight(code, lang);\n if (out != null && out !== code) {\n escaped = true;\n code = out;\n }\n }\n\n if (!lang) {\n return '<pre><code>'\n + (escaped ? code : escape(code, true))\n + '\\n</code></pre>';\n }\n\n return '<pre><code class=\"'\n + this.options.langPrefix\n + escape(lang, true)\n + '\">'\n + (escaped ? code : escape(code, true))\n + '\\n</code></pre>\\n';\n};\n\nRenderer.prototype.blockquote = function(quote) {\n return '<blockquote>\\n' + quote + '</blockquote>\\n';\n};\n\nRenderer.prototype.html = function(html) {\n return html;\n};\n\nRenderer.prototype.heading = function(text, level, raw) {\n return '<h'\n + level\n + ' id=\"'\n + this.options.headerPrefix\n + raw.toLowerCase().replace(/[^\\w]+/g, '-')\n + '\">'\n + text\n + '</h'\n + level\n + '>\\n';\n};\n\nRenderer.prototype.hr = function() {\n return this.options.xhtml ? '<hr/>\\n' : '<hr>\\n';\n};\n\nRenderer.prototype.list = function(body, ordered) {\n var type = ordered ? 'ol' : 'ul';\n return '<' + type + '>\\n' + body + '</' + type + '>\\n';\n};\n\nRenderer.prototype.listitem = function(text) {\n return '<li>' + text + '</li>\\n';\n};\n\nRenderer.prototype.paragraph = function(text) {\n return '<p>' + text + '</p>\\n';\n};\n\nRenderer.prototype.table = function(header, body) {\n return '<table>\\n'\n + '<thead>\\n'\n + header\n + '</thead>\\n'\n + '<tbody>\\n'\n + body\n + '</tbody>\\n'\n + '</table>\\n';\n};\n\nRenderer.prototype.tablerow = function(content) {\n return '<tr>\\n' + content + '</tr>\\n';\n};\n\nRenderer.prototype.tablecell = function(content, flags) {\n var type = flags.header ? 'th' : 'td';\n var tag = flags.align\n ? '<' + type + ' style=\"text-align:' + flags.align + '\">'\n : '<' + type + '>';\n return tag + content + '</' + type + '>\\n';\n};\n\n// span level renderer\nRenderer.prototype.strong = function(text) {\n return '<strong>' + text + '</strong>';\n};\n\nRenderer.prototype.em = function(text) {\n return '<em>' + text + '</em>';\n};\n\nRenderer.prototype.codespan = function(text) {\n return '<code>' + text + '</code>';\n};\n\nRenderer.prototype.br = function() {\n return this.options.xhtml ? '<br/>' : '<br>';\n};\n\nRenderer.prototype.del = function(text) {\n return '<del>' + text + '</del>';\n};\n\nRenderer.prototype.link = function(href, title, text) {\n if (this.options.sanitize) {\n try {\n var prot = decodeURIComponent(unescape(href))\n .replace(/[^\\w:]/g, '')\n .toLowerCase();\n } catch (e) {\n return '';\n }\n if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) {\n return '';\n }\n }\n var out = '<a href=\"' + href + '\"';\n if (title) {\n out += ' title=\"' + title + '\"';\n }\n out += '>' + text + '</a>';\n return out;\n};\n\nRenderer.prototype.image = function(href, title, text) {\n var out = '<img src=\"' + href + '\" alt=\"' + text + '\"';\n if (title) {\n out += ' title=\"' + title + '\"';\n }\n out += this.options.xhtml ? '/>' : '>';\n return out;\n};\n\nRenderer.prototype.text = function(text) {\n return text;\n};\n\n/**\n * Parsing & Compiling\n */\n\nfunction Parser(options) {\n this.tokens = [];\n this.token = null;\n this.options = options || marked.defaults;\n this.options.renderer = this.options.renderer || new Renderer;\n this.renderer = this.options.renderer;\n this.renderer.options = this.options;\n}\n\n/**\n * Static Parse Method\n */\n\nParser.parse = function(src, options, renderer) {\n var parser = new Parser(options, renderer);\n return parser.parse(src);\n};\n\n/**\n * Parse Loop\n */\n\nParser.prototype.parse = function(src) {\n this.inline = new InlineLexer(src.links, this.options, this.renderer);\n this.tokens = src.reverse();\n\n var out = '';\n while (this.next()) {\n out += this.tok();\n }\n\n return out;\n};\n\n/**\n * Next Token\n */\n\nParser.prototype.next = function() {\n return this.token = this.tokens.pop();\n};\n\n/**\n * Preview Next Token\n */\n\nParser.prototype.peek = function() {\n return this.tokens[this.tokens.length - 1] || 0;\n};\n\n/**\n * Parse Text Tokens\n */\n\nParser.prototype.parseText = function() {\n var body = this.token.text;\n\n while (this.peek().type === 'text') {\n body += '\\n' + this.next().text;\n }\n\n return this.inline.output(body);\n};\n\n/**\n * Parse Current Token\n */\n\nParser.prototype.tok = function() {\n switch (this.token.type) {\n case 'space': {\n return '';\n }\n case 'hr': {\n return this.renderer.hr();\n }\n case 'heading': {\n return this.renderer.heading(\n this.inline.output(this.token.text),\n this.token.depth,\n this.token.text);\n }\n case 'code': {\n return this.renderer.code(this.token.text,\n this.token.lang,\n this.token.escaped);\n }\n case 'table': {\n var header = ''\n , body = ''\n , i\n , row\n , cell\n , flags\n , j;\n\n // header\n cell = '';\n for (i = 0; i < this.token.header.length; i++) {\n flags = { header: true, align: this.token.align[i] };\n cell += this.renderer.tablecell(\n this.inline.output(this.token.header[i]),\n { header: true, align: this.token.align[i] }\n );\n }\n header += this.renderer.tablerow(cell);\n\n for (i = 0; i < this.token.cells.length; i++) {\n row = this.token.cells[i];\n\n cell = '';\n for (j = 0; j < row.length; j++) {\n cell += this.renderer.tablecell(\n this.inline.output(row[j]),\n { header: false, align: this.token.align[j] }\n );\n }\n\n body += this.renderer.tablerow(cell);\n }\n return this.renderer.table(header, body);\n }\n case 'blockquote_start': {\n var body = '';\n\n while (this.next().type !== 'blockquote_end') {\n body += this.tok();\n }\n\n return this.renderer.blockquote(body);\n }\n case 'list_start': {\n var body = ''\n , ordered = this.token.ordered;\n\n while (this.next().type !== 'list_end') {\n body += this.tok();\n }\n\n return this.renderer.list(body, ordered);\n }\n case 'list_item_start': {\n var body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.token.type === 'text'\n ? this.parseText()\n : this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'loose_item_start': {\n var body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'html': {\n var html = !this.token.pre && !this.options.pedantic\n ? this.inline.output(this.token.text)\n : this.token.text;\n return this.renderer.html(html);\n }\n case 'paragraph': {\n return this.renderer.paragraph(this.inline.output(this.token.text));\n }\n case 'text': {\n return this.renderer.paragraph(this.parseText());\n }\n }\n};\n\n/**\n * Helpers\n */\n\nfunction escape(html, encode) {\n return html\n .replace(!encode ? /&(?!#?\\w+;)/g : /&/g, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n\nfunction unescape(html) {\n return html.replace(/&([#\\w]+);/g, function(_, n) {\n n = n.toLowerCase();\n if (n === 'colon') return ':';\n if (n.charAt(0) === '#') {\n return n.charAt(1) === 'x'\n ? String.fromCharCode(parseInt(n.substring(2), 16))\n : String.fromCharCode(+n.substring(1));\n }\n return '';\n });\n}\n\nfunction replace(regex, opt) {\n regex = regex.source;\n opt = opt || '';\n return function self(name, val) {\n if (!name) return new RegExp(regex, opt);\n val = val.source || val;\n val = val.replace(/(^|[^\\[])\\^/g, '$1');\n regex = regex.replace(name, val);\n return self;\n };\n}\n\nfunction noop() {}\nnoop.exec = noop;\n\nfunction merge(obj) {\n var i = 1\n , target\n , key;\n\n for (; i < arguments.length; i++) {\n target = arguments[i];\n for (key in target) {\n if (Object.prototype.hasOwnProperty.call(target, key)) {\n obj[key] = target[key];\n }\n }\n }\n\n return obj;\n}\n\n\n/**\n * Marked\n */\n\nfunction marked(src, opt, callback) {\n if (callback || typeof opt === 'function') {\n if (!callback) {\n callback = opt;\n opt = null;\n }\n\n opt = merge({}, marked.defaults, opt || {});\n\n var highlight = opt.highlight\n , tokens\n , pending\n , i = 0;\n\n try {\n tokens = Lexer.lex(src, opt)\n } catch (e) {\n return callback(e);\n }\n\n pending = tokens.length;\n\n var done = function(err) {\n if (err) {\n opt.highlight = highlight;\n return callback(err);\n }\n\n var out;\n\n try {\n out = Parser.parse(tokens, opt);\n } catch (e) {\n err = e;\n }\n\n opt.highlight = highlight;\n\n return err\n ? callback(err)\n : callback(null, out);\n };\n\n if (!highlight || highlight.length < 3) {\n return done();\n }\n\n delete opt.highlight;\n\n if (!pending) return done();\n\n for (; i < tokens.length; i++) {\n (function(token) {\n if (token.type !== 'code') {\n return --pending || done();\n }\n return highlight(token.text, token.lang, function(err, code) {\n if (err) return done(err);\n if (code == null || code === token.text) {\n return --pending || done();\n }\n token.text = code;\n token.escaped = true;\n --pending || done();\n });\n })(tokens[i]);\n }\n\n return;\n }\n try {\n if (opt) opt = merge({}, marked.defaults, opt);\n return Parser.parse(Lexer.lex(src, opt), opt);\n } catch (e) {\n e.message += '\\nPlease report this to https://github.com/chjj/marked.';\n if ((opt || marked.defaults).silent) {\n return '<p>An error occured:</p><pre>'\n + escape(e.message + '', true)\n + '</pre>';\n }\n throw e;\n }\n}\n\n/**\n * Options\n */\n\nmarked.options =\nmarked.setOptions = function(opt) {\n merge(marked.defaults, opt);\n return marked;\n};\n\nmarked.defaults = {\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n sanitize: false,\n sanitizer: null,\n mangle: true,\n smartLists: false,\n silent: false,\n highlight: null,\n langPrefix: 'lang-',\n smartypants: false,\n headerPrefix: '',\n renderer: new Renderer,\n xhtml: false\n};\n\n/**\n * Expose\n */\n\nmarked.Parser = Parser;\nmarked.parser = Parser.parse;\n\nmarked.Renderer = Renderer;\n\nmarked.Lexer = Lexer;\nmarked.lexer = Lexer.lex;\n\nmarked.InlineLexer = InlineLexer;\nmarked.inlineLexer = InlineLexer.output;\n\nmarked.parse = marked;\n\nif (typeof module !== 'undefined' && typeof exports === 'object') {\n module.exports = marked;\n} else if (typeof define === 'function' && define.amd) {\n define(function() { return marked; });\n} else {\n this.marked = marked;\n}\n\n}).call(function() {\n return this || (typeof window !== 'undefined' ? window : global);\n}());\n","module.exports = require(\"npm:marked@0.3.5/lib/marked.js\");","'use strict';\n\nimport {Pipe} from 'angular2/core';\nimport {isString, stringify, isBlank} from 'angular2/src/facade/lang';\nimport {BaseException} from 'angular2/src/facade/exceptions';\nimport {JsonPointer} from './JsonPointer';\n\nimport Prism from 'prismjs';\nimport 'prismjs/components/prism-actionscript.js';\nimport 'prismjs/components/prism-c.js';\nimport 'prismjs/components/prism-cpp.js';\nimport 'prismjs/components/prism-csharp.js';\nimport 'prismjs/components/prism-php.js';\nimport 'prismjs/components/prism-coffeescript.js';\nimport 'prismjs/components/prism-go.js';\nimport 'prismjs/components/prism-haskell.js';\n//import 'prismjs/components/prism-scala.js';\nimport 'prismjs/components/prism-java.js';\nimport 'prismjs/components/prism-lua.js';\nimport 'prismjs/components/prism-matlab.js';\nimport 'prismjs/components/prism-objectivec.js';\nimport 'prismjs/components/prism-perl.js';\nimport 'prismjs/components/prism-python.js';\nimport 'prismjs/components/prism-r.js';\nimport 'prismjs/components/prism-ruby.js';\nimport 'prismjs/components/prism-bash.js';\nimport 'prismjs/components/prism-swift.js';\nimport 'prismjs/components/prism-vim.js';\n\nimport 'prismjs/themes/prism-dark.css!css';\n\nimport marked from 'marked';\n\nmarked.setOptions({\n renderer: new marked.Renderer(),\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n smartLists: true,\n smartypants: false\n});\n\nclass InvalidPipeArgumentException extends BaseException {\n constructor(type, value) {\n super(`Invalid argument '${value}' for pipe '${stringify(type)}'`);\n }\n}\n\n@Pipe({ name: 'keys' })\nexport class KeysPipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (typeof value !== 'object') {\n throw new InvalidPipeArgumentException(ValuesPipe, value);\n }\n return Object.keys(value);\n }\n}\n\n@Pipe({ name: 'values' })\nexport class ValuesPipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (typeof value !== 'object') {\n throw new InvalidPipeArgumentException(ValuesPipe, value);\n }\n return Object.keys(value).map(key => value[key]);\n }\n}\n\n@Pipe({ name: 'jsonPointerEscape' })\nexport class JsonPointerEscapePipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);\n }\n return JsonPointer.escape(value);\n }\n}\n\n@Pipe({ name: 'marked' })\nexport class MarkedPipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);\n }\n return `<span class=\"redoc-markdown-block\">${marked(value)}</span>`;\n }\n}\n\nconst langMap = {\n 'c++': 'cpp',\n 'c#': 'csharp',\n 'objective-c': 'objectivec',\n 'shell': 'bash',\n 'viml': 'vim'\n};\n\n@Pipe({ name: 'prism' })\nexport class PrismPipe {\n transform(value, args) {\n if (isBlank(args) || args.length === 0) {\n throw new BaseException('Prism pipe requires one argument');\n }\n if (isBlank(value)) return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);\n }\n let lang = args[0].toString().trim().toLowerCase();\n if (langMap[lang]) lang = langMap[lang];\n\n let grammar = Prism.languages[lang];\n //fallback to clike\n if (!grammar) grammar = Prism.languages.clike;\n return Prism.highlight(value, grammar);\n }\n}\n","'use strict';\nimport {Component, View, OnInit, OnDestroy, ChangeDetectionStrategy} from 'angular2/core';\nimport {CORE_DIRECTIVES, JsonPipe, AsyncPipe} from 'angular2/common';\nimport SchemaManager from '../utils/SchemaManager';\nimport JsonPointer from '../utils/JsonPointer';\nimport {MarkedPipe, JsonPointerEscapePipe} from '../utils/pipes';\n\nexport { SchemaManager };\n\n// common inputs for all components\nlet commonInputs = ['pointer']; // json pointer to the schema chunk\n\n// internal helper function\nfunction safeConcat(a, b) {\n let res = a && a.slice() || [];\n b = (b == null) ? [] : b;\n return res.concat(b);\n}\n\nfunction snapshot(obj) {\n if(obj == null || typeof(obj) != 'object') {\n return obj;\n }\n\n var temp = new obj.constructor();\n\n for(var key in obj) {\n if (obj.hasOwnProperty(key)) {\n temp[key] = snapshot(obj[key]);\n }\n }\n\n return temp;\n}\n\n/**\n * Class decorator\n * Simplifies setup of component metainfo\n * All options are options from either Component or View angular2 decorator\n * For detailed info look angular2 doc\n * @param {Object} options - component options\n * @param {string[]} options.inputs - component inputs\n * @param {*[]} options.directives - directives used by component\n * (except CORE_DIRECTIVES)\n * @param {*[]} options.pipes - pipes used by component\n * @param {*[]} options.providers - component providers\n * @param {string} options.templateUrl - path to component template\n * @param {string} options.template - component template html\n * @param {string} options.styles - component css styles\n */\nexport function RedocComponent(options) {\n let inputs = safeConcat(options.inputs, commonInputs);\n let directives = safeConcat(options.directives, CORE_DIRECTIVES);\n let pipes = safeConcat(options.pipes, [JsonPointerEscapePipe, MarkedPipe, JsonPipe, AsyncPipe]);\n\n return function decorator(target) {\n\n let componentDecorator = Component({\n selector: options.selector,\n inputs: inputs,\n outputs: options.outputs,\n lifecycle: [OnInit, OnDestroy],\n providers: options.providers,\n changeDetection: options.changeDetection || ChangeDetectionStrategy.Detached\n });\n let viewDecorator = View({\n templateUrl: options.templateUrl,\n template: options.template,\n styles: options.styles,\n directives: directives,\n pipes: pipes\n });\n\n return componentDecorator(viewDecorator(target) || target) || target;\n };\n}\n\n/**\n * Generic Component\n * @class\n */\n@Reflect.metadata('parameters', [[SchemaManager]])\nexport class BaseComponent {\n constructor(schemaMgr) {\n this.schemaMgr = schemaMgr;\n this.schema = schemaMgr.schema;\n this.componentSchema = null;\n }\n\n /**\n * onInit method is run by angular2 after all component inputs are resolved\n */\n ngOnInit() {\n this.componentSchema = snapshot(this.schemaMgr.byPointer(this.pointer || ''));\n this.prepareModel();\n this.init();\n }\n\n ngOnDestroy() {\n this.destroy();\n }\n\n /**\n * simple in-place schema dereferencing. Schema is already bundled so no need in global dereferencing.\n */\n dereference(schema = Object.assign({}, this.componentSchema)) {\n let dereferencedCache = {};\n\n let resolve = (schema) => {\n let resolvedRef;\n if (schema && schema.$ref) {\n resolvedRef = schema.$ref;\n let resolved = this.schemaMgr.byPointer(schema.$ref);\n let baseName = JsonPointer.baseName(schema.$ref);\n if (!dereferencedCache[schema.$ref]) {\n // if resolved schema doesn't have title use name from ref\n resolved = Object.assign({}, resolved);\n resolved._pointer = schema.$ref;\n } else {\n // for circular referenced save only title and type\n resolved = {\n title: resolved.title,\n type: resolved.type\n };\n }\n\n dereferencedCache[schema.$ref] = dereferencedCache[schema.$ref] ? dereferencedCache[schema.$ref] + 1 : 1;\n\n resolved.title = resolved.title || baseName;\n\n let keysCount = Object.keys(schema).length;\n if ( keysCount > 2 || (keysCount === 2 && !schema.description) ) {\n // allow only description field on the same level as $ref because it is\n // common pattern over specs in the wild\n console.warn(`other properties defined at the same level as $ref at '${this.pointer}'.\n They are IGNORRED according to JsonSchema spec`);\n }\n\n schema = schema.description ? {\n description: schema.description\n } : {};\n Object.assign(schema, resolved);\n }\n\n Object.keys(schema).forEach((key) => {\n let value = schema[key];\n if (value && typeof value === 'object') {\n schema[key] = resolve(value);\n }\n });\n if (resolvedRef) dereferencedCache[resolvedRef] = dereferencedCache[resolvedRef] ? dereferencedCache[resolvedRef] - 1 : 0;\n return schema;\n };\n\n this.componentSchema = resolve(schema, 1);\n }\n\n joinAllOf(schema = this.componentSchema, opts) {\n var self = this;\n function merge(into, schemas) {\n if (into.required || into.properties) {\n let errMessage = `Can\\'t merge allOf: properties or required fields are specified on the same level as allOf\n ${into}`;\n throw new Error(errMessage);\n }\n into.required = [];\n into.properties = {};\n for (let subSchema of schemas) {\n if (opts && opts.omitParent && subSchema.discriminator) continue;\n\n // TODO: add support for merge array schemas\n if (typeof subSchema !== 'object' || subSchema.type !== 'object') {\n let errMessage = `Can\\'t merge allOf: only subschemas with type: object can be merged\n ${subSchema}`;\n throw new Error(errMessage);\n }\n\n self.joinAllOf(subSchema);\n\n // TODO: add check if can be merged correctly (no different properties with the same name)\n if (subSchema.properties) {\n Object.assign(into.properties, subSchema.properties);\n }\n if (subSchema.required) {\n into.required.push(...subSchema.required);\n }\n }\n into.type = 'object';\n into.allOf = null;\n }\n if (schema.allOf) {\n merge(schema, schema.allOf);\n }\n }\n\n /**\n * Used to prepare model based on component schema\n * @abstract\n */\n prepareModel() {}\n\n /**\n * Used to initialize component. Run after prepareModel\n * @abstract\n */\n init() {}\n\n /**\n + Used to destroy component\n * @abstract\n */\n destroy() {}\n}\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar async_1 = require('../../facade/async');\nvar core_1 = require('../../../core');\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\nvar ObservableStrategy = (function() {\n function ObservableStrategy() {}\n ObservableStrategy.prototype.createSubscription = function(async, updateLatestValue) {\n return async_1.ObservableWrapper.subscribe(async, updateLatestValue, function(e) {\n throw e;\n });\n };\n ObservableStrategy.prototype.dispose = function(subscription) {\n async_1.ObservableWrapper.dispose(subscription);\n };\n ObservableStrategy.prototype.onDestroy = function(subscription) {\n async_1.ObservableWrapper.dispose(subscription);\n };\n return ObservableStrategy;\n})();\nvar PromiseStrategy = (function() {\n function PromiseStrategy() {}\n PromiseStrategy.prototype.createSubscription = function(async, updateLatestValue) {\n return async.then(updateLatestValue);\n };\n PromiseStrategy.prototype.dispose = function(subscription) {};\n PromiseStrategy.prototype.onDestroy = function(subscription) {};\n return PromiseStrategy;\n})();\nvar _promiseStrategy = new PromiseStrategy();\nvar _observableStrategy = new ObservableStrategy();\nvar AsyncPipe = (function() {\n function AsyncPipe(_ref) {\n this._latestValue = null;\n this._latestReturnedValue = null;\n this._subscription = null;\n this._obj = null;\n this._strategy = null;\n this._ref = _ref;\n }\n AsyncPipe.prototype.ngOnDestroy = function() {\n if (lang_1.isPresent(this._subscription)) {\n this._dispose();\n }\n };\n AsyncPipe.prototype.transform = function(obj, args) {\n if (lang_1.isBlank(this._obj)) {\n if (lang_1.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 } else {\n this._latestReturnedValue = this._latestValue;\n return core_1.WrappedValue.wrap(this._latestValue);\n }\n };\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) {\n return _this._updateLatestValue(obj, value);\n });\n };\n AsyncPipe.prototype._selectStrategy = function(obj) {\n if (lang_1.isPromise(obj)) {\n return _promiseStrategy;\n } else if (async_1.ObservableWrapper.isObservable(obj)) {\n return _observableStrategy;\n } else {\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(AsyncPipe, obj);\n }\n };\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 AsyncPipe.prototype._updateLatestValue = function(async, value) {\n if (async === this._obj) {\n this._latestValue = value;\n this._ref.markForCheck();\n }\n };\n AsyncPipe = __decorate([core_1.Pipe({\n name: 'async',\n pure: false\n }), core_1.Injectable(), __metadata('design:paramtypes', [core_1.ChangeDetectorRef])], AsyncPipe);\n return AsyncPipe;\n})();\nexports.AsyncPipe = AsyncPipe;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar core_1 = require('../../../core');\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\nvar UpperCasePipe = (function() {\n function UpperCasePipe() {}\n UpperCasePipe.prototype.transform = function(value, args) {\n if (args === void 0) {\n args = null;\n }\n if (lang_1.isBlank(value))\n return value;\n if (!lang_1.isString(value)) {\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(UpperCasePipe, value);\n }\n return value.toUpperCase();\n };\n UpperCasePipe = __decorate([lang_1.CONST(), core_1.Pipe({name: 'uppercase'}), core_1.Injectable(), __metadata('design:paramtypes', [])], UpperCasePipe);\n return UpperCasePipe;\n})();\nexports.UpperCasePipe = UpperCasePipe;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar core_1 = require('../../../core');\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\nvar LowerCasePipe = (function() {\n function LowerCasePipe() {}\n LowerCasePipe.prototype.transform = function(value, args) {\n if (args === void 0) {\n args = null;\n }\n if (lang_1.isBlank(value))\n return value;\n if (!lang_1.isString(value)) {\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(LowerCasePipe, value);\n }\n return value.toLowerCase();\n };\n LowerCasePipe = __decorate([lang_1.CONST(), core_1.Pipe({name: 'lowercase'}), core_1.Injectable(), __metadata('design:paramtypes', [])], LowerCasePipe);\n return LowerCasePipe;\n})();\nexports.LowerCasePipe = LowerCasePipe;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar core_1 = require('../../../core');\nvar JsonPipe = (function() {\n function JsonPipe() {}\n JsonPipe.prototype.transform = function(value, args) {\n if (args === void 0) {\n args = null;\n }\n return lang_1.Json.stringify(value);\n };\n JsonPipe = __decorate([lang_1.CONST(), core_1.Pipe({\n name: 'json',\n pure: false\n }), core_1.Injectable(), __metadata('design:paramtypes', [])], JsonPipe);\n return JsonPipe;\n})();\nexports.JsonPipe = JsonPipe;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar core_1 = require('../../../core');\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\nvar SlicePipe = (function() {\n function SlicePipe() {}\n SlicePipe.prototype.transform = function(value, args) {\n if (args === void 0) {\n args = null;\n }\n if (lang_1.isBlank(args) || args.length == 0) {\n throw new exceptions_1.BaseException('Slice pipe requires one argument');\n }\n if (!this.supports(value)) {\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(SlicePipe, value);\n }\n if (lang_1.isBlank(value))\n return value;\n var start = args[0];\n var end = args.length > 1 ? args[1] : null;\n if (lang_1.isString(value)) {\n return lang_1.StringWrapper.slice(value, start, end);\n }\n return collection_1.ListWrapper.slice(value, start, end);\n };\n SlicePipe.prototype.supports = function(obj) {\n return lang_1.isString(obj) || lang_1.isArray(obj);\n };\n SlicePipe = __decorate([core_1.Pipe({\n name: 'slice',\n pure: false\n }), core_1.Injectable(), __metadata('design:paramtypes', [])], SlicePipe);\n return SlicePipe;\n})();\nexports.SlicePipe = SlicePipe;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar intl_1 = require('../../facade/intl');\nvar core_1 = require('../../../core');\nvar collection_1 = require('../../facade/collection');\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\nvar defaultLocale = 'en-US';\nvar DatePipe = (function() {\n function DatePipe() {}\n DatePipe.prototype.transform = function(value, args) {\n if (lang_1.isBlank(value))\n return null;\n if (!this.supports(value)) {\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(DatePipe, value);\n }\n var pattern = lang_1.isPresent(args) && args.length > 0 ? args[0] : 'mediumDate';\n if (lang_1.isNumber(value)) {\n value = lang_1.DateWrapper.fromMillis(value);\n }\n if (collection_1.StringMapWrapper.contains(DatePipe._ALIASES, pattern)) {\n pattern = collection_1.StringMapWrapper.get(DatePipe._ALIASES, pattern);\n }\n return intl_1.DateFormatter.format(value, defaultLocale, pattern);\n };\n DatePipe.prototype.supports = function(obj) {\n return lang_1.isDate(obj) || lang_1.isNumber(obj);\n };\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 = __decorate([lang_1.CONST(), core_1.Pipe({\n name: 'date',\n pure: true\n }), core_1.Injectable(), __metadata('design:paramtypes', [])], DatePipe);\n return DatePipe;\n})();\nexports.DatePipe = DatePipe;\n","/* */ \n'use strict';(function (NumberFormatStyle) {\r\n NumberFormatStyle[NumberFormatStyle[\"Decimal\"] = 0] = \"Decimal\";\r\n NumberFormatStyle[NumberFormatStyle[\"Percent\"] = 1] = \"Percent\";\r\n NumberFormatStyle[NumberFormatStyle[\"Currency\"] = 2] = \"Currency\";\r\n})(exports.NumberFormatStyle || (exports.NumberFormatStyle = {}));\r\nvar NumberFormatStyle = exports.NumberFormatStyle;\r\nvar NumberFormatter = (function () {\r\n function NumberFormatter() {\r\n }\r\n NumberFormatter.format = function (num, locale, style, _a) {\r\n var _b = _a === void 0 ? {} : _a, _c = _b.minimumIntegerDigits, minimumIntegerDigits = _c === void 0 ? 1 : _c, _d = _b.minimumFractionDigits, minimumFractionDigits = _d === void 0 ? 0 : _d, _e = _b.maximumFractionDigits, maximumFractionDigits = _e === void 0 ? 3 : _e, currency = _b.currency, _f = _b.currencyAsSymbol, currencyAsSymbol = _f === void 0 ? false : _f;\r\n var intlOptions = {\r\n minimumIntegerDigits: minimumIntegerDigits,\r\n minimumFractionDigits: minimumFractionDigits,\r\n maximumFractionDigits: maximumFractionDigits\r\n };\r\n intlOptions.style = NumberFormatStyle[style].toLowerCase();\r\n if (style == NumberFormatStyle.Currency) {\r\n intlOptions.currency = currency;\r\n intlOptions.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\r\n }\r\n return new Intl.NumberFormat(locale, intlOptions).format(num);\r\n };\r\n return NumberFormatter;\r\n})();\r\nexports.NumberFormatter = NumberFormatter;\r\nfunction digitCondition(len) {\r\n return len == 2 ? '2-digit' : 'numeric';\r\n}\r\nfunction nameCondition(len) {\r\n return len < 4 ? 'short' : 'long';\r\n}\r\nfunction extractComponents(pattern) {\r\n var ret = {};\r\n var i = 0, j;\r\n while (i < pattern.length) {\r\n j = i;\r\n while (j < pattern.length && pattern[j] == pattern[i])\r\n j++;\r\n var len = j - i;\r\n switch (pattern[i]) {\r\n case 'G':\r\n ret.era = nameCondition(len);\r\n break;\r\n case 'y':\r\n ret.year = digitCondition(len);\r\n break;\r\n case 'M':\r\n if (len >= 3)\r\n ret.month = nameCondition(len);\r\n else\r\n ret.month = digitCondition(len);\r\n break;\r\n case 'd':\r\n ret.day = digitCondition(len);\r\n break;\r\n case 'E':\r\n ret.weekday = nameCondition(len);\r\n break;\r\n case 'j':\r\n ret.hour = digitCondition(len);\r\n break;\r\n case 'h':\r\n ret.hour = digitCondition(len);\r\n ret.hour12 = true;\r\n break;\r\n case 'H':\r\n ret.hour = digitCondition(len);\r\n ret.hour12 = false;\r\n break;\r\n case 'm':\r\n ret.minute = digitCondition(len);\r\n break;\r\n case 's':\r\n ret.second = digitCondition(len);\r\n break;\r\n case 'z':\r\n ret.timeZoneName = 'long';\r\n break;\r\n case 'Z':\r\n ret.timeZoneName = 'short';\r\n break;\r\n }\r\n i = j;\r\n }\r\n return ret;\r\n}\r\nvar dateFormatterCache = new Map();\r\nvar DateFormatter = (function () {\r\n function DateFormatter() {\r\n }\r\n DateFormatter.format = function (date, locale, pattern) {\r\n var key = locale + pattern;\r\n if (dateFormatterCache.has(key)) {\r\n return dateFormatterCache.get(key).format(date);\r\n }\r\n var formatter = new Intl.DateTimeFormat(locale, extractComponents(pattern));\r\n dateFormatterCache.set(key, formatter);\r\n return formatter.format(date);\r\n };\r\n return DateFormatter;\r\n})();\r\nexports.DateFormatter = DateFormatter;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50bC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9mYWNhZGUvaW50bC50cyJdLCJuYW1lcyI6WyJOdW1iZXJGb3JtYXRTdHlsZSIsIk51bWJlckZvcm1hdHRlciIsIk51bWJlckZvcm1hdHRlci5jb25zdHJ1Y3RvciIsIk51bWJlckZvcm1hdHRlci5mb3JtYXQiLCJkaWdpdENvbmRpdGlvbiIsIm5hbWVDb25kaXRpb24iLCJleHRyYWN0Q29tcG9uZW50cyIsIkRhdGVGb3JtYXR0ZXIiLCJEYXRlRm9ybWF0dGVyLmNvbnN0cnVjdG9yIiwiRGF0ZUZvcm1hdHRlci5mb3JtYXQiXSwibWFwcGluZ3MiOiJBQTJDQSxXQUFZLGlCQUFpQjtJQUMzQ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XG4gICAgZGF0ZUZvcm1hdHRlckNhY2hlLnNldChrZXksIGZvcm1hdHRlcik7XG4gICAgcmV0dXJuIGZvcm1hdHRlci5mb3JtYXQoZGF0ZSk7XG4gIH1cbn1cbiJdfQ==","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar InvalidPipeArgumentException = (function(_super) {\n __extends(InvalidPipeArgumentException, _super);\n function InvalidPipeArgumentException(type, value) {\n _super.call(this, \"Invalid argument '\" + value + \"' for pipe '\" + lang_1.stringify(type) + \"'\");\n }\n return InvalidPipeArgumentException;\n})(exceptions_1.BaseException);\nexports.InvalidPipeArgumentException = InvalidPipeArgumentException;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar intl_1 = require('../../facade/intl');\nvar core_1 = require('../../../core');\nvar collection_1 = require('../../facade/collection');\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\nvar defaultLocale = 'en-US';\nvar _re = lang_1.RegExpWrapper.create('^(\\\\d+)?\\\\.((\\\\d+)(\\\\-(\\\\d+))?)?$');\nvar NumberPipe = (function() {\n function NumberPipe() {}\n NumberPipe._format = function(value, style, digits, currency, currencyAsSymbol) {\n if (currency === void 0) {\n currency = null;\n }\n if (currencyAsSymbol === void 0) {\n currencyAsSymbol = false;\n }\n if (lang_1.isBlank(value))\n return null;\n if (!lang_1.isNumber(value)) {\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(NumberPipe, value);\n }\n var minInt = 1,\n minFraction = 0,\n maxFraction = 3;\n if (lang_1.isPresent(digits)) {\n var parts = lang_1.RegExpWrapper.firstMatch(_re, digits);\n if (lang_1.isBlank(parts)) {\n throw new exceptions_1.BaseException(digits + \" is not a valid digit info for number pipes\");\n }\n if (lang_1.isPresent(parts[1])) {\n minInt = lang_1.NumberWrapper.parseIntAutoRadix(parts[1]);\n }\n if (lang_1.isPresent(parts[3])) {\n minFraction = lang_1.NumberWrapper.parseIntAutoRadix(parts[3]);\n }\n if (lang_1.isPresent(parts[5])) {\n maxFraction = lang_1.NumberWrapper.parseIntAutoRadix(parts[5]);\n }\n }\n return intl_1.NumberFormatter.format(value, defaultLocale, style, {\n minimumIntegerDigits: minInt,\n minimumFractionDigits: minFraction,\n maximumFractionDigits: maxFraction,\n currency: currency,\n currencyAsSymbol: currencyAsSymbol\n });\n };\n NumberPipe = __decorate([lang_1.CONST(), core_1.Injectable(), __metadata('design:paramtypes', [])], NumberPipe);\n return NumberPipe;\n})();\nexports.NumberPipe = NumberPipe;\nvar DecimalPipe = (function(_super) {\n __extends(DecimalPipe, _super);\n function DecimalPipe() {\n _super.apply(this, arguments);\n }\n DecimalPipe.prototype.transform = function(value, args) {\n var digits = collection_1.ListWrapper.first(args);\n return NumberPipe._format(value, intl_1.NumberFormatStyle.Decimal, digits);\n };\n DecimalPipe = __decorate([lang_1.CONST(), core_1.Pipe({name: 'number'}), core_1.Injectable(), __metadata('design:paramtypes', [])], DecimalPipe);\n return DecimalPipe;\n})(NumberPipe);\nexports.DecimalPipe = DecimalPipe;\nvar PercentPipe = (function(_super) {\n __extends(PercentPipe, _super);\n function PercentPipe() {\n _super.apply(this, arguments);\n }\n PercentPipe.prototype.transform = function(value, args) {\n var digits = collection_1.ListWrapper.first(args);\n return NumberPipe._format(value, intl_1.NumberFormatStyle.Percent, digits);\n };\n PercentPipe = __decorate([lang_1.CONST(), core_1.Pipe({name: 'percent'}), core_1.Injectable(), __metadata('design:paramtypes', [])], PercentPipe);\n return PercentPipe;\n})(NumberPipe);\nexports.PercentPipe = PercentPipe;\nvar CurrencyPipe = (function(_super) {\n __extends(CurrencyPipe, _super);\n function CurrencyPipe() {\n _super.apply(this, arguments);\n }\n CurrencyPipe.prototype.transform = function(value, args) {\n var currencyCode = lang_1.isPresent(args) && args.length > 0 ? args[0] : 'USD';\n var symbolDisplay = lang_1.isPresent(args) && args.length > 1 ? args[1] : false;\n var digits = lang_1.isPresent(args) && args.length > 2 ? args[2] : null;\n return NumberPipe._format(value, intl_1.NumberFormatStyle.Currency, digits, currencyCode, symbolDisplay);\n };\n CurrencyPipe = __decorate([lang_1.CONST(), core_1.Pipe({name: 'currency'}), core_1.Injectable(), __metadata('design:paramtypes', [])], CurrencyPipe);\n return CurrencyPipe;\n})(NumberPipe);\nexports.CurrencyPipe = CurrencyPipe;\n","/* */ \n'use strict';\nvar async_pipe_1 = require('./pipes/async_pipe');\nvar uppercase_pipe_1 = require('./pipes/uppercase_pipe');\nvar lowercase_pipe_1 = require('./pipes/lowercase_pipe');\nvar json_pipe_1 = require('./pipes/json_pipe');\nvar slice_pipe_1 = require('./pipes/slice_pipe');\nvar date_pipe_1 = require('./pipes/date_pipe');\nvar number_pipe_1 = require('./pipes/number_pipe');\nvar lang_1 = require('../facade/lang');\nvar async_pipe_2 = require('./pipes/async_pipe');\nexports.AsyncPipe = async_pipe_2.AsyncPipe;\nvar date_pipe_2 = require('./pipes/date_pipe');\nexports.DatePipe = date_pipe_2.DatePipe;\nvar json_pipe_2 = require('./pipes/json_pipe');\nexports.JsonPipe = json_pipe_2.JsonPipe;\nvar slice_pipe_2 = require('./pipes/slice_pipe');\nexports.SlicePipe = slice_pipe_2.SlicePipe;\nvar lowercase_pipe_2 = require('./pipes/lowercase_pipe');\nexports.LowerCasePipe = lowercase_pipe_2.LowerCasePipe;\nvar number_pipe_2 = require('./pipes/number_pipe');\nexports.NumberPipe = number_pipe_2.NumberPipe;\nexports.DecimalPipe = number_pipe_2.DecimalPipe;\nexports.PercentPipe = number_pipe_2.PercentPipe;\nexports.CurrencyPipe = number_pipe_2.CurrencyPipe;\nvar uppercase_pipe_2 = require('./pipes/uppercase_pipe');\nexports.UpperCasePipe = uppercase_pipe_2.UpperCasePipe;\nexports.COMMON_PIPES = lang_1.CONST_EXPR([async_pipe_1.AsyncPipe, uppercase_pipe_1.UpperCasePipe, lowercase_pipe_1.LowerCasePipe, json_pipe_1.JsonPipe, slice_pipe_1.SlicePipe, number_pipe_1.DecimalPipe, number_pipe_1.PercentPipe, number_pipe_1.CurrencyPipe, date_pipe_1.DatePipe]);\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar lang_1 = require('../../../facade/lang');\nvar async_1 = require('../../../facade/async');\nvar core_1 = require('../../../../core');\nvar control_container_1 = require('./control_container');\nvar ng_control_1 = require('./ng_control');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar shared_1 = require('./shared');\nvar validators_1 = require('../validators');\nvar controlNameBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, {useExisting: core_1.forwardRef(function() {\n return NgControlName;\n })}));\nvar NgControlName = (function(_super) {\n __extends(NgControlName, _super);\n function NgControlName(_parent, _validators, _asyncValidators, valueAccessors) {\n _super.call(this);\n this._parent = _parent;\n this._validators = _validators;\n this._asyncValidators = _asyncValidators;\n this.update = new async_1.EventEmitter();\n this._added = false;\n this.valueAccessor = shared_1.selectValueAccessor(this, valueAccessors);\n }\n NgControlName.prototype.ngOnChanges = function(changes) {\n if (!this._added) {\n this.formDirective.addControl(this);\n this._added = true;\n }\n if (shared_1.isPropertyUpdated(changes, this.viewModel)) {\n this.viewModel = this.model;\n this.formDirective.updateModel(this, this.model);\n }\n };\n NgControlName.prototype.ngOnDestroy = function() {\n this.formDirective.removeControl(this);\n };\n NgControlName.prototype.viewToModelUpdate = function(newValue) {\n this.viewModel = newValue;\n async_1.ObservableWrapper.callEmit(this.update, newValue);\n };\n Object.defineProperty(NgControlName.prototype, \"path\", {\n get: function() {\n return shared_1.controlPath(this.name, this._parent);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlName.prototype, \"formDirective\", {\n get: function() {\n return this._parent.formDirective;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlName.prototype, \"validator\", {\n get: function() {\n return shared_1.composeValidators(this._validators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlName.prototype, \"asyncValidator\", {\n get: function() {\n return shared_1.composeAsyncValidators(this._asyncValidators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlName.prototype, \"control\", {\n get: function() {\n return this.formDirective.getControl(this);\n },\n enumerable: true,\n configurable: true\n });\n NgControlName = __decorate([core_1.Directive({\n selector: '[ngControl]',\n bindings: [controlNameBinding],\n inputs: ['name: ngControl', 'model: ngModel'],\n outputs: ['update: ngModelChange'],\n exportAs: 'ngForm'\n }), __param(0, core_1.Host()), __param(0, core_1.SkipSelf()), __param(1, core_1.Optional()), __param(1, core_1.Self()), __param(1, core_1.Inject(validators_1.NG_VALIDATORS)), __param(2, core_1.Optional()), __param(2, core_1.Self()), __param(2, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), __param(3, core_1.Optional()), __param(3, core_1.Self()), __param(3, core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)), __metadata('design:paramtypes', [control_container_1.ControlContainer, Array, Array, Array])], NgControlName);\n return NgControlName;\n})(ng_control_1.NgControl);\nexports.NgControlName = NgControlName;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar lang_1 = require('../../../facade/lang');\nvar collection_1 = require('../../../facade/collection');\nvar async_1 = require('../../../facade/async');\nvar core_1 = require('../../../../core');\nvar ng_control_1 = require('./ng_control');\nvar validators_1 = require('../validators');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar shared_1 = require('./shared');\nvar formControlBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, {useExisting: core_1.forwardRef(function() {\n return NgFormControl;\n })}));\nvar NgFormControl = (function(_super) {\n __extends(NgFormControl, _super);\n function NgFormControl(_validators, _asyncValidators, valueAccessors) {\n _super.call(this);\n this._validators = _validators;\n this._asyncValidators = _asyncValidators;\n this.update = new async_1.EventEmitter();\n this.valueAccessor = shared_1.selectValueAccessor(this, valueAccessors);\n }\n NgFormControl.prototype.ngOnChanges = function(changes) {\n if (this._isControlChanged(changes)) {\n shared_1.setUpControl(this.form, this);\n this.form.updateValueAndValidity({emitEvent: false});\n }\n if (shared_1.isPropertyUpdated(changes, this.viewModel)) {\n this.form.updateValue(this.model);\n this.viewModel = this.model;\n }\n };\n Object.defineProperty(NgFormControl.prototype, \"path\", {\n get: function() {\n return [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgFormControl.prototype, \"validator\", {\n get: function() {\n return shared_1.composeValidators(this._validators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgFormControl.prototype, \"asyncValidator\", {\n get: function() {\n return shared_1.composeAsyncValidators(this._asyncValidators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgFormControl.prototype, \"control\", {\n get: function() {\n return this.form;\n },\n enumerable: true,\n configurable: true\n });\n NgFormControl.prototype.viewToModelUpdate = function(newValue) {\n this.viewModel = newValue;\n async_1.ObservableWrapper.callEmit(this.update, newValue);\n };\n NgFormControl.prototype._isControlChanged = function(changes) {\n return collection_1.StringMapWrapper.contains(changes, \"form\");\n };\n NgFormControl = __decorate([core_1.Directive({\n selector: '[ngFormControl]',\n bindings: [formControlBinding],\n inputs: ['form: ngFormControl', 'model: ngModel'],\n outputs: ['update: ngModelChange'],\n exportAs: 'ngForm'\n }), __param(0, core_1.Optional()), __param(0, core_1.Self()), __param(0, core_1.Inject(validators_1.NG_VALIDATORS)), __param(1, core_1.Optional()), __param(1, core_1.Self()), __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), __param(2, core_1.Optional()), __param(2, core_1.Self()), __param(2, core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)), __metadata('design:paramtypes', [Array, Array, Array])], NgFormControl);\n return NgFormControl;\n})(ng_control_1.NgControl);\nexports.NgFormControl = NgFormControl;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar lang_1 = require('../../../facade/lang');\nvar async_1 = require('../../../facade/async');\nvar core_1 = require('../../../../core');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar ng_control_1 = require('./ng_control');\nvar model_1 = require('../model');\nvar validators_1 = require('../validators');\nvar shared_1 = require('./shared');\nvar formControlBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, {useExisting: core_1.forwardRef(function() {\n return NgModel;\n })}));\nvar NgModel = (function(_super) {\n __extends(NgModel, _super);\n function NgModel(_validators, _asyncValidators, valueAccessors) {\n _super.call(this);\n this._validators = _validators;\n this._asyncValidators = _asyncValidators;\n this._control = new model_1.Control();\n this._added = false;\n this.update = new async_1.EventEmitter();\n this.valueAccessor = shared_1.selectValueAccessor(this, valueAccessors);\n }\n NgModel.prototype.ngOnChanges = function(changes) {\n if (!this._added) {\n shared_1.setUpControl(this._control, this);\n this._control.updateValueAndValidity({emitEvent: false});\n this._added = true;\n }\n if (shared_1.isPropertyUpdated(changes, this.viewModel)) {\n this._control.updateValue(this.model);\n this.viewModel = this.model;\n }\n };\n Object.defineProperty(NgModel.prototype, \"control\", {\n get: function() {\n return this._control;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModel.prototype, \"path\", {\n get: function() {\n return [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModel.prototype, \"validator\", {\n get: function() {\n return shared_1.composeValidators(this._validators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgModel.prototype, \"asyncValidator\", {\n get: function() {\n return shared_1.composeAsyncValidators(this._asyncValidators);\n },\n enumerable: true,\n configurable: true\n });\n NgModel.prototype.viewToModelUpdate = function(newValue) {\n this.viewModel = newValue;\n async_1.ObservableWrapper.callEmit(this.update, newValue);\n };\n NgModel = __decorate([core_1.Directive({\n selector: '[ngModel]:not([ngControl]):not([ngFormControl])',\n bindings: [formControlBinding],\n inputs: ['model: ngModel'],\n outputs: ['update: ngModelChange'],\n exportAs: 'ngForm'\n }), __param(0, core_1.Optional()), __param(0, core_1.Self()), __param(0, core_1.Inject(validators_1.NG_VALIDATORS)), __param(1, core_1.Optional()), __param(1, core_1.Self()), __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), __param(2, core_1.Optional()), __param(2, core_1.Self()), __param(2, core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)), __metadata('design:paramtypes', [Array, Array, Array])], NgModel);\n return NgModel;\n})(ng_control_1.NgControl);\nexports.NgModel = NgModel;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar core_1 = require('../../../../core');\nvar lang_1 = require('../../../facade/lang');\nvar control_container_1 = require('./control_container');\nvar shared_1 = require('./shared');\nvar validators_1 = require('../validators');\nvar controlGroupProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, {useExisting: core_1.forwardRef(function() {\n return NgControlGroup;\n })}));\nvar NgControlGroup = (function(_super) {\n __extends(NgControlGroup, _super);\n function NgControlGroup(parent, _validators, _asyncValidators) {\n _super.call(this);\n this._validators = _validators;\n this._asyncValidators = _asyncValidators;\n this._parent = parent;\n }\n NgControlGroup.prototype.ngOnInit = function() {\n this.formDirective.addControlGroup(this);\n };\n NgControlGroup.prototype.ngOnDestroy = function() {\n this.formDirective.removeControlGroup(this);\n };\n Object.defineProperty(NgControlGroup.prototype, \"control\", {\n get: function() {\n return this.formDirective.getControlGroup(this);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlGroup.prototype, \"path\", {\n get: function() {\n return shared_1.controlPath(this.name, this._parent);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlGroup.prototype, \"formDirective\", {\n get: function() {\n return this._parent.formDirective;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlGroup.prototype, \"validator\", {\n get: function() {\n return shared_1.composeValidators(this._validators);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlGroup.prototype, \"asyncValidator\", {\n get: function() {\n return shared_1.composeAsyncValidators(this._asyncValidators);\n },\n enumerable: true,\n configurable: true\n });\n NgControlGroup = __decorate([core_1.Directive({\n selector: '[ngControlGroup]',\n providers: [controlGroupProvider],\n inputs: ['name: ngControlGroup'],\n exportAs: 'ngForm'\n }), __param(0, core_1.Host()), __param(0, core_1.SkipSelf()), __param(1, core_1.Optional()), __param(1, core_1.Self()), __param(1, core_1.Inject(validators_1.NG_VALIDATORS)), __param(2, core_1.Optional()), __param(2, core_1.Self()), __param(2, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), __metadata('design:paramtypes', [control_container_1.ControlContainer, Array, Array])], NgControlGroup);\n return NgControlGroup;\n})(control_container_1.ControlContainer);\nexports.NgControlGroup = NgControlGroup;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar lang_1 = require('../../../facade/lang');\nvar collection_1 = require('../../../facade/collection');\nvar async_1 = require('../../../facade/async');\nvar core_1 = require('../../../../core');\nvar control_container_1 = require('./control_container');\nvar shared_1 = require('./shared');\nvar validators_1 = require('../validators');\nvar formDirectiveProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, {useExisting: core_1.forwardRef(function() {\n return NgFormModel;\n })}));\nvar NgFormModel = (function(_super) {\n __extends(NgFormModel, _super);\n function NgFormModel(_validators, _asyncValidators) {\n _super.call(this);\n this._validators = _validators;\n this._asyncValidators = _asyncValidators;\n this.form = null;\n this.directives = [];\n this.ngSubmit = new async_1.EventEmitter();\n }\n NgFormModel.prototype.ngOnChanges = function(changes) {\n if (collection_1.StringMapWrapper.contains(changes, \"form\")) {\n var sync = shared_1.composeValidators(this._validators);\n this.form.validator = validators_1.Validators.compose([this.form.validator, sync]);\n var async = shared_1.composeAsyncValidators(this._asyncValidators);\n this.form.asyncValidator = validators_1.Validators.composeAsync([this.form.asyncValidator, async]);\n this.form.updateValueAndValidity({\n onlySelf: true,\n emitEvent: false\n });\n }\n this._updateDomValue();\n };\n Object.defineProperty(NgFormModel.prototype, \"formDirective\", {\n get: function() {\n return this;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgFormModel.prototype, \"control\", {\n get: function() {\n return this.form;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgFormModel.prototype, \"path\", {\n get: function() {\n return [];\n },\n enumerable: true,\n configurable: true\n });\n NgFormModel.prototype.addControl = function(dir) {\n var ctrl = this.form.find(dir.path);\n shared_1.setUpControl(ctrl, dir);\n ctrl.updateValueAndValidity({emitEvent: false});\n this.directives.push(dir);\n };\n NgFormModel.prototype.getControl = function(dir) {\n return this.form.find(dir.path);\n };\n NgFormModel.prototype.removeControl = function(dir) {\n collection_1.ListWrapper.remove(this.directives, dir);\n };\n NgFormModel.prototype.addControlGroup = function(dir) {\n var ctrl = this.form.find(dir.path);\n shared_1.setUpControlGroup(ctrl, dir);\n ctrl.updateValueAndValidity({emitEvent: false});\n };\n NgFormModel.prototype.removeControlGroup = function(dir) {};\n NgFormModel.prototype.getControlGroup = function(dir) {\n return this.form.find(dir.path);\n };\n NgFormModel.prototype.updateModel = function(dir, value) {\n var ctrl = this.form.find(dir.path);\n ctrl.updateValue(value);\n };\n NgFormModel.prototype.onSubmit = function() {\n async_1.ObservableWrapper.callEmit(this.ngSubmit, null);\n return false;\n };\n NgFormModel.prototype._updateDomValue = function() {\n var _this = this;\n this.directives.forEach(function(dir) {\n var ctrl = _this.form.find(dir.path);\n dir.valueAccessor.writeValue(ctrl.value);\n });\n };\n NgFormModel = __decorate([core_1.Directive({\n selector: '[ngFormModel]',\n bindings: [formDirectiveProvider],\n inputs: ['form: ngFormModel'],\n host: {'(submit)': 'onSubmit()'},\n outputs: ['ngSubmit'],\n exportAs: 'ngForm'\n }), __param(0, core_1.Optional()), __param(0, core_1.Self()), __param(0, core_1.Inject(validators_1.NG_VALIDATORS)), __param(1, core_1.Optional()), __param(1, core_1.Self()), __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), __metadata('design:paramtypes', [Array, Array])], NgFormModel);\n return NgFormModel;\n})(control_container_1.ControlContainer);\nexports.NgFormModel = NgFormModel;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar abstract_control_directive_1 = require('./abstract_control_directive');\nvar ControlContainer = (function(_super) {\n __extends(ControlContainer, _super);\n function ControlContainer() {\n _super.apply(this, arguments);\n }\n Object.defineProperty(ControlContainer.prototype, \"formDirective\", {\n get: function() {\n return null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ControlContainer.prototype, \"path\", {\n get: function() {\n return null;\n },\n enumerable: true,\n configurable: true\n });\n return ControlContainer;\n})(abstract_control_directive_1.AbstractControlDirective);\nexports.ControlContainer = ControlContainer;\n","/* */ \n'use strict';function normalizeValidator(validator) {\r\n if (validator.validate !== undefined) {\r\n return function (c) { return validator.validate(c); };\r\n }\r\n else {\r\n return validator;\r\n }\r\n}\r\nexports.normalizeValidator = normalizeValidator;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9ybWFsaXplX3ZhbGlkYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9ub3JtYWxpemVfdmFsaWRhdG9yLnRzIl0sIm5hbWVzIjpbIm5vcm1hbGl6ZVZhbGlkYXRvciJdLCJtYXBwaW5ncyI6IkFBRUEsNEJBQW1DLFNBQStCO0lBQ2hFQSxFQUFFQSxDQUFDQSxDQUFhQSxTQUFVQSxDQUFDQSxRQUFRQSxLQUFLQSxTQUFTQSxDQUFDQSxDQUFDQSxDQUFDQTtRQUNsREEsTUFBTUEsQ0FBQ0EsVUFBQ0EsQ0FBQ0EsSUFBS0EsT0FBWUEsU0FBVUEsQ0FBQ0EsUUFBUUEsQ0FBQ0EsQ0FBQ0EsQ0FBQ0EsRUFBbENBLENBQWtDQSxDQUFDQTtJQUNuREEsQ0FBQ0E7SUFBQ0EsSUFBSUEsQ0FBQ0EsQ0FBQ0E7UUFDTkEsTUFBTUEsQ0FBV0EsU0FBU0EsQ0FBQ0E7SUFDN0JBLENBQUNBO0FBQ0hBLENBQUNBO0FBTmUsMEJBQWtCLHFCQU1qQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtWYWxpZGF0b3J9IGZyb20gJy4vdmFsaWRhdG9ycyc7XG5cbmV4cG9ydCBmdW5jdGlvbiBub3JtYWxpemVWYWxpZGF0b3IodmFsaWRhdG9yOiBGdW5jdGlvbiB8IFZhbGlkYXRvcik6IEZ1bmN0aW9uIHtcbiAgaWYgKCg8VmFsaWRhdG9yPnZhbGlkYXRvcikudmFsaWRhdGUgIT09IHVuZGVmaW5lZCkge1xuICAgIHJldHVybiAoYykgPT4gKDxWYWxpZGF0b3I+dmFsaWRhdG9yKS52YWxpZGF0ZShjKTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gPEZ1bmN0aW9uPnZhbGlkYXRvcjtcbiAgfVxufVxuIl19","/* */ \n'use strict';\nvar collection_1 = require('../../../facade/collection');\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar validators_1 = require('../validators');\nvar default_value_accessor_1 = require('./default_value_accessor');\nvar number_value_accessor_1 = require('./number_value_accessor');\nvar checkbox_value_accessor_1 = require('./checkbox_value_accessor');\nvar select_control_value_accessor_1 = require('./select_control_value_accessor');\nvar radio_control_value_accessor_1 = require('./radio_control_value_accessor');\nvar normalize_validator_1 = require('./normalize_validator');\nfunction controlPath(name, parent) {\n var p = collection_1.ListWrapper.clone(parent.path);\n p.push(name);\n return p;\n}\nexports.controlPath = controlPath;\nfunction setUpControl(control, dir) {\n if (lang_1.isBlank(control))\n _throwError(dir, \"Cannot find control\");\n if (lang_1.isBlank(dir.valueAccessor))\n _throwError(dir, \"No value accessor for\");\n control.validator = validators_1.Validators.compose([control.validator, dir.validator]);\n control.asyncValidator = validators_1.Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);\n dir.valueAccessor.writeValue(control.value);\n dir.valueAccessor.registerOnChange(function(newValue) {\n dir.viewToModelUpdate(newValue);\n control.updateValue(newValue, {emitModelToViewChange: false});\n control.markAsDirty();\n });\n control.registerOnChange(function(newValue) {\n return dir.valueAccessor.writeValue(newValue);\n });\n dir.valueAccessor.registerOnTouched(function() {\n return control.markAsTouched();\n });\n}\nexports.setUpControl = setUpControl;\nfunction setUpControlGroup(control, dir) {\n if (lang_1.isBlank(control))\n _throwError(dir, \"Cannot find control\");\n control.validator = validators_1.Validators.compose([control.validator, dir.validator]);\n control.asyncValidator = validators_1.Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);\n}\nexports.setUpControlGroup = setUpControlGroup;\nfunction _throwError(dir, message) {\n var path = dir.path.join(\" -> \");\n throw new exceptions_1.BaseException(message + \" '\" + path + \"'\");\n}\nfunction composeValidators(validators) {\n return lang_1.isPresent(validators) ? validators_1.Validators.compose(validators.map(normalize_validator_1.normalizeValidator)) : null;\n}\nexports.composeValidators = composeValidators;\nfunction composeAsyncValidators(validators) {\n return lang_1.isPresent(validators) ? validators_1.Validators.composeAsync(validators.map(normalize_validator_1.normalizeValidator)) : null;\n}\nexports.composeAsyncValidators = composeAsyncValidators;\nfunction isPropertyUpdated(changes, viewModel) {\n if (!collection_1.StringMapWrapper.contains(changes, \"model\"))\n return false;\n var change = changes[\"model\"];\n if (change.isFirstChange())\n return true;\n return !lang_1.looseIdentical(viewModel, change.currentValue);\n}\nexports.isPropertyUpdated = isPropertyUpdated;\nfunction selectValueAccessor(dir, valueAccessors) {\n if (lang_1.isBlank(valueAccessors))\n return null;\n var defaultAccessor;\n var builtinAccessor;\n var customAccessor;\n valueAccessors.forEach(function(v) {\n if (lang_1.hasConstructor(v, default_value_accessor_1.DefaultValueAccessor)) {\n defaultAccessor = v;\n } else if (lang_1.hasConstructor(v, checkbox_value_accessor_1.CheckboxControlValueAccessor) || lang_1.hasConstructor(v, number_value_accessor_1.NumberValueAccessor) || lang_1.hasConstructor(v, select_control_value_accessor_1.SelectControlValueAccessor) || lang_1.hasConstructor(v, radio_control_value_accessor_1.RadioControlValueAccessor)) {\n if (lang_1.isPresent(builtinAccessor))\n _throwError(dir, \"More than one built-in value accessor matches\");\n builtinAccessor = v;\n } else {\n if (lang_1.isPresent(customAccessor))\n _throwError(dir, \"More than one custom value accessor matches\");\n customAccessor = v;\n }\n });\n if (lang_1.isPresent(customAccessor))\n return customAccessor;\n if (lang_1.isPresent(builtinAccessor))\n return builtinAccessor;\n if (lang_1.isPresent(defaultAccessor))\n return defaultAccessor;\n _throwError(dir, \"No valid value accessor for\");\n return null;\n}\nexports.selectValueAccessor = selectValueAccessor;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar async_1 = require('../../../facade/async');\nvar collection_1 = require('../../../facade/collection');\nvar lang_1 = require('../../../facade/lang');\nvar core_1 = require('../../../../core');\nvar control_container_1 = require('./control_container');\nvar model_1 = require('../model');\nvar shared_1 = require('./shared');\nvar validators_1 = require('../validators');\nvar formDirectiveProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, {useExisting: core_1.forwardRef(function() {\n return NgForm;\n })}));\nvar NgForm = (function(_super) {\n __extends(NgForm, _super);\n function NgForm(validators, asyncValidators) {\n _super.call(this);\n this.ngSubmit = new async_1.EventEmitter();\n this.form = new model_1.ControlGroup({}, null, shared_1.composeValidators(validators), shared_1.composeAsyncValidators(asyncValidators));\n }\n Object.defineProperty(NgForm.prototype, \"formDirective\", {\n get: function() {\n return this;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForm.prototype, \"control\", {\n get: function() {\n return this.form;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForm.prototype, \"path\", {\n get: function() {\n return [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgForm.prototype, \"controls\", {\n get: function() {\n return this.form.controls;\n },\n enumerable: true,\n configurable: true\n });\n NgForm.prototype.addControl = function(dir) {\n var _this = this;\n async_1.PromiseWrapper.scheduleMicrotask(function() {\n var container = _this._findContainer(dir.path);\n var ctrl = new model_1.Control();\n shared_1.setUpControl(ctrl, dir);\n container.addControl(dir.name, ctrl);\n ctrl.updateValueAndValidity({emitEvent: false});\n });\n };\n NgForm.prototype.getControl = function(dir) {\n return this.form.find(dir.path);\n };\n NgForm.prototype.removeControl = function(dir) {\n var _this = this;\n async_1.PromiseWrapper.scheduleMicrotask(function() {\n var container = _this._findContainer(dir.path);\n if (lang_1.isPresent(container)) {\n container.removeControl(dir.name);\n container.updateValueAndValidity({emitEvent: false});\n }\n });\n };\n NgForm.prototype.addControlGroup = function(dir) {\n var _this = this;\n async_1.PromiseWrapper.scheduleMicrotask(function() {\n var container = _this._findContainer(dir.path);\n var group = new model_1.ControlGroup({});\n shared_1.setUpControlGroup(group, dir);\n container.addControl(dir.name, group);\n group.updateValueAndValidity({emitEvent: false});\n });\n };\n NgForm.prototype.removeControlGroup = function(dir) {\n var _this = this;\n async_1.PromiseWrapper.scheduleMicrotask(function() {\n var container = _this._findContainer(dir.path);\n if (lang_1.isPresent(container)) {\n container.removeControl(dir.name);\n container.updateValueAndValidity({emitEvent: false});\n }\n });\n };\n NgForm.prototype.getControlGroup = function(dir) {\n return this.form.find(dir.path);\n };\n NgForm.prototype.updateModel = function(dir, value) {\n var _this = this;\n async_1.PromiseWrapper.scheduleMicrotask(function() {\n var ctrl = _this.form.find(dir.path);\n ctrl.updateValue(value);\n });\n };\n NgForm.prototype.onSubmit = function() {\n async_1.ObservableWrapper.callEmit(this.ngSubmit, null);\n return false;\n };\n NgForm.prototype._findContainer = function(path) {\n path.pop();\n return collection_1.ListWrapper.isEmpty(path) ? this.form : this.form.find(path);\n };\n NgForm = __decorate([core_1.Directive({\n selector: 'form:not([ngNoForm]):not([ngFormModel]),ngForm,[ngForm]',\n bindings: [formDirectiveProvider],\n host: {'(submit)': 'onSubmit()'},\n outputs: ['ngSubmit'],\n exportAs: 'ngForm'\n }), __param(0, core_1.Optional()), __param(0, core_1.Self()), __param(0, core_1.Inject(validators_1.NG_VALIDATORS)), __param(1, core_1.Optional()), __param(1, core_1.Self()), __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), __metadata('design:paramtypes', [Array, Array])], NgForm);\n return NgForm;\n})(control_container_1.ControlContainer);\nexports.NgForm = NgForm;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../../core');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar lang_1 = require('../../../facade/lang');\nvar DEFAULT_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, {\n useExisting: core_1.forwardRef(function() {\n return DefaultValueAccessor;\n }),\n multi: true\n}));\nvar 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 = lang_1.isBlank(value) ? '' : value;\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue);\n };\n DefaultValueAccessor.prototype.registerOnChange = function(fn) {\n this.onChange = fn;\n };\n DefaultValueAccessor.prototype.registerOnTouched = function(fn) {\n this.onTouched = fn;\n };\n DefaultValueAccessor = __decorate([core_1.Directive({\n selector: 'input:not([type=checkbox])[ngControl],textarea[ngControl],input:not([type=checkbox])[ngFormControl],textarea[ngFormControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',\n host: {\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()'\n },\n bindings: [DEFAULT_VALUE_ACCESSOR]\n }), __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])], DefaultValueAccessor);\n return DefaultValueAccessor;\n})();\nexports.DefaultValueAccessor = DefaultValueAccessor;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../../core');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar lang_1 = require('../../../facade/lang');\nvar CHECKBOX_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, {\n useExisting: core_1.forwardRef(function() {\n return CheckboxControlValueAccessor;\n }),\n multi: true\n}));\nvar 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) {\n this.onChange = fn;\n };\n CheckboxControlValueAccessor.prototype.registerOnTouched = function(fn) {\n this.onTouched = fn;\n };\n CheckboxControlValueAccessor = __decorate([core_1.Directive({\n selector: 'input[type=checkbox][ngControl],input[type=checkbox][ngFormControl],input[type=checkbox][ngModel]',\n host: {\n '(change)': 'onChange($event.target.checked)',\n '(blur)': 'onTouched()'\n },\n providers: [CHECKBOX_VALUE_ACCESSOR]\n }), __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])], CheckboxControlValueAccessor);\n return CheckboxControlValueAccessor;\n})();\nexports.CheckboxControlValueAccessor = CheckboxControlValueAccessor;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../../core');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar lang_1 = require('../../../facade/lang');\nvar NUMBER_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, {\n useExisting: core_1.forwardRef(function() {\n return NumberValueAccessor;\n }),\n multi: true\n}));\nvar 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 this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', value);\n };\n NumberValueAccessor.prototype.registerOnChange = function(fn) {\n this.onChange = function(value) {\n fn(lang_1.NumberWrapper.parseFloat(value));\n };\n };\n NumberValueAccessor.prototype.registerOnTouched = function(fn) {\n this.onTouched = fn;\n };\n NumberValueAccessor = __decorate([core_1.Directive({\n selector: 'input[type=number][ngControl],input[type=number][ngFormControl],input[type=number][ngModel]',\n host: {\n '(change)': 'onChange($event.target.value)',\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()'\n },\n bindings: [NUMBER_VALUE_ACCESSOR]\n }), __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])], NumberValueAccessor);\n return NumberValueAccessor;\n})();\nexports.NumberValueAccessor = NumberValueAccessor;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar core_1 = require('../../../../core');\nvar ng_control_1 = require('./ng_control');\nvar lang_1 = require('../../../facade/lang');\nvar NgControlStatus = (function() {\n function NgControlStatus(cd) {\n this._cd = cd;\n }\n Object.defineProperty(NgControlStatus.prototype, \"ngClassUntouched\", {\n get: function() {\n return lang_1.isPresent(this._cd.control) ? this._cd.control.untouched : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlStatus.prototype, \"ngClassTouched\", {\n get: function() {\n return lang_1.isPresent(this._cd.control) ? this._cd.control.touched : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlStatus.prototype, \"ngClassPristine\", {\n get: function() {\n return lang_1.isPresent(this._cd.control) ? this._cd.control.pristine : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlStatus.prototype, \"ngClassDirty\", {\n get: function() {\n return lang_1.isPresent(this._cd.control) ? this._cd.control.dirty : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlStatus.prototype, \"ngClassValid\", {\n get: function() {\n return lang_1.isPresent(this._cd.control) ? this._cd.control.valid : false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControlStatus.prototype, \"ngClassInvalid\", {\n get: function() {\n return lang_1.isPresent(this._cd.control) ? !this._cd.control.valid : false;\n },\n enumerable: true,\n configurable: true\n });\n NgControlStatus = __decorate([core_1.Directive({\n selector: '[ngControl],[ngModel],[ngFormControl]',\n host: {\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 }), __param(0, core_1.Self()), __metadata('design:paramtypes', [ng_control_1.NgControl])], NgControlStatus);\n return NgControlStatus;\n})();\nexports.NgControlStatus = NgControlStatus;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar core_1 = require('../../../../core');\nvar async_1 = require('../../../facade/async');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar lang_1 = require('../../../facade/lang');\nvar SELECT_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, {\n useExisting: core_1.forwardRef(function() {\n return SelectControlValueAccessor;\n }),\n multi: true\n}));\nvar NgSelectOption = (function() {\n function NgSelectOption() {}\n NgSelectOption = __decorate([core_1.Directive({selector: 'option'}), __metadata('design:paramtypes', [])], NgSelectOption);\n return NgSelectOption;\n})();\nexports.NgSelectOption = NgSelectOption;\nvar SelectControlValueAccessor = (function() {\n function SelectControlValueAccessor(_renderer, _elementRef, query) {\n this._renderer = _renderer;\n this._elementRef = _elementRef;\n this.onChange = function(_) {};\n this.onTouched = function() {};\n this._updateValueWhenListOfOptionsChanges(query);\n }\n SelectControlValueAccessor.prototype.writeValue = function(value) {\n this.value = value;\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', value);\n };\n SelectControlValueAccessor.prototype.registerOnChange = function(fn) {\n this.onChange = fn;\n };\n SelectControlValueAccessor.prototype.registerOnTouched = function(fn) {\n this.onTouched = fn;\n };\n SelectControlValueAccessor.prototype._updateValueWhenListOfOptionsChanges = function(query) {\n var _this = this;\n async_1.ObservableWrapper.subscribe(query.changes, function(_) {\n return _this.writeValue(_this.value);\n });\n };\n SelectControlValueAccessor = __decorate([core_1.Directive({\n selector: 'select[ngControl],select[ngFormControl],select[ngModel]',\n host: {\n '(input)': 'onChange($event.target.value)',\n '(blur)': 'onTouched()'\n },\n bindings: [SELECT_VALUE_ACCESSOR]\n }), __param(2, core_1.Query(NgSelectOption, {descendants: true})), __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef, core_1.QueryList])], SelectControlValueAccessor);\n return SelectControlValueAccessor;\n})();\nexports.SelectControlValueAccessor = SelectControlValueAccessor;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar ng_control_name_1 = require('./directives/ng_control_name');\nvar ng_form_control_1 = require('./directives/ng_form_control');\nvar ng_model_1 = require('./directives/ng_model');\nvar ng_control_group_1 = require('./directives/ng_control_group');\nvar ng_form_model_1 = require('./directives/ng_form_model');\nvar ng_form_1 = require('./directives/ng_form');\nvar default_value_accessor_1 = require('./directives/default_value_accessor');\nvar checkbox_value_accessor_1 = require('./directives/checkbox_value_accessor');\nvar number_value_accessor_1 = require('./directives/number_value_accessor');\nvar radio_control_value_accessor_1 = require('./directives/radio_control_value_accessor');\nvar ng_control_status_1 = require('./directives/ng_control_status');\nvar select_control_value_accessor_1 = require('./directives/select_control_value_accessor');\nvar validators_1 = require('./directives/validators');\nvar ng_control_name_2 = require('./directives/ng_control_name');\nexports.NgControlName = ng_control_name_2.NgControlName;\nvar ng_form_control_2 = require('./directives/ng_form_control');\nexports.NgFormControl = ng_form_control_2.NgFormControl;\nvar ng_model_2 = require('./directives/ng_model');\nexports.NgModel = ng_model_2.NgModel;\nvar ng_control_group_2 = require('./directives/ng_control_group');\nexports.NgControlGroup = ng_control_group_2.NgControlGroup;\nvar ng_form_model_2 = require('./directives/ng_form_model');\nexports.NgFormModel = ng_form_model_2.NgFormModel;\nvar ng_form_2 = require('./directives/ng_form');\nexports.NgForm = ng_form_2.NgForm;\nvar default_value_accessor_2 = require('./directives/default_value_accessor');\nexports.DefaultValueAccessor = default_value_accessor_2.DefaultValueAccessor;\nvar checkbox_value_accessor_2 = require('./directives/checkbox_value_accessor');\nexports.CheckboxControlValueAccessor = checkbox_value_accessor_2.CheckboxControlValueAccessor;\nvar radio_control_value_accessor_2 = require('./directives/radio_control_value_accessor');\nexports.RadioControlValueAccessor = radio_control_value_accessor_2.RadioControlValueAccessor;\nexports.RadioButtonState = radio_control_value_accessor_2.RadioButtonState;\nvar number_value_accessor_2 = require('./directives/number_value_accessor');\nexports.NumberValueAccessor = number_value_accessor_2.NumberValueAccessor;\nvar ng_control_status_2 = require('./directives/ng_control_status');\nexports.NgControlStatus = ng_control_status_2.NgControlStatus;\nvar select_control_value_accessor_2 = require('./directives/select_control_value_accessor');\nexports.SelectControlValueAccessor = select_control_value_accessor_2.SelectControlValueAccessor;\nexports.NgSelectOption = select_control_value_accessor_2.NgSelectOption;\nvar validators_2 = require('./directives/validators');\nexports.RequiredValidator = validators_2.RequiredValidator;\nexports.MinLengthValidator = validators_2.MinLengthValidator;\nexports.MaxLengthValidator = validators_2.MaxLengthValidator;\nvar ng_control_1 = require('./directives/ng_control');\nexports.NgControl = ng_control_1.NgControl;\nexports.FORM_DIRECTIVES = lang_1.CONST_EXPR([ng_control_name_1.NgControlName, ng_control_group_1.NgControlGroup, ng_form_control_1.NgFormControl, ng_model_1.NgModel, ng_form_model_1.NgFormModel, ng_form_1.NgForm, select_control_value_accessor_1.NgSelectOption, default_value_accessor_1.DefaultValueAccessor, number_value_accessor_1.NumberValueAccessor, checkbox_value_accessor_1.CheckboxControlValueAccessor, select_control_value_accessor_1.SelectControlValueAccessor, radio_control_value_accessor_1.RadioControlValueAccessor, ng_control_status_1.NgControlStatus, validators_1.RequiredValidator, validators_1.MinLengthValidator, validators_1.MaxLengthValidator]);\n","/* */ \n(function(process) {\n 'use strict';\n var lang_1 = require('../../facade/lang');\n var promise_1 = require('../../facade/promise');\n var async_1 = require('../../facade/async');\n var collection_1 = require('../../facade/collection');\n var core_1 = require('../../../core');\n exports.NG_VALIDATORS = lang_1.CONST_EXPR(new core_1.OpaqueToken(\"NgValidators\"));\n exports.NG_ASYNC_VALIDATORS = lang_1.CONST_EXPR(new core_1.OpaqueToken(\"NgAsyncValidators\"));\n var Validators = (function() {\n function Validators() {}\n Validators.required = function(control) {\n return lang_1.isBlank(control.value) || (lang_1.isString(control.value) && control.value == \"\") ? {\"required\": true} : null;\n };\n Validators.minLength = function(minLength) {\n return function(control) {\n if (lang_1.isPresent(Validators.required(control)))\n return null;\n var v = control.value;\n return v.length < minLength ? {\"minlength\": {\n \"requiredLength\": minLength,\n \"actualLength\": v.length\n }} : null;\n };\n };\n Validators.maxLength = function(maxLength) {\n return function(control) {\n if (lang_1.isPresent(Validators.required(control)))\n return null;\n var v = control.value;\n return v.length > maxLength ? {\"maxlength\": {\n \"requiredLength\": maxLength,\n \"actualLength\": v.length\n }} : null;\n };\n };\n Validators.nullValidator = function(c) {\n return null;\n };\n Validators.compose = function(validators) {\n if (lang_1.isBlank(validators))\n return null;\n var presentValidators = validators.filter(lang_1.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 (lang_1.isBlank(validators))\n return null;\n var presentValidators = validators.filter(lang_1.isPresent);\n if (presentValidators.length == 0)\n return null;\n return function(control) {\n var promises = _executeValidators(control, presentValidators).map(_convertToPromise);\n return promise_1.PromiseWrapper.all(promises).then(_mergeErrors);\n };\n };\n return Validators;\n })();\n exports.Validators = Validators;\n function _convertToPromise(obj) {\n return promise_1.PromiseWrapper.isPromise(obj) ? obj : async_1.ObservableWrapper.toPromise(obj);\n }\n function _executeValidators(control, validators) {\n return validators.map(function(v) {\n return v(control);\n });\n }\n function _mergeErrors(arrayOfErrors) {\n var res = arrayOfErrors.reduce(function(res, errors) {\n return lang_1.isPresent(errors) ? collection_1.StringMapWrapper.merge(res, errors) : res;\n }, {});\n return collection_1.StringMapWrapper.isEmpty(res) ? null : res;\n }\n})(require('process'));\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar core_1 = require('../../../../core');\nvar lang_1 = require('../../../facade/lang');\nvar validators_1 = require('../validators');\nvar lang_2 = require('../../../facade/lang');\nvar REQUIRED_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, {\n useValue: validators_1.Validators.required,\n multi: true\n}));\nvar RequiredValidator = (function() {\n function RequiredValidator() {}\n RequiredValidator = __decorate([core_1.Directive({\n selector: '[required][ngControl],[required][ngFormControl],[required][ngModel]',\n providers: [REQUIRED_VALIDATOR]\n }), __metadata('design:paramtypes', [])], RequiredValidator);\n return RequiredValidator;\n})();\nexports.RequiredValidator = RequiredValidator;\nvar MIN_LENGTH_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, {\n useExisting: core_1.forwardRef(function() {\n return MinLengthValidator;\n }),\n multi: true\n}));\nvar MinLengthValidator = (function() {\n function MinLengthValidator(minLength) {\n this._validator = validators_1.Validators.minLength(lang_2.NumberWrapper.parseInt(minLength, 10));\n }\n MinLengthValidator.prototype.validate = function(c) {\n return this._validator(c);\n };\n MinLengthValidator = __decorate([core_1.Directive({\n selector: '[minlength][ngControl],[minlength][ngFormControl],[minlength][ngModel]',\n providers: [MIN_LENGTH_VALIDATOR]\n }), __param(0, core_1.Attribute(\"minlength\")), __metadata('design:paramtypes', [String])], MinLengthValidator);\n return MinLengthValidator;\n})();\nexports.MinLengthValidator = MinLengthValidator;\nvar MAX_LENGTH_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, {\n useExisting: core_1.forwardRef(function() {\n return MaxLengthValidator;\n }),\n multi: true\n}));\nvar MaxLengthValidator = (function() {\n function MaxLengthValidator(maxLength) {\n this._validator = validators_1.Validators.maxLength(lang_2.NumberWrapper.parseInt(maxLength, 10));\n }\n MaxLengthValidator.prototype.validate = function(c) {\n return this._validator(c);\n };\n MaxLengthValidator = __decorate([core_1.Directive({\n selector: '[maxlength][ngControl],[maxlength][ngFormControl],[maxlength][ngModel]',\n providers: [MAX_LENGTH_VALIDATOR]\n }), __param(0, core_1.Attribute(\"maxlength\")), __metadata('design:paramtypes', [String])], MaxLengthValidator);\n return MaxLengthValidator;\n})();\nexports.MaxLengthValidator = MaxLengthValidator;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar lang_1 = require('../../facade/lang');\nvar async_1 = require('../../facade/async');\nvar promise_1 = require('../../facade/promise');\nvar collection_1 = require('../../facade/collection');\nexports.VALID = \"VALID\";\nexports.INVALID = \"INVALID\";\nexports.PENDING = \"PENDING\";\nfunction isControl(control) {\n return control instanceof AbstractControl;\n}\nexports.isControl = isControl;\nfunction _find(control, path) {\n if (lang_1.isBlank(path))\n return null;\n if (!(path instanceof Array)) {\n path = path.split(\"/\");\n }\n if (path instanceof Array && collection_1.ListWrapper.isEmpty(path))\n return null;\n return path.reduce(function(v, name) {\n if (v instanceof ControlGroup) {\n return lang_1.isPresent(v.controls[name]) ? v.controls[name] : null;\n } else if (v instanceof ControlArray) {\n var index = name;\n return lang_1.isPresent(v.at(index)) ? v.at(index) : null;\n } else {\n return null;\n }\n }, control);\n}\nfunction toObservable(r) {\n return promise_1.PromiseWrapper.isPromise(r) ? async_1.ObservableWrapper.fromPromise(r) : r;\n}\nvar 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() {\n return this._value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"status\", {\n get: function() {\n return this._status;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"valid\", {\n get: function() {\n return this._status === exports.VALID;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"errors\", {\n get: function() {\n return this._errors;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"pristine\", {\n get: function() {\n return this._pristine;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"dirty\", {\n get: function() {\n return !this.pristine;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"touched\", {\n get: function() {\n return this._touched;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"untouched\", {\n get: function() {\n return !this._touched;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"valueChanges\", {\n get: function() {\n return this._valueChanges;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"statusChanges\", {\n get: function() {\n return this._statusChanges;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControl.prototype, \"pending\", {\n get: function() {\n return this._status == exports.PENDING;\n },\n enumerable: true,\n configurable: true\n });\n AbstractControl.prototype.markAsTouched = function() {\n this._touched = true;\n };\n AbstractControl.prototype.markAsDirty = function(_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n onlySelf = lang_1.normalizeBool(onlySelf);\n this._pristine = false;\n if (lang_1.isPresent(this._parent) && !onlySelf) {\n this._parent.markAsDirty({onlySelf: onlySelf});\n }\n };\n AbstractControl.prototype.markAsPending = function(_a) {\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\n onlySelf = lang_1.normalizeBool(onlySelf);\n this._status = exports.PENDING;\n if (lang_1.isPresent(this._parent) && !onlySelf) {\n this._parent.markAsPending({onlySelf: onlySelf});\n }\n };\n AbstractControl.prototype.setParent = function(parent) {\n this._parent = parent;\n };\n AbstractControl.prototype.updateValueAndValidity = function(_a) {\n var _b = _a === void 0 ? {} : _a,\n onlySelf = _b.onlySelf,\n emitEvent = _b.emitEvent;\n onlySelf = lang_1.normalizeBool(onlySelf);\n emitEvent = lang_1.isPresent(emitEvent) ? emitEvent : true;\n this._updateValue();\n this._errors = this._runValidator();\n this._status = this._calculateStatus();\n if (this._status == exports.VALID || this._status == exports.PENDING) {\n this._runAsyncValidator(emitEvent);\n }\n if (emitEvent) {\n async_1.ObservableWrapper.callEmit(this._valueChanges, this._value);\n async_1.ObservableWrapper.callEmit(this._statusChanges, this._status);\n }\n if (lang_1.isPresent(this._parent) && !onlySelf) {\n this._parent.updateValueAndValidity({\n onlySelf: onlySelf,\n emitEvent: emitEvent\n });\n }\n };\n AbstractControl.prototype._runValidator = function() {\n return lang_1.isPresent(this.validator) ? this.validator(this) : null;\n };\n AbstractControl.prototype._runAsyncValidator = function(emitEvent) {\n var _this = this;\n if (lang_1.isPresent(this.asyncValidator)) {\n this._status = exports.PENDING;\n this._cancelExistingSubscription();\n var obs = toObservable(this.asyncValidator(this));\n this._asyncValidationSubscription = async_1.ObservableWrapper.subscribe(obs, function(res) {\n return _this.setErrors(res, {emitEvent: emitEvent});\n });\n }\n };\n AbstractControl.prototype._cancelExistingSubscription = function() {\n if (lang_1.isPresent(this._asyncValidationSubscription)) {\n async_1.ObservableWrapper.dispose(this._asyncValidationSubscription);\n }\n };\n AbstractControl.prototype.setErrors = function(errors, _a) {\n var emitEvent = (_a === void 0 ? {} : _a).emitEvent;\n emitEvent = lang_1.isPresent(emitEvent) ? emitEvent : true;\n this._errors = errors;\n this._status = this._calculateStatus();\n if (emitEvent) {\n async_1.ObservableWrapper.callEmit(this._statusChanges, this._status);\n }\n if (lang_1.isPresent(this._parent)) {\n this._parent._updateControlsErrors();\n }\n };\n AbstractControl.prototype.find = function(path) {\n return _find(this, path);\n };\n AbstractControl.prototype.getError = function(errorCode, path) {\n if (path === void 0) {\n path = null;\n }\n var control = lang_1.isPresent(path) && !collection_1.ListWrapper.isEmpty(path) ? this.find(path) : this;\n if (lang_1.isPresent(control) && lang_1.isPresent(control._errors)) {\n return collection_1.StringMapWrapper.get(control._errors, errorCode);\n } else {\n return null;\n }\n };\n AbstractControl.prototype.hasError = function(errorCode, path) {\n if (path === void 0) {\n path = null;\n }\n return lang_1.isPresent(this.getError(errorCode, path));\n };\n Object.defineProperty(AbstractControl.prototype, \"root\", {\n get: function() {\n var x = this;\n while (lang_1.isPresent(x._parent)) {\n x = x._parent;\n }\n return x;\n },\n enumerable: true,\n configurable: true\n });\n AbstractControl.prototype._updateControlsErrors = function() {\n this._status = this._calculateStatus();\n if (lang_1.isPresent(this._parent)) {\n this._parent._updateControlsErrors();\n }\n };\n AbstractControl.prototype._initObservables = function() {\n this._valueChanges = new async_1.EventEmitter();\n this._statusChanges = new async_1.EventEmitter();\n };\n AbstractControl.prototype._calculateStatus = function() {\n if (lang_1.isPresent(this._errors))\n return exports.INVALID;\n if (this._anyControlsHaveStatus(exports.PENDING))\n return exports.PENDING;\n if (this._anyControlsHaveStatus(exports.INVALID))\n return exports.INVALID;\n return exports.VALID;\n };\n return AbstractControl;\n})();\nexports.AbstractControl = AbstractControl;\nvar Control = (function(_super) {\n __extends(Control, _super);\n function Control(value, validator, asyncValidator) {\n if (value === void 0) {\n value = null;\n }\n if (validator === void 0) {\n validator = null;\n }\n if (asyncValidator === void 0) {\n asyncValidator = null;\n }\n _super.call(this, validator, asyncValidator);\n this._value = value;\n this.updateValueAndValidity({\n onlySelf: true,\n emitEvent: false\n });\n this._initObservables();\n }\n Control.prototype.updateValue = function(value, _a) {\n var _b = _a === void 0 ? {} : _a,\n onlySelf = _b.onlySelf,\n emitEvent = _b.emitEvent,\n emitModelToViewChange = _b.emitModelToViewChange;\n emitModelToViewChange = lang_1.isPresent(emitModelToViewChange) ? emitModelToViewChange : true;\n this._value = value;\n if (lang_1.isPresent(this._onChange) && emitModelToViewChange)\n this._onChange(this._value);\n this.updateValueAndValidity({\n onlySelf: onlySelf,\n emitEvent: emitEvent\n });\n };\n Control.prototype._updateValue = function() {};\n Control.prototype._anyControlsHaveStatus = function(status) {\n return false;\n };\n Control.prototype.registerOnChange = function(fn) {\n this._onChange = fn;\n };\n return Control;\n})(AbstractControl);\nexports.Control = Control;\nvar ControlGroup = (function(_super) {\n __extends(ControlGroup, _super);\n function ControlGroup(controls, optionals, validator, asyncValidator) {\n if (optionals === void 0) {\n optionals = null;\n }\n if (validator === void 0) {\n validator = null;\n }\n if (asyncValidator === void 0) {\n asyncValidator = null;\n }\n _super.call(this, validator, asyncValidator);\n this.controls = controls;\n this._optionals = lang_1.isPresent(optionals) ? optionals : {};\n this._initObservables();\n this._setParentForControls();\n this.updateValueAndValidity({\n onlySelf: true,\n emitEvent: false\n });\n }\n ControlGroup.prototype.addControl = function(name, control) {\n this.controls[name] = control;\n control.setParent(this);\n };\n ControlGroup.prototype.removeControl = function(name) {\n collection_1.StringMapWrapper.delete(this.controls, name);\n };\n ControlGroup.prototype.include = function(controlName) {\n collection_1.StringMapWrapper.set(this._optionals, controlName, true);\n this.updateValueAndValidity();\n };\n ControlGroup.prototype.exclude = function(controlName) {\n collection_1.StringMapWrapper.set(this._optionals, controlName, false);\n this.updateValueAndValidity();\n };\n ControlGroup.prototype.contains = function(controlName) {\n var c = collection_1.StringMapWrapper.contains(this.controls, controlName);\n return c && this._included(controlName);\n };\n ControlGroup.prototype._setParentForControls = function() {\n var _this = this;\n collection_1.StringMapWrapper.forEach(this.controls, function(control, name) {\n control.setParent(_this);\n });\n };\n ControlGroup.prototype._updateValue = function() {\n this._value = this._reduceValue();\n };\n ControlGroup.prototype._anyControlsHaveStatus = function(status) {\n var _this = this;\n var res = false;\n collection_1.StringMapWrapper.forEach(this.controls, function(control, name) {\n res = res || (_this.contains(name) && control.status == status);\n });\n return res;\n };\n ControlGroup.prototype._reduceValue = function() {\n return this._reduceChildren({}, function(acc, control, name) {\n acc[name] = control.value;\n return acc;\n });\n };\n ControlGroup.prototype._reduceChildren = function(initValue, fn) {\n var _this = this;\n var res = initValue;\n collection_1.StringMapWrapper.forEach(this.controls, function(control, name) {\n if (_this._included(name)) {\n res = fn(res, control, name);\n }\n });\n return res;\n };\n ControlGroup.prototype._included = function(controlName) {\n var isOptional = collection_1.StringMapWrapper.contains(this._optionals, controlName);\n return !isOptional || collection_1.StringMapWrapper.get(this._optionals, controlName);\n };\n return ControlGroup;\n})(AbstractControl);\nexports.ControlGroup = ControlGroup;\nvar ControlArray = (function(_super) {\n __extends(ControlArray, _super);\n function ControlArray(controls, validator, asyncValidator) {\n if (validator === void 0) {\n validator = null;\n }\n if (asyncValidator === void 0) {\n asyncValidator = null;\n }\n _super.call(this, validator, asyncValidator);\n this.controls = controls;\n this._initObservables();\n this._setParentForControls();\n this.updateValueAndValidity({\n onlySelf: true,\n emitEvent: false\n });\n }\n ControlArray.prototype.at = function(index) {\n return this.controls[index];\n };\n ControlArray.prototype.push = function(control) {\n this.controls.push(control);\n control.setParent(this);\n this.updateValueAndValidity();\n };\n ControlArray.prototype.insert = function(index, control) {\n collection_1.ListWrapper.insert(this.controls, index, control);\n control.setParent(this);\n this.updateValueAndValidity();\n };\n ControlArray.prototype.removeAt = function(index) {\n collection_1.ListWrapper.removeAt(this.controls, index);\n this.updateValueAndValidity();\n };\n Object.defineProperty(ControlArray.prototype, \"length\", {\n get: function() {\n return this.controls.length;\n },\n enumerable: true,\n configurable: true\n });\n ControlArray.prototype._updateValue = function() {\n this._value = this.controls.map(function(control) {\n return control.value;\n });\n };\n ControlArray.prototype._anyControlsHaveStatus = function(status) {\n return this.controls.some(function(c) {\n return c.status == status;\n });\n };\n ControlArray.prototype._setParentForControls = function() {\n var _this = this;\n this.controls.forEach(function(control) {\n control.setParent(_this);\n });\n };\n return ControlArray;\n})(AbstractControl);\nexports.ControlArray = ControlArray;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../core');\nvar collection_1 = require('../../facade/collection');\nvar lang_1 = require('../../facade/lang');\nvar modelModule = require('./model');\nvar FormBuilder = (function() {\n function FormBuilder() {}\n FormBuilder.prototype.group = function(controlsConfig, extra) {\n if (extra === void 0) {\n extra = null;\n }\n var controls = this._reduceControls(controlsConfig);\n var optionals = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, \"optionals\") : null;\n var validator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, \"validator\") : null;\n var asyncValidator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, \"asyncValidator\") : null;\n return new modelModule.ControlGroup(controls, optionals, validator, asyncValidator);\n };\n FormBuilder.prototype.control = function(value, validator, asyncValidator) {\n if (validator === void 0) {\n validator = null;\n }\n if (asyncValidator === void 0) {\n asyncValidator = null;\n }\n return new modelModule.Control(value, validator, asyncValidator);\n };\n FormBuilder.prototype.array = function(controlsConfig, validator, asyncValidator) {\n var _this = this;\n if (validator === void 0) {\n validator = null;\n }\n if (asyncValidator === void 0) {\n asyncValidator = null;\n }\n var controls = controlsConfig.map(function(c) {\n return _this._createControl(c);\n });\n return new modelModule.ControlArray(controls, validator, asyncValidator);\n };\n FormBuilder.prototype._reduceControls = function(controlsConfig) {\n var _this = this;\n var controls = {};\n collection_1.StringMapWrapper.forEach(controlsConfig, function(controlConfig, controlName) {\n controls[controlName] = _this._createControl(controlConfig);\n });\n return controls;\n };\n FormBuilder.prototype._createControl = function(controlConfig) {\n if (controlConfig instanceof modelModule.Control || controlConfig instanceof modelModule.ControlGroup || controlConfig instanceof modelModule.ControlArray) {\n return controlConfig;\n } else if (lang_1.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 } else {\n return this.control(controlConfig);\n }\n };\n FormBuilder = __decorate([core_1.Injectable(), __metadata('design:paramtypes', [])], FormBuilder);\n return FormBuilder;\n})();\nexports.FormBuilder = FormBuilder;\n","/* */ \n'use strict';\nvar core_1 = require('../../../../core');\nvar lang_1 = require('../../../facade/lang');\nexports.NG_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.OpaqueToken(\"NgValueAccessor\"));\n","/* */ \n'use strict';\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar AbstractControlDirective = (function() {\n function AbstractControlDirective() {}\n Object.defineProperty(AbstractControlDirective.prototype, \"control\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"value\", {\n get: function() {\n return lang_1.isPresent(this.control) ? this.control.value : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"valid\", {\n get: function() {\n return lang_1.isPresent(this.control) ? this.control.valid : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"errors\", {\n get: function() {\n return lang_1.isPresent(this.control) ? this.control.errors : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"pristine\", {\n get: function() {\n return lang_1.isPresent(this.control) ? this.control.pristine : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"dirty\", {\n get: function() {\n return lang_1.isPresent(this.control) ? this.control.dirty : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"touched\", {\n get: function() {\n return lang_1.isPresent(this.control) ? this.control.touched : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"untouched\", {\n get: function() {\n return lang_1.isPresent(this.control) ? this.control.untouched : null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AbstractControlDirective.prototype, \"path\", {\n get: function() {\n return null;\n },\n enumerable: true,\n configurable: true\n });\n return AbstractControlDirective;\n})();\nexports.AbstractControlDirective = AbstractControlDirective;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar abstract_control_directive_1 = require('./abstract_control_directive');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar NgControl = (function(_super) {\n __extends(NgControl, _super);\n function NgControl() {\n _super.apply(this, arguments);\n this.name = null;\n this.valueAccessor = null;\n }\n Object.defineProperty(NgControl.prototype, \"validator\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgControl.prototype, \"asyncValidator\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n return NgControl;\n})(abstract_control_directive_1.AbstractControlDirective);\nexports.NgControl = NgControl;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../../core');\nvar control_value_accessor_1 = require('./control_value_accessor');\nvar ng_control_1 = require('./ng_control');\nvar lang_1 = require('../../../facade/lang');\nvar collection_1 = require('../../../facade/collection');\nvar RADIO_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, {\n useExisting: core_1.forwardRef(function() {\n return RadioControlValueAccessor;\n }),\n multi: true\n}));\nvar 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 collection_1.ListWrapper.removeAt(this._accessors, indexToRemove);\n };\n RadioControlRegistry.prototype.select = function(accessor) {\n this._accessors.forEach(function(c) {\n if (c[0].control.root === accessor._control.control.root && c[1] !== accessor) {\n c[1].fireUncheck();\n }\n });\n };\n RadioControlRegistry = __decorate([core_1.Injectable(), __metadata('design:paramtypes', [])], RadioControlRegistry);\n return RadioControlRegistry;\n})();\nexports.RadioControlRegistry = RadioControlRegistry;\nvar RadioButtonState = (function() {\n function RadioButtonState(checked, value) {\n this.checked = checked;\n this.value = value;\n }\n return RadioButtonState;\n})();\nexports.RadioButtonState = RadioButtonState;\nvar 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(ng_control_1.NgControl);\n this._registry.add(this._control, this);\n };\n RadioControlValueAccessor.prototype.ngOnDestroy = function() {\n this._registry.remove(this);\n };\n RadioControlValueAccessor.prototype.writeValue = function(value) {\n this._state = value;\n if (lang_1.isPresent(value) && value.checked) {\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', true);\n }\n };\n RadioControlValueAccessor.prototype.registerOnChange = function(fn) {\n var _this = this;\n this._fn = fn;\n this.onChange = function() {\n fn(new RadioButtonState(true, _this._state.value));\n _this._registry.select(_this);\n };\n };\n RadioControlValueAccessor.prototype.fireUncheck = function() {\n this._fn(new RadioButtonState(false, this._state.value));\n };\n RadioControlValueAccessor.prototype.registerOnTouched = function(fn) {\n this.onTouched = fn;\n };\n __decorate([core_1.Input(), __metadata('design:type', String)], RadioControlValueAccessor.prototype, \"name\", void 0);\n RadioControlValueAccessor = __decorate([core_1.Directive({\n selector: 'input[type=radio][ngControl],input[type=radio][ngFormControl],input[type=radio][ngModel]',\n host: {\n '(change)': 'onChange()',\n '(blur)': 'onTouched()'\n },\n providers: [RADIO_VALUE_ACCESSOR]\n }), __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef, RadioControlRegistry, core_1.Injector])], RadioControlValueAccessor);\n return RadioControlValueAccessor;\n})();\nexports.RadioControlValueAccessor = RadioControlValueAccessor;\n","/* */ \n'use strict';\nvar model_1 = require('./forms/model');\nexports.AbstractControl = model_1.AbstractControl;\nexports.Control = model_1.Control;\nexports.ControlGroup = model_1.ControlGroup;\nexports.ControlArray = model_1.ControlArray;\nvar abstract_control_directive_1 = require('./forms/directives/abstract_control_directive');\nexports.AbstractControlDirective = abstract_control_directive_1.AbstractControlDirective;\nvar control_container_1 = require('./forms/directives/control_container');\nexports.ControlContainer = control_container_1.ControlContainer;\nvar ng_control_name_1 = require('./forms/directives/ng_control_name');\nexports.NgControlName = ng_control_name_1.NgControlName;\nvar ng_form_control_1 = require('./forms/directives/ng_form_control');\nexports.NgFormControl = ng_form_control_1.NgFormControl;\nvar ng_model_1 = require('./forms/directives/ng_model');\nexports.NgModel = ng_model_1.NgModel;\nvar ng_control_1 = require('./forms/directives/ng_control');\nexports.NgControl = ng_control_1.NgControl;\nvar ng_control_group_1 = require('./forms/directives/ng_control_group');\nexports.NgControlGroup = ng_control_group_1.NgControlGroup;\nvar ng_form_model_1 = require('./forms/directives/ng_form_model');\nexports.NgFormModel = ng_form_model_1.NgFormModel;\nvar ng_form_1 = require('./forms/directives/ng_form');\nexports.NgForm = ng_form_1.NgForm;\nvar control_value_accessor_1 = require('./forms/directives/control_value_accessor');\nexports.NG_VALUE_ACCESSOR = control_value_accessor_1.NG_VALUE_ACCESSOR;\nvar default_value_accessor_1 = require('./forms/directives/default_value_accessor');\nexports.DefaultValueAccessor = default_value_accessor_1.DefaultValueAccessor;\nvar ng_control_status_1 = require('./forms/directives/ng_control_status');\nexports.NgControlStatus = ng_control_status_1.NgControlStatus;\nvar checkbox_value_accessor_1 = require('./forms/directives/checkbox_value_accessor');\nexports.CheckboxControlValueAccessor = checkbox_value_accessor_1.CheckboxControlValueAccessor;\nvar select_control_value_accessor_1 = require('./forms/directives/select_control_value_accessor');\nexports.NgSelectOption = select_control_value_accessor_1.NgSelectOption;\nexports.SelectControlValueAccessor = select_control_value_accessor_1.SelectControlValueAccessor;\nvar directives_1 = require('./forms/directives');\nexports.FORM_DIRECTIVES = directives_1.FORM_DIRECTIVES;\nexports.RadioButtonState = directives_1.RadioButtonState;\nvar validators_1 = require('./forms/validators');\nexports.NG_VALIDATORS = validators_1.NG_VALIDATORS;\nexports.NG_ASYNC_VALIDATORS = validators_1.NG_ASYNC_VALIDATORS;\nexports.Validators = validators_1.Validators;\nvar validators_2 = require('./forms/directives/validators');\nexports.RequiredValidator = validators_2.RequiredValidator;\nexports.MinLengthValidator = validators_2.MinLengthValidator;\nexports.MaxLengthValidator = validators_2.MaxLengthValidator;\nvar form_builder_1 = require('./forms/form_builder');\nexports.FormBuilder = form_builder_1.FormBuilder;\nvar form_builder_2 = require('./forms/form_builder');\nvar radio_control_value_accessor_1 = require('./forms/directives/radio_control_value_accessor');\nvar lang_1 = require('../facade/lang');\nexports.FORM_PROVIDERS = lang_1.CONST_EXPR([form_builder_2.FormBuilder, radio_control_value_accessor_1.RadioControlRegistry]);\nexports.FORM_BINDINGS = exports.FORM_PROVIDERS;\n","/* */ \n\"format cjs\";\n'use strict';// TS does not have Observables\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2YWJsZV9saXN0X2RpZmYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9zcmMvY29tbW9uL2RpcmVjdGl2ZXMvb2JzZXJ2YWJsZV9saXN0X2RpZmYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0JBQStCO0FBU3VCIiwic291cmNlc0NvbnRlbnQiOlsiLy8gVFMgZG9lcyBub3QgaGF2ZSBPYnNlcnZhYmxlc1xuXG4vLyBJIG5lZWQgdG8gYmUgaGVyZSB0byBtYWtlIFR5cGVTY3JpcHQgdGhpbmsgdGhpcyBpcyBhIG1vZHVsZS5cbmltcG9ydCB7fSBmcm9tICdhbmd1bGFyMi9zcmMvZmFjYWRlL2xhbmcnO1xuXG4vKipcbiAqIFRoaXMgbW9kdWxlIGV4aXN0cyBpbiBEYXJ0LCBidXQgbm90IGluIFR5cGVzY3JpcHQuIFRoaXMgZXhwb3J0ZWQgc3ltYm9sXG4gKiBpcyBvbmx5IGhlcmUgdG8gaGVscCBUeXBlc2NyaXB0IHRoaW5rIHRoaXMgaXMgYSBtb2R1bGUuXG4gKi9cbmV4cG9ydCB2YXIgd29ya2Fyb3VuZF9lbXB0eV9vYnNlcnZhYmxlX2xpc3RfZGlmZjogYW55O1xuIl19","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar core_1 = require('../../../core');\nvar collection_1 = require('../../facade/collection');\nvar 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 = lang_1.isPresent(v) && lang_1.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, \"rawClass\", {\n set: function(v) {\n this._cleanupClasses(this._rawClass);\n if (lang_1.isString(v)) {\n v = v.split(' ');\n }\n this._rawClass = v;\n if (lang_1.isPresent(v)) {\n if (collection_1.isListLikeIterable(v)) {\n this._differ = this._iterableDiffers.find(v).create(null);\n this._mode = 'iterable';\n } else {\n this._differ = this._keyValueDiffers.find(v).create(null);\n this._mode = 'keyValue';\n }\n } else {\n this._differ = null;\n }\n },\n enumerable: true,\n configurable: true\n });\n NgClass.prototype.ngDoCheck = function() {\n if (lang_1.isPresent(this._differ)) {\n var changes = this._differ.diff(this._rawClass);\n if (lang_1.isPresent(changes)) {\n if (this._mode == 'iterable') {\n this._applyIterableChanges(changes);\n } else {\n this._applyKeyValueChanges(changes);\n }\n }\n }\n };\n NgClass.prototype.ngOnDestroy = function() {\n this._cleanupClasses(this._rawClass);\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) {\n _this._toggleClass(record.key, record.currentValue);\n });\n changes.forEachChangedItem(function(record) {\n _this._toggleClass(record.key, record.currentValue);\n });\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) {\n _this._toggleClass(record.item, true);\n });\n changes.forEachRemovedItem(function(record) {\n _this._toggleClass(record.item, false);\n });\n };\n NgClass.prototype._applyInitialClasses = function(isCleanup) {\n var _this = this;\n this._initialClasses.forEach(function(className) {\n return _this._toggleClass(className, !isCleanup);\n });\n };\n NgClass.prototype._applyClasses = function(rawClassVal, isCleanup) {\n var _this = this;\n if (lang_1.isPresent(rawClassVal)) {\n if (lang_1.isArray(rawClassVal)) {\n rawClassVal.forEach(function(className) {\n return _this._toggleClass(className, !isCleanup);\n });\n } else if (rawClassVal instanceof Set) {\n rawClassVal.forEach(function(className) {\n return _this._toggleClass(className, !isCleanup);\n });\n } else {\n collection_1.StringMapWrapper.forEach(rawClassVal, function(expVal, className) {\n if (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,\n len = classes.length; i < len; i++) {\n this._renderer.setElementClass(this._ngEl.nativeElement, classes[i], enabled);\n }\n } else {\n this._renderer.setElementClass(this._ngEl.nativeElement, className, enabled);\n }\n }\n };\n NgClass = __decorate([core_1.Directive({\n selector: '[ngClass]',\n inputs: ['rawClass: ngClass', 'initialClasses: class']\n }), __metadata('design:paramtypes', [core_1.IterableDiffers, core_1.KeyValueDiffers, core_1.ElementRef, core_1.Renderer])], NgClass);\n return NgClass;\n})();\nexports.NgClass = NgClass;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../core');\nvar lang_1 = require('../../facade/lang');\nvar 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, \"ngForOf\", {\n set: function(value) {\n this._ngForOf = value;\n if (lang_1.isBlank(this._differ) && lang_1.isPresent(value)) {\n this._differ = this._iterableDiffers.find(value).create(this._cdr, this._ngForTrackBy);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgFor.prototype, \"ngForTemplate\", {\n set: function(value) {\n if (lang_1.isPresent(value)) {\n this._templateRef = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgFor.prototype, \"ngForTrackBy\", {\n set: function(value) {\n this._ngForTrackBy = value;\n },\n enumerable: true,\n configurable: true\n });\n NgFor.prototype.ngDoCheck = function() {\n if (lang_1.isPresent(this._differ)) {\n var changes = this._differ.diff(this._ngForOf);\n if (lang_1.isPresent(changes))\n this._applyChanges(changes);\n }\n };\n NgFor.prototype._applyChanges = function(changes) {\n var _this = this;\n var recordViewTuples = [];\n changes.forEachRemovedItem(function(removedRecord) {\n return recordViewTuples.push(new RecordViewTuple(removedRecord, null));\n });\n changes.forEachMovedItem(function(movedRecord) {\n return recordViewTuples.push(new RecordViewTuple(movedRecord, null));\n });\n var insertTuples = this._bulkRemove(recordViewTuples);\n changes.forEachAddedItem(function(addedRecord) {\n return insertTuples.push(new RecordViewTuple(addedRecord, null));\n });\n this._bulkInsert(insertTuples);\n for (var i = 0; i < insertTuples.length; i++) {\n this._perViewChange(insertTuples[i].view, insertTuples[i].record);\n }\n for (var i = 0,\n ilen = this._viewContainer.length; i < ilen; i++) {\n var viewRef = this._viewContainer.get(i);\n viewRef.setLocal('last', i === ilen - 1);\n }\n changes.forEachIdentityChange(function(record) {\n var viewRef = _this._viewContainer.get(record.currentIndex);\n viewRef.setLocal('\\$implicit', record.item);\n });\n };\n NgFor.prototype._perViewChange = function(view, record) {\n view.setLocal('\\$implicit', record.item);\n view.setLocal('index', record.currentIndex);\n view.setLocal('even', (record.currentIndex % 2 == 0));\n view.setLocal('odd', (record.currentIndex % 2 == 1));\n };\n NgFor.prototype._bulkRemove = function(tuples) {\n tuples.sort(function(a, b) {\n return a.record.previousIndex - b.record.previousIndex;\n });\n var movedTuples = [];\n for (var i = tuples.length - 1; i >= 0; i--) {\n var tuple = tuples[i];\n if (lang_1.isPresent(tuple.record.currentIndex)) {\n tuple.view = this._viewContainer.detach(tuple.record.previousIndex);\n movedTuples.push(tuple);\n } else {\n this._viewContainer.remove(tuple.record.previousIndex);\n }\n }\n return movedTuples;\n };\n NgFor.prototype._bulkInsert = function(tuples) {\n tuples.sort(function(a, b) {\n return a.record.currentIndex - b.record.currentIndex;\n });\n for (var i = 0; i < tuples.length; i++) {\n var tuple = tuples[i];\n if (lang_1.isPresent(tuple.view)) {\n this._viewContainer.insert(tuple.view, tuple.record.currentIndex);\n } else {\n tuple.view = this._viewContainer.createEmbeddedView(this._templateRef, tuple.record.currentIndex);\n }\n }\n return tuples;\n };\n NgFor = __decorate([core_1.Directive({\n selector: '[ngFor][ngForOf]',\n inputs: ['ngForTrackBy', 'ngForOf', 'ngForTemplate']\n }), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, core_1.IterableDiffers, core_1.ChangeDetectorRef])], NgFor);\n return NgFor;\n})();\nexports.NgFor = NgFor;\nvar RecordViewTuple = (function() {\n function RecordViewTuple(record, view) {\n this.record = record;\n this.view = view;\n }\n return RecordViewTuple;\n})();\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../core');\nvar lang_1 = require('../../facade/lang');\nvar 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 && (lang_1.isBlank(this._prevCondition) || !this._prevCondition)) {\n this._prevCondition = true;\n this._viewContainer.createEmbeddedView(this._templateRef);\n } else if (!newCondition && (lang_1.isBlank(this._prevCondition) || this._prevCondition)) {\n this._prevCondition = false;\n this._viewContainer.clear();\n }\n },\n enumerable: true,\n configurable: true\n });\n NgIf = __decorate([core_1.Directive({\n selector: '[ngIf]',\n inputs: ['ngIf']\n }), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef])], NgIf);\n return NgIf;\n})();\nexports.NgIf = NgIf;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar core_1 = require('../../../core');\nvar lang_1 = require('../../facade/lang');\nvar 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, \"rawStyle\", {\n set: function(v) {\n this._rawStyle = v;\n if (lang_1.isBlank(this._differ) && lang_1.isPresent(v)) {\n this._differ = this._differs.find(this._rawStyle).create(null);\n }\n },\n enumerable: true,\n configurable: true\n });\n NgStyle.prototype.ngDoCheck = function() {\n if (lang_1.isPresent(this._differ)) {\n var changes = this._differ.diff(this._rawStyle);\n if (lang_1.isPresent(changes)) {\n this._applyChanges(changes);\n }\n }\n };\n NgStyle.prototype._applyChanges = function(changes) {\n var _this = this;\n changes.forEachAddedItem(function(record) {\n _this._setStyle(record.key, record.currentValue);\n });\n changes.forEachChangedItem(function(record) {\n _this._setStyle(record.key, record.currentValue);\n });\n changes.forEachRemovedItem(function(record) {\n _this._setStyle(record.key, null);\n });\n };\n NgStyle.prototype._setStyle = function(name, val) {\n this._renderer.setElementStyle(this._ngEl.nativeElement, name, val);\n };\n NgStyle = __decorate([core_1.Directive({\n selector: '[ngStyle]',\n inputs: ['rawStyle: ngStyle']\n }), __metadata('design:paramtypes', [core_1.KeyValueDiffers, core_1.ElementRef, core_1.Renderer])], NgStyle);\n return NgStyle;\n})();\nexports.NgStyle = NgStyle;\n","/* */ \n'use strict';\nvar decorators_1 = require('./util/decorators');\nexports.Class = decorators_1.Class;\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nexports.enableProdMode = lang_1.enableProdMode;\n","/* */ \n'use strict';\nvar lang_1 = require('./lang');\nexports.Type = lang_1.Type;\nvar async_1 = require('./async');\nexports.EventEmitter = async_1.EventEmitter;\nvar exceptions_1 = require('./exceptions');\nexports.WrappedException = exceptions_1.WrappedException;\nvar exception_handler_1 = require('./exception_handler');\nexports.ExceptionHandler = exception_handler_1.ExceptionHandler;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar ng_zone_1 = require('./zone/ng_zone');\nvar lang_1 = require('../facade/lang');\nvar di_1 = require('./di');\nvar application_tokens_1 = require('./application_tokens');\nvar async_1 = require('../facade/async');\nvar collection_1 = require('../facade/collection');\nvar testability_1 = require('./testability/testability');\nvar dynamic_component_loader_1 = require('./linker/dynamic_component_loader');\nvar exceptions_1 = require('../facade/exceptions');\nvar console_1 = require('./console');\nvar profile_1 = require('./profile/profile');\nvar lang_2 = require('../facade/lang');\nfunction _componentProviders(appComponentType) {\n return [di_1.provide(application_tokens_1.APP_COMPONENT, {useValue: appComponentType}), di_1.provide(application_tokens_1.APP_COMPONENT_REF_PROMISE, {\n useFactory: function(dynamicComponentLoader, appRef, injector) {\n var ref;\n return dynamicComponentLoader.loadAsRoot(appComponentType, null, injector, function() {\n appRef._unloadComponent(ref);\n }).then(function(componentRef) {\n ref = componentRef;\n var testability = injector.getOptional(testability_1.Testability);\n if (lang_1.isPresent(testability)) {\n injector.get(testability_1.TestabilityRegistry).registerApplication(componentRef.location.nativeElement, testability);\n }\n return componentRef;\n });\n },\n deps: [dynamic_component_loader_1.DynamicComponentLoader, ApplicationRef, di_1.Injector]\n }), di_1.provide(appComponentType, {\n useFactory: function(p) {\n return p.then(function(ref) {\n return ref.instance;\n });\n },\n deps: [application_tokens_1.APP_COMPONENT_REF_PROMISE]\n })];\n}\nfunction createNgZone() {\n return new ng_zone_1.NgZone({enableLongStackTrace: lang_1.assertionsEnabled()});\n}\nexports.createNgZone = createNgZone;\nvar _platform;\nvar _platformProviders;\nfunction platform(providers) {\n lang_2.lockMode();\n if (lang_1.isPresent(_platform)) {\n if (collection_1.ListWrapper.equals(_platformProviders, providers)) {\n return _platform;\n } else {\n throw new exceptions_1.BaseException(\"platform cannot be initialized with different sets of providers.\");\n }\n } else {\n return _createPlatform(providers);\n }\n}\nexports.platform = platform;\nfunction disposePlatform() {\n if (lang_1.isPresent(_platform)) {\n _platform.dispose();\n _platform = null;\n }\n}\nexports.disposePlatform = disposePlatform;\nfunction _createPlatform(providers) {\n _platformProviders = providers;\n var injector = di_1.Injector.resolveAndCreate(providers);\n _platform = new PlatformRef_(injector, function() {\n _platform = null;\n _platformProviders = null;\n });\n _runPlatformInitializers(injector);\n return _platform;\n}\nfunction _runPlatformInitializers(injector) {\n var inits = injector.getOptional(application_tokens_1.PLATFORM_INITIALIZER);\n if (lang_1.isPresent(inits))\n inits.forEach(function(init) {\n return init();\n });\n}\nvar PlatformRef = (function() {\n function PlatformRef() {}\n Object.defineProperty(PlatformRef.prototype, \"injector\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n return PlatformRef;\n})();\nexports.PlatformRef = PlatformRef;\nvar PlatformRef_ = (function(_super) {\n __extends(PlatformRef_, _super);\n function PlatformRef_(_injector, _dispose) {\n _super.call(this);\n this._injector = _injector;\n this._dispose = _dispose;\n this._applications = [];\n this._disposeListeners = [];\n }\n PlatformRef_.prototype.registerDisposeListener = function(dispose) {\n this._disposeListeners.push(dispose);\n };\n Object.defineProperty(PlatformRef_.prototype, \"injector\", {\n get: function() {\n return this._injector;\n },\n enumerable: true,\n configurable: true\n });\n PlatformRef_.prototype.application = function(providers) {\n var app = this._initApp(createNgZone(), providers);\n if (async_1.PromiseWrapper.isPromise(app)) {\n throw new exceptions_1.BaseException(\"Cannot use asyncronous app initializers with application. Use asyncApplication instead.\");\n }\n return app;\n };\n PlatformRef_.prototype.asyncApplication = function(bindingFn, additionalProviders) {\n var _this = this;\n var zone = createNgZone();\n var completer = async_1.PromiseWrapper.completer();\n if (bindingFn === null) {\n completer.resolve(this._initApp(zone, additionalProviders));\n } else {\n zone.run(function() {\n async_1.PromiseWrapper.then(bindingFn(zone), function(providers) {\n if (lang_1.isPresent(additionalProviders)) {\n providers = collection_1.ListWrapper.concat(providers, additionalProviders);\n }\n var promise = _this._initApp(zone, providers);\n completer.resolve(promise);\n });\n });\n }\n return completer.promise;\n };\n PlatformRef_.prototype._initApp = function(zone, providers) {\n var _this = this;\n var injector;\n var app;\n zone.run(function() {\n providers = collection_1.ListWrapper.concat(providers, [di_1.provide(ng_zone_1.NgZone, {useValue: zone}), di_1.provide(ApplicationRef, {\n useFactory: function() {\n return app;\n },\n deps: []\n })]);\n var exceptionHandler;\n try {\n injector = _this.injector.resolveAndCreateChild(providers);\n exceptionHandler = injector.get(exceptions_1.ExceptionHandler);\n zone.overrideOnErrorHandler(function(e, s) {\n return exceptionHandler.call(e, s);\n });\n } catch (e) {\n if (lang_1.isPresent(exceptionHandler)) {\n exceptionHandler.call(e, e.stack);\n } else {\n lang_1.print(e.toString());\n }\n }\n });\n app = new ApplicationRef_(this, zone, injector);\n this._applications.push(app);\n var promise = _runAppInitializers(injector);\n if (promise !== null) {\n return async_1.PromiseWrapper.then(promise, function(_) {\n return app;\n });\n } else {\n return app;\n }\n };\n PlatformRef_.prototype.dispose = function() {\n collection_1.ListWrapper.clone(this._applications).forEach(function(app) {\n return app.dispose();\n });\n this._disposeListeners.forEach(function(dispose) {\n return dispose();\n });\n this._dispose();\n };\n PlatformRef_.prototype._applicationDisposed = function(app) {\n collection_1.ListWrapper.remove(this._applications, app);\n };\n return PlatformRef_;\n})(PlatformRef);\nexports.PlatformRef_ = PlatformRef_;\nfunction _runAppInitializers(injector) {\n var inits = injector.getOptional(application_tokens_1.APP_INITIALIZER);\n var promises = [];\n if (lang_1.isPresent(inits)) {\n inits.forEach(function(init) {\n var retVal = init();\n if (async_1.PromiseWrapper.isPromise(retVal)) {\n promises.push(retVal);\n }\n });\n }\n if (promises.length > 0) {\n return async_1.PromiseWrapper.all(promises);\n } else {\n return null;\n }\n}\nvar ApplicationRef = (function() {\n function ApplicationRef() {}\n Object.defineProperty(ApplicationRef.prototype, \"injector\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ApplicationRef.prototype, \"zone\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ApplicationRef.prototype, \"componentTypes\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n return ApplicationRef;\n})();\nexports.ApplicationRef = ApplicationRef;\nvar ApplicationRef_ = (function(_super) {\n __extends(ApplicationRef_, _super);\n function ApplicationRef_(_platform, _zone, _injector) {\n var _this = this;\n _super.call(this);\n this._platform = _platform;\n this._zone = _zone;\n this._injector = _injector;\n this._bootstrapListeners = [];\n this._disposeListeners = [];\n this._rootComponents = [];\n this._rootComponentTypes = [];\n this._changeDetectorRefs = [];\n this._runningTick = false;\n this._enforceNoNewChanges = false;\n if (lang_1.isPresent(this._zone)) {\n async_1.ObservableWrapper.subscribe(this._zone.onTurnDone, function(_) {\n _this._zone.run(function() {\n _this.tick();\n });\n });\n }\n this._enforceNoNewChanges = lang_1.assertionsEnabled();\n }\n ApplicationRef_.prototype.registerBootstrapListener = function(listener) {\n this._bootstrapListeners.push(listener);\n };\n ApplicationRef_.prototype.registerDisposeListener = function(dispose) {\n this._disposeListeners.push(dispose);\n };\n ApplicationRef_.prototype.registerChangeDetector = function(changeDetector) {\n this._changeDetectorRefs.push(changeDetector);\n };\n ApplicationRef_.prototype.unregisterChangeDetector = function(changeDetector) {\n collection_1.ListWrapper.remove(this._changeDetectorRefs, changeDetector);\n };\n ApplicationRef_.prototype.bootstrap = function(componentType, providers) {\n var _this = this;\n var completer = async_1.PromiseWrapper.completer();\n this._zone.run(function() {\n var componentProviders = _componentProviders(componentType);\n if (lang_1.isPresent(providers)) {\n componentProviders.push(providers);\n }\n var exceptionHandler = _this._injector.get(exceptions_1.ExceptionHandler);\n _this._rootComponentTypes.push(componentType);\n try {\n var injector = _this._injector.resolveAndCreateChild(componentProviders);\n var compRefToken = injector.get(application_tokens_1.APP_COMPONENT_REF_PROMISE);\n var tick = function(componentRef) {\n _this._loadComponent(componentRef);\n completer.resolve(componentRef);\n };\n var tickResult = async_1.PromiseWrapper.then(compRefToken, tick);\n if (lang_1.IS_DART) {\n async_1.PromiseWrapper.then(tickResult, function(_) {});\n }\n async_1.PromiseWrapper.then(tickResult, null, function(err, stackTrace) {\n return completer.reject(err, stackTrace);\n });\n } catch (e) {\n exceptionHandler.call(e, e.stack);\n completer.reject(e, e.stack);\n }\n });\n return completer.promise.then(function(_) {\n var c = _this._injector.get(console_1.Console);\n if (lang_1.assertionsEnabled()) {\n c.log(\"Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.\");\n }\n return _;\n });\n };\n ApplicationRef_.prototype._loadComponent = function(ref) {\n var appChangeDetector = ref.location.internalElement.parentView.changeDetector;\n this._changeDetectorRefs.push(appChangeDetector.ref);\n this.tick();\n this._rootComponents.push(ref);\n this._bootstrapListeners.forEach(function(listener) {\n return listener(ref);\n });\n };\n ApplicationRef_.prototype._unloadComponent = function(ref) {\n if (!collection_1.ListWrapper.contains(this._rootComponents, ref)) {\n return;\n }\n this.unregisterChangeDetector(ref.location.internalElement.parentView.changeDetector.ref);\n collection_1.ListWrapper.remove(this._rootComponents, ref);\n };\n Object.defineProperty(ApplicationRef_.prototype, \"injector\", {\n get: function() {\n return this._injector;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ApplicationRef_.prototype, \"zone\", {\n get: function() {\n return this._zone;\n },\n enumerable: true,\n configurable: true\n });\n ApplicationRef_.prototype.tick = function() {\n if (this._runningTick) {\n throw new exceptions_1.BaseException(\"ApplicationRef.tick is called recursively\");\n }\n var s = ApplicationRef_._tickScope();\n try {\n this._runningTick = true;\n this._changeDetectorRefs.forEach(function(detector) {\n return detector.detectChanges();\n });\n if (this._enforceNoNewChanges) {\n this._changeDetectorRefs.forEach(function(detector) {\n return detector.checkNoChanges();\n });\n }\n } finally {\n this._runningTick = false;\n profile_1.wtfLeave(s);\n }\n };\n ApplicationRef_.prototype.dispose = function() {\n collection_1.ListWrapper.clone(this._rootComponents).forEach(function(ref) {\n return ref.dispose();\n });\n this._disposeListeners.forEach(function(dispose) {\n return dispose();\n });\n this._platform._applicationDisposed(this);\n };\n Object.defineProperty(ApplicationRef_.prototype, \"componentTypes\", {\n get: function() {\n return this._rootComponentTypes;\n },\n enumerable: true,\n configurable: true\n });\n ApplicationRef_._tickScope = profile_1.wtfCreateScope('ApplicationRef#tick()');\n return ApplicationRef_;\n})(ApplicationRef);\nexports.ApplicationRef_ = ApplicationRef_;\n","/* */ \n'use strict';\nvar ng_zone_1 = require('./zone/ng_zone');\nexports.NgZone = ng_zone_1.NgZone;\nexports.NgZoneError = ng_zone_1.NgZoneError;\n","/* */ \n'use strict';\nvar api_1 = require('./render/api');\nexports.RootRenderer = api_1.RootRenderer;\nexports.Renderer = api_1.Renderer;\nexports.RenderComponentType = api_1.RenderComponentType;\n","/* */ \n'use strict';\nvar directive_resolver_1 = require('./linker/directive_resolver');\nexports.DirectiveResolver = directive_resolver_1.DirectiveResolver;\nvar view_resolver_1 = require('./linker/view_resolver');\nexports.ViewResolver = view_resolver_1.ViewResolver;\nvar compiler_1 = require('./linker/compiler');\nexports.Compiler = compiler_1.Compiler;\nvar view_manager_1 = require('./linker/view_manager');\nexports.AppViewManager = view_manager_1.AppViewManager;\nvar query_list_1 = require('./linker/query_list');\nexports.QueryList = query_list_1.QueryList;\nvar dynamic_component_loader_1 = require('./linker/dynamic_component_loader');\nexports.DynamicComponentLoader = dynamic_component_loader_1.DynamicComponentLoader;\nvar element_ref_1 = require('./linker/element_ref');\nexports.ElementRef = element_ref_1.ElementRef;\nvar template_ref_1 = require('./linker/template_ref');\nexports.TemplateRef = template_ref_1.TemplateRef;\nvar view_ref_1 = require('./linker/view_ref');\nexports.EmbeddedViewRef = view_ref_1.EmbeddedViewRef;\nexports.HostViewRef = view_ref_1.HostViewRef;\nexports.ViewRef = view_ref_1.ViewRef;\nexports.HostViewFactoryRef = view_ref_1.HostViewFactoryRef;\nvar view_container_ref_1 = require('./linker/view_container_ref');\nexports.ViewContainerRef = view_container_ref_1.ViewContainerRef;\nvar dynamic_component_loader_2 = require('./linker/dynamic_component_loader');\nexports.ComponentRef = dynamic_component_loader_2.ComponentRef;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar lang_1 = require('../../facade/lang');\nvar collection_1 = require('../../facade/collection');\nvar EventListener = (function() {\n function EventListener(name, callback) {\n this.name = name;\n this.callback = callback;\n }\n ;\n return EventListener;\n})();\nexports.EventListener = EventListener;\nvar DebugNode = (function() {\n function DebugNode(nativeNode, parent) {\n this.nativeNode = nativeNode;\n if (lang_1.isPresent(parent) && parent instanceof DebugElement) {\n parent.addChild(this);\n } else {\n this.parent = null;\n }\n this.listeners = [];\n this.providerTokens = [];\n }\n DebugNode.prototype.setDebugInfo = function(info) {\n this.injector = info.injector;\n this.providerTokens = info.providerTokens;\n this.locals = info.locals;\n this.componentInstance = info.component;\n };\n DebugNode.prototype.inject = function(token) {\n return this.injector.get(token);\n };\n DebugNode.prototype.getLocal = function(name) {\n return this.locals.get(name);\n };\n return DebugNode;\n})();\nexports.DebugNode = DebugNode;\nvar DebugElement = (function(_super) {\n __extends(DebugElement, _super);\n function DebugElement(nativeNode, parent) {\n _super.call(this, nativeNode, parent);\n this.properties = new Map();\n this.attributes = new Map();\n this.childNodes = [];\n this.nativeElement = nativeNode;\n }\n DebugElement.prototype.addChild = function(child) {\n if (lang_1.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 = collection_1.ListWrapper.concat(collection_1.ListWrapper.concat(previousChildren, newChildren), nextChildren);\n for (var i = 0; i < newChildren.length; ++i) {\n var newChild = newChildren[i];\n if (lang_1.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);\nexports.DebugElement = DebugElement;\nfunction asNativeElements(debugEls) {\n return debugEls.map(function(el) {\n return el.nativeElement;\n });\n}\nexports.asNativeElements = asNativeElements;\nfunction _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}\nfunction _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}\nvar _nativeNodeToDebugNode = new Map();\nfunction getDebugNode(nativeNode) {\n return _nativeNodeToDebugNode.get(nativeNode);\n}\nexports.getDebugNode = getDebugNode;\nfunction getAllDebugNodes() {\n return collection_1.MapWrapper.values(_nativeNodeToDebugNode);\n}\nexports.getAllDebugNodes = getAllDebugNodes;\nfunction indexDebugNode(node) {\n _nativeNodeToDebugNode.set(node.nativeNode, node);\n}\nexports.indexDebugNode = indexDebugNode;\nfunction removeDebugNodeFromIndex(node) {\n _nativeNodeToDebugNode.delete(node.nativeNode);\n}\nexports.removeDebugNodeFromIndex = removeDebugNodeFromIndex;\n","/* */ \n'use strict';\nvar di_1 = require('./di');\nvar lang_1 = require('../facade/lang');\nexports.PLATFORM_DIRECTIVES = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Platform Directives\"));\nexports.PLATFORM_PIPES = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Platform Pipes\"));\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('./di');\nvar lang_1 = require('../facade/lang');\nvar Console = (function() {\n function Console() {}\n Console.prototype.log = function(message) {\n lang_1.print(message);\n };\n Console = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], Console);\n return Console;\n})();\nexports.Console = Console;\n","/* */ \n(function(process) {\n 'use strict';\n var collection_1 = require('../../facade/collection');\n var lang_1 = require('../../facade/lang');\n var async_1 = require('../../facade/async');\n var profile_1 = require('../profile/profile');\n var NgZoneError = (function() {\n function NgZoneError(error, stackTrace) {\n this.error = error;\n this.stackTrace = stackTrace;\n }\n return NgZoneError;\n })();\n exports.NgZoneError = NgZoneError;\n var NgZone = (function() {\n function NgZone(_a) {\n var enableLongStackTrace = _a.enableLongStackTrace;\n this._runScope = profile_1.wtfCreateScope(\"NgZone#run()\");\n this._microtaskScope = profile_1.wtfCreateScope(\"NgZone#microtask()\");\n this._pendingMicrotasks = 0;\n this._hasExecutedCodeInInnerZone = false;\n this._nestedRun = 0;\n this._inVmTurnDone = false;\n this._pendingTimeouts = [];\n if (lang_1.global.zone) {\n this._disabled = false;\n this._mountZone = lang_1.global.zone;\n this._innerZone = this._createInnerZone(this._mountZone, enableLongStackTrace);\n } else {\n this._disabled = true;\n this._mountZone = null;\n }\n this._onTurnStartEvents = new async_1.EventEmitter(false);\n this._onTurnDoneEvents = new async_1.EventEmitter(false);\n this._onEventDoneEvents = new async_1.EventEmitter(false);\n this._onErrorEvents = new async_1.EventEmitter(false);\n }\n NgZone.prototype.overrideOnTurnStart = function(onTurnStartHook) {\n this._onTurnStart = lang_1.normalizeBlank(onTurnStartHook);\n };\n Object.defineProperty(NgZone.prototype, \"onTurnStart\", {\n get: function() {\n return this._onTurnStartEvents;\n },\n enumerable: true,\n configurable: true\n });\n NgZone.prototype._notifyOnTurnStart = function(parentRun) {\n var _this = this;\n parentRun.call(this._innerZone, function() {\n _this._onTurnStartEvents.emit(null);\n });\n };\n NgZone.prototype.overrideOnTurnDone = function(onTurnDoneHook) {\n this._onTurnDone = lang_1.normalizeBlank(onTurnDoneHook);\n };\n Object.defineProperty(NgZone.prototype, \"onTurnDone\", {\n get: function() {\n return this._onTurnDoneEvents;\n },\n enumerable: true,\n configurable: true\n });\n NgZone.prototype._notifyOnTurnDone = function(parentRun) {\n var _this = this;\n parentRun.call(this._innerZone, function() {\n _this._onTurnDoneEvents.emit(null);\n });\n };\n NgZone.prototype.overrideOnEventDone = function(onEventDoneFn, opt_waitForAsync) {\n var _this = this;\n if (opt_waitForAsync === void 0) {\n opt_waitForAsync = false;\n }\n var normalizedOnEventDone = lang_1.normalizeBlank(onEventDoneFn);\n if (opt_waitForAsync) {\n this._onEventDone = function() {\n if (!_this._pendingTimeouts.length) {\n normalizedOnEventDone();\n }\n };\n } else {\n this._onEventDone = normalizedOnEventDone;\n }\n };\n Object.defineProperty(NgZone.prototype, \"onEventDone\", {\n get: function() {\n return this._onEventDoneEvents;\n },\n enumerable: true,\n configurable: true\n });\n NgZone.prototype._notifyOnEventDone = function() {\n var _this = this;\n this.runOutsideAngular(function() {\n _this._onEventDoneEvents.emit(null);\n });\n };\n Object.defineProperty(NgZone.prototype, \"hasPendingMicrotasks\", {\n get: function() {\n return this._pendingMicrotasks > 0;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"hasPendingTimers\", {\n get: function() {\n return this._pendingTimeouts.length > 0;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NgZone.prototype, \"hasPendingAsyncTasks\", {\n get: function() {\n return this.hasPendingMicrotasks || this.hasPendingTimers;\n },\n enumerable: true,\n configurable: true\n });\n NgZone.prototype.overrideOnErrorHandler = function(errorHandler) {\n this._onErrorHandler = lang_1.normalizeBlank(errorHandler);\n };\n Object.defineProperty(NgZone.prototype, \"onError\", {\n get: function() {\n return this._onErrorEvents;\n },\n enumerable: true,\n configurable: true\n });\n NgZone.prototype.run = function(fn) {\n if (this._disabled) {\n return fn();\n } else {\n var s = this._runScope();\n try {\n return this._innerZone.run(fn);\n } finally {\n profile_1.wtfLeave(s);\n }\n }\n };\n NgZone.prototype.runOutsideAngular = function(fn) {\n if (this._disabled) {\n return fn();\n } else {\n return this._mountZone.run(fn);\n }\n };\n NgZone.prototype._createInnerZone = function(zone, enableLongStackTrace) {\n var microtaskScope = this._microtaskScope;\n var ngZone = this;\n var errorHandling;\n if (enableLongStackTrace) {\n errorHandling = collection_1.StringMapWrapper.merge(lang_1.global.Zone.longStackTraceZone, {onError: function(e) {\n ngZone._notifyOnError(this, e);\n }});\n } else {\n errorHandling = {onError: function(e) {\n ngZone._notifyOnError(this, e);\n }};\n }\n return zone.fork(errorHandling).fork({\n '$run': function(parentRun) {\n return function() {\n try {\n ngZone._nestedRun++;\n if (!ngZone._hasExecutedCodeInInnerZone) {\n ngZone._hasExecutedCodeInInnerZone = true;\n ngZone._notifyOnTurnStart(parentRun);\n if (ngZone._onTurnStart) {\n parentRun.call(ngZone._innerZone, ngZone._onTurnStart);\n }\n }\n return parentRun.apply(this, arguments);\n } finally {\n ngZone._nestedRun--;\n if (ngZone._pendingMicrotasks == 0 && ngZone._nestedRun == 0 && !this._inVmTurnDone) {\n if (ngZone._hasExecutedCodeInInnerZone) {\n try {\n this._inVmTurnDone = true;\n ngZone._notifyOnTurnDone(parentRun);\n if (ngZone._onTurnDone) {\n parentRun.call(ngZone._innerZone, ngZone._onTurnDone);\n }\n } finally {\n this._inVmTurnDone = false;\n ngZone._hasExecutedCodeInInnerZone = false;\n }\n }\n if (ngZone._pendingMicrotasks === 0) {\n ngZone._notifyOnEventDone();\n if (lang_1.isPresent(ngZone._onEventDone)) {\n ngZone.runOutsideAngular(ngZone._onEventDone);\n }\n }\n }\n }\n };\n },\n '$scheduleMicrotask': function(parentScheduleMicrotask) {\n return function(fn) {\n ngZone._pendingMicrotasks++;\n var microtask = function() {\n var s = microtaskScope();\n try {\n fn();\n } finally {\n ngZone._pendingMicrotasks--;\n profile_1.wtfLeave(s);\n }\n };\n parentScheduleMicrotask.call(this, microtask);\n };\n },\n '$setTimeout': function(parentSetTimeout) {\n return function(fn, delay) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var id;\n var cb = function() {\n fn();\n collection_1.ListWrapper.remove(ngZone._pendingTimeouts, id);\n };\n id = parentSetTimeout.call(this, cb, delay, args);\n ngZone._pendingTimeouts.push(id);\n return id;\n };\n },\n '$clearTimeout': function(parentClearTimeout) {\n return function(id) {\n parentClearTimeout.call(this, id);\n collection_1.ListWrapper.remove(ngZone._pendingTimeouts, id);\n };\n },\n _innerZone: true\n });\n };\n NgZone.prototype._notifyOnError = function(zone, e) {\n if (lang_1.isPresent(this._onErrorHandler) || async_1.ObservableWrapper.hasSubscribers(this._onErrorEvents)) {\n var trace = [lang_1.normalizeBlank(e.stack)];\n while (zone && zone.constructedAtException) {\n trace.push(zone.constructedAtException.get());\n zone = zone.parent;\n }\n if (async_1.ObservableWrapper.hasSubscribers(this._onErrorEvents)) {\n async_1.ObservableWrapper.callEmit(this._onErrorEvents, new NgZoneError(e, trace));\n }\n if (lang_1.isPresent(this._onErrorHandler)) {\n this._onErrorHandler(e, trace);\n }\n } else {\n console.log('## _notifyOnError ##');\n console.log(e.stack);\n throw e;\n }\n };\n return NgZone;\n })();\n exports.NgZone = NgZone;\n})(require('process'));\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../di');\nvar collection_1 = require('../../facade/collection');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar ng_zone_1 = require('../zone/ng_zone');\nvar async_1 = require('../../facade/async');\nvar Testability = (function() {\n function Testability(_ngZone) {\n this._pendingCount = 0;\n this._didWork = false;\n this._callbacks = [];\n this._isAngularEventPending = false;\n this._watchAngularEvents(_ngZone);\n }\n Testability.prototype._watchAngularEvents = function(_ngZone) {\n var _this = this;\n async_1.ObservableWrapper.subscribe(_ngZone.onTurnStart, function(_) {\n _this._didWork = true;\n _this._isAngularEventPending = true;\n });\n _ngZone.runOutsideAngular(function() {\n async_1.ObservableWrapper.subscribe(_ngZone.onEventDone, function(_) {\n if (!_ngZone.hasPendingTimers) {\n _this._isAngularEventPending = false;\n _this._runCallbacksIfReady();\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 exceptions_1.BaseException('pending async requests below zero');\n }\n this._runCallbacksIfReady();\n return this._pendingCount;\n };\n Testability.prototype.isStable = function() {\n return this._pendingCount == 0 && !this._isAngularEventPending;\n };\n Testability.prototype._runCallbacksIfReady = function() {\n var _this = this;\n if (!this.isStable()) {\n this._didWork = true;\n return;\n }\n async_1.PromiseWrapper.resolve(null).then(function(_) {\n while (_this._callbacks.length !== 0) {\n (_this._callbacks.pop())(_this._didWork);\n }\n _this._didWork = false;\n });\n };\n Testability.prototype.whenStable = function(callback) {\n this._callbacks.push(callback);\n this._runCallbacksIfReady();\n };\n Testability.prototype.getPendingRequestCount = function() {\n return this._pendingCount;\n };\n Testability.prototype.isAngularEventPending = function() {\n return this._isAngularEventPending;\n };\n Testability.prototype.findBindings = function(using, provider, exactMatch) {\n return [];\n };\n Testability.prototype.findProviders = function(using, provider, exactMatch) {\n return [];\n };\n Testability = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [ng_zone_1.NgZone])], Testability);\n return Testability;\n})();\nexports.Testability = Testability;\nvar TestabilityRegistry = (function() {\n function TestabilityRegistry() {\n this._applications = new collection_1.Map();\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) {\n return this._applications.get(elem);\n };\n TestabilityRegistry.prototype.getAllTestabilities = function() {\n return collection_1.MapWrapper.values(this._applications);\n };\n TestabilityRegistry.prototype.findTestabilityInTree = function(elem, findInAncestors) {\n if (findInAncestors === void 0) {\n findInAncestors = true;\n }\n return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);\n };\n TestabilityRegistry = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], TestabilityRegistry);\n return TestabilityRegistry;\n})();\nexports.TestabilityRegistry = TestabilityRegistry;\nvar _NoopGetTestability = (function() {\n function _NoopGetTestability() {}\n _NoopGetTestability.prototype.addToWindow = function(registry) {};\n _NoopGetTestability.prototype.findTestabilityInTree = function(registry, elem, findInAncestors) {\n return null;\n };\n _NoopGetTestability = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], _NoopGetTestability);\n return _NoopGetTestability;\n})();\nfunction setTestabilityGetter(getter) {\n _testabilityGetter = getter;\n}\nexports.setTestabilityGetter = setTestabilityGetter;\nvar _testabilityGetter = lang_1.CONST_EXPR(new _NoopGetTestability());\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar di_1 = require('./di');\nvar console_1 = require('./console');\nvar reflection_1 = require('./reflection/reflection');\nvar testability_1 = require('./testability/testability');\nfunction _reflector() {\n return reflection_1.reflector;\n}\nexports.PLATFORM_COMMON_PROVIDERS = lang_1.CONST_EXPR([new di_1.Provider(reflection_1.Reflector, {\n useFactory: _reflector,\n deps: []\n}), testability_1.TestabilityRegistry, console_1.Console]);\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../di');\nvar lang_1 = require('../../facade/lang');\nvar element_1 = require('./element');\nvar directive_resolver_1 = require('./directive_resolver');\nvar pipe_provider_1 = require('../pipes/pipe_provider');\nvar pipe_resolver_1 = require('./pipe_resolver');\nvar ResolvedMetadataCache = (function() {\n function ResolvedMetadataCache(_directiveResolver, _pipeResolver) {\n this._directiveResolver = _directiveResolver;\n this._pipeResolver = _pipeResolver;\n this._directiveCache = new Map();\n this._pipeCache = new Map();\n }\n ResolvedMetadataCache.prototype.getResolvedDirectiveMetadata = function(type) {\n var result = this._directiveCache.get(type);\n if (lang_1.isBlank(result)) {\n result = element_1.DirectiveProvider.createFromType(type, this._directiveResolver.resolve(type));\n this._directiveCache.set(type, result);\n }\n return result;\n };\n ResolvedMetadataCache.prototype.getResolvedPipeMetadata = function(type) {\n var result = this._pipeCache.get(type);\n if (lang_1.isBlank(result)) {\n result = pipe_provider_1.PipeProvider.createFromType(type, this._pipeResolver.resolve(type));\n this._pipeCache.set(type, result);\n }\n return result;\n };\n ResolvedMetadataCache = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver])], ResolvedMetadataCache);\n return ResolvedMetadataCache;\n})();\nexports.ResolvedMetadataCache = ResolvedMetadataCache;\nexports.CODEGEN_RESOLVED_METADATA_CACHE = new ResolvedMetadataCache(directive_resolver_1.CODEGEN_DIRECTIVE_RESOLVER, pipe_resolver_1.CODEGEN_PIPE_RESOLVER);\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../di');\nvar view_1 = require('../metadata/view');\nvar directives_1 = require('../metadata/directives');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar reflection_1 = require('../reflection/reflection');\nvar ViewResolver = (function() {\n function ViewResolver() {\n this._cache = new collection_1.Map();\n }\n ViewResolver.prototype.resolve = function(component) {\n var view = this._cache.get(component);\n if (lang_1.isBlank(view)) {\n view = this._resolve(component);\n this._cache.set(component, view);\n }\n return view;\n };\n ViewResolver.prototype._resolve = function(component) {\n var compMeta;\n var viewMeta;\n reflection_1.reflector.annotations(component).forEach(function(m) {\n if (m instanceof view_1.ViewMetadata) {\n viewMeta = m;\n }\n if (m instanceof directives_1.ComponentMetadata) {\n compMeta = m;\n }\n });\n if (lang_1.isPresent(compMeta)) {\n if (lang_1.isBlank(compMeta.template) && lang_1.isBlank(compMeta.templateUrl) && lang_1.isBlank(viewMeta)) {\n throw new exceptions_1.BaseException(\"Component '\" + lang_1.stringify(component) + \"' must have either 'template', 'templateUrl', or '@View' set.\");\n } else if (lang_1.isPresent(compMeta.template) && lang_1.isPresent(viewMeta)) {\n this._throwMixingViewAndComponent(\"template\", component);\n } else if (lang_1.isPresent(compMeta.templateUrl) && lang_1.isPresent(viewMeta)) {\n this._throwMixingViewAndComponent(\"templateUrl\", component);\n } else if (lang_1.isPresent(compMeta.directives) && lang_1.isPresent(viewMeta)) {\n this._throwMixingViewAndComponent(\"directives\", component);\n } else if (lang_1.isPresent(compMeta.pipes) && lang_1.isPresent(viewMeta)) {\n this._throwMixingViewAndComponent(\"pipes\", component);\n } else if (lang_1.isPresent(compMeta.encapsulation) && lang_1.isPresent(viewMeta)) {\n this._throwMixingViewAndComponent(\"encapsulation\", component);\n } else if (lang_1.isPresent(compMeta.styles) && lang_1.isPresent(viewMeta)) {\n this._throwMixingViewAndComponent(\"styles\", component);\n } else if (lang_1.isPresent(compMeta.styleUrls) && lang_1.isPresent(viewMeta)) {\n this._throwMixingViewAndComponent(\"styleUrls\", component);\n } else if (lang_1.isPresent(viewMeta)) {\n return viewMeta;\n } else {\n return new view_1.ViewMetadata({\n templateUrl: compMeta.templateUrl,\n template: compMeta.template,\n directives: compMeta.directives,\n pipes: compMeta.pipes,\n encapsulation: compMeta.encapsulation,\n styles: compMeta.styles,\n styleUrls: compMeta.styleUrls\n });\n }\n } else {\n if (lang_1.isBlank(viewMeta)) {\n throw new exceptions_1.BaseException(\"No View decorator found on component '\" + lang_1.stringify(component) + \"'\");\n } else {\n return viewMeta;\n }\n }\n return null;\n };\n ViewResolver.prototype._throwMixingViewAndComponent = function(propertyName, component) {\n throw new exceptions_1.BaseException(\"Component '\" + lang_1.stringify(component) + \"' cannot have both '\" + propertyName + \"' and '@View' set at the same time\\\"\");\n };\n ViewResolver = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], ViewResolver);\n return ViewResolver;\n})();\nexports.ViewResolver = ViewResolver;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../di');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar metadata_1 = require('../metadata');\nvar reflection_1 = require('../reflection/reflection');\nfunction _isDirectiveMetadata(type) {\n return type instanceof metadata_1.DirectiveMetadata;\n}\nvar DirectiveResolver = (function() {\n function DirectiveResolver() {}\n DirectiveResolver.prototype.resolve = function(type) {\n var typeMetadata = reflection_1.reflector.annotations(di_1.resolveForwardRef(type));\n if (lang_1.isPresent(typeMetadata)) {\n var metadata = typeMetadata.find(_isDirectiveMetadata);\n if (lang_1.isPresent(metadata)) {\n var propertyMetadata = reflection_1.reflector.propMetadata(type);\n return this._mergeWithPropertyMetadata(metadata, propertyMetadata, type);\n }\n }\n throw new exceptions_1.BaseException(\"No Directive annotation found on \" + lang_1.stringify(type));\n };\n DirectiveResolver.prototype._mergeWithPropertyMetadata = function(dm, propertyMetadata, directiveType) {\n var inputs = [];\n var outputs = [];\n var host = {};\n var queries = {};\n collection_1.StringMapWrapper.forEach(propertyMetadata, function(metadata, propName) {\n metadata.forEach(function(a) {\n if (a instanceof metadata_1.InputMetadata) {\n if (lang_1.isPresent(a.bindingPropertyName)) {\n inputs.push(propName + \": \" + a.bindingPropertyName);\n } else {\n inputs.push(propName);\n }\n }\n if (a instanceof metadata_1.OutputMetadata) {\n if (lang_1.isPresent(a.bindingPropertyName)) {\n outputs.push(propName + \": \" + a.bindingPropertyName);\n } else {\n outputs.push(propName);\n }\n }\n if (a instanceof metadata_1.HostBindingMetadata) {\n if (lang_1.isPresent(a.hostPropertyName)) {\n host[(\"[\" + a.hostPropertyName + \"]\")] = propName;\n } else {\n host[(\"[\" + propName + \"]\")] = propName;\n }\n }\n if (a instanceof metadata_1.HostListenerMetadata) {\n var args = lang_1.isPresent(a.args) ? a.args.join(', ') : '';\n host[(\"(\" + a.eventName + \")\")] = propName + \"(\" + args + \")\";\n }\n if (a instanceof metadata_1.ContentChildrenMetadata) {\n queries[propName] = a;\n }\n if (a instanceof metadata_1.ViewChildrenMetadata) {\n queries[propName] = a;\n }\n if (a instanceof metadata_1.ContentChildMetadata) {\n queries[propName] = a;\n }\n if (a instanceof metadata_1.ViewChildMetadata) {\n queries[propName] = a;\n }\n });\n });\n return this._merge(dm, inputs, outputs, host, queries, directiveType);\n };\n DirectiveResolver.prototype._merge = function(dm, inputs, outputs, host, queries, directiveType) {\n var mergedInputs = lang_1.isPresent(dm.inputs) ? collection_1.ListWrapper.concat(dm.inputs, inputs) : inputs;\n var mergedOutputs;\n if (lang_1.isPresent(dm.outputs)) {\n dm.outputs.forEach(function(propName) {\n if (collection_1.ListWrapper.contains(outputs, propName)) {\n throw new exceptions_1.BaseException(\"Output event '\" + propName + \"' defined multiple times in '\" + lang_1.stringify(directiveType) + \"'\");\n }\n });\n mergedOutputs = collection_1.ListWrapper.concat(dm.outputs, outputs);\n } else {\n mergedOutputs = outputs;\n }\n var mergedHost = lang_1.isPresent(dm.host) ? collection_1.StringMapWrapper.merge(dm.host, host) : host;\n var mergedQueries = lang_1.isPresent(dm.queries) ? collection_1.StringMapWrapper.merge(dm.queries, queries) : queries;\n if (dm instanceof metadata_1.ComponentMetadata) {\n return new metadata_1.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 });\n } else {\n return new metadata_1.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 = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], DirectiveResolver);\n return DirectiveResolver;\n})();\nexports.DirectiveResolver = DirectiveResolver;\nexports.CODEGEN_DIRECTIVE_RESOLVER = new DirectiveResolver();\n","/* */ \n(function(process) {\n 'use strict';\n var __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\n var __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\n var lang_1 = require('../../facade/lang');\n (function(ViewEncapsulation) {\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n ViewEncapsulation[ViewEncapsulation[\"Native\"] = 1] = \"Native\";\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n })(exports.ViewEncapsulation || (exports.ViewEncapsulation = {}));\n var ViewEncapsulation = exports.ViewEncapsulation;\n exports.VIEW_ENCAPSULATION_VALUES = [ViewEncapsulation.Emulated, ViewEncapsulation.Native, ViewEncapsulation.None];\n var ViewMetadata = (function() {\n function ViewMetadata(_a) {\n var _b = _a === void 0 ? {} : _a,\n templateUrl = _b.templateUrl,\n template = _b.template,\n directives = _b.directives,\n pipes = _b.pipes,\n encapsulation = _b.encapsulation,\n styles = _b.styles,\n styleUrls = _b.styleUrls;\n this.templateUrl = templateUrl;\n this.template = template;\n this.styleUrls = styleUrls;\n this.styles = styles;\n this.directives = directives;\n this.pipes = pipes;\n this.encapsulation = encapsulation;\n }\n ViewMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ViewMetadata);\n return ViewMetadata;\n })();\n exports.ViewMetadata = ViewMetadata;\n})(require('process'));\n","/* */ \n'use strict';\nvar di_1 = require('./metadata/di');\nexports.QueryMetadata = di_1.QueryMetadata;\nexports.ContentChildrenMetadata = di_1.ContentChildrenMetadata;\nexports.ContentChildMetadata = di_1.ContentChildMetadata;\nexports.ViewChildrenMetadata = di_1.ViewChildrenMetadata;\nexports.ViewQueryMetadata = di_1.ViewQueryMetadata;\nexports.ViewChildMetadata = di_1.ViewChildMetadata;\nexports.AttributeMetadata = di_1.AttributeMetadata;\nvar directives_1 = require('./metadata/directives');\nexports.ComponentMetadata = directives_1.ComponentMetadata;\nexports.DirectiveMetadata = directives_1.DirectiveMetadata;\nexports.PipeMetadata = directives_1.PipeMetadata;\nexports.InputMetadata = directives_1.InputMetadata;\nexports.OutputMetadata = directives_1.OutputMetadata;\nexports.HostBindingMetadata = directives_1.HostBindingMetadata;\nexports.HostListenerMetadata = directives_1.HostListenerMetadata;\nvar view_1 = require('./metadata/view');\nexports.ViewMetadata = view_1.ViewMetadata;\nexports.ViewEncapsulation = view_1.ViewEncapsulation;\nvar di_2 = require('./metadata/di');\nvar directives_2 = require('./metadata/directives');\nvar view_2 = require('./metadata/view');\nvar decorators_1 = require('./util/decorators');\nexports.Component = decorators_1.makeDecorator(directives_2.ComponentMetadata, function(fn) {\n return fn.View = exports.View;\n});\nexports.Directive = decorators_1.makeDecorator(directives_2.DirectiveMetadata);\nexports.View = decorators_1.makeDecorator(view_2.ViewMetadata, function(fn) {\n return fn.View = exports.View;\n});\nexports.Attribute = decorators_1.makeParamDecorator(di_2.AttributeMetadata);\nexports.Query = decorators_1.makeParamDecorator(di_2.QueryMetadata);\nexports.ContentChildren = decorators_1.makePropDecorator(di_2.ContentChildrenMetadata);\nexports.ContentChild = decorators_1.makePropDecorator(di_2.ContentChildMetadata);\nexports.ViewChildren = decorators_1.makePropDecorator(di_2.ViewChildrenMetadata);\nexports.ViewChild = decorators_1.makePropDecorator(di_2.ViewChildMetadata);\nexports.ViewQuery = decorators_1.makeParamDecorator(di_2.ViewQueryMetadata);\nexports.Pipe = decorators_1.makeDecorator(directives_2.PipeMetadata);\nexports.Input = decorators_1.makePropDecorator(directives_2.InputMetadata);\nexports.Output = decorators_1.makePropDecorator(directives_2.OutputMetadata);\nexports.HostBinding = decorators_1.makePropDecorator(directives_2.HostBindingMetadata);\nexports.HostListener = decorators_1.makePropDecorator(directives_2.HostListenerMetadata);\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../di');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar metadata_1 = require('../metadata');\nvar reflection_1 = require('../reflection/reflection');\nfunction _isPipeMetadata(type) {\n return type instanceof metadata_1.PipeMetadata;\n}\nvar PipeResolver = (function() {\n function PipeResolver() {}\n PipeResolver.prototype.resolve = function(type) {\n var metas = reflection_1.reflector.annotations(di_1.resolveForwardRef(type));\n if (lang_1.isPresent(metas)) {\n var annotation = metas.find(_isPipeMetadata);\n if (lang_1.isPresent(annotation)) {\n return annotation;\n }\n }\n throw new exceptions_1.BaseException(\"No Pipe decorator found on \" + lang_1.stringify(type));\n };\n PipeResolver = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], PipeResolver);\n return PipeResolver;\n})();\nexports.PipeResolver = PipeResolver;\nexports.CODEGEN_PIPE_RESOLVER = new PipeResolver();\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../di');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar async_1 = require('../../facade/async');\nvar reflection_1 = require('../reflection/reflection');\nvar view_1 = require('./view');\nvar view_ref_1 = require('./view_ref');\nvar Compiler = (function() {\n function Compiler() {}\n return Compiler;\n})();\nexports.Compiler = Compiler;\nfunction isHostViewFactory(type) {\n return type instanceof view_1.HostViewFactory;\n}\nvar Compiler_ = (function(_super) {\n __extends(Compiler_, _super);\n function Compiler_() {\n _super.apply(this, arguments);\n }\n Compiler_.prototype.compileInHost = function(componentType) {\n var metadatas = reflection_1.reflector.annotations(componentType);\n var hostViewFactory = metadatas.find(isHostViewFactory);\n if (lang_1.isBlank(hostViewFactory)) {\n throw new exceptions_1.BaseException(\"No precompiled component \" + lang_1.stringify(componentType) + \" found\");\n }\n return async_1.PromiseWrapper.resolve(new view_ref_1.HostViewFactoryRef_(hostViewFactory));\n };\n Compiler_.prototype.clearCache = function() {};\n Compiler_ = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [])], Compiler_);\n return Compiler_;\n})(Compiler);\nexports.Compiler_ = Compiler_;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar exceptions_1 = require('../../facade/exceptions');\nvar ViewRef = (function() {\n function ViewRef() {}\n Object.defineProperty(ViewRef.prototype, \"changeDetectorRef\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n Object.defineProperty(ViewRef.prototype, \"destroyed\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n return ViewRef;\n})();\nexports.ViewRef = ViewRef;\nvar HostViewRef = (function(_super) {\n __extends(HostViewRef, _super);\n function HostViewRef() {\n _super.apply(this, arguments);\n }\n Object.defineProperty(HostViewRef.prototype, \"rootNodes\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n return HostViewRef;\n})(ViewRef);\nexports.HostViewRef = HostViewRef;\nvar EmbeddedViewRef = (function(_super) {\n __extends(EmbeddedViewRef, _super);\n function EmbeddedViewRef() {\n _super.apply(this, arguments);\n }\n Object.defineProperty(EmbeddedViewRef.prototype, \"rootNodes\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n return EmbeddedViewRef;\n})(ViewRef);\nexports.EmbeddedViewRef = EmbeddedViewRef;\nvar ViewRef_ = (function() {\n function ViewRef_(_view) {\n this._view = _view;\n this._view = _view;\n }\n Object.defineProperty(ViewRef_.prototype, \"internalView\", {\n get: function() {\n return this._view;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewRef_.prototype, \"changeDetectorRef\", {\n get: function() {\n return this._view.changeDetector.ref;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewRef_.prototype, \"rootNodes\", {\n get: function() {\n return this._view.flatRootNodes;\n },\n enumerable: true,\n configurable: true\n });\n ViewRef_.prototype.setLocal = function(variableName, value) {\n this._view.setLocal(variableName, value);\n };\n ViewRef_.prototype.hasLocal = function(variableName) {\n return this._view.hasLocal(variableName);\n };\n Object.defineProperty(ViewRef_.prototype, \"destroyed\", {\n get: function() {\n return this._view.destroyed;\n },\n enumerable: true,\n configurable: true\n });\n return ViewRef_;\n})();\nexports.ViewRef_ = ViewRef_;\nvar HostViewFactoryRef = (function() {\n function HostViewFactoryRef() {}\n return HostViewFactoryRef;\n})();\nexports.HostViewFactoryRef = HostViewFactoryRef;\nvar HostViewFactoryRef_ = (function() {\n function HostViewFactoryRef_(_hostViewFactory) {\n this._hostViewFactory = _hostViewFactory;\n }\n Object.defineProperty(HostViewFactoryRef_.prototype, \"internalHostViewFactory\", {\n get: function() {\n return this._hostViewFactory;\n },\n enumerable: true,\n configurable: true\n });\n return HostViewFactoryRef_;\n})();\nexports.HostViewFactoryRef_ = HostViewFactoryRef_;\n","/* */ \n'use strict';var SelectedPipe = (function () {\r\n function SelectedPipe(pipe, pure) {\r\n this.pipe = pipe;\r\n this.pure = pure;\r\n }\r\n return SelectedPipe;\r\n})();\r\nexports.SelectedPipe = SelectedPipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9zcmMvY29yZS9jaGFuZ2VfZGV0ZWN0aW9uL3BpcGVzLnRzIl0sIm5hbWVzIjpbIlNlbGVjdGVkUGlwZSIsIlNlbGVjdGVkUGlwZS5jb25zdHJ1Y3RvciJdLCJtYXBwaW5ncyI6IkFBSUE7SUFDRUEsc0JBQW1CQSxJQUFtQkEsRUFBU0EsSUFBYUE7UUFBekNDLFNBQUlBLEdBQUpBLElBQUlBLENBQWVBO1FBQVNBLFNBQUlBLEdBQUpBLElBQUlBLENBQVNBO0lBQUdBLENBQUNBO0lBQ2xFRCxtQkFBQ0E7QUFBREEsQ0FBQ0EsQUFGRCxJQUVDO0FBRlksb0JBQVksZUFFeEIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7UGlwZVRyYW5zZm9ybX0gZnJvbSAnLi9waXBlX3RyYW5zZm9ybSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgUGlwZXMgeyBnZXQobmFtZTogc3RyaW5nKTogU2VsZWN0ZWRQaXBlOyB9XG5cbmV4cG9ydCBjbGFzcyBTZWxlY3RlZFBpcGUge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgcGlwZTogUGlwZVRyYW5zZm9ybSwgcHVibGljIHB1cmU6IGJvb2xlYW4pIHt9XG59Il19","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar cd = require('../change_detection/pipes');\nvar ProtoPipes = (function() {\n function ProtoPipes(config) {\n this.config = config;\n this.config = config;\n }\n ProtoPipes.fromProviders = function(providers) {\n var config = {};\n providers.forEach(function(b) {\n return config[b.name] = b;\n });\n return new ProtoPipes(config);\n };\n ProtoPipes.prototype.get = function(name) {\n var provider = this.config[name];\n if (lang_1.isBlank(provider))\n throw new exceptions_1.BaseException(\"Cannot find pipe '\" + name + \"'.\");\n return provider;\n };\n return ProtoPipes;\n})();\nexports.ProtoPipes = ProtoPipes;\nvar Pipes = (function() {\n function Pipes(proto, injector) {\n this.proto = proto;\n this.injector = injector;\n this._config = {};\n }\n Pipes.prototype.get = function(name) {\n var cached = collection_1.StringMapWrapper.get(this._config, name);\n if (lang_1.isPresent(cached))\n return cached;\n var p = this.proto.get(name);\n var transform = this.injector.instantiateResolved(p);\n var res = new cd.SelectedPipe(transform, p.pure);\n if (p.pure) {\n collection_1.StringMapWrapper.set(this._config, name, res);\n }\n return res;\n };\n return Pipes;\n})();\nexports.Pipes = Pipes;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar CAMEL_CASE_REGEXP = /([A-Z])/g;\nvar DASH_CASE_REGEXP = /-([a-z])/g;\nfunction camelCaseToDashCase(input) {\n return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function(m) {\n return '-' + m[1].toLowerCase();\n });\n}\nexports.camelCaseToDashCase = camelCaseToDashCase;\nfunction dashCaseToCamelCase(input) {\n return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function(m) {\n return m[1].toUpperCase();\n });\n}\nexports.dashCaseToCamelCase = dashCaseToCamelCase;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar collection_1 = require('../../facade/collection');\nvar change_detection_1 = require('../change_detection/change_detection');\nvar interfaces_1 = require('../change_detection/interfaces');\nvar element_1 = require('./element');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar api_1 = require('../render/api');\nvar view_ref_1 = require('./view_ref');\nvar pipes_1 = require('../pipes/pipes');\nvar util_1 = require('../render/util');\nvar interfaces_2 = require('../change_detection/interfaces');\nexports.DebugContext = interfaces_2.DebugContext;\nvar pipes_2 = require('../pipes/pipes');\nvar view_type_1 = require('./view_type');\nvar REFLECT_PREFIX = 'ng-reflect-';\nvar EMPTY_CONTEXT = lang_1.CONST_EXPR(new Object());\nvar AppView = (function() {\n function AppView(proto, renderer, viewManager, projectableNodes, containerAppElement, imperativelyCreatedProviders, rootInjector, changeDetector) {\n this.proto = proto;\n this.renderer = renderer;\n this.viewManager = viewManager;\n this.projectableNodes = projectableNodes;\n this.containerAppElement = containerAppElement;\n this.changeDetector = changeDetector;\n this.context = null;\n this.destroyed = false;\n this.ref = new view_ref_1.ViewRef_(this);\n var injectorWithHostBoundary = element_1.AppElement.getViewParentInjector(this.proto.type, containerAppElement, imperativelyCreatedProviders, rootInjector);\n this.parentInjector = injectorWithHostBoundary.injector;\n this.hostInjectorBoundary = injectorWithHostBoundary.hostInjectorBoundary;\n var pipes;\n var context;\n switch (proto.type) {\n case view_type_1.ViewType.COMPONENT:\n pipes = new pipes_2.Pipes(proto.protoPipes, containerAppElement.getInjector());\n context = containerAppElement.getComponent();\n break;\n case view_type_1.ViewType.EMBEDDED:\n pipes = containerAppElement.parentView.pipes;\n context = containerAppElement.parentView.context;\n break;\n case view_type_1.ViewType.HOST:\n pipes = null;\n context = EMPTY_CONTEXT;\n break;\n }\n this.pipes = pipes;\n this.context = context;\n }\n AppView.prototype.init = function(rootNodesOrAppElements, allNodes, disposables, appElements) {\n this.rootNodesOrAppElements = rootNodesOrAppElements;\n this.allNodes = allNodes;\n this.disposables = disposables;\n this.appElements = appElements;\n var localsMap = new collection_1.Map();\n collection_1.StringMapWrapper.forEach(this.proto.templateVariableBindings, function(templateName, _) {\n localsMap.set(templateName, null);\n });\n for (var i = 0; i < appElements.length; i++) {\n var appEl = appElements[i];\n var providerTokens = [];\n if (lang_1.isPresent(appEl.proto.protoInjector)) {\n for (var j = 0; j < appEl.proto.protoInjector.numberOfProviders; j++) {\n providerTokens.push(appEl.proto.protoInjector.getProviderAtIndex(j).key.token);\n }\n }\n collection_1.StringMapWrapper.forEach(appEl.proto.directiveVariableBindings, function(directiveIndex, name) {\n if (lang_1.isBlank(directiveIndex)) {\n localsMap.set(name, appEl.nativeElement);\n } else {\n localsMap.set(name, appEl.getDirectiveAtIndex(directiveIndex));\n }\n });\n this.renderer.setElementDebugInfo(appEl.nativeElement, new api_1.RenderDebugInfo(appEl.getInjector(), appEl.getComponent(), providerTokens, localsMap));\n }\n var parentLocals = null;\n if (this.proto.type !== view_type_1.ViewType.COMPONENT) {\n parentLocals = lang_1.isPresent(this.containerAppElement) ? this.containerAppElement.parentView.locals : null;\n }\n if (this.proto.type === view_type_1.ViewType.COMPONENT) {\n this.containerAppElement.attachComponentView(this);\n this.containerAppElement.parentView.changeDetector.addViewChild(this.changeDetector);\n }\n this.locals = new change_detection_1.Locals(parentLocals, localsMap);\n this.changeDetector.hydrate(this.context, this.locals, this, this.pipes);\n this.viewManager.onViewCreated(this);\n };\n AppView.prototype.destroy = function() {\n if (this.destroyed) {\n throw new exceptions_1.BaseException('This view has already been destroyed!');\n }\n this.changeDetector.destroyRecursive();\n };\n AppView.prototype.notifyOnDestroy = function() {\n this.destroyed = true;\n var hostElement = this.proto.type === view_type_1.ViewType.COMPONENT ? this.containerAppElement.nativeElement : null;\n this.renderer.destroyView(hostElement, this.allNodes);\n for (var i = 0; i < this.disposables.length; i++) {\n this.disposables[i]();\n }\n this.viewManager.onViewDestroyed(this);\n };\n Object.defineProperty(AppView.prototype, \"changeDetectorRef\", {\n get: function() {\n return this.changeDetector.ref;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AppView.prototype, \"flatRootNodes\", {\n get: function() {\n return flattenNestedViewRenderNodes(this.rootNodesOrAppElements);\n },\n enumerable: true,\n configurable: true\n });\n AppView.prototype.hasLocal = function(contextName) {\n return collection_1.StringMapWrapper.contains(this.proto.templateVariableBindings, contextName);\n };\n AppView.prototype.setLocal = function(contextName, value) {\n if (!this.hasLocal(contextName)) {\n return;\n }\n var templateName = this.proto.templateVariableBindings[contextName];\n this.locals.set(templateName, value);\n };\n AppView.prototype.notifyOnBinding = function(b, currentValue) {\n if (b.isTextNode()) {\n this.renderer.setText(this.allNodes[b.elementIndex], currentValue);\n } else {\n var nativeElement = this.appElements[b.elementIndex].nativeElement;\n if (b.isElementProperty()) {\n this.renderer.setElementProperty(nativeElement, b.name, currentValue);\n } else if (b.isElementAttribute()) {\n this.renderer.setElementAttribute(nativeElement, b.name, lang_1.isPresent(currentValue) ? \"\" + currentValue : null);\n } else if (b.isElementClass()) {\n this.renderer.setElementClass(nativeElement, b.name, currentValue);\n } else if (b.isElementStyle()) {\n var unit = lang_1.isPresent(b.unit) ? b.unit : '';\n this.renderer.setElementStyle(nativeElement, b.name, lang_1.isPresent(currentValue) ? \"\" + currentValue + unit : null);\n } else {\n throw new exceptions_1.BaseException('Unsupported directive record');\n }\n }\n };\n AppView.prototype.logBindingUpdate = function(b, value) {\n if (b.isDirective() || b.isElementProperty()) {\n var nativeElement = this.appElements[b.elementIndex].nativeElement;\n this.renderer.setBindingDebugInfo(nativeElement, \"\" + REFLECT_PREFIX + util_1.camelCaseToDashCase(b.name), \"\" + value);\n }\n };\n AppView.prototype.notifyAfterContentChecked = function() {\n var count = this.appElements.length;\n for (var i = count - 1; i >= 0; i--) {\n this.appElements[i].ngAfterContentChecked();\n }\n };\n AppView.prototype.notifyAfterViewChecked = function() {\n var count = this.appElements.length;\n for (var i = count - 1; i >= 0; i--) {\n this.appElements[i].ngAfterViewChecked();\n }\n };\n AppView.prototype.getDebugContext = function(appElement, elementIndex, directiveIndex) {\n try {\n if (lang_1.isBlank(appElement) && elementIndex < this.appElements.length) {\n appElement = this.appElements[elementIndex];\n }\n var container = this.containerAppElement;\n var element = lang_1.isPresent(appElement) ? appElement.nativeElement : null;\n var componentElement = lang_1.isPresent(container) ? container.nativeElement : null;\n var directive = lang_1.isPresent(directiveIndex) ? appElement.getDirectiveAtIndex(directiveIndex) : null;\n var injector = lang_1.isPresent(appElement) ? appElement.getInjector() : null;\n return new interfaces_1.DebugContext(element, componentElement, directive, this.context, _localsToStringMap(this.locals), injector);\n } catch (e) {\n return null;\n }\n };\n AppView.prototype.getDirectiveFor = function(directive) {\n return this.appElements[directive.elementIndex].getDirectiveAtIndex(directive.directiveIndex);\n };\n AppView.prototype.getDetectorFor = function(directive) {\n var componentView = this.appElements[directive.elementIndex].componentView;\n return lang_1.isPresent(componentView) ? componentView.changeDetector : null;\n };\n AppView.prototype.triggerEventHandlers = function(eventName, eventObj, boundElementIndex) {\n return this.changeDetector.handleEvent(eventName, boundElementIndex, eventObj);\n };\n return AppView;\n})();\nexports.AppView = AppView;\nfunction _localsToStringMap(locals) {\n var res = {};\n var c = locals;\n while (lang_1.isPresent(c)) {\n res = collection_1.StringMapWrapper.merge(res, collection_1.MapWrapper.toStringMap(c.current));\n c = c.parent;\n }\n return res;\n}\nvar AppProtoView = (function() {\n function AppProtoView(type, protoPipes, templateVariableBindings) {\n this.type = type;\n this.protoPipes = protoPipes;\n this.templateVariableBindings = templateVariableBindings;\n }\n AppProtoView.create = function(metadataCache, type, pipes, templateVariableBindings) {\n var protoPipes = null;\n if (lang_1.isPresent(pipes) && pipes.length > 0) {\n var boundPipes = collection_1.ListWrapper.createFixedSize(pipes.length);\n for (var i = 0; i < pipes.length; i++) {\n boundPipes[i] = metadataCache.getResolvedPipeMetadata(pipes[i]);\n }\n protoPipes = pipes_1.ProtoPipes.fromProviders(boundPipes);\n }\n return new AppProtoView(type, protoPipes, templateVariableBindings);\n };\n return AppProtoView;\n})();\nexports.AppProtoView = AppProtoView;\nvar HostViewFactory = (function() {\n function HostViewFactory(selector, viewFactory) {\n this.selector = selector;\n this.viewFactory = viewFactory;\n }\n HostViewFactory = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Function])], HostViewFactory);\n return HostViewFactory;\n})();\nexports.HostViewFactory = HostViewFactory;\nfunction flattenNestedViewRenderNodes(nodes) {\n return _flattenNestedViewRenderNodes(nodes, []);\n}\nexports.flattenNestedViewRenderNodes = flattenNestedViewRenderNodes;\nfunction _flattenNestedViewRenderNodes(nodes, renderNodes) {\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n if (node instanceof element_1.AppElement) {\n var appEl = node;\n renderNodes.push(appEl.nativeElement);\n if (lang_1.isPresent(appEl.nestedViews)) {\n for (var k = 0; k < appEl.nestedViews.length; k++) {\n _flattenNestedViewRenderNodes(appEl.nestedViews[k].rootNodesOrAppElements, renderNodes);\n }\n }\n } else {\n renderNodes.push(node);\n }\n }\n return renderNodes;\n}\nfunction checkSlotCount(componentName, expectedSlotCount, projectableNodes) {\n var givenSlotCount = lang_1.isPresent(projectableNodes) ? projectableNodes.length : 0;\n if (givenSlotCount < expectedSlotCount) {\n throw new exceptions_1.BaseException((\"The component \" + componentName + \" has \" + expectedSlotCount + \" <ng-content> elements,\") + (\" but only \" + givenSlotCount + \" slots were provided.\"));\n }\n}\nexports.checkSlotCount = checkSlotCount;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar di_1 = require('../di');\nvar metadata_1 = require('../di/metadata');\nvar 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 return this;\n },\n enumerable: true,\n configurable: true\n });\n AttributeMetadata.prototype.toString = function() {\n return \"@Attribute(\" + lang_1.stringify(this.attributeName) + \")\";\n };\n AttributeMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], AttributeMetadata);\n return AttributeMetadata;\n})(metadata_1.DependencyMetadata);\nexports.AttributeMetadata = AttributeMetadata;\nvar QueryMetadata = (function(_super) {\n __extends(QueryMetadata, _super);\n function QueryMetadata(_selector, _a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.descendants,\n descendants = _c === void 0 ? false : _c,\n _d = _b.first,\n first = _d === void 0 ? false : _d;\n _super.call(this);\n this._selector = _selector;\n this.descendants = descendants;\n this.first = first;\n }\n Object.defineProperty(QueryMetadata.prototype, \"isViewQuery\", {\n get: function() {\n return false;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryMetadata.prototype, \"selector\", {\n get: function() {\n return di_1.resolveForwardRef(this._selector);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryMetadata.prototype, \"isVarBindingQuery\", {\n get: function() {\n return lang_1.isString(this.selector);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryMetadata.prototype, \"varBindings\", {\n get: function() {\n return this.selector.split(',');\n },\n enumerable: true,\n configurable: true\n });\n QueryMetadata.prototype.toString = function() {\n return \"@Query(\" + lang_1.stringify(this.selector) + \")\";\n };\n QueryMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object, Object])], QueryMetadata);\n return QueryMetadata;\n})(metadata_1.DependencyMetadata);\nexports.QueryMetadata = QueryMetadata;\nvar ContentChildrenMetadata = (function(_super) {\n __extends(ContentChildrenMetadata, _super);\n function ContentChildrenMetadata(_selector, _a) {\n var _b = (_a === void 0 ? {} : _a).descendants,\n descendants = _b === void 0 ? false : _b;\n _super.call(this, _selector, {descendants: descendants});\n }\n ContentChildrenMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object, Object])], ContentChildrenMetadata);\n return ContentChildrenMetadata;\n})(QueryMetadata);\nexports.ContentChildrenMetadata = ContentChildrenMetadata;\nvar ContentChildMetadata = (function(_super) {\n __extends(ContentChildMetadata, _super);\n function ContentChildMetadata(_selector) {\n _super.call(this, _selector, {\n descendants: true,\n first: true\n });\n }\n ContentChildMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ContentChildMetadata);\n return ContentChildMetadata;\n})(QueryMetadata);\nexports.ContentChildMetadata = ContentChildMetadata;\nvar ViewQueryMetadata = (function(_super) {\n __extends(ViewQueryMetadata, _super);\n function ViewQueryMetadata(_selector, _a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.descendants,\n descendants = _c === void 0 ? false : _c,\n _d = _b.first,\n first = _d === void 0 ? false : _d;\n _super.call(this, _selector, {\n descendants: descendants,\n first: first\n });\n }\n Object.defineProperty(ViewQueryMetadata.prototype, \"isViewQuery\", {\n get: function() {\n return true;\n },\n enumerable: true,\n configurable: true\n });\n ViewQueryMetadata.prototype.toString = function() {\n return \"@ViewQuery(\" + lang_1.stringify(this.selector) + \")\";\n };\n ViewQueryMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object, Object])], ViewQueryMetadata);\n return ViewQueryMetadata;\n})(QueryMetadata);\nexports.ViewQueryMetadata = ViewQueryMetadata;\nvar ViewChildrenMetadata = (function(_super) {\n __extends(ViewChildrenMetadata, _super);\n function ViewChildrenMetadata(_selector) {\n _super.call(this, _selector, {descendants: true});\n }\n ViewChildrenMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ViewChildrenMetadata);\n return ViewChildrenMetadata;\n})(ViewQueryMetadata);\nexports.ViewChildrenMetadata = ViewChildrenMetadata;\nvar ViewChildMetadata = (function(_super) {\n __extends(ViewChildMetadata, _super);\n function ViewChildMetadata(_selector) {\n _super.call(this, _selector, {\n descendants: true,\n first: true\n });\n }\n ViewChildMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ViewChildMetadata);\n return ViewChildMetadata;\n})(ViewQueryMetadata);\nexports.ViewChildMetadata = ViewChildMetadata;\n","/* */ \n'use strict';\nvar exceptions_1 = require('../../facade/exceptions');\nvar ElementRef = (function() {\n function ElementRef() {}\n Object.defineProperty(ElementRef.prototype, \"nativeElement\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n return ElementRef;\n})();\nexports.ElementRef = ElementRef;\nvar ElementRef_ = (function() {\n function ElementRef_(_appElement) {\n this._appElement = _appElement;\n }\n Object.defineProperty(ElementRef_.prototype, \"internalElement\", {\n get: function() {\n return this._appElement;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ElementRef_.prototype, \"nativeElement\", {\n get: function() {\n return this._appElement.nativeElement;\n },\n enumerable: true,\n configurable: true\n });\n return ElementRef_;\n})();\nexports.ElementRef_ = ElementRef_;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar collection_1 = require('../../facade/collection');\nvar exceptions_1 = require('../../facade/exceptions');\nvar lang_1 = require('../../facade/lang');\nvar ViewContainerRef = (function() {\n function ViewContainerRef() {}\n Object.defineProperty(ViewContainerRef.prototype, \"element\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ViewContainerRef.prototype.clear = function() {\n for (var i = this.length - 1; i >= 0; i--) {\n this.remove(i);\n }\n };\n Object.defineProperty(ViewContainerRef.prototype, \"length\", {\n get: function() {\n return exceptions_1.unimplemented();\n },\n enumerable: true,\n configurable: true\n });\n ;\n return ViewContainerRef;\n})();\nexports.ViewContainerRef = ViewContainerRef;\nvar ViewContainerRef_ = (function(_super) {\n __extends(ViewContainerRef_, _super);\n function ViewContainerRef_(_element) {\n _super.call(this);\n this._element = _element;\n }\n ViewContainerRef_.prototype.get = function(index) {\n return this._element.nestedViews[index].ref;\n };\n Object.defineProperty(ViewContainerRef_.prototype, \"length\", {\n get: function() {\n var views = this._element.nestedViews;\n return lang_1.isPresent(views) ? views.length : 0;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ViewContainerRef_.prototype, \"element\", {\n get: function() {\n return this._element.ref;\n },\n enumerable: true,\n configurable: true\n });\n ViewContainerRef_.prototype.createEmbeddedView = function(templateRef, index) {\n if (index === void 0) {\n index = -1;\n }\n if (index == -1)\n index = this.length;\n var vm = this._element.parentView.viewManager;\n return vm.createEmbeddedViewInContainer(this._element.ref, index, templateRef);\n };\n ViewContainerRef_.prototype.createHostView = function(hostViewFactoryRef, index, dynamicallyCreatedProviders, projectableNodes) {\n if (index === void 0) {\n index = -1;\n }\n if (dynamicallyCreatedProviders === void 0) {\n dynamicallyCreatedProviders = null;\n }\n if (projectableNodes === void 0) {\n projectableNodes = null;\n }\n if (index == -1)\n index = this.length;\n var vm = this._element.parentView.viewManager;\n return vm.createHostViewInContainer(this._element.ref, index, hostViewFactoryRef, dynamicallyCreatedProviders, projectableNodes);\n };\n ViewContainerRef_.prototype.insert = function(viewRef, index) {\n if (index === void 0) {\n index = -1;\n }\n if (index == -1)\n index = this.length;\n var vm = this._element.parentView.viewManager;\n return vm.attachViewInContainer(this._element.ref, index, viewRef);\n };\n ViewContainerRef_.prototype.indexOf = function(viewRef) {\n return collection_1.ListWrapper.indexOf(this._element.nestedViews, viewRef.internalView);\n };\n ViewContainerRef_.prototype.remove = function(index) {\n if (index === void 0) {\n index = -1;\n }\n if (index == -1)\n index = this.length - 1;\n var vm = this._element.parentView.viewManager;\n return vm.destroyViewInContainer(this._element.ref, index);\n };\n ViewContainerRef_.prototype.detach = function(index) {\n if (index === void 0) {\n index = -1;\n }\n if (index == -1)\n index = this.length - 1;\n var vm = this._element.parentView.viewManager;\n return vm.detachViewInContainer(this._element.ref, index);\n };\n return ViewContainerRef_;\n})(ViewContainerRef);\nexports.ViewContainerRef_ = ViewContainerRef_;\n","/* */ \n'use strict';var __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * Represents an Embedded Template that can be used to instantiate Embedded Views.\r\n *\r\n * You can access a `TemplateRef`, in two ways. Via a directive placed on a `<template>` element (or\r\n * directive prefixed with `*`) and have the `TemplateRef` for this Embedded View injected into the\r\n * constructor of the directive using the `TemplateRef` Token. Alternatively you can query for the\r\n * `TemplateRef` from a Component or a Directive via {@link Query}.\r\n *\r\n * To instantiate Embedded Views based on a Template, use\r\n * {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the\r\n * View Container.\r\n */\r\nvar TemplateRef = (function () {\r\n function TemplateRef() {\r\n }\r\n Object.defineProperty(TemplateRef.prototype, \"elementRef\", {\r\n /**\r\n * The location in the View where the Embedded View logically belongs to.\r\n *\r\n * The data-binding and injection contexts of Embedded Views created from this `TemplateRef`\r\n * inherit from the contexts of this location.\r\n *\r\n * Typically new Embedded Views are attached to the View Container of this location, but in\r\n * advanced use-cases, the View can be attached to a different container while keeping the\r\n * data-binding and injection context from the original location.\r\n *\r\n */\r\n // TODO(i): rename to anchor or location\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return TemplateRef;\r\n})();\r\nexports.TemplateRef = TemplateRef;\r\nvar TemplateRef_ = (function (_super) {\r\n __extends(TemplateRef_, _super);\r\n function TemplateRef_(_elementRef) {\r\n _super.call(this);\r\n this._elementRef = _elementRef;\r\n }\r\n Object.defineProperty(TemplateRef_.prototype, \"elementRef\", {\r\n get: function () { return this._elementRef; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return TemplateRef_;\r\n})(TemplateRef);\r\nexports.TemplateRef_ = TemplateRef_;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL3RlbXBsYXRlX3JlZi50cyJdLCJuYW1lcyI6WyJUZW1wbGF0ZVJlZiIsIlRlbXBsYXRlUmVmLmNvbnN0cnVjdG9yIiwiVGVtcGxhdGVSZWYuZWxlbWVudFJlZiIsIlRlbXBsYXRlUmVmXyIsIlRlbXBsYXRlUmVmXy5jb25zdHJ1Y3RvciIsIlRlbXBsYXRlUmVmXy5lbGVtZW50UmVmIl0sIm1hcHBpbmdzIjoiOzs7OztBQUVBOzs7Ozs7Ozs7OztHQVdHO0FBQ0g7SUFBQUE7SUFjQUMsQ0FBQ0E7SUFEQ0Qsc0JBQUlBLG1DQUFVQTtRQVpkQTs7Ozs7Ozs7OztXQVVHQTtRQUNIQSx3Q0FBd0NBO2FBQ3hDQSxjQUErQkUsTUFBTUEsQ0FBQ0EsSUFBSUEsQ0FBQ0EsQ0FBQ0EsQ0FBQ0E7OztPQUFBRjtJQUMvQ0Esa0JBQUNBO0FBQURBLENBQUNBLEFBZEQsSUFjQztBQWRxQixtQkFBVyxjQWNoQyxDQUFBO0FBRUQ7S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WxlbWVudFJlZigpOiBFbGVtZW50UmVmIHsgcmV0dXJuIG51bGw7IH1cbn1cblxuZXhwb3J0IGNsYXNzIFRlbXBsYXRlUmVmXyBleHRlbmRzIFRlbXBsYXRlUmVmIHtcbiAgY29uc3RydWN0b3IocHJpdmF0ZSBfZWxlbWVudFJlZjogRWxlbWVudFJlZl8pIHsgc3VwZXIoKTsgfVxuXG4gIGdldCBlbGVtZW50UmVmKCk6IEVsZW1lbnRSZWZfIHsgcmV0dXJuIHRoaXMuX2VsZW1lbnRSZWY7IH1cbn1cbiJdfQ==","/* */ \n'use strict';\nvar change_detection_1 = require('./change_detection/change_detection');\nexports.ChangeDetectionStrategy = change_detection_1.ChangeDetectionStrategy;\nexports.ExpressionChangedAfterItHasBeenCheckedException = change_detection_1.ExpressionChangedAfterItHasBeenCheckedException;\nexports.ChangeDetectionError = change_detection_1.ChangeDetectionError;\nexports.ChangeDetectorRef = change_detection_1.ChangeDetectorRef;\nexports.WrappedValue = change_detection_1.WrappedValue;\nexports.SimpleChange = change_detection_1.SimpleChange;\nexports.IterableDiffers = change_detection_1.IterableDiffers;\nexports.KeyValueDiffers = change_detection_1.KeyValueDiffers;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar metadata_1 = require('../di/metadata');\nvar change_detection_1 = require('../change_detection');\nvar DirectiveMetadata = (function(_super) {\n __extends(DirectiveMetadata, _super);\n function DirectiveMetadata(_a) {\n var _b = _a === void 0 ? {} : _a,\n selector = _b.selector,\n inputs = _b.inputs,\n outputs = _b.outputs,\n properties = _b.properties,\n events = _b.events,\n host = _b.host,\n bindings = _b.bindings,\n providers = _b.providers,\n exportAs = _b.exportAs,\n queries = _b.queries;\n _super.call(this);\n this.selector = selector;\n this._inputs = inputs;\n this._properties = properties;\n this._outputs = outputs;\n this._events = events;\n this.host = host;\n this.exportAs = exportAs;\n this.queries = queries;\n this._providers = providers;\n this._bindings = bindings;\n }\n Object.defineProperty(DirectiveMetadata.prototype, \"inputs\", {\n get: function() {\n return lang_1.isPresent(this._properties) && this._properties.length > 0 ? this._properties : this._inputs;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DirectiveMetadata.prototype, \"properties\", {\n get: function() {\n return this.inputs;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DirectiveMetadata.prototype, \"outputs\", {\n get: function() {\n return lang_1.isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DirectiveMetadata.prototype, \"events\", {\n get: function() {\n return this.outputs;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DirectiveMetadata.prototype, \"providers\", {\n get: function() {\n return lang_1.isPresent(this._bindings) && this._bindings.length > 0 ? this._bindings : this._providers;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DirectiveMetadata.prototype, \"bindings\", {\n get: function() {\n return this.providers;\n },\n enumerable: true,\n configurable: true\n });\n DirectiveMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], DirectiveMetadata);\n return DirectiveMetadata;\n})(metadata_1.InjectableMetadata);\nexports.DirectiveMetadata = DirectiveMetadata;\nvar ComponentMetadata = (function(_super) {\n __extends(ComponentMetadata, _super);\n function ComponentMetadata(_a) {\n var _b = _a === void 0 ? {} : _a,\n selector = _b.selector,\n inputs = _b.inputs,\n outputs = _b.outputs,\n properties = _b.properties,\n events = _b.events,\n host = _b.host,\n exportAs = _b.exportAs,\n moduleId = _b.moduleId,\n bindings = _b.bindings,\n providers = _b.providers,\n viewBindings = _b.viewBindings,\n viewProviders = _b.viewProviders,\n _c = _b.changeDetection,\n changeDetection = _c === void 0 ? change_detection_1.ChangeDetectionStrategy.Default : _c,\n queries = _b.queries,\n templateUrl = _b.templateUrl,\n template = _b.template,\n styleUrls = _b.styleUrls,\n styles = _b.styles,\n directives = _b.directives,\n pipes = _b.pipes,\n encapsulation = _b.encapsulation;\n _super.call(this, {\n selector: selector,\n inputs: inputs,\n outputs: outputs,\n properties: properties,\n events: events,\n host: host,\n exportAs: exportAs,\n bindings: bindings,\n providers: providers,\n queries: queries\n });\n this.changeDetection = changeDetection;\n this._viewProviders = viewProviders;\n this._viewBindings = viewBindings;\n this.templateUrl = templateUrl;\n this.template = template;\n this.styleUrls = styleUrls;\n this.styles = styles;\n this.directives = directives;\n this.pipes = pipes;\n this.encapsulation = encapsulation;\n this.moduleId = moduleId;\n }\n Object.defineProperty(ComponentMetadata.prototype, \"viewProviders\", {\n get: function() {\n return lang_1.isPresent(this._viewBindings) && this._viewBindings.length > 0 ? this._viewBindings : this._viewProviders;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ComponentMetadata.prototype, \"viewBindings\", {\n get: function() {\n return this.viewProviders;\n },\n enumerable: true,\n configurable: true\n });\n ComponentMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], ComponentMetadata);\n return ComponentMetadata;\n})(DirectiveMetadata);\nexports.ComponentMetadata = ComponentMetadata;\nvar PipeMetadata = (function(_super) {\n __extends(PipeMetadata, _super);\n function PipeMetadata(_a) {\n var name = _a.name,\n 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() {\n return lang_1.isPresent(this._pure) ? this._pure : true;\n },\n enumerable: true,\n configurable: true\n });\n PipeMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], PipeMetadata);\n return PipeMetadata;\n})(metadata_1.InjectableMetadata);\nexports.PipeMetadata = PipeMetadata;\nvar InputMetadata = (function() {\n function InputMetadata(bindingPropertyName) {\n this.bindingPropertyName = bindingPropertyName;\n }\n InputMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], InputMetadata);\n return InputMetadata;\n})();\nexports.InputMetadata = InputMetadata;\nvar OutputMetadata = (function() {\n function OutputMetadata(bindingPropertyName) {\n this.bindingPropertyName = bindingPropertyName;\n }\n OutputMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], OutputMetadata);\n return OutputMetadata;\n})();\nexports.OutputMetadata = OutputMetadata;\nvar HostBindingMetadata = (function() {\n function HostBindingMetadata(hostPropertyName) {\n this.hostPropertyName = hostPropertyName;\n }\n HostBindingMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], HostBindingMetadata);\n return HostBindingMetadata;\n})();\nexports.HostBindingMetadata = HostBindingMetadata;\nvar HostListenerMetadata = (function() {\n function HostListenerMetadata(eventName, args) {\n this.eventName = eventName;\n this.args = args;\n }\n HostListenerMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String, Array])], HostListenerMetadata);\n return HostListenerMetadata;\n})();\nexports.HostListenerMetadata = HostListenerMetadata;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar collection_1 = require('../../../facade/collection');\nvar di_1 = require('../../di');\nvar IterableDiffers = (function() {\n function IterableDiffers(factories) {\n this.factories = factories;\n }\n IterableDiffers.create = function(factories, parent) {\n if (lang_1.isPresent(parent)) {\n var copied = collection_1.ListWrapper.clone(parent.factories);\n factories = factories.concat(copied);\n return new IterableDiffers(factories);\n } else {\n return new IterableDiffers(factories);\n }\n };\n IterableDiffers.extend = function(factories) {\n return new di_1.Provider(IterableDiffers, {\n useFactory: function(parent) {\n if (lang_1.isBlank(parent)) {\n throw new exceptions_1.BaseException('Cannot extend IterableDiffers without a parent injector');\n }\n return IterableDiffers.create(factories, parent);\n },\n deps: [[IterableDiffers, new di_1.SkipSelfMetadata(), new di_1.OptionalMetadata()]]\n });\n };\n IterableDiffers.prototype.find = function(iterable) {\n var factory = this.factories.find(function(f) {\n return f.supports(iterable);\n });\n if (lang_1.isPresent(factory)) {\n return factory;\n } else {\n throw new exceptions_1.BaseException(\"Cannot find a differ supporting object '\" + iterable + \"'\");\n }\n };\n IterableDiffers = __decorate([di_1.Injectable(), lang_1.CONST(), __metadata('design:paramtypes', [Array])], IterableDiffers);\n return IterableDiffers;\n})();\nexports.IterableDiffers = IterableDiffers;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar collection_1 = require('../../../facade/collection');\nvar lang_2 = require('../../../facade/lang');\nvar DefaultIterableDifferFactory = (function() {\n function DefaultIterableDifferFactory() {}\n DefaultIterableDifferFactory.prototype.supports = function(obj) {\n return collection_1.isListLikeIterable(obj);\n };\n DefaultIterableDifferFactory.prototype.create = function(cdRef, trackByFn) {\n return new DefaultIterableDiffer(trackByFn);\n };\n DefaultIterableDifferFactory = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], DefaultIterableDifferFactory);\n return DefaultIterableDifferFactory;\n})();\nexports.DefaultIterableDifferFactory = DefaultIterableDifferFactory;\nvar trackByIdentity = function(index, item) {\n return item;\n};\nvar DefaultIterableDiffer = (function() {\n function DefaultIterableDiffer(_trackByFn) {\n this._trackByFn = _trackByFn;\n this._length = null;\n this._collection = null;\n this._linkedRecords = null;\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 this._identityChangesHead = null;\n this._identityChangesTail = null;\n this._trackByFn = lang_2.isPresent(this._trackByFn) ? this._trackByFn : trackByIdentity;\n }\n Object.defineProperty(DefaultIterableDiffer.prototype, \"collection\", {\n get: function() {\n return this._collection;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(DefaultIterableDiffer.prototype, \"length\", {\n get: function() {\n return this._length;\n },\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.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 (lang_2.isBlank(collection))\n collection = [];\n if (!collection_1.isListLikeIterable(collection)) {\n throw new exceptions_1.BaseException(\"Error trying to diff '\" + collection + \"'\");\n }\n if (this.check(collection)) {\n return this;\n } else {\n return null;\n }\n };\n DefaultIterableDiffer.prototype.onDestroy = function() {};\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 (lang_2.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 || !lang_2.looseIdentical(record.trackById, itemTrackBy)) {\n record = this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n } else {\n if (mayBeDirty) {\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!lang_2.looseIdentical(record.item, item))\n this._addIdentityChange(record, item);\n }\n record = record._next;\n }\n } else {\n index = 0;\n collection_1.iterateListLike(collection, function(item) {\n itemTrackBy = _this._trackByFn(index, item);\n if (record === null || !lang_2.looseIdentical(record.trackById, itemTrackBy)) {\n record = _this._mismatch(record, item, itemTrackBy, index);\n mayBeDirty = true;\n } else {\n if (mayBeDirty) {\n record = _this._verifyReinsertion(record, item, itemTrackBy, index);\n }\n if (!lang_2.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 get: function() {\n return this._additionsHead !== null || this._movesHead !== null || this._removalsHead !== null || this._identityChangesHead !== null;\n },\n enumerable: true,\n configurable: true\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 DefaultIterableDiffer.prototype._mismatch = function(record, item, itemTrackBy, index) {\n var previousRecord;\n if (record === null) {\n previousRecord = this._itTail;\n } else {\n previousRecord = record._prev;\n this._remove(record);\n }\n record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\n if (record !== null) {\n if (!lang_2.looseIdentical(record.item, item))\n this._addIdentityChange(record, item);\n this._moveAfter(record, previousRecord, index);\n } else {\n record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy);\n if (record !== null) {\n if (!lang_2.looseIdentical(record.item, item))\n this._addIdentityChange(record, item);\n this._reinsertAfter(record, previousRecord, index);\n } else {\n record = this._addAfter(new CollectionChangeRecord(item, itemTrackBy), previousRecord, index);\n }\n }\n return record;\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 } else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n };\n DefaultIterableDiffer.prototype._truncate = function(record) {\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 };\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 } else {\n prev._nextRemoved = next;\n }\n if (next === null) {\n this._removalsTail = prev;\n } else {\n next._prevRemoved = prev;\n }\n this._insertAfter(record, prevRecord, index);\n this._addToMoves(record, index);\n return record;\n };\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 DefaultIterableDiffer.prototype._addAfter = function(record, prevRecord, index) {\n this._insertAfter(record, prevRecord, index);\n if (this._additionsTail === null) {\n this._additionsTail = this._additionsHead = record;\n } else {\n this._additionsTail = this._additionsTail._nextAdded = record;\n }\n return record;\n };\n DefaultIterableDiffer.prototype._insertAfter = function(record, prevRecord, index) {\n var next = prevRecord === null ? this._itHead : prevRecord._next;\n record._next = next;\n record._prev = prevRecord;\n if (next === null) {\n this._itTail = record;\n } else {\n next._prev = record;\n }\n if (prevRecord === null) {\n this._itHead = record;\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 DefaultIterableDiffer.prototype._remove = function(record) {\n return this._addToRemovals(this._unlink(record));\n };\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 if (prev === null) {\n this._itHead = next;\n } else {\n prev._next = next;\n }\n if (next === null) {\n this._itTail = prev;\n } else {\n next._prev = prev;\n }\n return record;\n };\n DefaultIterableDiffer.prototype._addToMoves = function(record, toIndex) {\n if (record.previousIndex === toIndex) {\n return record;\n }\n if (this._movesTail === null) {\n this._movesTail = this._movesHead = record;\n } else {\n this._movesTail = this._movesTail._nextMoved = record;\n }\n return record;\n };\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 this._removalsTail = this._removalsHead = record;\n record._prevRemoved = null;\n } else {\n record._prevRemoved = this._removalsTail;\n this._removalsTail = this._removalsTail._nextRemoved = record;\n }\n return record;\n };\n DefaultIterableDiffer.prototype._addIdentityChange = function(record, item) {\n record.item = item;\n if (this._identityChangesTail === null) {\n this._identityChangesTail = this._identityChangesHead = record;\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) {\n return list.push(record);\n });\n var previous = [];\n this.forEachPreviousItem(function(record) {\n return previous.push(record);\n });\n var additions = [];\n this.forEachAddedItem(function(record) {\n return additions.push(record);\n });\n var moves = [];\n this.forEachMovedItem(function(record) {\n return moves.push(record);\n });\n var removals = [];\n this.forEachRemovedItem(function(record) {\n return removals.push(record);\n });\n var identityChanges = [];\n this.forEachIdentityChange(function(record) {\n return identityChanges.push(record);\n });\n return \"collection: \" + list.join(', ') + \"\\n\" + \"previous: \" + previous.join(', ') + \"\\n\" + \"additions: \" + additions.join(', ') + \"\\n\" + \"moves: \" + moves.join(', ') + \"\\n\" + \"removals: \" + removals.join(', ') + \"\\n\" + \"identityChanges: \" + identityChanges.join(', ') + \"\\n\";\n };\n return DefaultIterableDiffer;\n})();\nexports.DefaultIterableDiffer = DefaultIterableDiffer;\nvar CollectionChangeRecord = (function() {\n function CollectionChangeRecord(item, trackById) {\n this.item = item;\n this.trackById = trackById;\n this.currentIndex = null;\n this.previousIndex = null;\n this._nextPrevious = null;\n this._prev = null;\n this._next = null;\n this._prevDup = null;\n this._nextDup = null;\n this._prevRemoved = null;\n this._nextRemoved = null;\n this._nextAdded = null;\n this._nextMoved = null;\n this._nextIdentityChange = null;\n }\n CollectionChangeRecord.prototype.toString = function() {\n return this.previousIndex === this.currentIndex ? lang_2.stringify(this.item) : lang_2.stringify(this.item) + '[' + lang_2.stringify(this.previousIndex) + '->' + lang_2.stringify(this.currentIndex) + ']';\n };\n return CollectionChangeRecord;\n})();\nexports.CollectionChangeRecord = CollectionChangeRecord;\nvar _DuplicateItemRecordList = (function() {\n function _DuplicateItemRecordList() {\n this._head = null;\n this._tail = null;\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 } else {\n this._tail._nextDup = record;\n record._prevDup = this._tail;\n record._nextDup = null;\n this._tail = record;\n }\n };\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) && lang_2.looseIdentical(record.trackById, trackById)) {\n return record;\n }\n }\n return null;\n };\n _DuplicateItemRecordList.prototype.remove = function(record) {\n var prev = record._prevDup;\n var next = record._nextDup;\n if (prev === null) {\n this._head = next;\n } else {\n prev._nextDup = next;\n }\n if (next === null) {\n this._tail = prev;\n } else {\n next._prevDup = prev;\n }\n return this._head === null;\n };\n return _DuplicateItemRecordList;\n})();\nvar _DuplicateMap = (function() {\n function _DuplicateMap() {\n this.map = new Map();\n }\n _DuplicateMap.prototype.put = function(record) {\n var key = lang_2.getMapKey(record.trackById);\n var duplicates = this.map.get(key);\n if (!lang_2.isPresent(duplicates)) {\n duplicates = new _DuplicateItemRecordList();\n this.map.set(key, duplicates);\n }\n duplicates.add(record);\n };\n _DuplicateMap.prototype.get = function(trackById, afterIndex) {\n if (afterIndex === void 0) {\n afterIndex = null;\n }\n var key = lang_2.getMapKey(trackById);\n var recordList = this.map.get(key);\n return lang_2.isBlank(recordList) ? null : recordList.get(trackById, afterIndex);\n };\n _DuplicateMap.prototype.remove = function(record) {\n var key = lang_2.getMapKey(record.trackById);\n var recordList = this.map.get(key);\n if (recordList.remove(record)) {\n this.map.delete(key);\n }\n return record;\n };\n Object.defineProperty(_DuplicateMap.prototype, \"isEmpty\", {\n get: function() {\n return this.map.size === 0;\n },\n enumerable: true,\n configurable: true\n });\n _DuplicateMap.prototype.clear = function() {\n this.map.clear();\n };\n _DuplicateMap.prototype.toString = function() {\n return '_DuplicateMap(' + lang_2.stringify(this.map) + ')';\n };\n return _DuplicateMap;\n})();\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar collection_1 = require('../../../facade/collection');\nvar di_1 = require('../../di');\nvar KeyValueDiffers = (function() {\n function KeyValueDiffers(factories) {\n this.factories = factories;\n }\n KeyValueDiffers.create = function(factories, parent) {\n if (lang_1.isPresent(parent)) {\n var copied = collection_1.ListWrapper.clone(parent.factories);\n factories = factories.concat(copied);\n return new KeyValueDiffers(factories);\n } else {\n return new KeyValueDiffers(factories);\n }\n };\n KeyValueDiffers.extend = function(factories) {\n return new di_1.Provider(KeyValueDiffers, {\n useFactory: function(parent) {\n if (lang_1.isBlank(parent)) {\n throw new exceptions_1.BaseException('Cannot extend KeyValueDiffers without a parent injector');\n }\n return KeyValueDiffers.create(factories, parent);\n },\n deps: [[KeyValueDiffers, new di_1.SkipSelfMetadata(), new di_1.OptionalMetadata()]]\n });\n };\n KeyValueDiffers.prototype.find = function(kv) {\n var factory = this.factories.find(function(f) {\n return f.supports(kv);\n });\n if (lang_1.isPresent(factory)) {\n return factory;\n } else {\n throw new exceptions_1.BaseException(\"Cannot find a differ supporting object '\" + kv + \"'\");\n }\n };\n KeyValueDiffers = __decorate([di_1.Injectable(), lang_1.CONST(), __metadata('design:paramtypes', [Array])], KeyValueDiffers);\n return KeyValueDiffers;\n})();\nexports.KeyValueDiffers = KeyValueDiffers;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar collection_1 = require('../../../facade/collection');\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar DefaultKeyValueDifferFactory = (function() {\n function DefaultKeyValueDifferFactory() {}\n DefaultKeyValueDifferFactory.prototype.supports = function(obj) {\n return obj instanceof Map || lang_1.isJsObject(obj);\n };\n DefaultKeyValueDifferFactory.prototype.create = function(cdRef) {\n return new DefaultKeyValueDiffer();\n };\n DefaultKeyValueDifferFactory = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], DefaultKeyValueDifferFactory);\n return DefaultKeyValueDifferFactory;\n})();\nexports.DefaultKeyValueDifferFactory = DefaultKeyValueDifferFactory;\nvar 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 || 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 (lang_1.isBlank(map))\n map = collection_1.MapWrapper.createFromPairs([]);\n if (!(map instanceof Map || lang_1.isJsObject(map))) {\n throw new exceptions_1.BaseException(\"Error trying to diff '\" + map + \"'\");\n }\n if (this.check(map)) {\n return this;\n } else {\n return null;\n }\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 !== null && key === oldSeqRecord.key) {\n newSeqRecord = oldSeqRecord;\n if (!lang_1.looseIdentical(value, oldSeqRecord.currentValue)) {\n oldSeqRecord.previousValue = oldSeqRecord.currentValue;\n oldSeqRecord.currentValue = value;\n _this._addToChanges(oldSeqRecord);\n }\n } else {\n seqChanged = true;\n if (oldSeqRecord !== null) {\n oldSeqRecord._next = null;\n _this._removeFromSeq(lastOldSeqRecord, oldSeqRecord);\n _this._addToRemovals(oldSeqRecord);\n }\n if (records.has(key)) {\n newSeqRecord = records.get(key);\n } else {\n newSeqRecord = new KVChangeRecord(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 } else {\n lastNewSeqRecord._next = newSeqRecord;\n }\n }\n lastOldSeqRecord = oldSeqRecord;\n lastNewSeqRecord = newSeqRecord;\n oldSeqRecord = oldSeqRecord === null ? null : oldSeqRecord._next;\n });\n this._truncate(lastOldSeqRecord, oldSeqRecord);\n return this.isDirty;\n };\n DefaultKeyValueDiffer.prototype._reset = function() {\n if (this.isDirty) {\n var record;\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 DefaultKeyValueDiffer.prototype._truncate = function(lastRecord, record) {\n while (record !== null) {\n if (lastRecord === null) {\n this._mapHead = null;\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._isInRemovals = function(record) {\n return record === this._removalsHead || record._nextRemoved !== null || record._prevRemoved !== null;\n };\n DefaultKeyValueDiffer.prototype._addToRemovals = function(record) {\n if (this._removalsHead === null) {\n this._removalsHead = this._removalsTail = record;\n } else {\n this._removalsTail._nextRemoved = record;\n record._prevRemoved = this._removalsTail;\n this._removalsTail = record;\n }\n };\n DefaultKeyValueDiffer.prototype._removeFromSeq = function(prev, record) {\n var next = record._next;\n if (prev === null) {\n this._mapHead = next;\n } else {\n prev._next = next;\n }\n };\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 } else {\n prev._nextRemoved = next;\n }\n if (next === null) {\n this._removalsTail = prev;\n } else {\n next._prevRemoved = prev;\n }\n record._prevRemoved = record._nextRemoved = null;\n };\n DefaultKeyValueDiffer.prototype._addToAdditions = function(record) {\n if (this._additionsHead === null) {\n this._additionsHead = this._additionsTail = record;\n } else {\n this._additionsTail._nextAdded = record;\n this._additionsTail = record;\n }\n };\n DefaultKeyValueDiffer.prototype._addToChanges = function(record) {\n if (this._changesHead === null) {\n this._changesHead = this._changesTail = record;\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(lang_1.stringify(record));\n }\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\n previous.push(lang_1.stringify(record));\n }\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\n changes.push(lang_1.stringify(record));\n }\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\n additions.push(lang_1.stringify(record));\n }\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\n removals.push(lang_1.stringify(record));\n }\n return \"map: \" + items.join(', ') + \"\\n\" + \"previous: \" + previous.join(', ') + \"\\n\" + \"additions: \" + additions.join(', ') + \"\\n\" + \"changes: \" + changes.join(', ') + \"\\n\" + \"removals: \" + removals.join(', ') + \"\\n\";\n };\n DefaultKeyValueDiffer.prototype._forEach = function(obj, fn) {\n if (obj instanceof Map) {\n obj.forEach(fn);\n } else {\n collection_1.StringMapWrapper.forEach(obj, fn);\n }\n };\n return DefaultKeyValueDiffer;\n})();\nexports.DefaultKeyValueDiffer = DefaultKeyValueDiffer;\nvar KVChangeRecord = (function() {\n function KVChangeRecord(key) {\n this.key = key;\n this.previousValue = null;\n this.currentValue = null;\n this._nextPrevious = null;\n this._next = null;\n this._nextAdded = null;\n this._nextRemoved = null;\n this._prevRemoved = null;\n this._nextChanged = null;\n }\n KVChangeRecord.prototype.toString = function() {\n return lang_1.looseIdentical(this.previousValue, this.currentValue) ? lang_1.stringify(this.key) : (lang_1.stringify(this.key) + '[' + lang_1.stringify(this.previousValue) + '->' + lang_1.stringify(this.currentValue) + ']');\n };\n return KVChangeRecord;\n})();\nexports.KVChangeRecord = KVChangeRecord;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar decorators_1 = require('../../di/decorators');\nvar collection_1 = require('../../../facade/collection');\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\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})(exports.TokenType || (exports.TokenType = {}));\nvar TokenType = exports.TokenType;\nvar Lexer = (function() {\n function Lexer() {}\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 = __decorate([decorators_1.Injectable(), __metadata('design:paramtypes', [])], Lexer);\n return Lexer;\n})();\nexports.Lexer = Lexer;\nvar 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() {\n return (this.type == TokenType.Number);\n };\n Token.prototype.isString = function() {\n return (this.type == TokenType.String);\n };\n Token.prototype.isOperator = function(operater) {\n return (this.type == TokenType.Operator && this.strValue == operater);\n };\n Token.prototype.isIdentifier = function() {\n return (this.type == TokenType.Identifier);\n };\n Token.prototype.isKeyword = function() {\n return (this.type == TokenType.Keyword);\n };\n Token.prototype.isKeywordVar = function() {\n return (this.type == TokenType.Keyword && this.strValue == \"var\");\n };\n Token.prototype.isKeywordNull = function() {\n return (this.type == TokenType.Keyword && this.strValue == \"null\");\n };\n Token.prototype.isKeywordUndefined = function() {\n return (this.type == TokenType.Keyword && this.strValue == \"undefined\");\n };\n Token.prototype.isKeywordTrue = function() {\n return (this.type == TokenType.Keyword && this.strValue == \"true\");\n };\n Token.prototype.isKeywordFalse = function() {\n return (this.type == TokenType.Keyword && this.strValue == \"false\");\n };\n Token.prototype.toNumber = function() {\n return (this.type == TokenType.Number) ? this.numValue : -1;\n };\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 return this.strValue;\n case TokenType.Number:\n return this.numValue.toString();\n default:\n return null;\n }\n };\n return Token;\n})();\nexports.Token = Token;\nfunction newCharacterToken(index, code) {\n return new Token(index, TokenType.Character, code, lang_1.StringWrapper.fromCharCode(code));\n}\nfunction newIdentifierToken(index, text) {\n return new Token(index, TokenType.Identifier, 0, text);\n}\nfunction newKeywordToken(index, text) {\n return new Token(index, TokenType.Keyword, 0, text);\n}\nfunction newOperatorToken(index, text) {\n return new Token(index, TokenType.Operator, 0, text);\n}\nfunction newStringToken(index, text) {\n return new Token(index, TokenType.String, 0, text);\n}\nfunction newNumberToken(index, n) {\n return new Token(index, TokenType.Number, n, \"\");\n}\nexports.EOF = new Token(-1, TokenType.Character, 0, \"\");\nexports.$EOF = 0;\nexports.$TAB = 9;\nexports.$LF = 10;\nexports.$VTAB = 11;\nexports.$FF = 12;\nexports.$CR = 13;\nexports.$SPACE = 32;\nexports.$BANG = 33;\nexports.$DQ = 34;\nexports.$HASH = 35;\nexports.$$ = 36;\nexports.$PERCENT = 37;\nexports.$AMPERSAND = 38;\nexports.$SQ = 39;\nexports.$LPAREN = 40;\nexports.$RPAREN = 41;\nexports.$STAR = 42;\nexports.$PLUS = 43;\nexports.$COMMA = 44;\nexports.$MINUS = 45;\nexports.$PERIOD = 46;\nexports.$SLASH = 47;\nexports.$COLON = 58;\nexports.$SEMICOLON = 59;\nexports.$LT = 60;\nexports.$EQ = 61;\nexports.$GT = 62;\nexports.$QUESTION = 63;\nvar $0 = 48;\nvar $9 = 57;\nvar $A = 65,\n $E = 69,\n $Z = 90;\nexports.$LBRACKET = 91;\nexports.$BACKSLASH = 92;\nexports.$RBRACKET = 93;\nvar $CARET = 94;\nvar $_ = 95;\nvar $a = 97,\n $e = 101,\n $f = 102,\n $n = 110,\n $r = 114,\n $t = 116,\n $u = 117,\n $v = 118,\n $z = 122;\nexports.$LBRACE = 123;\nexports.$BAR = 124;\nexports.$RBRACE = 125;\nvar $NBSP = 160;\nvar ScannerError = (function(_super) {\n __extends(ScannerError, _super);\n function ScannerError(message) {\n _super.call(this);\n this.message = message;\n }\n ScannerError.prototype.toString = function() {\n return this.message;\n };\n return ScannerError;\n})(exceptions_1.BaseException);\nexports.ScannerError = ScannerError;\nvar _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 = ++this.index >= this.length ? exports.$EOF : lang_1.StringWrapper.charCodeAt(this.input, this.index);\n };\n _Scanner.prototype.scanToken = function() {\n var input = this.input,\n length = this.length,\n peek = this.peek,\n index = this.index;\n while (peek <= exports.$SPACE) {\n if (++index >= length) {\n peek = exports.$EOF;\n break;\n } else {\n peek = lang_1.StringWrapper.charCodeAt(input, index);\n }\n }\n this.peek = peek;\n this.index = index;\n if (index >= length) {\n return null;\n }\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 exports.$PERIOD:\n this.advance();\n return isDigit(this.peek) ? this.scanNumber(start) : newCharacterToken(start, exports.$PERIOD);\n case exports.$LPAREN:\n case exports.$RPAREN:\n case exports.$LBRACE:\n case exports.$RBRACE:\n case exports.$LBRACKET:\n case exports.$RBRACKET:\n case exports.$COMMA:\n case exports.$COLON:\n case exports.$SEMICOLON:\n return this.scanCharacter(start, peek);\n case exports.$SQ:\n case exports.$DQ:\n return this.scanString();\n case exports.$HASH:\n case exports.$PLUS:\n case exports.$MINUS:\n case exports.$STAR:\n case exports.$SLASH:\n case exports.$PERCENT:\n case $CARET:\n return this.scanOperator(start, lang_1.StringWrapper.fromCharCode(peek));\n case exports.$QUESTION:\n return this.scanComplexOperator(start, '?', exports.$PERIOD, '.');\n case exports.$LT:\n case exports.$GT:\n return this.scanComplexOperator(start, lang_1.StringWrapper.fromCharCode(peek), exports.$EQ, '=');\n case exports.$BANG:\n case exports.$EQ:\n return this.scanComplexOperator(start, lang_1.StringWrapper.fromCharCode(peek), exports.$EQ, '=', exports.$EQ, '=');\n case exports.$AMPERSAND:\n return this.scanComplexOperator(start, '&', exports.$AMPERSAND, '&');\n case exports.$BAR:\n return this.scanComplexOperator(start, '|', exports.$BAR, '|');\n case $NBSP:\n while (isWhitespace(this.peek))\n this.advance();\n return this.scanToken();\n }\n this.error(\"Unexpected character [\" + lang_1.StringWrapper.fromCharCode(peek) + \"]\", 0);\n return null;\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 _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 (lang_1.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 if (collection_1.SetWrapper.has(KEYWORDS, str)) {\n return newKeywordToken(start, str);\n } else {\n return newIdentifierToken(start, str);\n }\n };\n _Scanner.prototype.scanNumber = function(start) {\n var simple = (this.index === start);\n this.advance();\n while (true) {\n if (isDigit(this.peek)) {} else if (this.peek == exports.$PERIOD) {\n simple = false;\n } else if (isExponentStart(this.peek)) {\n this.advance();\n if (isExponentSign(this.peek))\n this.advance();\n if (!isDigit(this.peek))\n this.error('Invalid exponent', -1);\n simple = false;\n } else {\n break;\n }\n this.advance();\n }\n var str = this.input.substring(start, this.index);\n var value = simple ? lang_1.NumberWrapper.parseIntAutoRadix(str) : lang_1.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();\n var buffer;\n var marker = this.index;\n var input = this.input;\n while (this.peek != quote) {\n if (this.peek == exports.$BACKSLASH) {\n if (buffer == null)\n buffer = new lang_1.StringJoiner();\n buffer.add(input.substring(marker, this.index));\n this.advance();\n var unescapedCode;\n if (this.peek == $u) {\n var hex = input.substring(this.index + 1, this.index + 5);\n try {\n unescapedCode = lang_1.NumberWrapper.parseInt(hex, 16);\n } catch (e) {\n this.error(\"Invalid unicode escape [\\\\u\" + hex + \"]\", 0);\n }\n for (var i = 0; i < 5; i++) {\n this.advance();\n }\n } else {\n unescapedCode = unescape(this.peek);\n this.advance();\n }\n buffer.add(lang_1.StringWrapper.fromCharCode(unescapedCode));\n marker = this.index;\n } else if (this.peek == exports.$EOF) {\n this.error('Unterminated quote', 0);\n } else {\n this.advance();\n }\n }\n var last = input.substring(marker, this.index);\n this.advance();\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 throw new ScannerError(\"Lexer Error: \" + message + \" at column \" + position + \" in expression [\" + this.input + \"]\");\n };\n return _Scanner;\n})();\nfunction isWhitespace(code) {\n return (code >= exports.$TAB && code <= exports.$SPACE) || (code == $NBSP);\n}\nfunction isIdentifierStart(code) {\n return ($a <= code && code <= $z) || ($A <= code && code <= $Z) || (code == $_) || (code == exports.$$);\n}\nfunction 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 !== exports.$EOF) {\n if (!isIdentifierPart(scanner.peek))\n return false;\n scanner.advance();\n }\n return true;\n}\nexports.isIdentifier = isIdentifier;\nfunction isIdentifierPart(code) {\n return ($a <= code && code <= $z) || ($A <= code && code <= $Z) || ($0 <= code && code <= $9) || (code == $_) || (code == exports.$$);\n}\nfunction isDigit(code) {\n return $0 <= code && code <= $9;\n}\nfunction isExponentStart(code) {\n return code == $e || code == $E;\n}\nfunction isExponentSign(code) {\n return code == exports.$MINUS || code == exports.$PLUS;\n}\nfunction unescape(code) {\n switch (code) {\n case $n:\n return exports.$LF;\n case $f:\n return exports.$FF;\n case $r:\n return exports.$CR;\n case $t:\n return exports.$TAB;\n case $v:\n return exports.$VTAB;\n default:\n return code;\n }\n}\nvar OPERATORS = collection_1.SetWrapper.createFromList(['+', '-', '*', '/', '%', '^', '=', '==', '!=', '===', '!==', '<', '>', '<=', '>=', '&&', '||', '&', '|', '!', '?', '#', '?.']);\nvar KEYWORDS = collection_1.SetWrapper.createFromList(['var', 'null', 'undefined', 'true', 'false', 'if', 'else']);\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar decorators_1 = require('../../di/decorators');\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar collection_1 = require('../../../facade/collection');\nvar lexer_1 = require('./lexer');\nvar reflection_1 = require('../../reflection/reflection');\nvar ast_1 = require('./ast');\nvar _implicitReceiver = new ast_1.ImplicitReceiver();\nvar INTERPOLATION_REGEXP = /\\{\\{([\\s\\S]*?)\\}\\}/g;\nvar ParseException = (function(_super) {\n __extends(ParseException, _super);\n function ParseException(message, input, errLocation, ctxLocation) {\n _super.call(this, \"Parser Error: \" + message + \" \" + errLocation + \" [\" + input + \"] in \" + ctxLocation);\n }\n return ParseException;\n})(exceptions_1.BaseException);\nvar Parser = (function() {\n function Parser(_lexer, providedReflector) {\n if (providedReflector === void 0) {\n providedReflector = null;\n }\n this._lexer = _lexer;\n this._reflector = lang_1.isPresent(providedReflector) ? providedReflector : reflection_1.reflector;\n }\n Parser.prototype.parseAction = function(input, location) {\n this._checkNoInterpolation(input, location);\n var tokens = this._lexer.tokenize(input);\n var ast = new _ParseAST(input, location, tokens, this._reflector, true).parseChain();\n return new ast_1.ASTWithSource(ast, input, location);\n };\n Parser.prototype.parseBinding = function(input, location) {\n var ast = this._parseBindingAst(input, location);\n return new ast_1.ASTWithSource(ast, input, location);\n };\n Parser.prototype.parseSimpleBinding = function(input, location) {\n var ast = this._parseBindingAst(input, location);\n if (!SimpleExpressionChecker.check(ast)) {\n throw new ParseException('Host binding expression can only contain field access and constants', input, location);\n }\n return new ast_1.ASTWithSource(ast, input, location);\n };\n Parser.prototype._parseBindingAst = function(input, location) {\n var quote = this._parseQuote(input, location);\n if (lang_1.isPresent(quote)) {\n return quote;\n }\n this._checkNoInterpolation(input, location);\n var tokens = this._lexer.tokenize(input);\n return new _ParseAST(input, location, tokens, this._reflector, false).parseChain();\n };\n Parser.prototype._parseQuote = function(input, location) {\n if (lang_1.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 (!lexer_1.isIdentifier(prefix))\n return null;\n var uninterpretedExpression = input.substring(prefixSeparatorIndex + 1);\n return new ast_1.Quote(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, this._reflector, false).parseTemplateBindings();\n };\n Parser.prototype.parseInterpolation = function(input, location) {\n var parts = lang_1.StringWrapper.split(input, INTERPOLATION_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 strings.push(part);\n } else if (part.trim().length > 0) {\n var tokens = this._lexer.tokenize(part);\n var ast = new _ParseAST(input, location, tokens, this._reflector, false).parseChain();\n expressions.push(ast);\n } else {\n throw new ParseException('Blank expressions are not allowed in interpolated strings', input, \"at column \" + this._findInterpolationErrorColumn(parts, i) + \" in\", location);\n }\n }\n return new ast_1.ASTWithSource(new ast_1.Interpolation(strings, expressions), input, location);\n };\n Parser.prototype.wrapLiteralPrimitive = function(input, location) {\n return new ast_1.ASTWithSource(new ast_1.LiteralPrimitive(input), input, location);\n };\n Parser.prototype._checkNoInterpolation = function(input, location) {\n var parts = lang_1.StringWrapper.split(input, INTERPOLATION_REGEXP);\n if (parts.length > 1) {\n throw new ParseException('Got interpolation ({{}}) where expression was expected', input, \"at column \" + this._findInterpolationErrorColumn(parts, 1) + \" in\", location);\n }\n };\n Parser.prototype._findInterpolationErrorColumn = function(parts, partInErrIdx) {\n var errLocation = '';\n for (var j = 0; j < partInErrIdx; j++) {\n errLocation += j % 2 === 0 ? parts[j] : \"{{\" + parts[j] + \"}}\";\n }\n return errLocation.length;\n };\n Parser = __decorate([decorators_1.Injectable(), __metadata('design:paramtypes', [lexer_1.Lexer, reflection_1.Reflector])], Parser);\n return Parser;\n})();\nexports.Parser = Parser;\nvar _ParseAST = (function() {\n function _ParseAST(input, location, tokens, reflector, parseAction) {\n this.input = input;\n this.location = location;\n this.tokens = tokens;\n this.reflector = reflector;\n this.parseAction = parseAction;\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] : lexer_1.EOF;\n };\n Object.defineProperty(_ParseAST.prototype, \"next\", {\n get: function() {\n return this.peek(0);\n },\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.advance = function() {\n this.index++;\n };\n _ParseAST.prototype.optionalCharacter = function(code) {\n if (this.next.isCharacter(code)) {\n this.advance();\n return true;\n } else {\n return false;\n }\n };\n _ParseAST.prototype.optionalKeywordVar = function() {\n if (this.peekKeywordVar()) {\n this.advance();\n return true;\n } else {\n return false;\n }\n };\n _ParseAST.prototype.peekKeywordVar = function() {\n return this.next.isKeywordVar() || this.next.isOperator('#');\n };\n _ParseAST.prototype.expectCharacter = function(code) {\n if (this.optionalCharacter(code))\n return;\n this.error(\"Missing expected \" + lang_1.StringWrapper.fromCharCode(code));\n };\n _ParseAST.prototype.optionalOperator = function(op) {\n if (this.next.isOperator(op)) {\n this.advance();\n return true;\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 }\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 }\n this.advance();\n return n.toString();\n };\n _ParseAST.prototype.parseChain = function() {\n var exprs = [];\n while (this.index < this.tokens.length) {\n var expr = this.parsePipe();\n exprs.push(expr);\n if (this.optionalCharacter(lexer_1.$SEMICOLON)) {\n if (!this.parseAction) {\n this.error(\"Binding expression cannot contain chained expression\");\n }\n while (this.optionalCharacter(lexer_1.$SEMICOLON)) {}\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 ast_1.EmptyExpr();\n if (exprs.length == 1)\n return exprs[0];\n return new ast_1.Chain(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(lexer_1.$COLON)) {\n args.push(this.parseExpression());\n }\n result = new ast_1.BindingPipe(result, name, args);\n } while (this.optionalOperator(\"|\"));\n }\n return result;\n };\n _ParseAST.prototype.parseExpression = function() {\n return this.parseConditional();\n };\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 if (!this.optionalCharacter(lexer_1.$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 }\n var no = this.parsePipe();\n return new ast_1.Conditional(result, yes, no);\n } else {\n return result;\n }\n };\n _ParseAST.prototype.parseLogicalOr = function() {\n var result = this.parseLogicalAnd();\n while (this.optionalOperator('||')) {\n result = new ast_1.Binary('||', result, this.parseLogicalAnd());\n }\n return result;\n };\n _ParseAST.prototype.parseLogicalAnd = function() {\n var result = this.parseEquality();\n while (this.optionalOperator('&&')) {\n result = new ast_1.Binary('&&', result, this.parseEquality());\n }\n return result;\n };\n _ParseAST.prototype.parseEquality = function() {\n var result = this.parseRelational();\n while (true) {\n if (this.optionalOperator('==')) {\n result = new ast_1.Binary('==', result, this.parseRelational());\n } else if (this.optionalOperator('===')) {\n result = new ast_1.Binary('===', result, this.parseRelational());\n } else if (this.optionalOperator('!=')) {\n result = new ast_1.Binary('!=', result, this.parseRelational());\n } else if (this.optionalOperator('!==')) {\n result = new ast_1.Binary('!==', result, this.parseRelational());\n } else {\n return result;\n }\n }\n };\n _ParseAST.prototype.parseRelational = function() {\n var result = this.parseAdditive();\n while (true) {\n if (this.optionalOperator('<')) {\n result = new ast_1.Binary('<', result, this.parseAdditive());\n } else if (this.optionalOperator('>')) {\n result = new ast_1.Binary('>', result, this.parseAdditive());\n } else if (this.optionalOperator('<=')) {\n result = new ast_1.Binary('<=', result, this.parseAdditive());\n } else if (this.optionalOperator('>=')) {\n result = new ast_1.Binary('>=', result, this.parseAdditive());\n } else {\n return result;\n }\n }\n };\n _ParseAST.prototype.parseAdditive = function() {\n var result = this.parseMultiplicative();\n while (true) {\n if (this.optionalOperator('+')) {\n result = new ast_1.Binary('+', result, this.parseMultiplicative());\n } else if (this.optionalOperator('-')) {\n result = new ast_1.Binary('-', result, this.parseMultiplicative());\n } else {\n return result;\n }\n }\n };\n _ParseAST.prototype.parseMultiplicative = function() {\n var result = this.parsePrefix();\n while (true) {\n if (this.optionalOperator('*')) {\n result = new ast_1.Binary('*', result, this.parsePrefix());\n } else if (this.optionalOperator('%')) {\n result = new ast_1.Binary('%', result, this.parsePrefix());\n } else if (this.optionalOperator('/')) {\n result = new ast_1.Binary('/', result, this.parsePrefix());\n } else {\n return result;\n }\n }\n };\n _ParseAST.prototype.parsePrefix = function() {\n if (this.optionalOperator('+')) {\n return this.parsePrefix();\n } else if (this.optionalOperator('-')) {\n return new ast_1.Binary('-', new ast_1.LiteralPrimitive(0), this.parsePrefix());\n } else if (this.optionalOperator('!')) {\n return new ast_1.PrefixNot(this.parsePrefix());\n } else {\n return this.parseCallChain();\n }\n };\n _ParseAST.prototype.parseCallChain = function() {\n var result = this.parsePrimary();\n while (true) {\n if (this.optionalCharacter(lexer_1.$PERIOD)) {\n result = this.parseAccessMemberOrMethodCall(result, false);\n } else if (this.optionalOperator('?.')) {\n result = this.parseAccessMemberOrMethodCall(result, true);\n } else if (this.optionalCharacter(lexer_1.$LBRACKET)) {\n var key = this.parsePipe();\n this.expectCharacter(lexer_1.$RBRACKET);\n if (this.optionalOperator(\"=\")) {\n var value = this.parseConditional();\n result = new ast_1.KeyedWrite(result, key, value);\n } else {\n result = new ast_1.KeyedRead(result, key);\n }\n } else if (this.optionalCharacter(lexer_1.$LPAREN)) {\n var args = this.parseCallArguments();\n this.expectCharacter(lexer_1.$RPAREN);\n result = new ast_1.FunctionCall(result, args);\n } else {\n return result;\n }\n }\n };\n _ParseAST.prototype.parsePrimary = function() {\n if (this.optionalCharacter(lexer_1.$LPAREN)) {\n var result = this.parsePipe();\n this.expectCharacter(lexer_1.$RPAREN);\n return result;\n } else if (this.next.isKeywordNull() || this.next.isKeywordUndefined()) {\n this.advance();\n return new ast_1.LiteralPrimitive(null);\n } else if (this.next.isKeywordTrue()) {\n this.advance();\n return new ast_1.LiteralPrimitive(true);\n } else if (this.next.isKeywordFalse()) {\n this.advance();\n return new ast_1.LiteralPrimitive(false);\n } else if (this.optionalCharacter(lexer_1.$LBRACKET)) {\n var elements = this.parseExpressionList(lexer_1.$RBRACKET);\n this.expectCharacter(lexer_1.$RBRACKET);\n return new ast_1.LiteralArray(elements);\n } else if (this.next.isCharacter(lexer_1.$LBRACE)) {\n return this.parseLiteralMap();\n } else if (this.next.isIdentifier()) {\n return this.parseAccessMemberOrMethodCall(_implicitReceiver, false);\n } else if (this.next.isNumber()) {\n var value = this.next.toNumber();\n this.advance();\n return new ast_1.LiteralPrimitive(value);\n } else if (this.next.isString()) {\n var literalValue = this.next.toString();\n this.advance();\n return new ast_1.LiteralPrimitive(literalValue);\n } else if (this.index >= this.tokens.length) {\n this.error(\"Unexpected end of expression: \" + this.input);\n } else {\n this.error(\"Unexpected token \" + this.next);\n }\n throw new exceptions_1.BaseException(\"Fell through all cases in parsePrimary\");\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(lexer_1.$COMMA));\n }\n return result;\n };\n _ParseAST.prototype.parseLiteralMap = function() {\n var keys = [];\n var values = [];\n this.expectCharacter(lexer_1.$LBRACE);\n if (!this.optionalCharacter(lexer_1.$RBRACE)) {\n do {\n var key = this.expectIdentifierOrKeywordOrString();\n keys.push(key);\n this.expectCharacter(lexer_1.$COLON);\n values.push(this.parsePipe());\n } while (this.optionalCharacter(lexer_1.$COMMA));\n this.expectCharacter(lexer_1.$RBRACE);\n }\n return new ast_1.LiteralMap(keys, values);\n };\n _ParseAST.prototype.parseAccessMemberOrMethodCall = function(receiver, isSafe) {\n if (isSafe === void 0) {\n isSafe = false;\n }\n var id = this.expectIdentifierOrKeyword();\n if (this.optionalCharacter(lexer_1.$LPAREN)) {\n var args = this.parseCallArguments();\n this.expectCharacter(lexer_1.$RPAREN);\n var fn = this.reflector.method(id);\n return isSafe ? new ast_1.SafeMethodCall(receiver, id, fn, args) : new ast_1.MethodCall(receiver, id, fn, args);\n } else {\n if (isSafe) {\n if (this.optionalOperator(\"=\")) {\n this.error(\"The '?.' operator cannot be used in the assignment\");\n } else {\n return new ast_1.SafePropertyRead(receiver, id, this.reflector.getter(id));\n }\n } else {\n if (this.optionalOperator(\"=\")) {\n if (!this.parseAction) {\n this.error(\"Bindings cannot contain assignments\");\n }\n var value = this.parseConditional();\n return new ast_1.PropertyWrite(receiver, id, this.reflector.setter(id), value);\n } else {\n return new ast_1.PropertyRead(receiver, id, this.reflector.getter(id));\n }\n }\n }\n return null;\n };\n _ParseAST.prototype.parseCallArguments = function() {\n if (this.next.isCharacter(lexer_1.$RPAREN))\n return [];\n var positionals = [];\n do {\n positionals.push(this.parsePipe());\n } while (this.optionalCharacter(lexer_1.$COMMA));\n return positionals;\n };\n _ParseAST.prototype.parseBlockContent = function() {\n if (!this.parseAction) {\n this.error(\"Binding expression cannot contain chained expression\");\n }\n var exprs = [];\n while (this.index < this.tokens.length && !this.next.isCharacter(lexer_1.$RBRACE)) {\n var expr = this.parseExpression();\n exprs.push(expr);\n if (this.optionalCharacter(lexer_1.$SEMICOLON)) {\n while (this.optionalCharacter(lexer_1.$SEMICOLON)) {}\n }\n }\n if (exprs.length == 0)\n return new ast_1.EmptyExpr();\n if (exprs.length == 1)\n return exprs[0];\n return new ast_1.Chain(exprs);\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 while (this.index < this.tokens.length) {\n var keyIsVar = this.optionalKeywordVar();\n var key = this.expectTemplateBindingKey();\n if (!keyIsVar) {\n if (prefix == null) {\n prefix = key;\n } else {\n key = prefix + key[0].toUpperCase() + key.substring(1);\n }\n }\n this.optionalCharacter(lexer_1.$COLON);\n var name = null;\n var expression = null;\n if (keyIsVar) {\n if (this.optionalOperator(\"=\")) {\n name = this.expectTemplateBindingKey();\n } else {\n name = '\\$implicit';\n }\n } else if (this.next !== lexer_1.EOF && !this.peekKeywordVar()) {\n var start = this.inputIndex;\n var ast = this.parsePipe();\n var source = this.input.substring(start, this.inputIndex);\n expression = new ast_1.ASTWithSource(ast, source, this.location);\n }\n bindings.push(new ast_1.TemplateBinding(key, keyIsVar, name, expression));\n if (!this.optionalCharacter(lexer_1.$SEMICOLON)) {\n this.optionalCharacter(lexer_1.$COMMA);\n }\n }\n return bindings;\n };\n _ParseAST.prototype.error = function(message, index) {\n if (index === void 0) {\n index = null;\n }\n if (lang_1.isBlank(index))\n index = this.index;\n var location = (index < this.tokens.length) ? \"at column \" + (this.tokens[index].index + 1) + \" in\" : \"at the end of the expression\";\n throw new ParseException(message, this.input, location, this.location);\n };\n return _ParseAST;\n})();\nexports._ParseAST = _ParseAST;\nvar 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) {};\n SimpleExpressionChecker.prototype.visitInterpolation = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitLiteralPrimitive = function(ast) {};\n SimpleExpressionChecker.prototype.visitPropertyRead = function(ast) {};\n SimpleExpressionChecker.prototype.visitPropertyWrite = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitSafePropertyRead = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitMethodCall = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitSafeMethodCall = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitFunctionCall = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitLiteralArray = function(ast) {\n this.visitAll(ast.expressions);\n };\n SimpleExpressionChecker.prototype.visitLiteralMap = function(ast) {\n this.visitAll(ast.values);\n };\n SimpleExpressionChecker.prototype.visitBinary = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitPrefixNot = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitConditional = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitPipe = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitKeyedRead = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitKeyedWrite = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitAll = function(asts) {\n var res = collection_1.ListWrapper.createFixedSize(asts.length);\n for (var i = 0; i < asts.length; ++i) {\n res[i] = asts[i].visit(this);\n }\n return res;\n };\n SimpleExpressionChecker.prototype.visitChain = function(ast) {\n this.simple = false;\n };\n SimpleExpressionChecker.prototype.visitQuote = function(ast) {\n this.simple = false;\n };\n return SimpleExpressionChecker;\n})();\n","/* */ \n'use strict';var DebugContext = (function () {\r\n function DebugContext(element, componentElement, directive, context, locals, injector) {\r\n this.element = element;\r\n this.componentElement = componentElement;\r\n this.directive = directive;\r\n this.context = context;\r\n this.locals = locals;\r\n this.injector = injector;\r\n }\r\n return DebugContext;\r\n})();\r\nexports.DebugContext = DebugContext;\r\nvar ChangeDetectorGenConfig = (function () {\r\n function ChangeDetectorGenConfig(genDebugInfo, logBindingUpdate, useJit) {\r\n this.genDebugInfo = genDebugInfo;\r\n this.logBindingUpdate = logBindingUpdate;\r\n this.useJit = useJit;\r\n }\r\n return ChangeDetectorGenConfig;\r\n})();\r\nexports.ChangeDetectorGenConfig = ChangeDetectorGenConfig;\r\nvar ChangeDetectorDefinition = (function () {\r\n function ChangeDetectorDefinition(id, strategy, variableNames, bindingRecords, eventRecords, directiveRecords, genConfig) {\r\n this.id = id;\r\n this.strategy = strategy;\r\n this.variableNames = variableNames;\r\n this.bindingRecords = bindingRecords;\r\n this.eventRecords = eventRecords;\r\n this.directiveRecords = directiveRecords;\r\n this.genConfig = genConfig;\r\n }\r\n return ChangeDetectorDefinition;\r\n})();\r\nexports.ChangeDetectorDefinition = ChangeDetectorDefinition;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24vaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6WyJEZWJ1Z0NvbnRleHQiLCJEZWJ1Z0NvbnRleHQuY29uc3RydWN0b3IiLCJDaGFuZ2VEZXRlY3RvckdlbkNvbmZpZyIsIkNoYW5nZURldGVjdG9yR2VuQ29uZmlnLmNvbnN0cnVjdG9yIiwiQ2hhbmdlRGV0ZWN0b3JEZWZpbml0aW9uIiwiQ2hhbmdlRGV0ZWN0b3JEZWZpbml0aW9uLmNvbnN0cnVjdG9yIl0sIm1hcHBpbmdzIjoiQUFNQTtJQUNFQSxzQkFBbUJBLE9BQVlBLEVBQVNBLGdCQUFxQkEsRUFBU0EsU0FBY0EsRUFDakVBLE9BQVlBLEVBQVNBLE1BQVdBLEVBQVNBLFFBQWFBO1FBRHREQyxZQUFPQSxHQUFQQSxPQUFPQSxDQUFLQTtRQUFTQSxxQkFBZ0JBLEdBQWhCQSxnQkFBZ0JBLENBQUtBO1FBQVNBLGNBQVNBLEdBQVRBLFNBQVNBLENBQUtBO1FBQ2pFQSxZQUFPQSxHQUFQQSxPQUFPQSxDQUFLQTtRQUFTQSxXQUFNQSxHQUFOQSxNQUFNQSxDQUFLQTtRQUFTQSxhQUFRQSxHQUFSQSxRQUFRQSxDQUFLQTtJQUFHQSxDQUFD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m90b0NoYW5nZURldGVjdG9yIHsgaW5zdGFudGlhdGUoKTogQ2hhbmdlRGV0ZWN0b3I7IH1cblxuZXhwb3J0IGNsYXNzIENoYW5nZURldGVjdG9yR2VuQ29uZmlnIHtcbiAgY29uc3RydWN0b3IocHVibGljIGdlbkRlYnVnSW5mbzogYm9vbGVhbiwgcHVibGljIGxvZ0JpbmRpbmdVcGRhdGU6IGJvb2xlYW4sXG4gICAgICAgICAgICAgIHB1YmxpYyB1c2VKaXQ6IGJvb2xlYW4pIHt9XG59XG5cbmV4cG9ydCBjbGFzcyBDaGFuZ2VEZXRlY3RvckRlZmluaXRpb24ge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgaWQ6IHN0cmluZywgcHVibGljIHN0cmF0ZWd5OiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSxcbiAgICAgICAgICAgICAgcHVibGljIHZhcmlhYmxlTmFtZXM6IHN0cmluZ1tdLCBwdWJsaWMgYmluZGluZ1JlY29yZHM6IEJpbmRpbmdSZWNvcmRbXSxcbiAgICAgICAgICAgICAgcHVibGljIGV2ZW50UmVjb3JkczogQmluZGluZ1JlY29yZFtdLCBwdWJsaWMgZGlyZWN0aXZlUmVjb3JkczogRGlyZWN0aXZlUmVjb3JkW10sXG4gICAgICAgICAgICAgIHB1YmxpYyBnZW5Db25maWc6IENoYW5nZURldGVjdG9yR2VuQ29uZmlnKSB7fVxufVxuIl19","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar collection_1 = require('../../facade/collection');\nvar _STATE_ACCESSOR = \"state\";\nvar _CONTEXT_ACCESSOR = \"context\";\nvar _PROP_BINDING_INDEX = \"propertyBindingIndex\";\nvar _DIRECTIVES_ACCESSOR = \"directiveIndices\";\nvar _DISPATCHER_ACCESSOR = \"dispatcher\";\nvar _LOCALS_ACCESSOR = \"locals\";\nvar _MODE_ACCESSOR = \"mode\";\nvar _PIPES_ACCESSOR = \"pipes\";\nvar _PROTOS_ACCESSOR = \"protos\";\nexports.CONTEXT_ACCESSOR = \"context\";\nexports.CONTEXT_INDEX = 0;\nvar _FIELD_PREFIX = 'this.';\nvar _whiteSpaceRegExp = /\\W/g;\nfunction sanitizeName(s) {\n return lang_1.StringWrapper.replaceAll(s, _whiteSpaceRegExp, '');\n}\nexports.sanitizeName = sanitizeName;\nvar CodegenNameUtil = (function() {\n function CodegenNameUtil(_records, _eventBindings, _directiveRecords, _utilName) {\n this._records = _records;\n this._eventBindings = _eventBindings;\n this._directiveRecords = _directiveRecords;\n this._utilName = _utilName;\n this._sanitizedEventNames = new collection_1.Map();\n this._sanitizedNames = collection_1.ListWrapper.createFixedSize(this._records.length + 1);\n this._sanitizedNames[exports.CONTEXT_INDEX] = exports.CONTEXT_ACCESSOR;\n for (var i = 0,\n iLen = this._records.length; i < iLen; ++i) {\n this._sanitizedNames[i + 1] = sanitizeName(\"\" + this._records[i].name + i);\n }\n for (var ebIndex = 0; ebIndex < _eventBindings.length; ++ebIndex) {\n var eb = _eventBindings[ebIndex];\n var names = [exports.CONTEXT_ACCESSOR];\n for (var i = 0,\n iLen = eb.records.length; i < iLen; ++i) {\n names.push(sanitizeName(\"\" + eb.records[i].name + i + \"_\" + ebIndex));\n }\n this._sanitizedEventNames.set(eb, names);\n }\n }\n CodegenNameUtil.prototype._addFieldPrefix = function(name) {\n return \"\" + _FIELD_PREFIX + name;\n };\n CodegenNameUtil.prototype.getDispatcherName = function() {\n return this._addFieldPrefix(_DISPATCHER_ACCESSOR);\n };\n CodegenNameUtil.prototype.getPipesAccessorName = function() {\n return this._addFieldPrefix(_PIPES_ACCESSOR);\n };\n CodegenNameUtil.prototype.getProtosName = function() {\n return this._addFieldPrefix(_PROTOS_ACCESSOR);\n };\n CodegenNameUtil.prototype.getDirectivesAccessorName = function() {\n return this._addFieldPrefix(_DIRECTIVES_ACCESSOR);\n };\n CodegenNameUtil.prototype.getLocalsAccessorName = function() {\n return this._addFieldPrefix(_LOCALS_ACCESSOR);\n };\n CodegenNameUtil.prototype.getStateName = function() {\n return this._addFieldPrefix(_STATE_ACCESSOR);\n };\n CodegenNameUtil.prototype.getModeName = function() {\n return this._addFieldPrefix(_MODE_ACCESSOR);\n };\n CodegenNameUtil.prototype.getPropertyBindingIndex = function() {\n return this._addFieldPrefix(_PROP_BINDING_INDEX);\n };\n CodegenNameUtil.prototype.getLocalName = function(idx) {\n return \"l_\" + this._sanitizedNames[idx];\n };\n CodegenNameUtil.prototype.getEventLocalName = function(eb, idx) {\n return \"l_\" + this._sanitizedEventNames.get(eb)[idx];\n };\n CodegenNameUtil.prototype.getChangeName = function(idx) {\n return \"c_\" + this._sanitizedNames[idx];\n };\n CodegenNameUtil.prototype.genInitLocals = function() {\n var declarations = [];\n var assignments = [];\n for (var i = 0,\n iLen = this.getFieldCount(); i < iLen; ++i) {\n if (i == exports.CONTEXT_INDEX) {\n declarations.push(this.getLocalName(i) + \" = \" + this.getFieldName(i));\n } else {\n var rec = this._records[i - 1];\n if (rec.argumentToPureFunction) {\n var changeName = this.getChangeName(i);\n declarations.push(this.getLocalName(i) + \",\" + changeName);\n assignments.push(changeName);\n } else {\n declarations.push(\"\" + this.getLocalName(i));\n }\n }\n }\n var assignmentsCode = collection_1.ListWrapper.isEmpty(assignments) ? '' : assignments.join('=') + \" = false;\";\n return \"var \" + declarations.join(',') + \";\" + assignmentsCode;\n };\n CodegenNameUtil.prototype.genInitEventLocals = function() {\n var _this = this;\n var res = [(this.getLocalName(exports.CONTEXT_INDEX) + \" = \" + this.getFieldName(exports.CONTEXT_INDEX))];\n this._sanitizedEventNames.forEach(function(names, eb) {\n for (var i = 0; i < names.length; ++i) {\n if (i !== exports.CONTEXT_INDEX) {\n res.push(\"\" + _this.getEventLocalName(eb, i));\n }\n }\n });\n return res.length > 1 ? \"var \" + res.join(',') + \";\" : '';\n };\n CodegenNameUtil.prototype.getPreventDefaultAccesor = function() {\n return \"preventDefault\";\n };\n CodegenNameUtil.prototype.getFieldCount = function() {\n return this._sanitizedNames.length;\n };\n CodegenNameUtil.prototype.getFieldName = function(idx) {\n return this._addFieldPrefix(this._sanitizedNames[idx]);\n };\n CodegenNameUtil.prototype.getAllFieldNames = function() {\n var fieldList = [];\n for (var k = 0,\n kLen = this.getFieldCount(); k < kLen; ++k) {\n if (k === 0 || this._records[k - 1].shouldBeChecked()) {\n fieldList.push(this.getFieldName(k));\n }\n }\n for (var i = 0,\n iLen = this._records.length; i < iLen; ++i) {\n var rec = this._records[i];\n if (rec.isPipeRecord()) {\n fieldList.push(this.getPipeName(rec.selfIndex));\n }\n }\n for (var j = 0,\n jLen = this._directiveRecords.length; j < jLen; ++j) {\n var dRec = this._directiveRecords[j];\n fieldList.push(this.getDirectiveName(dRec.directiveIndex));\n if (!dRec.isDefaultChangeDetection()) {\n fieldList.push(this.getDetectorName(dRec.directiveIndex));\n }\n }\n return fieldList;\n };\n CodegenNameUtil.prototype.genDehydrateFields = function() {\n var fields = this.getAllFieldNames();\n collection_1.ListWrapper.removeAt(fields, exports.CONTEXT_INDEX);\n if (collection_1.ListWrapper.isEmpty(fields))\n return '';\n fields.push(this._utilName + \".uninitialized;\");\n return fields.join(' = ');\n };\n CodegenNameUtil.prototype.genPipeOnDestroy = function() {\n var _this = this;\n return this._records.filter(function(r) {\n return r.isPipeRecord();\n }).map(function(r) {\n return (_this._utilName + \".callPipeOnDestroy(\" + _this.getPipeName(r.selfIndex) + \");\");\n }).join('\\n');\n };\n CodegenNameUtil.prototype.getPipeName = function(idx) {\n return this._addFieldPrefix(this._sanitizedNames[idx] + \"_pipe\");\n };\n CodegenNameUtil.prototype.getDirectiveName = function(d) {\n return this._addFieldPrefix(\"directive_\" + d.name);\n };\n CodegenNameUtil.prototype.getDetectorName = function(d) {\n return this._addFieldPrefix(\"detector_\" + d.name);\n };\n return CodegenNameUtil;\n})();\nexports.CodegenNameUtil = CodegenNameUtil;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar codegen_facade_1 = require('./codegen_facade');\nvar proto_record_1 = require('./proto_record');\nvar constants_1 = require('./constants');\nvar exceptions_1 = require('../../facade/exceptions');\nvar CodegenLogicUtil = (function() {\n function CodegenLogicUtil(_names, _utilName, _changeDetectorStateName, _changeDetection) {\n this._names = _names;\n this._utilName = _utilName;\n this._changeDetectorStateName = _changeDetectorStateName;\n this._changeDetection = _changeDetection;\n }\n CodegenLogicUtil.prototype.genPropertyBindingEvalValue = function(protoRec) {\n var _this = this;\n return this._genEvalValue(protoRec, function(idx) {\n return _this._names.getLocalName(idx);\n }, this._names.getLocalsAccessorName());\n };\n CodegenLogicUtil.prototype.genEventBindingEvalValue = function(eventRecord, protoRec) {\n var _this = this;\n return this._genEvalValue(protoRec, function(idx) {\n return _this._names.getEventLocalName(eventRecord, idx);\n }, \"locals\");\n };\n CodegenLogicUtil.prototype._genEvalValue = function(protoRec, getLocalName, localsAccessor) {\n var context = (protoRec.contextIndex == -1) ? this._names.getDirectiveName(protoRec.directiveIndex) : getLocalName(protoRec.contextIndex);\n var argString = protoRec.args.map(function(arg) {\n return getLocalName(arg);\n }).join(\", \");\n var rhs;\n switch (protoRec.mode) {\n case proto_record_1.RecordType.Self:\n rhs = context;\n break;\n case proto_record_1.RecordType.Const:\n rhs = codegen_facade_1.codify(protoRec.funcOrValue);\n break;\n case proto_record_1.RecordType.PropertyRead:\n rhs = this._observe(context + \".\" + protoRec.name, protoRec);\n break;\n case proto_record_1.RecordType.SafeProperty:\n var read = this._observe(context + \".\" + protoRec.name, protoRec);\n rhs = this._utilName + \".isValueBlank(\" + context + \") ? null : \" + this._observe(read, protoRec);\n break;\n case proto_record_1.RecordType.PropertyWrite:\n rhs = context + \".\" + protoRec.name + \" = \" + getLocalName(protoRec.args[0]);\n break;\n case proto_record_1.RecordType.Local:\n rhs = this._observe(localsAccessor + \".get(\" + codegen_facade_1.rawString(protoRec.name) + \")\", protoRec);\n break;\n case proto_record_1.RecordType.InvokeMethod:\n rhs = this._observe(context + \".\" + protoRec.name + \"(\" + argString + \")\", protoRec);\n break;\n case proto_record_1.RecordType.SafeMethodInvoke:\n var invoke = context + \".\" + protoRec.name + \"(\" + argString + \")\";\n rhs = this._utilName + \".isValueBlank(\" + context + \") ? null : \" + this._observe(invoke, protoRec);\n break;\n case proto_record_1.RecordType.InvokeClosure:\n rhs = context + \"(\" + argString + \")\";\n break;\n case proto_record_1.RecordType.PrimitiveOp:\n rhs = this._utilName + \".\" + protoRec.name + \"(\" + argString + \")\";\n break;\n case proto_record_1.RecordType.CollectionLiteral:\n rhs = this._utilName + \".\" + protoRec.name + \"(\" + argString + \")\";\n break;\n case proto_record_1.RecordType.Interpolate:\n rhs = this._genInterpolation(protoRec);\n break;\n case proto_record_1.RecordType.KeyedRead:\n rhs = this._observe(context + \"[\" + getLocalName(protoRec.args[0]) + \"]\", protoRec);\n break;\n case proto_record_1.RecordType.KeyedWrite:\n rhs = context + \"[\" + getLocalName(protoRec.args[0]) + \"] = \" + getLocalName(protoRec.args[1]);\n break;\n case proto_record_1.RecordType.Chain:\n rhs = \"\" + getLocalName(protoRec.args[protoRec.args.length - 1]);\n break;\n default:\n throw new exceptions_1.BaseException(\"Unknown operation \" + protoRec.mode);\n }\n return getLocalName(protoRec.selfIndex) + \" = \" + rhs + \";\";\n };\n CodegenLogicUtil.prototype._observe = function(exp, rec) {\n if (this._changeDetection === constants_1.ChangeDetectionStrategy.OnPushObserve) {\n return \"this.observeValue(\" + exp + \", \" + rec.selfIndex + \")\";\n } else {\n return exp;\n }\n };\n CodegenLogicUtil.prototype.genPropertyBindingTargets = function(propertyBindingTargets, genDebugInfo) {\n var _this = this;\n var bs = propertyBindingTargets.map(function(b) {\n if (lang_1.isBlank(b))\n return \"null\";\n var debug = genDebugInfo ? codegen_facade_1.codify(b.debug) : \"null\";\n return _this._utilName + \".bindingTarget(\" + codegen_facade_1.codify(b.mode) + \", \" + b.elementIndex + \", \" + codegen_facade_1.codify(b.name) + \", \" + codegen_facade_1.codify(b.unit) + \", \" + debug + \")\";\n });\n return \"[\" + bs.join(\", \") + \"]\";\n };\n CodegenLogicUtil.prototype.genDirectiveIndices = function(directiveRecords) {\n var _this = this;\n var bs = directiveRecords.map(function(b) {\n return (_this._utilName + \".directiveIndex(\" + b.directiveIndex.elementIndex + \", \" + b.directiveIndex.directiveIndex + \")\");\n });\n return \"[\" + bs.join(\", \") + \"]\";\n };\n CodegenLogicUtil.prototype._genInterpolation = function(protoRec) {\n var iVals = [];\n for (var i = 0; i < protoRec.args.length; ++i) {\n iVals.push(codegen_facade_1.codify(protoRec.fixedArgs[i]));\n iVals.push(this._utilName + \".s(\" + this._names.getLocalName(protoRec.args[i]) + \")\");\n }\n iVals.push(codegen_facade_1.codify(protoRec.fixedArgs[protoRec.args.length]));\n return codegen_facade_1.combineGeneratedStrings(iVals);\n };\n CodegenLogicUtil.prototype.genHydrateDirectives = function(directiveRecords) {\n var _this = this;\n var res = [];\n var outputCount = 0;\n for (var i = 0; i < directiveRecords.length; ++i) {\n var r = directiveRecords[i];\n var dirVarName = this._names.getDirectiveName(r.directiveIndex);\n res.push(dirVarName + \" = \" + this._genReadDirective(i) + \";\");\n if (lang_1.isPresent(r.outputs)) {\n r.outputs.forEach(function(output) {\n var eventHandlerExpr = _this._genEventHandler(r.directiveIndex.elementIndex, output[1]);\n var statementStart = \"this.outputSubscriptions[\" + outputCount++ + \"] = \" + dirVarName + \".\" + output[0];\n if (lang_1.IS_DART) {\n res.push(statementStart + \".listen(\" + eventHandlerExpr + \");\");\n } else {\n res.push(statementStart + \".subscribe({next: \" + eventHandlerExpr + \"});\");\n }\n });\n }\n }\n if (outputCount > 0) {\n var statementStart = 'this.outputSubscriptions';\n if (lang_1.IS_DART) {\n res.unshift(statementStart + \" = new List(\" + outputCount + \");\");\n } else {\n res.unshift(statementStart + \" = new Array(\" + outputCount + \");\");\n }\n }\n return res.join(\"\\n\");\n };\n CodegenLogicUtil.prototype.genDirectivesOnDestroy = function(directiveRecords) {\n var res = [];\n for (var i = 0; i < directiveRecords.length; ++i) {\n var r = directiveRecords[i];\n if (r.callOnDestroy) {\n var dirVarName = this._names.getDirectiveName(r.directiveIndex);\n res.push(dirVarName + \".ngOnDestroy();\");\n }\n }\n return res.join(\"\\n\");\n };\n CodegenLogicUtil.prototype._genEventHandler = function(boundElementIndex, eventName) {\n if (lang_1.IS_DART) {\n return \"(event) => this.handleEvent('\" + eventName + \"', \" + boundElementIndex + \", event)\";\n } else {\n return \"(function(event) { return this.handleEvent('\" + eventName + \"', \" + boundElementIndex + \", event); }).bind(this)\";\n }\n };\n CodegenLogicUtil.prototype._genReadDirective = function(index) {\n var directiveExpr = \"this.getDirectiveFor(directives, \" + index + \")\";\n if (this._changeDetection === constants_1.ChangeDetectionStrategy.OnPushObserve) {\n return \"this.observeDirective(\" + directiveExpr + \", \" + index + \")\";\n } else {\n return directiveExpr;\n }\n };\n CodegenLogicUtil.prototype.genHydrateDetectors = function(directiveRecords) {\n var res = [];\n for (var i = 0; i < directiveRecords.length; ++i) {\n var r = directiveRecords[i];\n if (!r.isDefaultChangeDetection()) {\n res.push(this._names.getDetectorName(r.directiveIndex) + \" = this.getDetectorFor(directives, \" + i + \");\");\n }\n }\n return res.join(\"\\n\");\n };\n CodegenLogicUtil.prototype.genContentLifecycleCallbacks = function(directiveRecords) {\n var res = [];\n var eq = lang_1.IS_DART ? '==' : '===';\n for (var i = directiveRecords.length - 1; i >= 0; --i) {\n var dir = directiveRecords[i];\n if (dir.callAfterContentInit) {\n res.push(\"if(\" + this._names.getStateName() + \" \" + eq + \" \" + this._changeDetectorStateName + \".NeverChecked) \" + this._names.getDirectiveName(dir.directiveIndex) + \".ngAfterContentInit();\");\n }\n if (dir.callAfterContentChecked) {\n res.push(this._names.getDirectiveName(dir.directiveIndex) + \".ngAfterContentChecked();\");\n }\n }\n return res;\n };\n CodegenLogicUtil.prototype.genViewLifecycleCallbacks = function(directiveRecords) {\n var res = [];\n var eq = lang_1.IS_DART ? '==' : '===';\n for (var i = directiveRecords.length - 1; i >= 0; --i) {\n var dir = directiveRecords[i];\n if (dir.callAfterViewInit) {\n res.push(\"if(\" + this._names.getStateName() + \" \" + eq + \" \" + this._changeDetectorStateName + \".NeverChecked) \" + this._names.getDirectiveName(dir.directiveIndex) + \".ngAfterViewInit();\");\n }\n if (dir.callAfterViewChecked) {\n res.push(this._names.getDirectiveName(dir.directiveIndex) + \".ngAfterViewChecked();\");\n }\n }\n return res;\n };\n return CodegenLogicUtil;\n})();\nexports.CodegenLogicUtil = CodegenLogicUtil;\n","/* */ \n'use strict';/**\r\n * Converts `funcOrValue` to a string which can be used in generated code.\r\n */\r\nfunction codify(obj) {\r\n return JSON.stringify(obj);\r\n}\r\nexports.codify = codify;\r\nfunction rawString(str) {\r\n return \"'\" + str + \"'\";\r\n}\r\nexports.rawString = rawString;\r\n/**\r\n * Combine the strings of generated code into a single interpolated string.\r\n * Each element of `vals` is expected to be a string literal or a codegen'd\r\n * call to a method returning a string.\r\n */\r\nfunction combineGeneratedStrings(vals) {\r\n return vals.join(' + ');\r\n}\r\nexports.combineGeneratedStrings = combineGeneratedStrings;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZWdlbl9mYWNhZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9zcmMvY29yZS9jaGFuZ2VfZGV0ZWN0aW9uL2NvZGVnZW5fZmFjYWRlLnRzIl0sIm5hbWVzIjpbImNvZGlmeSIsInJhd1N0cmluZyIsImNvbWJpbmVHZW5lcmF0ZWRTdHJpbmdzIl0sIm1hcHBpbmdzIjoiQUFDQTs7R0FFRztBQUNILGdCQUF1QixHQUFRO0lBQzdCQSxNQUFNQSxDQUFDQSxJQUFJQSxDQUFDQSxTQUFTQSxDQUFDQSxHQUFHQSxDQUFDQSxDQUFDQTtBQUM3QkEsQ0FBQ0E7QUFGZSxjQUFNLFNBRXJCLENBQUE7QUFFRCxtQkFBMEIsR0FBVztJQUNuQ0MsTUFBTUEsQ0FBQ0EsTUFBSUEsR0FBR0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for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n var collection_1 = require('../../../facade/collection');\n var AST = (function() {\n function AST() {}\n AST.prototype.visit = function(visitor) {\n return null;\n };\n AST.prototype.toString = function() {\n return \"AST\";\n };\n return AST;\n })();\n exports.AST = AST;\n var Quote = (function(_super) {\n __extends(Quote, _super);\n function Quote(prefix, uninterpretedExpression, location) {\n _super.call(this);\n this.prefix = prefix;\n this.uninterpretedExpression = uninterpretedExpression;\n this.location = location;\n }\n Quote.prototype.visit = function(visitor) {\n return visitor.visitQuote(this);\n };\n Quote.prototype.toString = function() {\n return \"Quote\";\n };\n return Quote;\n })(AST);\n exports.Quote = Quote;\n var EmptyExpr = (function(_super) {\n __extends(EmptyExpr, _super);\n function EmptyExpr() {\n _super.apply(this, arguments);\n }\n EmptyExpr.prototype.visit = function(visitor) {};\n return EmptyExpr;\n })(AST);\n exports.EmptyExpr = EmptyExpr;\n var ImplicitReceiver = (function(_super) {\n __extends(ImplicitReceiver, _super);\n function ImplicitReceiver() {\n _super.apply(this, arguments);\n }\n ImplicitReceiver.prototype.visit = function(visitor) {\n return visitor.visitImplicitReceiver(this);\n };\n return ImplicitReceiver;\n })(AST);\n exports.ImplicitReceiver = ImplicitReceiver;\n var Chain = (function(_super) {\n __extends(Chain, _super);\n function Chain(expressions) {\n _super.call(this);\n this.expressions = expressions;\n }\n Chain.prototype.visit = function(visitor) {\n return visitor.visitChain(this);\n };\n return Chain;\n })(AST);\n exports.Chain = Chain;\n var Conditional = (function(_super) {\n __extends(Conditional, _super);\n function Conditional(condition, trueExp, falseExp) {\n _super.call(this);\n this.condition = condition;\n this.trueExp = trueExp;\n this.falseExp = falseExp;\n }\n Conditional.prototype.visit = function(visitor) {\n return visitor.visitConditional(this);\n };\n return Conditional;\n })(AST);\n exports.Conditional = Conditional;\n var PropertyRead = (function(_super) {\n __extends(PropertyRead, _super);\n function PropertyRead(receiver, name, getter) {\n _super.call(this);\n this.receiver = receiver;\n this.name = name;\n this.getter = getter;\n }\n PropertyRead.prototype.visit = function(visitor) {\n return visitor.visitPropertyRead(this);\n };\n return PropertyRead;\n })(AST);\n exports.PropertyRead = PropertyRead;\n var PropertyWrite = (function(_super) {\n __extends(PropertyWrite, _super);\n function PropertyWrite(receiver, name, setter, value) {\n _super.call(this);\n this.receiver = receiver;\n this.name = name;\n this.setter = setter;\n this.value = value;\n }\n PropertyWrite.prototype.visit = function(visitor) {\n return visitor.visitPropertyWrite(this);\n };\n return PropertyWrite;\n })(AST);\n exports.PropertyWrite = PropertyWrite;\n var SafePropertyRead = (function(_super) {\n __extends(SafePropertyRead, _super);\n function SafePropertyRead(receiver, name, getter) {\n _super.call(this);\n this.receiver = receiver;\n this.name = name;\n this.getter = getter;\n }\n SafePropertyRead.prototype.visit = function(visitor) {\n return visitor.visitSafePropertyRead(this);\n };\n return SafePropertyRead;\n })(AST);\n exports.SafePropertyRead = SafePropertyRead;\n var KeyedRead = (function(_super) {\n __extends(KeyedRead, _super);\n function KeyedRead(obj, key) {\n _super.call(this);\n this.obj = obj;\n this.key = key;\n }\n KeyedRead.prototype.visit = function(visitor) {\n return visitor.visitKeyedRead(this);\n };\n return KeyedRead;\n })(AST);\n exports.KeyedRead = KeyedRead;\n var KeyedWrite = (function(_super) {\n __extends(KeyedWrite, _super);\n function KeyedWrite(obj, key, value) {\n _super.call(this);\n this.obj = obj;\n this.key = key;\n this.value = value;\n }\n KeyedWrite.prototype.visit = function(visitor) {\n return visitor.visitKeyedWrite(this);\n };\n return KeyedWrite;\n })(AST);\n exports.KeyedWrite = KeyedWrite;\n var BindingPipe = (function(_super) {\n __extends(BindingPipe, _super);\n function BindingPipe(exp, name, args) {\n _super.call(this);\n this.exp = exp;\n this.name = name;\n this.args = args;\n }\n BindingPipe.prototype.visit = function(visitor) {\n return visitor.visitPipe(this);\n };\n return BindingPipe;\n })(AST);\n exports.BindingPipe = BindingPipe;\n var LiteralPrimitive = (function(_super) {\n __extends(LiteralPrimitive, _super);\n function LiteralPrimitive(value) {\n _super.call(this);\n this.value = value;\n }\n LiteralPrimitive.prototype.visit = function(visitor) {\n return visitor.visitLiteralPrimitive(this);\n };\n return LiteralPrimitive;\n })(AST);\n exports.LiteralPrimitive = LiteralPrimitive;\n var LiteralArray = (function(_super) {\n __extends(LiteralArray, _super);\n function LiteralArray(expressions) {\n _super.call(this);\n this.expressions = expressions;\n }\n LiteralArray.prototype.visit = function(visitor) {\n return visitor.visitLiteralArray(this);\n };\n return LiteralArray;\n })(AST);\n exports.LiteralArray = LiteralArray;\n var LiteralMap = (function(_super) {\n __extends(LiteralMap, _super);\n function LiteralMap(keys, values) {\n _super.call(this);\n this.keys = keys;\n this.values = values;\n }\n LiteralMap.prototype.visit = function(visitor) {\n return visitor.visitLiteralMap(this);\n };\n return LiteralMap;\n })(AST);\n exports.LiteralMap = LiteralMap;\n var Interpolation = (function(_super) {\n __extends(Interpolation, _super);\n function Interpolation(strings, expressions) {\n _super.call(this);\n this.strings = strings;\n this.expressions = expressions;\n }\n Interpolation.prototype.visit = function(visitor) {\n return visitor.visitInterpolation(this);\n };\n return Interpolation;\n })(AST);\n exports.Interpolation = Interpolation;\n var Binary = (function(_super) {\n __extends(Binary, _super);\n function Binary(operation, left, right) {\n _super.call(this);\n this.operation = operation;\n this.left = left;\n this.right = right;\n }\n Binary.prototype.visit = function(visitor) {\n return visitor.visitBinary(this);\n };\n return Binary;\n })(AST);\n exports.Binary = Binary;\n var PrefixNot = (function(_super) {\n __extends(PrefixNot, _super);\n function PrefixNot(expression) {\n _super.call(this);\n this.expression = expression;\n }\n PrefixNot.prototype.visit = function(visitor) {\n return visitor.visitPrefixNot(this);\n };\n return PrefixNot;\n })(AST);\n exports.PrefixNot = PrefixNot;\n var MethodCall = (function(_super) {\n __extends(MethodCall, _super);\n function MethodCall(receiver, name, fn, args) {\n _super.call(this);\n this.receiver = receiver;\n this.name = name;\n this.fn = fn;\n this.args = args;\n }\n MethodCall.prototype.visit = function(visitor) {\n return visitor.visitMethodCall(this);\n };\n return MethodCall;\n })(AST);\n exports.MethodCall = MethodCall;\n var SafeMethodCall = (function(_super) {\n __extends(SafeMethodCall, _super);\n function SafeMethodCall(receiver, name, fn, args) {\n _super.call(this);\n this.receiver = receiver;\n this.name = name;\n this.fn = fn;\n this.args = args;\n }\n SafeMethodCall.prototype.visit = function(visitor) {\n return visitor.visitSafeMethodCall(this);\n };\n return SafeMethodCall;\n })(AST);\n exports.SafeMethodCall = SafeMethodCall;\n var FunctionCall = (function(_super) {\n __extends(FunctionCall, _super);\n function FunctionCall(target, args) {\n _super.call(this);\n this.target = target;\n this.args = args;\n }\n FunctionCall.prototype.visit = function(visitor) {\n return visitor.visitFunctionCall(this);\n };\n return FunctionCall;\n })(AST);\n exports.FunctionCall = FunctionCall;\n var ASTWithSource = (function(_super) {\n __extends(ASTWithSource, _super);\n function ASTWithSource(ast, source, location) {\n _super.call(this);\n this.ast = ast;\n this.source = source;\n this.location = location;\n }\n ASTWithSource.prototype.visit = function(visitor) {\n return this.ast.visit(visitor);\n };\n ASTWithSource.prototype.toString = function() {\n return this.source + \" in \" + this.location;\n };\n return ASTWithSource;\n })(AST);\n exports.ASTWithSource = ASTWithSource;\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 exports.TemplateBinding = TemplateBinding;\n var RecursiveAstVisitor = (function() {\n function RecursiveAstVisitor() {}\n RecursiveAstVisitor.prototype.visitBinary = function(ast) {\n ast.left.visit(this);\n ast.right.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitChain = function(ast) {\n return this.visitAll(ast.expressions);\n };\n RecursiveAstVisitor.prototype.visitConditional = function(ast) {\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) {\n ast.exp.visit(this);\n this.visitAll(ast.args);\n return null;\n };\n RecursiveAstVisitor.prototype.visitFunctionCall = function(ast) {\n ast.target.visit(this);\n this.visitAll(ast.args);\n return null;\n };\n RecursiveAstVisitor.prototype.visitImplicitReceiver = function(ast) {\n return null;\n };\n RecursiveAstVisitor.prototype.visitInterpolation = function(ast) {\n return this.visitAll(ast.expressions);\n };\n RecursiveAstVisitor.prototype.visitKeyedRead = function(ast) {\n ast.obj.visit(this);\n ast.key.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitKeyedWrite = function(ast) {\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) {\n return this.visitAll(ast.expressions);\n };\n RecursiveAstVisitor.prototype.visitLiteralMap = function(ast) {\n return this.visitAll(ast.values);\n };\n RecursiveAstVisitor.prototype.visitLiteralPrimitive = function(ast) {\n return null;\n };\n RecursiveAstVisitor.prototype.visitMethodCall = function(ast) {\n ast.receiver.visit(this);\n return this.visitAll(ast.args);\n };\n RecursiveAstVisitor.prototype.visitPrefixNot = function(ast) {\n ast.expression.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitPropertyRead = function(ast) {\n ast.receiver.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitPropertyWrite = function(ast) {\n ast.receiver.visit(this);\n ast.value.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitSafePropertyRead = function(ast) {\n ast.receiver.visit(this);\n return null;\n };\n RecursiveAstVisitor.prototype.visitSafeMethodCall = function(ast) {\n ast.receiver.visit(this);\n return this.visitAll(ast.args);\n };\n RecursiveAstVisitor.prototype.visitAll = function(asts) {\n var _this = this;\n asts.forEach(function(ast) {\n return ast.visit(_this);\n });\n return null;\n };\n RecursiveAstVisitor.prototype.visitQuote = function(ast) {\n return null;\n };\n return RecursiveAstVisitor;\n })();\n exports.RecursiveAstVisitor = RecursiveAstVisitor;\n var AstTransformer = (function() {\n function AstTransformer() {}\n AstTransformer.prototype.visitImplicitReceiver = function(ast) {\n return ast;\n };\n AstTransformer.prototype.visitInterpolation = function(ast) {\n return new Interpolation(ast.strings, this.visitAll(ast.expressions));\n };\n AstTransformer.prototype.visitLiteralPrimitive = function(ast) {\n return new LiteralPrimitive(ast.value);\n };\n AstTransformer.prototype.visitPropertyRead = function(ast) {\n return new PropertyRead(ast.receiver.visit(this), ast.name, ast.getter);\n };\n AstTransformer.prototype.visitPropertyWrite = function(ast) {\n return new PropertyWrite(ast.receiver.visit(this), ast.name, ast.setter, ast.value);\n };\n AstTransformer.prototype.visitSafePropertyRead = function(ast) {\n return new SafePropertyRead(ast.receiver.visit(this), ast.name, ast.getter);\n };\n AstTransformer.prototype.visitMethodCall = function(ast) {\n return new MethodCall(ast.receiver.visit(this), ast.name, ast.fn, this.visitAll(ast.args));\n };\n AstTransformer.prototype.visitSafeMethodCall = function(ast) {\n return new SafeMethodCall(ast.receiver.visit(this), ast.name, ast.fn, this.visitAll(ast.args));\n };\n AstTransformer.prototype.visitFunctionCall = function(ast) {\n return new FunctionCall(ast.target.visit(this), this.visitAll(ast.args));\n };\n AstTransformer.prototype.visitLiteralArray = function(ast) {\n return new LiteralArray(this.visitAll(ast.expressions));\n };\n AstTransformer.prototype.visitLiteralMap = function(ast) {\n return new LiteralMap(ast.keys, this.visitAll(ast.values));\n };\n AstTransformer.prototype.visitBinary = function(ast) {\n return new Binary(ast.operation, ast.left.visit(this), ast.right.visit(this));\n };\n AstTransformer.prototype.visitPrefixNot = function(ast) {\n return new PrefixNot(ast.expression.visit(this));\n };\n AstTransformer.prototype.visitConditional = function(ast) {\n return new Conditional(ast.condition.visit(this), ast.trueExp.visit(this), ast.falseExp.visit(this));\n };\n AstTransformer.prototype.visitPipe = function(ast) {\n return new BindingPipe(ast.exp.visit(this), ast.name, this.visitAll(ast.args));\n };\n AstTransformer.prototype.visitKeyedRead = function(ast) {\n return new KeyedRead(ast.obj.visit(this), ast.key.visit(this));\n };\n AstTransformer.prototype.visitKeyedWrite = function(ast) {\n return new KeyedWrite(ast.obj.visit(this), ast.key.visit(this), ast.value.visit(this));\n };\n AstTransformer.prototype.visitAll = function(asts) {\n var res = collection_1.ListWrapper.createFixedSize(asts.length);\n for (var i = 0; i < asts.length; ++i) {\n res[i] = asts[i].visit(this);\n }\n return res;\n };\n AstTransformer.prototype.visitChain = function(ast) {\n return new Chain(this.visitAll(ast.expressions));\n };\n AstTransformer.prototype.visitQuote = function(ast) {\n return new Quote(ast.prefix, ast.uninterpretedExpression, ast.location);\n };\n return AstTransformer;\n })();\n exports.AstTransformer = AstTransformer;\n})(require('process'));\n","/* */ \n'use strict';var EventBinding = (function () {\r\n function EventBinding(eventName, elIndex, dirIndex, records) {\r\n this.eventName = eventName;\r\n this.elIndex = elIndex;\r\n this.dirIndex = dirIndex;\r\n this.records = records;\r\n }\r\n return EventBinding;\r\n})();\r\nexports.EventBinding = EventBinding;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRfYmluZGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24vZXZlbnRfYmluZGluZy50cyJdLCJuYW1lcyI6WyJFdmVudEJpbmRpbmciLCJFdmVudEJpbmRpbmcuY29uc3RydWN0b3IiXSwibWFwcGluZ3MiOiJBQUdBO0lBQ0VBLHNCQUFtQkEsU0FBaUJBLEVBQVNBLE9BQWVBLEVBQVNBLFFBQXdCQSxFQUMxRUEsT0FBc0JBO1FBRHRCQyxjQUFTQSxHQUFUQSxTQUFTQSxDQUFRQTtRQUFTQSxZQUFPQSxHQUFQQSxPQUFPQSxDQUFRQTtRQUFTQSxhQUFRQSxHQUFSQSxRQUFRQSxDQUFnQkE7UUFDMUVBLFlBQU9BLEdBQVBBLE9BQU9BLENBQWVBO0lBQUdBLENBQUNBO0lBQy9DRCxtQkFBQ0E7QUFBREEsQ0FBQ0EsQUFIRCxJQUdDO0FBSFksb0JBQVksZUFHeEIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7RGlyZWN0aXZlSW5kZXh9IGZyb20gJy4vZGlyZWN0aXZlX3JlY29yZCc7XG5pbXBvcnQge1Byb3RvUmVjb3JkfSBmcm9tICcuL3Byb3RvX3JlY29yZCc7XG5cbmV4cG9ydCBjbGFzcyBFdmVudEJpbmRpbmcge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgZXZlbnROYW1lOiBzdHJpbmcsIHB1YmxpYyBlbEluZGV4OiBudW1iZXIsIHB1YmxpYyBkaXJJbmRleDogRGlyZWN0aXZlSW5kZXgsXG4gICAgICAgICAgICAgIHB1YmxpYyByZWNvcmRzOiBQcm90b1JlY29yZFtdKSB7fVxufSJdfQ==","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar collection_1 = require('../../facade/collection');\nvar proto_record_1 = require('./proto_record');\nfunction coalesce(srcRecords) {\n var dstRecords = [];\n var excludedIdxs = [];\n var indexMap = new collection_1.Map();\n var skipDepth = 0;\n var skipSources = collection_1.ListWrapper.createFixedSize(srcRecords.length);\n for (var protoIndex = 0; protoIndex < srcRecords.length; protoIndex++) {\n var skipRecord = skipSources[protoIndex];\n if (lang_1.isPresent(skipRecord)) {\n skipDepth--;\n skipRecord.fixedArgs[0] = dstRecords.length;\n }\n var src = srcRecords[protoIndex];\n var dst = _cloneAndUpdateIndexes(src, dstRecords, indexMap);\n if (dst.isSkipRecord()) {\n dstRecords.push(dst);\n skipDepth++;\n skipSources[dst.fixedArgs[0]] = dst;\n } else {\n var record = _mayBeAddRecord(dst, dstRecords, excludedIdxs, skipDepth > 0);\n indexMap.set(src.selfIndex, record.selfIndex);\n }\n }\n return _optimizeSkips(dstRecords);\n}\nexports.coalesce = coalesce;\nfunction _optimizeSkips(srcRecords) {\n var dstRecords = [];\n var skipSources = collection_1.ListWrapper.createFixedSize(srcRecords.length);\n var indexMap = new collection_1.Map();\n for (var protoIndex = 0; protoIndex < srcRecords.length; protoIndex++) {\n var skipRecord = skipSources[protoIndex];\n if (lang_1.isPresent(skipRecord)) {\n skipRecord.fixedArgs[0] = dstRecords.length;\n }\n var src = srcRecords[protoIndex];\n if (src.isSkipRecord()) {\n if (src.isConditionalSkipRecord() && src.fixedArgs[0] === protoIndex + 2 && protoIndex < srcRecords.length - 1 && srcRecords[protoIndex + 1].mode === proto_record_1.RecordType.SkipRecords) {\n src.mode = src.mode === proto_record_1.RecordType.SkipRecordsIf ? proto_record_1.RecordType.SkipRecordsIfNot : proto_record_1.RecordType.SkipRecordsIf;\n src.fixedArgs[0] = srcRecords[protoIndex + 1].fixedArgs[0];\n protoIndex++;\n }\n if (src.fixedArgs[0] > protoIndex + 1) {\n var dst = _cloneAndUpdateIndexes(src, dstRecords, indexMap);\n dstRecords.push(dst);\n skipSources[dst.fixedArgs[0]] = dst;\n }\n } else {\n var dst = _cloneAndUpdateIndexes(src, dstRecords, indexMap);\n dstRecords.push(dst);\n indexMap.set(src.selfIndex, dst.selfIndex);\n }\n }\n return dstRecords;\n}\nfunction _mayBeAddRecord(record, dstRecords, excludedIdxs, excluded) {\n var match = _findFirstMatch(record, dstRecords, excludedIdxs);\n if (lang_1.isPresent(match)) {\n if (record.lastInBinding) {\n dstRecords.push(_createSelfRecord(record, match.selfIndex, dstRecords.length + 1));\n match.referencedBySelf = true;\n } else {\n if (record.argumentToPureFunction) {\n match.argumentToPureFunction = true;\n }\n }\n return match;\n }\n if (excluded) {\n excludedIdxs.push(record.selfIndex);\n }\n dstRecords.push(record);\n return record;\n}\nfunction _findFirstMatch(record, dstRecords, excludedIdxs) {\n return dstRecords.find(function(rr) {\n return excludedIdxs.indexOf(rr.selfIndex) == -1 && rr.mode !== proto_record_1.RecordType.DirectiveLifecycle && _haveSameDirIndex(rr, record) && rr.mode === record.mode && lang_1.looseIdentical(rr.funcOrValue, record.funcOrValue) && rr.contextIndex === record.contextIndex && lang_1.looseIdentical(rr.name, record.name) && collection_1.ListWrapper.equals(rr.args, record.args);\n });\n}\nfunction _cloneAndUpdateIndexes(record, dstRecords, indexMap) {\n var args = record.args.map(function(src) {\n return _srcToDstSelfIndex(indexMap, src);\n });\n var contextIndex = _srcToDstSelfIndex(indexMap, record.contextIndex);\n var selfIndex = dstRecords.length + 1;\n return new proto_record_1.ProtoRecord(record.mode, record.name, record.funcOrValue, args, record.fixedArgs, contextIndex, record.directiveIndex, selfIndex, record.bindingRecord, record.lastInBinding, record.lastInDirective, record.argumentToPureFunction, record.referencedBySelf, record.propertyBindingIndex);\n}\nfunction _srcToDstSelfIndex(indexMap, srcIdx) {\n var dstIdx = indexMap.get(srcIdx);\n return lang_1.isPresent(dstIdx) ? dstIdx : srcIdx;\n}\nfunction _createSelfRecord(r, contextIndex, selfIndex) {\n return new proto_record_1.ProtoRecord(proto_record_1.RecordType.Self, \"self\", null, [], r.fixedArgs, contextIndex, r.directiveIndex, selfIndex, r.bindingRecord, r.lastInBinding, r.lastInDirective, false, false, r.propertyBindingIndex);\n}\nfunction _haveSameDirIndex(a, b) {\n var di1 = lang_1.isBlank(a.directiveIndex) ? null : a.directiveIndex.directiveIndex;\n var ei1 = lang_1.isBlank(a.directiveIndex) ? null : a.directiveIndex.elementIndex;\n var di2 = lang_1.isBlank(b.directiveIndex) ? null : b.directiveIndex.directiveIndex;\n var ei2 = lang_1.isBlank(b.directiveIndex) ? null : b.directiveIndex.elementIndex;\n return di1 === di2 && ei1 === ei2;\n}\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar ast_1 = require('./parser/ast');\nvar change_detection_util_1 = require('./change_detection_util');\nvar dynamic_change_detector_1 = require('./dynamic_change_detector');\nvar directive_record_1 = require('./directive_record');\nvar event_binding_1 = require('./event_binding');\nvar coalesce_1 = require('./coalesce');\nvar proto_record_1 = require('./proto_record');\nvar DynamicProtoChangeDetector = (function() {\n function DynamicProtoChangeDetector(_definition) {\n this._definition = _definition;\n this._propertyBindingRecords = createPropertyRecords(_definition);\n this._eventBindingRecords = createEventRecords(_definition);\n this._propertyBindingTargets = this._definition.bindingRecords.map(function(b) {\n return b.target;\n });\n this._directiveIndices = this._definition.directiveRecords.map(function(d) {\n return d.directiveIndex;\n });\n }\n DynamicProtoChangeDetector.prototype.instantiate = function() {\n return new dynamic_change_detector_1.DynamicChangeDetector(this._definition.id, this._propertyBindingRecords.length, this._propertyBindingTargets, this._directiveIndices, this._definition.strategy, this._propertyBindingRecords, this._eventBindingRecords, this._definition.directiveRecords, this._definition.genConfig);\n };\n return DynamicProtoChangeDetector;\n})();\nexports.DynamicProtoChangeDetector = DynamicProtoChangeDetector;\nfunction createPropertyRecords(definition) {\n var recordBuilder = new ProtoRecordBuilder();\n collection_1.ListWrapper.forEachWithIndex(definition.bindingRecords, function(b, index) {\n return recordBuilder.add(b, definition.variableNames, index);\n });\n return coalesce_1.coalesce(recordBuilder.records);\n}\nexports.createPropertyRecords = createPropertyRecords;\nfunction createEventRecords(definition) {\n var varNames = collection_1.ListWrapper.concat(['$event'], definition.variableNames);\n return definition.eventRecords.map(function(er) {\n var records = _ConvertAstIntoProtoRecords.create(er, varNames);\n var dirIndex = er.implicitReceiver instanceof directive_record_1.DirectiveIndex ? er.implicitReceiver : null;\n return new event_binding_1.EventBinding(er.target.name, er.target.elementIndex, dirIndex, records);\n });\n}\nexports.createEventRecords = createEventRecords;\nvar ProtoRecordBuilder = (function() {\n function ProtoRecordBuilder() {\n this.records = [];\n }\n ProtoRecordBuilder.prototype.add = function(b, variableNames, bindingIndex) {\n var oldLast = collection_1.ListWrapper.last(this.records);\n if (lang_1.isPresent(oldLast) && oldLast.bindingRecord.directiveRecord == b.directiveRecord) {\n oldLast.lastInDirective = false;\n }\n var numberOfRecordsBefore = this.records.length;\n this._appendRecords(b, variableNames, bindingIndex);\n var newLast = collection_1.ListWrapper.last(this.records);\n if (lang_1.isPresent(newLast) && newLast !== oldLast) {\n newLast.lastInBinding = true;\n newLast.lastInDirective = true;\n this._setArgumentToPureFunction(numberOfRecordsBefore);\n }\n };\n ProtoRecordBuilder.prototype._setArgumentToPureFunction = function(startIndex) {\n var _this = this;\n for (var i = startIndex; i < this.records.length; ++i) {\n var rec = this.records[i];\n if (rec.isPureFunction()) {\n rec.args.forEach(function(recordIndex) {\n return _this.records[recordIndex - 1].argumentToPureFunction = true;\n });\n }\n if (rec.mode === proto_record_1.RecordType.Pipe) {\n rec.args.forEach(function(recordIndex) {\n return _this.records[recordIndex - 1].argumentToPureFunction = true;\n });\n this.records[rec.contextIndex - 1].argumentToPureFunction = true;\n }\n }\n };\n ProtoRecordBuilder.prototype._appendRecords = function(b, variableNames, bindingIndex) {\n if (b.isDirectiveLifecycle()) {\n this.records.push(new proto_record_1.ProtoRecord(proto_record_1.RecordType.DirectiveLifecycle, b.lifecycleEvent, null, [], [], -1, null, this.records.length + 1, b, false, false, false, false, null));\n } else {\n _ConvertAstIntoProtoRecords.append(this.records, b, variableNames, bindingIndex);\n }\n };\n return ProtoRecordBuilder;\n})();\nexports.ProtoRecordBuilder = ProtoRecordBuilder;\nvar _ConvertAstIntoProtoRecords = (function() {\n function _ConvertAstIntoProtoRecords(_records, _bindingRecord, _variableNames, _bindingIndex) {\n this._records = _records;\n this._bindingRecord = _bindingRecord;\n this._variableNames = _variableNames;\n this._bindingIndex = _bindingIndex;\n }\n _ConvertAstIntoProtoRecords.append = function(records, b, variableNames, bindingIndex) {\n var c = new _ConvertAstIntoProtoRecords(records, b, variableNames, bindingIndex);\n b.ast.visit(c);\n };\n _ConvertAstIntoProtoRecords.create = function(b, variableNames) {\n var rec = [];\n _ConvertAstIntoProtoRecords.append(rec, b, variableNames, null);\n rec[rec.length - 1].lastInBinding = true;\n return rec;\n };\n _ConvertAstIntoProtoRecords.prototype.visitImplicitReceiver = function(ast) {\n return this._bindingRecord.implicitReceiver;\n };\n _ConvertAstIntoProtoRecords.prototype.visitInterpolation = function(ast) {\n var args = this._visitAll(ast.expressions);\n return this._addRecord(proto_record_1.RecordType.Interpolate, \"interpolate\", _interpolationFn(ast.strings), args, ast.strings, 0);\n };\n _ConvertAstIntoProtoRecords.prototype.visitLiteralPrimitive = function(ast) {\n return this._addRecord(proto_record_1.RecordType.Const, \"literal\", ast.value, [], null, 0);\n };\n _ConvertAstIntoProtoRecords.prototype.visitPropertyRead = function(ast) {\n var receiver = ast.receiver.visit(this);\n if (lang_1.isPresent(this._variableNames) && collection_1.ListWrapper.contains(this._variableNames, ast.name) && ast.receiver instanceof ast_1.ImplicitReceiver) {\n return this._addRecord(proto_record_1.RecordType.Local, ast.name, ast.name, [], null, receiver);\n } else {\n return this._addRecord(proto_record_1.RecordType.PropertyRead, ast.name, ast.getter, [], null, receiver);\n }\n };\n _ConvertAstIntoProtoRecords.prototype.visitPropertyWrite = function(ast) {\n if (lang_1.isPresent(this._variableNames) && collection_1.ListWrapper.contains(this._variableNames, ast.name) && ast.receiver instanceof ast_1.ImplicitReceiver) {\n throw new exceptions_1.BaseException(\"Cannot reassign a variable binding \" + ast.name);\n } else {\n var receiver = ast.receiver.visit(this);\n var value = ast.value.visit(this);\n return this._addRecord(proto_record_1.RecordType.PropertyWrite, ast.name, ast.setter, [value], null, receiver);\n }\n };\n _ConvertAstIntoProtoRecords.prototype.visitKeyedWrite = function(ast) {\n var obj = ast.obj.visit(this);\n var key = ast.key.visit(this);\n var value = ast.value.visit(this);\n return this._addRecord(proto_record_1.RecordType.KeyedWrite, null, null, [key, value], null, obj);\n };\n _ConvertAstIntoProtoRecords.prototype.visitSafePropertyRead = function(ast) {\n var receiver = ast.receiver.visit(this);\n return this._addRecord(proto_record_1.RecordType.SafeProperty, ast.name, ast.getter, [], null, receiver);\n };\n _ConvertAstIntoProtoRecords.prototype.visitMethodCall = function(ast) {\n var receiver = ast.receiver.visit(this);\n var args = this._visitAll(ast.args);\n if (lang_1.isPresent(this._variableNames) && collection_1.ListWrapper.contains(this._variableNames, ast.name)) {\n var target = this._addRecord(proto_record_1.RecordType.Local, ast.name, ast.name, [], null, receiver);\n return this._addRecord(proto_record_1.RecordType.InvokeClosure, \"closure\", null, args, null, target);\n } else {\n return this._addRecord(proto_record_1.RecordType.InvokeMethod, ast.name, ast.fn, args, null, receiver);\n }\n };\n _ConvertAstIntoProtoRecords.prototype.visitSafeMethodCall = function(ast) {\n var receiver = ast.receiver.visit(this);\n var args = this._visitAll(ast.args);\n return this._addRecord(proto_record_1.RecordType.SafeMethodInvoke, ast.name, ast.fn, args, null, receiver);\n };\n _ConvertAstIntoProtoRecords.prototype.visitFunctionCall = function(ast) {\n var target = ast.target.visit(this);\n var args = this._visitAll(ast.args);\n return this._addRecord(proto_record_1.RecordType.InvokeClosure, \"closure\", null, args, null, target);\n };\n _ConvertAstIntoProtoRecords.prototype.visitLiteralArray = function(ast) {\n var primitiveName = \"arrayFn\" + ast.expressions.length;\n return this._addRecord(proto_record_1.RecordType.CollectionLiteral, primitiveName, _arrayFn(ast.expressions.length), this._visitAll(ast.expressions), null, 0);\n };\n _ConvertAstIntoProtoRecords.prototype.visitLiteralMap = function(ast) {\n return this._addRecord(proto_record_1.RecordType.CollectionLiteral, _mapPrimitiveName(ast.keys), change_detection_util_1.ChangeDetectionUtil.mapFn(ast.keys), this._visitAll(ast.values), null, 0);\n };\n _ConvertAstIntoProtoRecords.prototype.visitBinary = function(ast) {\n var left = ast.left.visit(this);\n switch (ast.operation) {\n case '&&':\n var branchEnd = [null];\n this._addRecord(proto_record_1.RecordType.SkipRecordsIfNot, \"SkipRecordsIfNot\", null, [], branchEnd, left);\n var right = ast.right.visit(this);\n branchEnd[0] = right;\n return this._addRecord(proto_record_1.RecordType.PrimitiveOp, \"cond\", change_detection_util_1.ChangeDetectionUtil.cond, [left, right, left], null, 0);\n case '||':\n var branchEnd = [null];\n this._addRecord(proto_record_1.RecordType.SkipRecordsIf, \"SkipRecordsIf\", null, [], branchEnd, left);\n var right = ast.right.visit(this);\n branchEnd[0] = right;\n return this._addRecord(proto_record_1.RecordType.PrimitiveOp, \"cond\", change_detection_util_1.ChangeDetectionUtil.cond, [left, left, right], null, 0);\n default:\n var right = ast.right.visit(this);\n return this._addRecord(proto_record_1.RecordType.PrimitiveOp, _operationToPrimitiveName(ast.operation), _operationToFunction(ast.operation), [left, right], null, 0);\n }\n };\n _ConvertAstIntoProtoRecords.prototype.visitPrefixNot = function(ast) {\n var exp = ast.expression.visit(this);\n return this._addRecord(proto_record_1.RecordType.PrimitiveOp, \"operation_negate\", change_detection_util_1.ChangeDetectionUtil.operation_negate, [exp], null, 0);\n };\n _ConvertAstIntoProtoRecords.prototype.visitConditional = function(ast) {\n var condition = ast.condition.visit(this);\n var startOfFalseBranch = [null];\n var endOfFalseBranch = [null];\n this._addRecord(proto_record_1.RecordType.SkipRecordsIfNot, \"SkipRecordsIfNot\", null, [], startOfFalseBranch, condition);\n var whenTrue = ast.trueExp.visit(this);\n var skip = this._addRecord(proto_record_1.RecordType.SkipRecords, \"SkipRecords\", null, [], endOfFalseBranch, 0);\n var whenFalse = ast.falseExp.visit(this);\n startOfFalseBranch[0] = skip;\n endOfFalseBranch[0] = whenFalse;\n return this._addRecord(proto_record_1.RecordType.PrimitiveOp, \"cond\", change_detection_util_1.ChangeDetectionUtil.cond, [condition, whenTrue, whenFalse], null, 0);\n };\n _ConvertAstIntoProtoRecords.prototype.visitPipe = function(ast) {\n var value = ast.exp.visit(this);\n var args = this._visitAll(ast.args);\n return this._addRecord(proto_record_1.RecordType.Pipe, ast.name, ast.name, args, null, value);\n };\n _ConvertAstIntoProtoRecords.prototype.visitKeyedRead = function(ast) {\n var obj = ast.obj.visit(this);\n var key = ast.key.visit(this);\n return this._addRecord(proto_record_1.RecordType.KeyedRead, \"keyedAccess\", change_detection_util_1.ChangeDetectionUtil.keyedAccess, [key], null, obj);\n };\n _ConvertAstIntoProtoRecords.prototype.visitChain = function(ast) {\n var _this = this;\n var args = ast.expressions.map(function(e) {\n return e.visit(_this);\n });\n return this._addRecord(proto_record_1.RecordType.Chain, \"chain\", null, args, null, 0);\n };\n _ConvertAstIntoProtoRecords.prototype.visitQuote = function(ast) {\n throw new exceptions_1.BaseException((\"Caught uninterpreted expression at \" + ast.location + \": \" + ast.uninterpretedExpression + \". \") + (\"Expression prefix \" + ast.prefix + \" did not match a template transformer to interpret the expression.\"));\n };\n _ConvertAstIntoProtoRecords.prototype._visitAll = function(asts) {\n var res = collection_1.ListWrapper.createFixedSize(asts.length);\n for (var i = 0; i < asts.length; ++i) {\n res[i] = asts[i].visit(this);\n }\n return res;\n };\n _ConvertAstIntoProtoRecords.prototype._addRecord = function(type, name, funcOrValue, args, fixedArgs, context) {\n var selfIndex = this._records.length + 1;\n if (context instanceof directive_record_1.DirectiveIndex) {\n this._records.push(new proto_record_1.ProtoRecord(type, name, funcOrValue, args, fixedArgs, -1, context, selfIndex, this._bindingRecord, false, false, false, false, this._bindingIndex));\n } else {\n this._records.push(new proto_record_1.ProtoRecord(type, name, funcOrValue, args, fixedArgs, context, null, selfIndex, this._bindingRecord, false, false, false, false, this._bindingIndex));\n }\n return selfIndex;\n };\n return _ConvertAstIntoProtoRecords;\n})();\nfunction _arrayFn(length) {\n switch (length) {\n case 0:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn0;\n case 1:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn1;\n case 2:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn2;\n case 3:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn3;\n case 4:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn4;\n case 5:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn5;\n case 6:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn6;\n case 7:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn7;\n case 8:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn8;\n case 9:\n return change_detection_util_1.ChangeDetectionUtil.arrayFn9;\n default:\n throw new exceptions_1.BaseException(\"Does not support literal maps with more than 9 elements\");\n }\n}\nfunction _mapPrimitiveName(keys) {\n var stringifiedKeys = keys.map(function(k) {\n return lang_1.isString(k) ? \"\\\"\" + k + \"\\\"\" : \"\" + k;\n }).join(', ');\n return \"mapFn([\" + stringifiedKeys + \"])\";\n}\nfunction _operationToPrimitiveName(operation) {\n switch (operation) {\n case '+':\n return \"operation_add\";\n case '-':\n return \"operation_subtract\";\n case '*':\n return \"operation_multiply\";\n case '/':\n return \"operation_divide\";\n case '%':\n return \"operation_remainder\";\n case '==':\n return \"operation_equals\";\n case '!=':\n return \"operation_not_equals\";\n case '===':\n return \"operation_identical\";\n case '!==':\n return \"operation_not_identical\";\n case '<':\n return \"operation_less_then\";\n case '>':\n return \"operation_greater_then\";\n case '<=':\n return \"operation_less_or_equals_then\";\n case '>=':\n return \"operation_greater_or_equals_then\";\n default:\n throw new exceptions_1.BaseException(\"Unsupported operation \" + operation);\n }\n}\nfunction _operationToFunction(operation) {\n switch (operation) {\n case '+':\n return change_detection_util_1.ChangeDetectionUtil.operation_add;\n case '-':\n return change_detection_util_1.ChangeDetectionUtil.operation_subtract;\n case '*':\n return change_detection_util_1.ChangeDetectionUtil.operation_multiply;\n case '/':\n return change_detection_util_1.ChangeDetectionUtil.operation_divide;\n case '%':\n return change_detection_util_1.ChangeDetectionUtil.operation_remainder;\n case '==':\n return change_detection_util_1.ChangeDetectionUtil.operation_equals;\n case '!=':\n return change_detection_util_1.ChangeDetectionUtil.operation_not_equals;\n case '===':\n return change_detection_util_1.ChangeDetectionUtil.operation_identical;\n case '!==':\n return change_detection_util_1.ChangeDetectionUtil.operation_not_identical;\n case '<':\n return change_detection_util_1.ChangeDetectionUtil.operation_less_then;\n case '>':\n return change_detection_util_1.ChangeDetectionUtil.operation_greater_then;\n case '<=':\n return change_detection_util_1.ChangeDetectionUtil.operation_less_or_equals_then;\n case '>=':\n return change_detection_util_1.ChangeDetectionUtil.operation_greater_or_equals_then;\n default:\n throw new exceptions_1.BaseException(\"Unsupported operation \" + operation);\n }\n}\nfunction s(v) {\n return lang_1.isPresent(v) ? \"\" + v : '';\n}\nfunction _interpolationFn(strings) {\n var length = strings.length;\n var c0 = length > 0 ? strings[0] : null;\n var c1 = length > 1 ? strings[1] : null;\n var c2 = length > 2 ? strings[2] : null;\n var c3 = length > 3 ? strings[3] : null;\n var c4 = length > 4 ? strings[4] : null;\n var c5 = length > 5 ? strings[5] : null;\n var c6 = length > 6 ? strings[6] : null;\n var c7 = length > 7 ? strings[7] : null;\n var c8 = length > 8 ? strings[8] : null;\n var c9 = length > 9 ? strings[9] : null;\n switch (length - 1) {\n case 1:\n return function(a1) {\n return c0 + s(a1) + c1;\n };\n case 2:\n return function(a1, a2) {\n return c0 + s(a1) + c1 + s(a2) + c2;\n };\n case 3:\n return function(a1, a2, a3) {\n return c0 + s(a1) + c1 + s(a2) + c2 + s(a3) + c3;\n };\n case 4:\n return function(a1, a2, a3, a4) {\n return c0 + s(a1) + c1 + s(a2) + c2 + s(a3) + c3 + s(a4) + c4;\n };\n case 5:\n return function(a1, a2, a3, a4, a5) {\n return c0 + s(a1) + c1 + s(a2) + c2 + s(a3) + c3 + s(a4) + c4 + s(a5) + c5;\n };\n case 6:\n return function(a1, a2, a3, a4, a5, a6) {\n return c0 + s(a1) + c1 + s(a2) + c2 + s(a3) + c3 + s(a4) + c4 + s(a5) + c5 + s(a6) + c6;\n };\n case 7:\n return function(a1, a2, a3, a4, a5, a6, a7) {\n return c0 + s(a1) + c1 + s(a2) + c2 + s(a3) + c3 + s(a4) + c4 + s(a5) + c5 + s(a6) + c6 + s(a7) + c7;\n };\n case 8:\n return function(a1, a2, a3, a4, a5, a6, a7, a8) {\n return c0 + s(a1) + c1 + s(a2) + c2 + s(a3) + c3 + s(a4) + c4 + s(a5) + c5 + s(a6) + c6 + s(a7) + c7 + s(a8) + c8;\n };\n case 9:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return c0 + s(a1) + c1 + s(a2) + c2 + s(a3) + c3 + s(a4) + c4 + s(a5) + c5 + s(a6) + c6 + s(a7) + c7 + s(a8) + c8 + s(a9) + c9;\n };\n default:\n throw new exceptions_1.BaseException(\"Does not support more than 9 expressions\");\n }\n}\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar abstract_change_detector_1 = require('./abstract_change_detector');\nvar change_detection_util_1 = require('./change_detection_util');\nvar proto_record_1 = require('./proto_record');\nvar codegen_name_util_1 = require('./codegen_name_util');\nvar codegen_logic_util_1 = require('./codegen_logic_util');\nvar codegen_facade_1 = require('./codegen_facade');\nvar constants_1 = require('./constants');\nvar proto_change_detector_1 = require('./proto_change_detector');\nvar IS_CHANGED_LOCAL = \"isChanged\";\nvar CHANGES_LOCAL = \"changes\";\nvar ChangeDetectorJITGenerator = (function() {\n function ChangeDetectorJITGenerator(definition, changeDetectionUtilVarName, abstractChangeDetectorVarName, changeDetectorStateVarName) {\n this.changeDetectionUtilVarName = changeDetectionUtilVarName;\n this.abstractChangeDetectorVarName = abstractChangeDetectorVarName;\n this.changeDetectorStateVarName = changeDetectorStateVarName;\n var propertyBindingRecords = proto_change_detector_1.createPropertyRecords(definition);\n var eventBindingRecords = proto_change_detector_1.createEventRecords(definition);\n var propertyBindingTargets = definition.bindingRecords.map(function(b) {\n return b.target;\n });\n this.id = definition.id;\n this.changeDetectionStrategy = definition.strategy;\n this.genConfig = definition.genConfig;\n this.records = propertyBindingRecords;\n this.propertyBindingTargets = propertyBindingTargets;\n this.eventBindings = eventBindingRecords;\n this.directiveRecords = definition.directiveRecords;\n this._names = new codegen_name_util_1.CodegenNameUtil(this.records, this.eventBindings, this.directiveRecords, this.changeDetectionUtilVarName);\n this._logic = new codegen_logic_util_1.CodegenLogicUtil(this._names, this.changeDetectionUtilVarName, this.changeDetectorStateVarName, this.changeDetectionStrategy);\n this.typeName = codegen_name_util_1.sanitizeName(\"ChangeDetector_\" + this.id);\n }\n ChangeDetectorJITGenerator.prototype.generate = function() {\n var factorySource = \"\\n \" + this.generateSource() + \"\\n return function() {\\n return new \" + this.typeName + \"();\\n }\\n \";\n return new Function(this.abstractChangeDetectorVarName, this.changeDetectionUtilVarName, this.changeDetectorStateVarName, factorySource)(abstract_change_detector_1.AbstractChangeDetector, change_detection_util_1.ChangeDetectionUtil, constants_1.ChangeDetectorState);\n };\n ChangeDetectorJITGenerator.prototype.generateSource = function() {\n return \"\\n var \" + this.typeName + \" = function \" + this.typeName + \"() {\\n \" + this.abstractChangeDetectorVarName + \".call(\\n this, \" + JSON.stringify(this.id) + \", \" + this.records.length + \",\\n \" + this.typeName + \".gen_propertyBindingTargets, \" + this.typeName + \".gen_directiveIndices,\\n \" + codegen_facade_1.codify(this.changeDetectionStrategy) + \");\\n this.dehydrateDirectives(false);\\n }\\n\\n \" + this.typeName + \".prototype = Object.create(\" + this.abstractChangeDetectorVarName + \".prototype);\\n\\n \" + this.typeName + \".prototype.detectChangesInRecordsInternal = function(throwOnChange) {\\n \" + this._names.genInitLocals() + \"\\n var \" + IS_CHANGED_LOCAL + \" = false;\\n var \" + CHANGES_LOCAL + \" = null;\\n\\n \" + this._genAllRecords(this.records) + \"\\n }\\n\\n \" + this._maybeGenHandleEventInternal() + \"\\n\\n \" + this._maybeGenAfterContentLifecycleCallbacks() + \"\\n\\n \" + this._maybeGenAfterViewLifecycleCallbacks() + \"\\n\\n \" + this._maybeGenHydrateDirectives() + \"\\n\\n \" + this._maybeGenDehydrateDirectives() + \"\\n\\n \" + this._genPropertyBindingTargets() + \"\\n\\n \" + this._genDirectiveIndices() + \"\\n \";\n };\n ChangeDetectorJITGenerator.prototype._genPropertyBindingTargets = function() {\n var targets = this._logic.genPropertyBindingTargets(this.propertyBindingTargets, this.genConfig.genDebugInfo);\n return this.typeName + \".gen_propertyBindingTargets = \" + targets + \";\";\n };\n ChangeDetectorJITGenerator.prototype._genDirectiveIndices = function() {\n var indices = this._logic.genDirectiveIndices(this.directiveRecords);\n return this.typeName + \".gen_directiveIndices = \" + indices + \";\";\n };\n ChangeDetectorJITGenerator.prototype._maybeGenHandleEventInternal = function() {\n var _this = this;\n if (this.eventBindings.length > 0) {\n var handlers = this.eventBindings.map(function(eb) {\n return _this._genEventBinding(eb);\n }).join(\"\\n\");\n return \"\\n \" + this.typeName + \".prototype.handleEventInternal = function(eventName, elIndex, locals) {\\n var \" + this._names.getPreventDefaultAccesor() + \" = false;\\n \" + this._names.genInitEventLocals() + \"\\n \" + handlers + \"\\n return \" + this._names.getPreventDefaultAccesor() + \";\\n }\\n \";\n } else {\n return '';\n }\n };\n ChangeDetectorJITGenerator.prototype._genEventBinding = function(eb) {\n var _this = this;\n var codes = [];\n this._endOfBlockIdxs = [];\n collection_1.ListWrapper.forEachWithIndex(eb.records, function(r, i) {\n var code;\n if (r.isConditionalSkipRecord()) {\n code = _this._genConditionalSkip(r, _this._names.getEventLocalName(eb, i));\n } else if (r.isUnconditionalSkipRecord()) {\n code = _this._genUnconditionalSkip(r);\n } else {\n code = _this._genEventBindingEval(eb, r);\n }\n code += _this._genEndOfSkipBlock(i);\n codes.push(code);\n });\n return \"\\n if (eventName === \\\"\" + eb.eventName + \"\\\" && elIndex === \" + eb.elIndex + \") {\\n \" + codes.join(\"\\n\") + \"\\n }\";\n };\n ChangeDetectorJITGenerator.prototype._genEventBindingEval = function(eb, r) {\n if (r.lastInBinding) {\n var evalRecord = this._logic.genEventBindingEvalValue(eb, r);\n var markPath = this._genMarkPathToRootAsCheckOnce(r);\n var prevDefault = this._genUpdatePreventDefault(eb, r);\n return evalRecord + \"\\n\" + markPath + \"\\n\" + prevDefault;\n } else {\n return this._logic.genEventBindingEvalValue(eb, r);\n }\n };\n ChangeDetectorJITGenerator.prototype._genMarkPathToRootAsCheckOnce = function(r) {\n var br = r.bindingRecord;\n if (br.isDefaultChangeDetection()) {\n return \"\";\n } else {\n return this._names.getDetectorName(br.directiveRecord.directiveIndex) + \".markPathToRootAsCheckOnce();\";\n }\n };\n ChangeDetectorJITGenerator.prototype._genUpdatePreventDefault = function(eb, r) {\n var local = this._names.getEventLocalName(eb, r.selfIndex);\n return \"if (\" + local + \" === false) { \" + this._names.getPreventDefaultAccesor() + \" = true};\";\n };\n ChangeDetectorJITGenerator.prototype._maybeGenDehydrateDirectives = function() {\n var destroyPipesCode = this._names.genPipeOnDestroy();\n var destroyDirectivesCode = this._logic.genDirectivesOnDestroy(this.directiveRecords);\n var dehydrateFieldsCode = this._names.genDehydrateFields();\n if (!destroyPipesCode && !destroyDirectivesCode && !dehydrateFieldsCode)\n return '';\n return this.typeName + \".prototype.dehydrateDirectives = function(destroyPipes) {\\n if (destroyPipes) {\\n \" + destroyPipesCode + \"\\n \" + destroyDirectivesCode + \"\\n }\\n \" + dehydrateFieldsCode + \"\\n }\";\n };\n ChangeDetectorJITGenerator.prototype._maybeGenHydrateDirectives = function() {\n var hydrateDirectivesCode = this._logic.genHydrateDirectives(this.directiveRecords);\n var hydrateDetectorsCode = this._logic.genHydrateDetectors(this.directiveRecords);\n if (!hydrateDirectivesCode && !hydrateDetectorsCode)\n return '';\n return this.typeName + \".prototype.hydrateDirectives = function(directives) {\\n \" + hydrateDirectivesCode + \"\\n \" + hydrateDetectorsCode + \"\\n }\";\n };\n ChangeDetectorJITGenerator.prototype._maybeGenAfterContentLifecycleCallbacks = function() {\n var notifications = this._logic.genContentLifecycleCallbacks(this.directiveRecords);\n if (notifications.length > 0) {\n var directiveNotifications = notifications.join(\"\\n\");\n return \"\\n \" + this.typeName + \".prototype.afterContentLifecycleCallbacksInternal = function() {\\n \" + directiveNotifications + \"\\n }\\n \";\n } else {\n return '';\n }\n };\n ChangeDetectorJITGenerator.prototype._maybeGenAfterViewLifecycleCallbacks = function() {\n var notifications = this._logic.genViewLifecycleCallbacks(this.directiveRecords);\n if (notifications.length > 0) {\n var directiveNotifications = notifications.join(\"\\n\");\n return \"\\n \" + this.typeName + \".prototype.afterViewLifecycleCallbacksInternal = function() {\\n \" + directiveNotifications + \"\\n }\\n \";\n } else {\n return '';\n }\n };\n ChangeDetectorJITGenerator.prototype._genAllRecords = function(rs) {\n var codes = [];\n this._endOfBlockIdxs = [];\n for (var i = 0; i < rs.length; i++) {\n var code = void 0;\n var r = rs[i];\n if (r.isLifeCycleRecord()) {\n code = this._genDirectiveLifecycle(r);\n } else if (r.isPipeRecord()) {\n code = this._genPipeCheck(r);\n } else if (r.isConditionalSkipRecord()) {\n code = this._genConditionalSkip(r, this._names.getLocalName(r.contextIndex));\n } else if (r.isUnconditionalSkipRecord()) {\n code = this._genUnconditionalSkip(r);\n } else {\n code = this._genReferenceCheck(r);\n }\n code = \"\\n \" + this._maybeFirstInBinding(r) + \"\\n \" + code + \"\\n \" + this._maybeGenLastInDirective(r) + \"\\n \" + this._genEndOfSkipBlock(i) + \"\\n \";\n codes.push(code);\n }\n return codes.join(\"\\n\");\n };\n ChangeDetectorJITGenerator.prototype._genConditionalSkip = function(r, condition) {\n var maybeNegate = r.mode === proto_record_1.RecordType.SkipRecordsIf ? '!' : '';\n this._endOfBlockIdxs.push(r.fixedArgs[0] - 1);\n return \"if (\" + maybeNegate + condition + \") {\";\n };\n ChangeDetectorJITGenerator.prototype._genUnconditionalSkip = function(r) {\n this._endOfBlockIdxs.pop();\n this._endOfBlockIdxs.push(r.fixedArgs[0] - 1);\n return \"} else {\";\n };\n ChangeDetectorJITGenerator.prototype._genEndOfSkipBlock = function(protoIndex) {\n if (!collection_1.ListWrapper.isEmpty(this._endOfBlockIdxs)) {\n var endOfBlock = collection_1.ListWrapper.last(this._endOfBlockIdxs);\n if (protoIndex === endOfBlock) {\n this._endOfBlockIdxs.pop();\n return '}';\n }\n }\n return '';\n };\n ChangeDetectorJITGenerator.prototype._genDirectiveLifecycle = function(r) {\n if (r.name === \"DoCheck\") {\n return this._genOnCheck(r);\n } else if (r.name === \"OnInit\") {\n return this._genOnInit(r);\n } else if (r.name === \"OnChanges\") {\n return this._genOnChange(r);\n } else {\n throw new exceptions_1.BaseException(\"Unknown lifecycle event '\" + r.name + \"'\");\n }\n };\n ChangeDetectorJITGenerator.prototype._genPipeCheck = function(r) {\n var _this = this;\n var context = this._names.getLocalName(r.contextIndex);\n var argString = r.args.map(function(arg) {\n return _this._names.getLocalName(arg);\n }).join(\", \");\n var oldValue = this._names.getFieldName(r.selfIndex);\n var newValue = this._names.getLocalName(r.selfIndex);\n var pipe = this._names.getPipeName(r.selfIndex);\n var pipeName = r.name;\n var init = \"\\n if (\" + pipe + \" === \" + this.changeDetectionUtilVarName + \".uninitialized) {\\n \" + pipe + \" = \" + this._names.getPipesAccessorName() + \".get('\" + pipeName + \"');\\n }\\n \";\n var read = newValue + \" = \" + pipe + \".pipe.transform(\" + context + \", [\" + argString + \"]);\";\n var contexOrArgCheck = r.args.map(function(a) {\n return _this._names.getChangeName(a);\n });\n contexOrArgCheck.push(this._names.getChangeName(r.contextIndex));\n var condition = \"!\" + pipe + \".pure || (\" + contexOrArgCheck.join(\" || \") + \")\";\n var check = \"\\n \" + this._genThrowOnChangeCheck(oldValue, newValue) + \"\\n if (\" + this.changeDetectionUtilVarName + \".looseNotIdentical(\" + oldValue + \", \" + newValue + \")) {\\n \" + newValue + \" = \" + this.changeDetectionUtilVarName + \".unwrapValue(\" + newValue + \")\\n \" + this._genChangeMarker(r) + \"\\n \" + this._genUpdateDirectiveOrElement(r) + \"\\n \" + this._genAddToChanges(r) + \"\\n \" + oldValue + \" = \" + newValue + \";\\n }\\n \";\n var genCode = r.shouldBeChecked() ? \"\" + read + check : read;\n if (r.isUsedByOtherRecord()) {\n return init + \" if (\" + condition + \") { \" + genCode + \" } else { \" + newValue + \" = \" + oldValue + \"; }\";\n } else {\n return init + \" if (\" + condition + \") { \" + genCode + \" }\";\n }\n };\n ChangeDetectorJITGenerator.prototype._genReferenceCheck = function(r) {\n var _this = this;\n var oldValue = this._names.getFieldName(r.selfIndex);\n var newValue = this._names.getLocalName(r.selfIndex);\n var read = \"\\n \" + this._logic.genPropertyBindingEvalValue(r) + \"\\n \";\n var check = \"\\n \" + this._genThrowOnChangeCheck(oldValue, newValue) + \"\\n if (\" + this.changeDetectionUtilVarName + \".looseNotIdentical(\" + oldValue + \", \" + newValue + \")) {\\n \" + this._genChangeMarker(r) + \"\\n \" + this._genUpdateDirectiveOrElement(r) + \"\\n \" + this._genAddToChanges(r) + \"\\n \" + oldValue + \" = \" + newValue + \";\\n }\\n \";\n var genCode = r.shouldBeChecked() ? \"\" + read + check : read;\n if (r.isPureFunction()) {\n var condition = r.args.map(function(a) {\n return _this._names.getChangeName(a);\n }).join(\" || \");\n if (r.isUsedByOtherRecord()) {\n return \"if (\" + condition + \") { \" + genCode + \" } else { \" + newValue + \" = \" + oldValue + \"; }\";\n } else {\n return \"if (\" + condition + \") { \" + genCode + \" }\";\n }\n } else {\n return genCode;\n }\n };\n ChangeDetectorJITGenerator.prototype._genChangeMarker = function(r) {\n return r.argumentToPureFunction ? this._names.getChangeName(r.selfIndex) + \" = true\" : \"\";\n };\n ChangeDetectorJITGenerator.prototype._genUpdateDirectiveOrElement = function(r) {\n if (!r.lastInBinding)\n return \"\";\n var newValue = this._names.getLocalName(r.selfIndex);\n var notifyDebug = this.genConfig.logBindingUpdate ? \"this.logBindingUpdate(\" + newValue + \");\" : \"\";\n var br = r.bindingRecord;\n if (br.target.isDirective()) {\n var directiveProperty = this._names.getDirectiveName(br.directiveRecord.directiveIndex) + \".\" + br.target.name;\n return \"\\n \" + directiveProperty + \" = \" + newValue + \";\\n \" + notifyDebug + \"\\n \" + IS_CHANGED_LOCAL + \" = true;\\n \";\n } else {\n return \"\\n this.notifyDispatcher(\" + newValue + \");\\n \" + notifyDebug + \"\\n \";\n }\n };\n ChangeDetectorJITGenerator.prototype._genThrowOnChangeCheck = function(oldValue, newValue) {\n if (lang_1.assertionsEnabled()) {\n return \"\\n if (throwOnChange && !\" + this.changeDetectionUtilVarName + \".devModeEqual(\" + oldValue + \", \" + newValue + \")) {\\n this.throwOnChangeError(\" + oldValue + \", \" + newValue + \");\\n }\\n \";\n } else {\n return '';\n }\n };\n ChangeDetectorJITGenerator.prototype._genAddToChanges = function(r) {\n var newValue = this._names.getLocalName(r.selfIndex);\n var oldValue = this._names.getFieldName(r.selfIndex);\n if (!r.bindingRecord.callOnChanges())\n return \"\";\n return CHANGES_LOCAL + \" = this.addChange(\" + CHANGES_LOCAL + \", \" + oldValue + \", \" + newValue + \");\";\n };\n ChangeDetectorJITGenerator.prototype._maybeFirstInBinding = function(r) {\n var prev = change_detection_util_1.ChangeDetectionUtil.protoByIndex(this.records, r.selfIndex - 1);\n var firstInBinding = lang_1.isBlank(prev) || prev.bindingRecord !== r.bindingRecord;\n return firstInBinding && !r.bindingRecord.isDirectiveLifecycle() ? this._names.getPropertyBindingIndex() + \" = \" + r.propertyBindingIndex + \";\" : '';\n };\n ChangeDetectorJITGenerator.prototype._maybeGenLastInDirective = function(r) {\n if (!r.lastInDirective)\n return \"\";\n return \"\\n \" + CHANGES_LOCAL + \" = null;\\n \" + this._genNotifyOnPushDetectors(r) + \"\\n \" + IS_CHANGED_LOCAL + \" = false;\\n \";\n };\n ChangeDetectorJITGenerator.prototype._genOnCheck = function(r) {\n var br = r.bindingRecord;\n return \"if (!throwOnChange) \" + this._names.getDirectiveName(br.directiveRecord.directiveIndex) + \".ngDoCheck();\";\n };\n ChangeDetectorJITGenerator.prototype._genOnInit = function(r) {\n var br = r.bindingRecord;\n return \"if (!throwOnChange && \" + this._names.getStateName() + \" === \" + this.changeDetectorStateVarName + \".NeverChecked) \" + this._names.getDirectiveName(br.directiveRecord.directiveIndex) + \".ngOnInit();\";\n };\n ChangeDetectorJITGenerator.prototype._genOnChange = function(r) {\n var br = r.bindingRecord;\n return \"if (!throwOnChange && \" + CHANGES_LOCAL + \") \" + this._names.getDirectiveName(br.directiveRecord.directiveIndex) + \".ngOnChanges(\" + CHANGES_LOCAL + \");\";\n };\n ChangeDetectorJITGenerator.prototype._genNotifyOnPushDetectors = function(r) {\n var br = r.bindingRecord;\n if (!r.lastInDirective || br.isDefaultChangeDetection())\n return \"\";\n var retVal = \"\\n if(\" + IS_CHANGED_LOCAL + \") {\\n \" + this._names.getDetectorName(br.directiveRecord.directiveIndex) + \".markAsCheckOnce();\\n }\\n \";\n return retVal;\n };\n return ChangeDetectorJITGenerator;\n})();\nexports.ChangeDetectorJITGenerator = ChangeDetectorJITGenerator;\n","/* */ \n'use strict';\nvar change_detection_jit_generator_1 = require('./change_detection_jit_generator');\nvar JitProtoChangeDetector = (function() {\n function JitProtoChangeDetector(definition) {\n this.definition = definition;\n this._factory = this._createFactory(definition);\n }\n JitProtoChangeDetector.isSupported = function() {\n return true;\n };\n JitProtoChangeDetector.prototype.instantiate = function() {\n return this._factory();\n };\n JitProtoChangeDetector.prototype._createFactory = function(definition) {\n return new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition, 'util', 'AbstractChangeDetector', 'ChangeDetectorStatus').generate();\n };\n return JitProtoChangeDetector;\n})();\nexports.JitProtoChangeDetector = JitProtoChangeDetector;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar exceptions_1 = require('../../facade/exceptions');\nvar ExpressionChangedAfterItHasBeenCheckedException = (function(_super) {\n __extends(ExpressionChangedAfterItHasBeenCheckedException, _super);\n function ExpressionChangedAfterItHasBeenCheckedException(exp, oldValue, currValue, context) {\n _super.call(this, (\"Expression '\" + exp + \"' has changed after it was checked. \") + (\"Previous value: '\" + oldValue + \"'. Current value: '\" + currValue + \"'\"));\n }\n return ExpressionChangedAfterItHasBeenCheckedException;\n})(exceptions_1.BaseException);\nexports.ExpressionChangedAfterItHasBeenCheckedException = ExpressionChangedAfterItHasBeenCheckedException;\nvar ChangeDetectionError = (function(_super) {\n __extends(ChangeDetectionError, _super);\n function ChangeDetectionError(exp, originalException, originalStack, context) {\n _super.call(this, originalException + \" in [\" + exp + \"]\", originalException, originalStack, context);\n this.location = exp;\n }\n return ChangeDetectionError;\n})(exceptions_1.WrappedException);\nexports.ChangeDetectionError = ChangeDetectionError;\nvar DehydratedException = (function(_super) {\n __extends(DehydratedException, _super);\n function DehydratedException(details) {\n _super.call(this, \"Attempt to use a dehydrated detector: \" + details);\n }\n return DehydratedException;\n})(exceptions_1.BaseException);\nexports.DehydratedException = DehydratedException;\nvar EventEvaluationError = (function(_super) {\n __extends(EventEvaluationError, _super);\n function EventEvaluationError(eventName, originalException, originalStack, context) {\n _super.call(this, \"Error during evaluation of \\\"\" + eventName + \"\\\"\", originalException, originalStack, context);\n }\n return EventEvaluationError;\n})(exceptions_1.WrappedException);\nexports.EventEvaluationError = EventEvaluationError;\nvar EventEvaluationErrorContext = (function() {\n function EventEvaluationErrorContext(element, componentElement, context, locals, injector) {\n this.element = element;\n this.componentElement = componentElement;\n this.context = context;\n this.locals = locals;\n this.injector = injector;\n }\n return EventEvaluationErrorContext;\n})();\nexports.EventEvaluationErrorContext = EventEvaluationErrorContext;\n","/* */ \n'use strict';\nvar lang_1 = require('../../../facade/lang');\nvar exceptions_1 = require('../../../facade/exceptions');\nvar collection_1 = require('../../../facade/collection');\nvar Locals = (function() {\n function Locals(parent, current) {\n this.parent = parent;\n this.current = current;\n }\n Locals.prototype.contains = function(name) {\n if (this.current.has(name)) {\n return true;\n }\n if (lang_1.isPresent(this.parent)) {\n return this.parent.contains(name);\n }\n return false;\n };\n Locals.prototype.get = function(name) {\n if (this.current.has(name)) {\n return this.current.get(name);\n }\n if (lang_1.isPresent(this.parent)) {\n return this.parent.get(name);\n }\n throw new exceptions_1.BaseException(\"Cannot find '\" + name + \"'\");\n };\n Locals.prototype.set = function(name, value) {\n if (this.current.has(name)) {\n this.current.set(name, value);\n } else {\n throw new exceptions_1.BaseException(\"Setting of new keys post-construction is not supported. Key: \" + name + \".\");\n }\n };\n Locals.prototype.clearLocalValues = function() {\n collection_1.MapWrapper.clearValues(this.current);\n };\n return Locals;\n})();\nexports.Locals = Locals;\n","/* */ \n'use strict';function isObservable(value) {\r\n return false;\r\n}\r\nexports.isObservable = isObservable;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2YWJsZV9mYWNhZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhbmd1bGFyMi9zcmMvY29yZS9jaGFuZ2VfZGV0ZWN0aW9uL29ic2VydmFibGVfZmFjYWRlLnRzIl0sIm5hbWVzIjpbImlzT2JzZXJ2YWJsZSJdLCJtYXBwaW5ncyI6IkFBQUEsc0JBQTZCLEtBQVU7SUFDckNBLE1BQU1BLENBQUNBLEtBQUtBLENBQUNBO0FBQ2ZBLENBQUNBO0FBRmUsb0JBQVksZUFFM0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpc09ic2VydmFibGUodmFsdWU6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gZmFsc2U7XG59Il19","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar collection_1 = require('../../facade/collection');\nvar change_detection_util_1 = require('./change_detection_util');\nvar change_detector_ref_1 = require('./change_detector_ref');\nvar exceptions_1 = require('./exceptions');\nvar locals_1 = require('./parser/locals');\nvar constants_1 = require('./constants');\nvar profile_1 = require('../profile/profile');\nvar observable_facade_1 = require('./observable_facade');\nvar async_1 = require('../../facade/async');\nvar _scope_check = profile_1.wtfCreateScope(\"ChangeDetector#check(ascii id, bool throwOnChange)\");\nvar _Context = (function() {\n function _Context(element, componentElement, context, locals, injector, expression) {\n this.element = element;\n this.componentElement = componentElement;\n this.context = context;\n this.locals = locals;\n this.injector = injector;\n this.expression = expression;\n }\n return _Context;\n})();\nvar AbstractChangeDetector = (function() {\n function AbstractChangeDetector(id, numberOfPropertyProtoRecords, bindingTargets, directiveIndices, strategy) {\n this.id = id;\n this.numberOfPropertyProtoRecords = numberOfPropertyProtoRecords;\n this.bindingTargets = bindingTargets;\n this.directiveIndices = directiveIndices;\n this.strategy = strategy;\n this.contentChildren = [];\n this.viewChildren = [];\n this.state = constants_1.ChangeDetectorState.NeverChecked;\n this.locals = null;\n this.mode = null;\n this.pipes = null;\n this.ref = new change_detector_ref_1.ChangeDetectorRef_(this);\n }\n AbstractChangeDetector.prototype.addContentChild = function(cd) {\n this.contentChildren.push(cd);\n cd.parent = this;\n };\n AbstractChangeDetector.prototype.removeContentChild = function(cd) {\n collection_1.ListWrapper.remove(this.contentChildren, cd);\n };\n AbstractChangeDetector.prototype.addViewChild = function(cd) {\n this.viewChildren.push(cd);\n cd.parent = this;\n };\n AbstractChangeDetector.prototype.removeViewChild = function(cd) {\n collection_1.ListWrapper.remove(this.viewChildren, cd);\n };\n AbstractChangeDetector.prototype.remove = function() {\n this.parent.removeContentChild(this);\n };\n AbstractChangeDetector.prototype.handleEvent = function(eventName, elIndex, event) {\n if (!this.hydrated()) {\n this.throwDehydratedError(this.id + \" -> \" + eventName);\n }\n try {\n var locals = new Map();\n locals.set('$event', event);\n var res = !this.handleEventInternal(eventName, elIndex, new locals_1.Locals(this.locals, locals));\n this.markPathToRootAsCheckOnce();\n return res;\n } catch (e) {\n var c = this.dispatcher.getDebugContext(null, elIndex, null);\n var context = lang_1.isPresent(c) ? new exceptions_1.EventEvaluationErrorContext(c.element, c.componentElement, c.context, c.locals, c.injector) : null;\n throw new exceptions_1.EventEvaluationError(eventName, e, e.stack, context);\n }\n };\n AbstractChangeDetector.prototype.handleEventInternal = function(eventName, elIndex, locals) {\n return false;\n };\n AbstractChangeDetector.prototype.detectChanges = function() {\n this.runDetectChanges(false);\n };\n AbstractChangeDetector.prototype.checkNoChanges = function() {\n if (lang_1.assertionsEnabled()) {\n this.runDetectChanges(true);\n }\n };\n AbstractChangeDetector.prototype.runDetectChanges = function(throwOnChange) {\n if (this.mode === constants_1.ChangeDetectionStrategy.Detached || this.mode === constants_1.ChangeDetectionStrategy.Checked || this.state === constants_1.ChangeDetectorState.Errored)\n return;\n var s = _scope_check(this.id, throwOnChange);\n this.detectChangesInRecords(throwOnChange);\n this._detectChangesContentChildren(throwOnChange);\n if (!throwOnChange)\n this.afterContentLifecycleCallbacks();\n this._detectChangesInViewChildren(throwOnChange);\n if (!throwOnChange)\n this.afterViewLifecycleCallbacks();\n if (this.mode === constants_1.ChangeDetectionStrategy.CheckOnce)\n this.mode = constants_1.ChangeDetectionStrategy.Checked;\n this.state = constants_1.ChangeDetectorState.CheckedBefore;\n profile_1.wtfLeave(s);\n };\n AbstractChangeDetector.prototype.detectChangesInRecords = function(throwOnChange) {\n if (!this.hydrated()) {\n this.throwDehydratedError(this.id);\n }\n try {\n this.detectChangesInRecordsInternal(throwOnChange);\n } catch (e) {\n if (!(e instanceof exceptions_1.ExpressionChangedAfterItHasBeenCheckedException)) {\n this.state = constants_1.ChangeDetectorState.Errored;\n }\n this._throwError(e, e.stack);\n }\n };\n AbstractChangeDetector.prototype.detectChangesInRecordsInternal = function(throwOnChange) {};\n AbstractChangeDetector.prototype.hydrate = function(context, locals, dispatcher, pipes) {\n this.dispatcher = dispatcher;\n this.mode = change_detection_util_1.ChangeDetectionUtil.changeDetectionMode(this.strategy);\n this.context = context;\n if (this.strategy === constants_1.ChangeDetectionStrategy.OnPushObserve) {\n this.observeComponent(context);\n }\n this.locals = locals;\n this.pipes = pipes;\n this.hydrateDirectives(dispatcher);\n this.state = constants_1.ChangeDetectorState.NeverChecked;\n };\n AbstractChangeDetector.prototype.hydrateDirectives = function(dispatcher) {};\n AbstractChangeDetector.prototype.dehydrate = function() {\n this.dehydrateDirectives(true);\n if (this.strategy === constants_1.ChangeDetectionStrategy.OnPushObserve) {\n this._unsubsribeFromObservables();\n }\n this._unsubscribeFromOutputs();\n this.dispatcher = null;\n this.context = null;\n this.locals = null;\n this.pipes = null;\n };\n AbstractChangeDetector.prototype.dehydrateDirectives = function(destroyPipes) {};\n AbstractChangeDetector.prototype.hydrated = function() {\n return lang_1.isPresent(this.context);\n };\n AbstractChangeDetector.prototype.destroyRecursive = function() {\n this.dispatcher.notifyOnDestroy();\n this.dehydrate();\n var children = this.contentChildren;\n for (var i = 0; i < children.length; i++) {\n children[i].destroyRecursive();\n }\n children = this.viewChildren;\n for (var i = 0; i < children.length; i++) {\n children[i].destroyRecursive();\n }\n };\n AbstractChangeDetector.prototype.afterContentLifecycleCallbacks = function() {\n this.dispatcher.notifyAfterContentChecked();\n this.afterContentLifecycleCallbacksInternal();\n };\n AbstractChangeDetector.prototype.afterContentLifecycleCallbacksInternal = function() {};\n AbstractChangeDetector.prototype.afterViewLifecycleCallbacks = function() {\n this.dispatcher.notifyAfterViewChecked();\n this.afterViewLifecycleCallbacksInternal();\n };\n AbstractChangeDetector.prototype.afterViewLifecycleCallbacksInternal = function() {};\n AbstractChangeDetector.prototype._detectChangesContentChildren = function(throwOnChange) {\n var c = this.contentChildren;\n for (var i = 0; i < c.length; ++i) {\n c[i].runDetectChanges(throwOnChange);\n }\n };\n AbstractChangeDetector.prototype._detectChangesInViewChildren = function(throwOnChange) {\n var c = this.viewChildren;\n for (var i = 0; i < c.length; ++i) {\n c[i].runDetectChanges(throwOnChange);\n }\n };\n AbstractChangeDetector.prototype.markAsCheckOnce = function() {\n this.mode = constants_1.ChangeDetectionStrategy.CheckOnce;\n };\n AbstractChangeDetector.prototype.markPathToRootAsCheckOnce = function() {\n var c = this;\n while (lang_1.isPresent(c) && c.mode !== constants_1.ChangeDetectionStrategy.Detached) {\n if (c.mode === constants_1.ChangeDetectionStrategy.Checked)\n c.mode = constants_1.ChangeDetectionStrategy.CheckOnce;\n c = c.parent;\n }\n };\n AbstractChangeDetector.prototype._unsubsribeFromObservables = function() {\n if (lang_1.isPresent(this.subscriptions)) {\n for (var i = 0; i < this.subscriptions.length; ++i) {\n var s = this.subscriptions[i];\n if (lang_1.isPresent(this.subscriptions[i])) {\n s.cancel();\n this.subscriptions[i] = null;\n }\n }\n }\n };\n AbstractChangeDetector.prototype._unsubscribeFromOutputs = function() {\n if (lang_1.isPresent(this.outputSubscriptions)) {\n for (var i = 0; i < this.outputSubscriptions.length; ++i) {\n async_1.ObservableWrapper.dispose(this.outputSubscriptions[i]);\n this.outputSubscriptions[i] = null;\n }\n }\n };\n AbstractChangeDetector.prototype.observeValue = function(value, index) {\n var _this = this;\n if (observable_facade_1.isObservable(value)) {\n this._createArrayToStoreObservables();\n if (lang_1.isBlank(this.subscriptions[index])) {\n this.streams[index] = value.changes;\n this.subscriptions[index] = value.changes.listen(function(_) {\n return _this.ref.markForCheck();\n });\n } else if (this.streams[index] !== value.changes) {\n this.subscriptions[index].cancel();\n this.streams[index] = value.changes;\n this.subscriptions[index] = value.changes.listen(function(_) {\n return _this.ref.markForCheck();\n });\n }\n }\n return value;\n };\n AbstractChangeDetector.prototype.observeDirective = function(value, index) {\n var _this = this;\n if (observable_facade_1.isObservable(value)) {\n this._createArrayToStoreObservables();\n var arrayIndex = this.numberOfPropertyProtoRecords + index + 2;\n this.streams[arrayIndex] = value.changes;\n this.subscriptions[arrayIndex] = value.changes.listen(function(_) {\n return _this.ref.markForCheck();\n });\n }\n return value;\n };\n AbstractChangeDetector.prototype.observeComponent = function(value) {\n var _this = this;\n if (observable_facade_1.isObservable(value)) {\n this._createArrayToStoreObservables();\n var index = this.numberOfPropertyProtoRecords + 1;\n this.streams[index] = value.changes;\n this.subscriptions[index] = value.changes.listen(function(_) {\n return _this.ref.markForCheck();\n });\n }\n return value;\n };\n AbstractChangeDetector.prototype._createArrayToStoreObservables = function() {\n if (lang_1.isBlank(this.subscriptions)) {\n this.subscriptions = collection_1.ListWrapper.createFixedSize(this.numberOfPropertyProtoRecords + this.directiveIndices.length + 2);\n this.streams = collection_1.ListWrapper.createFixedSize(this.numberOfPropertyProtoRecords + this.directiveIndices.length + 2);\n }\n };\n AbstractChangeDetector.prototype.getDirectiveFor = function(directives, index) {\n return directives.getDirectiveFor(this.directiveIndices[index]);\n };\n AbstractChangeDetector.prototype.getDetectorFor = function(directives, index) {\n return directives.getDetectorFor(this.directiveIndices[index]);\n };\n AbstractChangeDetector.prototype.notifyDispatcher = function(value) {\n this.dispatcher.notifyOnBinding(this._currentBinding(), value);\n };\n AbstractChangeDetector.prototype.logBindingUpdate = function(value) {\n this.dispatcher.logBindingUpdate(this._currentBinding(), value);\n };\n AbstractChangeDetector.prototype.addChange = function(changes, oldValue, newValue) {\n if (lang_1.isBlank(changes)) {\n changes = {};\n }\n changes[this._currentBinding().name] = change_detection_util_1.ChangeDetectionUtil.simpleChange(oldValue, newValue);\n return changes;\n };\n AbstractChangeDetector.prototype._throwError = function(exception, stack) {\n var error;\n try {\n var c = this.dispatcher.getDebugContext(null, this._currentBinding().elementIndex, null);\n var context = lang_1.isPresent(c) ? new _Context(c.element, c.componentElement, c.context, c.locals, c.injector, this._currentBinding().debug) : null;\n error = new exceptions_1.ChangeDetectionError(this._currentBinding().debug, exception, stack, context);\n } catch (e) {\n error = new exceptions_1.ChangeDetectionError(null, exception, stack, null);\n }\n throw error;\n };\n AbstractChangeDetector.prototype.throwOnChangeError = function(oldValue, newValue) {\n throw new exceptions_1.ExpressionChangedAfterItHasBeenCheckedException(this._currentBinding().debug, oldValue, newValue, null);\n };\n AbstractChangeDetector.prototype.throwDehydratedError = function(detail) {\n throw new exceptions_1.DehydratedException(detail);\n };\n AbstractChangeDetector.prototype._currentBinding = function() {\n return this.bindingTargets[this.propertyBindingIndex];\n };\n return AbstractChangeDetector;\n})();\nexports.AbstractChangeDetector = AbstractChangeDetector;\n","/* */ \n'use strict';(function (RecordType) {\r\n RecordType[RecordType[\"Self\"] = 0] = \"Self\";\r\n RecordType[RecordType[\"Const\"] = 1] = \"Const\";\r\n RecordType[RecordType[\"PrimitiveOp\"] = 2] = \"PrimitiveOp\";\r\n RecordType[RecordType[\"PropertyRead\"] = 3] = \"PropertyRead\";\r\n RecordType[RecordType[\"PropertyWrite\"] = 4] = \"PropertyWrite\";\r\n RecordType[RecordType[\"Local\"] = 5] = \"Local\";\r\n RecordType[RecordType[\"InvokeMethod\"] = 6] = \"InvokeMethod\";\r\n RecordType[RecordType[\"InvokeClosure\"] = 7] = \"InvokeClosure\";\r\n RecordType[RecordType[\"KeyedRead\"] = 8] = \"KeyedRead\";\r\n RecordType[RecordType[\"KeyedWrite\"] = 9] = \"KeyedWrite\";\r\n RecordType[RecordType[\"Pipe\"] = 10] = \"Pipe\";\r\n RecordType[RecordType[\"Interpolate\"] = 11] = \"Interpolate\";\r\n RecordType[RecordType[\"SafeProperty\"] = 12] = \"SafeProperty\";\r\n RecordType[RecordType[\"CollectionLiteral\"] = 13] = \"CollectionLiteral\";\r\n RecordType[RecordType[\"SafeMethodInvoke\"] = 14] = \"SafeMethodInvoke\";\r\n RecordType[RecordType[\"DirectiveLifecycle\"] = 15] = \"DirectiveLifecycle\";\r\n RecordType[RecordType[\"Chain\"] = 16] = \"Chain\";\r\n RecordType[RecordType[\"SkipRecordsIf\"] = 17] = \"SkipRecordsIf\";\r\n RecordType[RecordType[\"SkipRecordsIfNot\"] = 18] = \"SkipRecordsIfNot\";\r\n RecordType[RecordType[\"SkipRecords\"] = 19] = \"SkipRecords\"; // Skip records unconditionally\r\n})(exports.RecordType || (exports.RecordType = {}));\r\nvar RecordType = exports.RecordType;\r\nvar ProtoRecord = (function () {\r\n function ProtoRecord(mode, name, funcOrValue, args, fixedArgs, contextIndex, directiveIndex, selfIndex, bindingRecord, lastInBinding, lastInDirective, argumentToPureFunction, referencedBySelf, propertyBindingIndex) {\r\n this.mode = mode;\r\n this.name = name;\r\n this.funcOrValue = funcOrValue;\r\n this.args = args;\r\n this.fixedArgs = fixedArgs;\r\n this.contextIndex = contextIndex;\r\n this.directiveIndex = directiveIndex;\r\n this.selfIndex = selfIndex;\r\n this.bindingRecord = bindingRecord;\r\n this.lastInBinding = lastInBinding;\r\n this.lastInDirective = lastInDirective;\r\n this.argumentToPureFunction = argumentToPureFunction;\r\n this.referencedBySelf = referencedBySelf;\r\n this.propertyBindingIndex = propertyBindingIndex;\r\n }\r\n ProtoRecord.prototype.isPureFunction = function () {\r\n return this.mode === RecordType.Interpolate || this.mode === RecordType.CollectionLiteral;\r\n };\r\n ProtoRecord.prototype.isUsedByOtherRecord = function () { return !this.lastInBinding || this.referencedBySelf; };\r\n ProtoRecord.prototype.shouldBeChecked = function () {\r\n return this.argumentToPureFunction || this.lastInBinding || this.isPureFunction() ||\r\n this.isPipeRecord();\r\n };\r\n ProtoRecord.prototype.isPipeRecord = function () { return this.mode === RecordType.Pipe; };\r\n ProtoRecord.prototype.isConditionalSkipRecord = function () {\r\n return this.mode === RecordType.SkipRecordsIfNot || this.mode === RecordType.SkipRecordsIf;\r\n };\r\n ProtoRecord.prototype.isUnconditionalSkipRecord = function () { return this.mode === RecordType.SkipRecords; };\r\n ProtoRecord.prototype.isSkipRecord = function () {\r\n return this.isConditionalSkipRecord() || this.isUnconditionalSkipRecord();\r\n };\r\n ProtoRecord.prototype.isLifeCycleRecord = function () { return this.mode === RecordType.DirectiveLifecycle; };\r\n return ProtoRecord;\r\n})();\r\nexports.ProtoRecord = ProtoRecord;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdG9fcmVjb3JkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2NvcmUvY2hhbmdlX2RldGVjdGlvbi9wcm90b19yZWNvcmQudHMiXSwibmFtZXMiOlsiUmVjb3JkVHlwZSIsIlByb3RvUmVjb3JkIiwiUHJvdG9SZWNvcmQuY29uc3RydWN0b3IiLCJQcm90b1JlY29yZC5pc1B1cmVGdW5jdGlvbiIsIlByb3RvUmVjb3JkLmlzVXNlZEJ5T3RoZXJSZWNvcmQiLCJQcm90b1JlY29yZC5zaG91bGRCZUNoZWNrZWQiLCJQcm90b1JlY29yZC5pc1BpcGVSZWNvcmQiLCJQcm90b1JlY29yZC5pc0NvbmRpdGlvbmFsU2tp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kKCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLm1vZGUgPT09IFJlY29yZFR5cGUuU2tpcFJlY29yZHNJZk5vdCB8fCB0aGlzLm1vZGUgPT09IFJlY29yZFR5cGUuU2tpcFJlY29yZHNJZjtcbiAgfVxuXG4gIGlzVW5jb25kaXRpb25hbFNraXBSZWNvcmQoKTogYm9vbGVhbiB7IHJldHVybiB0aGlzLm1vZGUgPT09IFJlY29yZFR5cGUuU2tpcFJlY29yZHM7IH1cblxuICBpc1NraXBSZWNvcmQoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuaXNDb25kaXRpb25hbFNraXBSZWNvcmQoKSB8fCB0aGlzLmlzVW5jb25kaXRpb25hbFNraXBSZWNvcmQoKTtcbiAgfVxuXG4gIGlzTGlmZUN5Y2xlUmVjb3JkKCk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5tb2RlID09PSBSZWNvcmRUeXBlLkRpcmVjdGl2ZUxpZmVjeWNsZTsgfVxufVxuIl19","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar abstract_change_detector_1 = require('./abstract_change_detector');\nvar change_detection_util_1 = require('./change_detection_util');\nvar constants_1 = require('./constants');\nvar proto_record_1 = require('./proto_record');\nvar reflection_1 = require('../reflection/reflection');\nvar async_1 = require('../../facade/async');\nvar DynamicChangeDetector = (function(_super) {\n __extends(DynamicChangeDetector, _super);\n function DynamicChangeDetector(id, numberOfPropertyProtoRecords, propertyBindingTargets, directiveIndices, strategy, _records, _eventBindings, _directiveRecords, _genConfig) {\n _super.call(this, id, numberOfPropertyProtoRecords, propertyBindingTargets, directiveIndices, strategy);\n this._records = _records;\n this._eventBindings = _eventBindings;\n this._directiveRecords = _directiveRecords;\n this._genConfig = _genConfig;\n var len = _records.length + 1;\n this.values = collection_1.ListWrapper.createFixedSize(len);\n this.localPipes = collection_1.ListWrapper.createFixedSize(len);\n this.prevContexts = collection_1.ListWrapper.createFixedSize(len);\n this.changes = collection_1.ListWrapper.createFixedSize(len);\n this.dehydrateDirectives(false);\n }\n DynamicChangeDetector.prototype.handleEventInternal = function(eventName, elIndex, locals) {\n var _this = this;\n var preventDefault = false;\n this._matchingEventBindings(eventName, elIndex).forEach(function(rec) {\n var res = _this._processEventBinding(rec, locals);\n if (res === false) {\n preventDefault = true;\n }\n });\n return preventDefault;\n };\n DynamicChangeDetector.prototype._processEventBinding = function(eb, locals) {\n var values = collection_1.ListWrapper.createFixedSize(eb.records.length);\n values[0] = this.values[0];\n for (var protoIdx = 0; protoIdx < eb.records.length; ++protoIdx) {\n var proto = eb.records[protoIdx];\n if (proto.isSkipRecord()) {\n protoIdx += this._computeSkipLength(protoIdx, proto, values);\n } else {\n var res = this._calculateCurrValue(proto, values, locals);\n if (proto.lastInBinding) {\n this._markPathAsCheckOnce(proto);\n return res;\n } else {\n this._writeSelf(proto, res, values);\n }\n }\n }\n throw new exceptions_1.BaseException(\"Cannot be reached\");\n };\n DynamicChangeDetector.prototype._computeSkipLength = function(protoIndex, proto, values) {\n if (proto.mode === proto_record_1.RecordType.SkipRecords) {\n return proto.fixedArgs[0] - protoIndex - 1;\n }\n if (proto.mode === proto_record_1.RecordType.SkipRecordsIf) {\n var condition = this._readContext(proto, values);\n return condition ? proto.fixedArgs[0] - protoIndex - 1 : 0;\n }\n if (proto.mode === proto_record_1.RecordType.SkipRecordsIfNot) {\n var condition = this._readContext(proto, values);\n return condition ? 0 : proto.fixedArgs[0] - protoIndex - 1;\n }\n throw new exceptions_1.BaseException(\"Cannot be reached\");\n };\n DynamicChangeDetector.prototype._markPathAsCheckOnce = function(proto) {\n if (!proto.bindingRecord.isDefaultChangeDetection()) {\n var dir = proto.bindingRecord.directiveRecord;\n this._getDetectorFor(dir.directiveIndex).markPathToRootAsCheckOnce();\n }\n };\n DynamicChangeDetector.prototype._matchingEventBindings = function(eventName, elIndex) {\n return this._eventBindings.filter(function(eb) {\n return eb.eventName == eventName && eb.elIndex === elIndex;\n });\n };\n DynamicChangeDetector.prototype.hydrateDirectives = function(dispatcher) {\n var _this = this;\n this.values[0] = this.context;\n this.dispatcher = dispatcher;\n if (this.strategy === constants_1.ChangeDetectionStrategy.OnPushObserve) {\n for (var i = 0; i < this.directiveIndices.length; ++i) {\n var index = this.directiveIndices[i];\n _super.prototype.observeDirective.call(this, this._getDirectiveFor(index), i);\n }\n }\n this.outputSubscriptions = [];\n for (var i = 0; i < this._directiveRecords.length; ++i) {\n var r = this._directiveRecords[i];\n if (lang_1.isPresent(r.outputs)) {\n r.outputs.forEach(function(output) {\n var eventHandler = _this._createEventHandler(r.directiveIndex.elementIndex, output[1]);\n var directive = _this._getDirectiveFor(r.directiveIndex);\n var getter = reflection_1.reflector.getter(output[0]);\n _this.outputSubscriptions.push(async_1.ObservableWrapper.subscribe(getter(directive), eventHandler));\n });\n }\n }\n };\n DynamicChangeDetector.prototype._createEventHandler = function(boundElementIndex, eventName) {\n var _this = this;\n return function(event) {\n return _this.handleEvent(eventName, boundElementIndex, event);\n };\n };\n DynamicChangeDetector.prototype.dehydrateDirectives = function(destroyPipes) {\n if (destroyPipes) {\n this._destroyPipes();\n this._destroyDirectives();\n }\n this.values[0] = null;\n collection_1.ListWrapper.fill(this.values, change_detection_util_1.ChangeDetectionUtil.uninitialized, 1);\n collection_1.ListWrapper.fill(this.changes, false);\n collection_1.ListWrapper.fill(this.localPipes, null);\n collection_1.ListWrapper.fill(this.prevContexts, change_detection_util_1.ChangeDetectionUtil.uninitialized);\n };\n DynamicChangeDetector.prototype._destroyPipes = function() {\n for (var i = 0; i < this.localPipes.length; ++i) {\n if (lang_1.isPresent(this.localPipes[i])) {\n change_detection_util_1.ChangeDetectionUtil.callPipeOnDestroy(this.localPipes[i]);\n }\n }\n };\n DynamicChangeDetector.prototype._destroyDirectives = function() {\n for (var i = 0; i < this._directiveRecords.length; ++i) {\n var record = this._directiveRecords[i];\n if (record.callOnDestroy) {\n this._getDirectiveFor(record.directiveIndex).ngOnDestroy();\n }\n }\n };\n DynamicChangeDetector.prototype.checkNoChanges = function() {\n this.runDetectChanges(true);\n };\n DynamicChangeDetector.prototype.detectChangesInRecordsInternal = function(throwOnChange) {\n var protos = this._records;\n var changes = null;\n var isChanged = false;\n for (var protoIdx = 0; protoIdx < protos.length; ++protoIdx) {\n var proto = protos[protoIdx];\n var bindingRecord = proto.bindingRecord;\n var directiveRecord = bindingRecord.directiveRecord;\n if (this._firstInBinding(proto)) {\n this.propertyBindingIndex = proto.propertyBindingIndex;\n }\n if (proto.isLifeCycleRecord()) {\n if (proto.name === \"DoCheck\" && !throwOnChange) {\n this._getDirectiveFor(directiveRecord.directiveIndex).ngDoCheck();\n } else if (proto.name === \"OnInit\" && !throwOnChange && this.state == constants_1.ChangeDetectorState.NeverChecked) {\n this._getDirectiveFor(directiveRecord.directiveIndex).ngOnInit();\n } else if (proto.name === \"OnChanges\" && lang_1.isPresent(changes) && !throwOnChange) {\n this._getDirectiveFor(directiveRecord.directiveIndex).ngOnChanges(changes);\n }\n } else if (proto.isSkipRecord()) {\n protoIdx += this._computeSkipLength(protoIdx, proto, this.values);\n } else {\n var change = this._check(proto, throwOnChange, this.values, this.locals);\n if (lang_1.isPresent(change)) {\n this._updateDirectiveOrElement(change, bindingRecord);\n isChanged = true;\n changes = this._addChange(bindingRecord, change, changes);\n }\n }\n if (proto.lastInDirective) {\n changes = null;\n if (isChanged && !bindingRecord.isDefaultChangeDetection()) {\n this._getDetectorFor(directiveRecord.directiveIndex).markAsCheckOnce();\n }\n isChanged = false;\n }\n }\n };\n DynamicChangeDetector.prototype._firstInBinding = function(r) {\n var prev = change_detection_util_1.ChangeDetectionUtil.protoByIndex(this._records, r.selfIndex - 1);\n return lang_1.isBlank(prev) || prev.bindingRecord !== r.bindingRecord;\n };\n DynamicChangeDetector.prototype.afterContentLifecycleCallbacksInternal = function() {\n var dirs = this._directiveRecords;\n for (var i = dirs.length - 1; i >= 0; --i) {\n var dir = dirs[i];\n if (dir.callAfterContentInit && this.state == constants_1.ChangeDetectorState.NeverChecked) {\n this._getDirectiveFor(dir.directiveIndex).ngAfterContentInit();\n }\n if (dir.callAfterContentChecked) {\n this._getDirectiveFor(dir.directiveIndex).ngAfterContentChecked();\n }\n }\n };\n DynamicChangeDetector.prototype.afterViewLifecycleCallbacksInternal = function() {\n var dirs = this._directiveRecords;\n for (var i = dirs.length - 1; i >= 0; --i) {\n var dir = dirs[i];\n if (dir.callAfterViewInit && this.state == constants_1.ChangeDetectorState.NeverChecked) {\n this._getDirectiveFor(dir.directiveIndex).ngAfterViewInit();\n }\n if (dir.callAfterViewChecked) {\n this._getDirectiveFor(dir.directiveIndex).ngAfterViewChecked();\n }\n }\n };\n DynamicChangeDetector.prototype._updateDirectiveOrElement = function(change, bindingRecord) {\n if (lang_1.isBlank(bindingRecord.directiveRecord)) {\n _super.prototype.notifyDispatcher.call(this, change.currentValue);\n } else {\n var directiveIndex = bindingRecord.directiveRecord.directiveIndex;\n bindingRecord.setter(this._getDirectiveFor(directiveIndex), change.currentValue);\n }\n if (this._genConfig.logBindingUpdate) {\n _super.prototype.logBindingUpdate.call(this, change.currentValue);\n }\n };\n DynamicChangeDetector.prototype._addChange = function(bindingRecord, change, changes) {\n if (bindingRecord.callOnChanges()) {\n return _super.prototype.addChange.call(this, changes, change.previousValue, change.currentValue);\n } else {\n return changes;\n }\n };\n DynamicChangeDetector.prototype._getDirectiveFor = function(directiveIndex) {\n return this.dispatcher.getDirectiveFor(directiveIndex);\n };\n DynamicChangeDetector.prototype._getDetectorFor = function(directiveIndex) {\n return this.dispatcher.getDetectorFor(directiveIndex);\n };\n DynamicChangeDetector.prototype._check = function(proto, throwOnChange, values, locals) {\n if (proto.isPipeRecord()) {\n return this._pipeCheck(proto, throwOnChange, values);\n } else {\n return this._referenceCheck(proto, throwOnChange, values, locals);\n }\n };\n DynamicChangeDetector.prototype._referenceCheck = function(proto, throwOnChange, values, locals) {\n if (this._pureFuncAndArgsDidNotChange(proto)) {\n this._setChanged(proto, false);\n return null;\n }\n var currValue = this._calculateCurrValue(proto, values, locals);\n if (this.strategy === constants_1.ChangeDetectionStrategy.OnPushObserve) {\n _super.prototype.observeValue.call(this, currValue, proto.selfIndex);\n }\n if (proto.shouldBeChecked()) {\n var prevValue = this._readSelf(proto, values);\n var detectedChange = throwOnChange ? !change_detection_util_1.ChangeDetectionUtil.devModeEqual(prevValue, currValue) : change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue, currValue);\n if (detectedChange) {\n if (proto.lastInBinding) {\n var change = change_detection_util_1.ChangeDetectionUtil.simpleChange(prevValue, currValue);\n if (throwOnChange)\n this.throwOnChangeError(prevValue, currValue);\n this._writeSelf(proto, currValue, values);\n this._setChanged(proto, true);\n return change;\n } else {\n this._writeSelf(proto, currValue, values);\n this._setChanged(proto, true);\n return null;\n }\n } else {\n this._setChanged(proto, false);\n return null;\n }\n } else {\n this._writeSelf(proto, currValue, values);\n this._setChanged(proto, true);\n return null;\n }\n };\n DynamicChangeDetector.prototype._calculateCurrValue = function(proto, values, locals) {\n switch (proto.mode) {\n case proto_record_1.RecordType.Self:\n return this._readContext(proto, values);\n case proto_record_1.RecordType.Const:\n return proto.funcOrValue;\n case proto_record_1.RecordType.PropertyRead:\n var context = this._readContext(proto, values);\n return proto.funcOrValue(context);\n case proto_record_1.RecordType.SafeProperty:\n var context = this._readContext(proto, values);\n return lang_1.isBlank(context) ? null : proto.funcOrValue(context);\n case proto_record_1.RecordType.PropertyWrite:\n var context = this._readContext(proto, values);\n var value = this._readArgs(proto, values)[0];\n proto.funcOrValue(context, value);\n return value;\n case proto_record_1.RecordType.KeyedWrite:\n var context = this._readContext(proto, values);\n var key = this._readArgs(proto, values)[0];\n var value = this._readArgs(proto, values)[1];\n context[key] = value;\n return value;\n case proto_record_1.RecordType.Local:\n return locals.get(proto.name);\n case proto_record_1.RecordType.InvokeMethod:\n var context = this._readContext(proto, values);\n var args = this._readArgs(proto, values);\n return proto.funcOrValue(context, args);\n case proto_record_1.RecordType.SafeMethodInvoke:\n var context = this._readContext(proto, values);\n if (lang_1.isBlank(context)) {\n return null;\n }\n var args = this._readArgs(proto, values);\n return proto.funcOrValue(context, args);\n case proto_record_1.RecordType.KeyedRead:\n var arg = this._readArgs(proto, values)[0];\n return this._readContext(proto, values)[arg];\n case proto_record_1.RecordType.Chain:\n var args = this._readArgs(proto, values);\n return args[args.length - 1];\n case proto_record_1.RecordType.InvokeClosure:\n return lang_1.FunctionWrapper.apply(this._readContext(proto, values), this._readArgs(proto, values));\n case proto_record_1.RecordType.Interpolate:\n case proto_record_1.RecordType.PrimitiveOp:\n case proto_record_1.RecordType.CollectionLiteral:\n return lang_1.FunctionWrapper.apply(proto.funcOrValue, this._readArgs(proto, values));\n default:\n throw new exceptions_1.BaseException(\"Unknown operation \" + proto.mode);\n }\n };\n DynamicChangeDetector.prototype._pipeCheck = function(proto, throwOnChange, values) {\n var context = this._readContext(proto, values);\n var selectedPipe = this._pipeFor(proto, context);\n if (!selectedPipe.pure || this._argsOrContextChanged(proto)) {\n var args = this._readArgs(proto, values);\n var currValue = selectedPipe.pipe.transform(context, args);\n if (proto.shouldBeChecked()) {\n var prevValue = this._readSelf(proto, values);\n var detectedChange = throwOnChange ? !change_detection_util_1.ChangeDetectionUtil.devModeEqual(prevValue, currValue) : change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue, currValue);\n if (detectedChange) {\n currValue = change_detection_util_1.ChangeDetectionUtil.unwrapValue(currValue);\n if (proto.lastInBinding) {\n var change = change_detection_util_1.ChangeDetectionUtil.simpleChange(prevValue, currValue);\n if (throwOnChange)\n this.throwOnChangeError(prevValue, currValue);\n this._writeSelf(proto, currValue, values);\n this._setChanged(proto, true);\n return change;\n } else {\n this._writeSelf(proto, currValue, values);\n this._setChanged(proto, true);\n return null;\n }\n } else {\n this._setChanged(proto, false);\n return null;\n }\n } else {\n this._writeSelf(proto, currValue, values);\n this._setChanged(proto, true);\n return null;\n }\n }\n };\n DynamicChangeDetector.prototype._pipeFor = function(proto, context) {\n var storedPipe = this._readPipe(proto);\n if (lang_1.isPresent(storedPipe))\n return storedPipe;\n var pipe = this.pipes.get(proto.name);\n this._writePipe(proto, pipe);\n return pipe;\n };\n DynamicChangeDetector.prototype._readContext = function(proto, values) {\n if (proto.contextIndex == -1) {\n return this._getDirectiveFor(proto.directiveIndex);\n }\n return values[proto.contextIndex];\n };\n DynamicChangeDetector.prototype._readSelf = function(proto, values) {\n return values[proto.selfIndex];\n };\n DynamicChangeDetector.prototype._writeSelf = function(proto, value, values) {\n values[proto.selfIndex] = value;\n };\n DynamicChangeDetector.prototype._readPipe = function(proto) {\n return this.localPipes[proto.selfIndex];\n };\n DynamicChangeDetector.prototype._writePipe = function(proto, value) {\n this.localPipes[proto.selfIndex] = value;\n };\n DynamicChangeDetector.prototype._setChanged = function(proto, value) {\n if (proto.argumentToPureFunction)\n this.changes[proto.selfIndex] = value;\n };\n DynamicChangeDetector.prototype._pureFuncAndArgsDidNotChange = function(proto) {\n return proto.isPureFunction() && !this._argsChanged(proto);\n };\n DynamicChangeDetector.prototype._argsChanged = function(proto) {\n var args = proto.args;\n for (var i = 0; i < args.length; ++i) {\n if (this.changes[args[i]]) {\n return true;\n }\n }\n return false;\n };\n DynamicChangeDetector.prototype._argsOrContextChanged = function(proto) {\n return this._argsChanged(proto) || this.changes[proto.contextIndex];\n };\n DynamicChangeDetector.prototype._readArgs = function(proto, values) {\n var res = collection_1.ListWrapper.createFixedSize(proto.args.length);\n var args = proto.args;\n for (var i = 0; i < args.length; ++i) {\n res[i] = values[args[i]];\n }\n return res;\n };\n return DynamicChangeDetector;\n})(abstract_change_detector_1.AbstractChangeDetector);\nexports.DynamicChangeDetector = DynamicChangeDetector;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar constants_1 = require('./constants');\nvar ChangeDetectorRef = (function() {\n function ChangeDetectorRef() {}\n return ChangeDetectorRef;\n})();\nexports.ChangeDetectorRef = ChangeDetectorRef;\nvar ChangeDetectorRef_ = (function(_super) {\n __extends(ChangeDetectorRef_, _super);\n function ChangeDetectorRef_(_cd) {\n _super.call(this);\n this._cd = _cd;\n }\n ChangeDetectorRef_.prototype.markForCheck = function() {\n this._cd.markPathToRootAsCheckOnce();\n };\n ChangeDetectorRef_.prototype.detach = function() {\n this._cd.mode = constants_1.ChangeDetectionStrategy.Detached;\n };\n ChangeDetectorRef_.prototype.detectChanges = function() {\n this._cd.detectChanges();\n };\n ChangeDetectorRef_.prototype.checkNoChanges = function() {\n this._cd.checkNoChanges();\n };\n ChangeDetectorRef_.prototype.reattach = function() {\n this._cd.mode = constants_1.ChangeDetectionStrategy.CheckAlways;\n this.markForCheck();\n };\n return ChangeDetectorRef_;\n})(ChangeDetectorRef);\nexports.ChangeDetectorRef_ = ChangeDetectorRef_;\n","/* */ \n'use strict';function implementsOnDestroy(pipe) {\r\n return pipe.constructor.prototype.ngOnDestroy;\r\n}\r\nexports.implementsOnDestroy = implementsOnDestroy;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZV9saWZlY3ljbGVfcmVmbGVjdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2NvcmUvY2hhbmdlX2RldGVjdGlvbi9waXBlX2xpZmVjeWNsZV9yZWZsZWN0b3IudHMiXSwibmFtZXMiOlsiaW1wbGVtZW50c09uRGVzdHJveSJdLCJtYXBwaW5ncyI6IkFBQUEsNkJBQW9DLElBQVM7SUFDM0NBLE1BQU1BLENBQUNBLElBQUlBLENBQUNBLFdBQVdBLENBQUNBLFNBQVNBLENBQUNBLFdBQVdBLENBQUNBO0FBQ2hEQSxDQUFDQTtBQUZlLDJCQUFtQixzQkFFbEMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBpbXBsZW1lbnRzT25EZXN0cm95KHBpcGU6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gcGlwZS5jb25zdHJ1Y3Rvci5wcm90b3R5cGUubmdPbkRlc3Ryb3k7XG59XG4iXX0=","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar DIRECTIVE_LIFECYCLE = \"directiveLifecycle\";\nvar BINDING = \"native\";\nvar DIRECTIVE = \"directive\";\nvar ELEMENT_PROPERTY = \"elementProperty\";\nvar ELEMENT_ATTRIBUTE = \"elementAttribute\";\nvar ELEMENT_CLASS = \"elementClass\";\nvar ELEMENT_STYLE = \"elementStyle\";\nvar TEXT_NODE = \"textNode\";\nvar EVENT = \"event\";\nvar HOST_EVENT = \"hostEvent\";\nvar BindingTarget = (function() {\n function BindingTarget(mode, elementIndex, name, unit, debug) {\n this.mode = mode;\n this.elementIndex = elementIndex;\n this.name = name;\n this.unit = unit;\n this.debug = debug;\n }\n BindingTarget.prototype.isDirective = function() {\n return this.mode === DIRECTIVE;\n };\n BindingTarget.prototype.isElementProperty = function() {\n return this.mode === ELEMENT_PROPERTY;\n };\n BindingTarget.prototype.isElementAttribute = function() {\n return this.mode === ELEMENT_ATTRIBUTE;\n };\n BindingTarget.prototype.isElementClass = function() {\n return this.mode === ELEMENT_CLASS;\n };\n BindingTarget.prototype.isElementStyle = function() {\n return this.mode === ELEMENT_STYLE;\n };\n BindingTarget.prototype.isTextNode = function() {\n return this.mode === TEXT_NODE;\n };\n return BindingTarget;\n})();\nexports.BindingTarget = BindingTarget;\nvar BindingRecord = (function() {\n function BindingRecord(mode, target, implicitReceiver, ast, setter, lifecycleEvent, directiveRecord) {\n this.mode = mode;\n this.target = target;\n this.implicitReceiver = implicitReceiver;\n this.ast = ast;\n this.setter = setter;\n this.lifecycleEvent = lifecycleEvent;\n this.directiveRecord = directiveRecord;\n }\n BindingRecord.prototype.isDirectiveLifecycle = function() {\n return this.mode === DIRECTIVE_LIFECYCLE;\n };\n BindingRecord.prototype.callOnChanges = function() {\n return lang_1.isPresent(this.directiveRecord) && this.directiveRecord.callOnChanges;\n };\n BindingRecord.prototype.isDefaultChangeDetection = function() {\n return lang_1.isBlank(this.directiveRecord) || this.directiveRecord.isDefaultChangeDetection();\n };\n BindingRecord.createDirectiveDoCheck = function(directiveRecord) {\n return new BindingRecord(DIRECTIVE_LIFECYCLE, null, 0, null, null, \"DoCheck\", directiveRecord);\n };\n BindingRecord.createDirectiveOnInit = function(directiveRecord) {\n return new BindingRecord(DIRECTIVE_LIFECYCLE, null, 0, null, null, \"OnInit\", directiveRecord);\n };\n BindingRecord.createDirectiveOnChanges = function(directiveRecord) {\n return new BindingRecord(DIRECTIVE_LIFECYCLE, null, 0, null, null, \"OnChanges\", directiveRecord);\n };\n BindingRecord.createForDirective = function(ast, propertyName, setter, directiveRecord) {\n var elementIndex = directiveRecord.directiveIndex.elementIndex;\n var t = new BindingTarget(DIRECTIVE, elementIndex, propertyName, null, ast.toString());\n return new BindingRecord(DIRECTIVE, t, 0, ast, setter, null, directiveRecord);\n };\n BindingRecord.createForElementProperty = function(ast, elementIndex, propertyName) {\n var t = new BindingTarget(ELEMENT_PROPERTY, elementIndex, propertyName, null, ast.toString());\n return new BindingRecord(BINDING, t, 0, ast, null, null, null);\n };\n BindingRecord.createForElementAttribute = function(ast, elementIndex, attributeName) {\n var t = new BindingTarget(ELEMENT_ATTRIBUTE, elementIndex, attributeName, null, ast.toString());\n return new BindingRecord(BINDING, t, 0, ast, null, null, null);\n };\n BindingRecord.createForElementClass = function(ast, elementIndex, className) {\n var t = new BindingTarget(ELEMENT_CLASS, elementIndex, className, null, ast.toString());\n return new BindingRecord(BINDING, t, 0, ast, null, null, null);\n };\n BindingRecord.createForElementStyle = function(ast, elementIndex, styleName, unit) {\n var t = new BindingTarget(ELEMENT_STYLE, elementIndex, styleName, unit, ast.toString());\n return new BindingRecord(BINDING, t, 0, ast, null, null, null);\n };\n BindingRecord.createForHostProperty = function(directiveIndex, ast, propertyName) {\n var t = new BindingTarget(ELEMENT_PROPERTY, directiveIndex.elementIndex, propertyName, null, ast.toString());\n return new BindingRecord(BINDING, t, directiveIndex, ast, null, null, null);\n };\n BindingRecord.createForHostAttribute = function(directiveIndex, ast, attributeName) {\n var t = new BindingTarget(ELEMENT_ATTRIBUTE, directiveIndex.elementIndex, attributeName, null, ast.toString());\n return new BindingRecord(BINDING, t, directiveIndex, ast, null, null, null);\n };\n BindingRecord.createForHostClass = function(directiveIndex, ast, className) {\n var t = new BindingTarget(ELEMENT_CLASS, directiveIndex.elementIndex, className, null, ast.toString());\n return new BindingRecord(BINDING, t, directiveIndex, ast, null, null, null);\n };\n BindingRecord.createForHostStyle = function(directiveIndex, ast, styleName, unit) {\n var t = new BindingTarget(ELEMENT_STYLE, directiveIndex.elementIndex, styleName, unit, ast.toString());\n return new BindingRecord(BINDING, t, directiveIndex, ast, null, null, null);\n };\n BindingRecord.createForTextNode = function(ast, elementIndex) {\n var t = new BindingTarget(TEXT_NODE, elementIndex, null, null, ast.toString());\n return new BindingRecord(BINDING, t, 0, ast, null, null, null);\n };\n BindingRecord.createForEvent = function(ast, eventName, elementIndex) {\n var t = new BindingTarget(EVENT, elementIndex, eventName, null, ast.toString());\n return new BindingRecord(EVENT, t, 0, ast, null, null, null);\n };\n BindingRecord.createForHostEvent = function(ast, eventName, directiveRecord) {\n var directiveIndex = directiveRecord.directiveIndex;\n var t = new BindingTarget(HOST_EVENT, directiveIndex.elementIndex, eventName, null, ast.toString());\n return new BindingRecord(HOST_EVENT, t, directiveIndex, ast, null, null, directiveRecord);\n };\n return BindingRecord;\n})();\nexports.BindingRecord = BindingRecord;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\n(function(ChangeDetectorState) {\n ChangeDetectorState[ChangeDetectorState[\"NeverChecked\"] = 0] = \"NeverChecked\";\n ChangeDetectorState[ChangeDetectorState[\"CheckedBefore\"] = 1] = \"CheckedBefore\";\n ChangeDetectorState[ChangeDetectorState[\"Errored\"] = 2] = \"Errored\";\n})(exports.ChangeDetectorState || (exports.ChangeDetectorState = {}));\nvar ChangeDetectorState = exports.ChangeDetectorState;\n(function(ChangeDetectionStrategy) {\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"CheckOnce\"] = 0] = \"CheckOnce\";\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Checked\"] = 1] = \"Checked\";\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"CheckAlways\"] = 2] = \"CheckAlways\";\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Detached\"] = 3] = \"Detached\";\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 4] = \"OnPush\";\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 5] = \"Default\";\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPushObserve\"] = 6] = \"OnPushObserve\";\n})(exports.ChangeDetectionStrategy || (exports.ChangeDetectionStrategy = {}));\nvar ChangeDetectionStrategy = exports.ChangeDetectionStrategy;\nexports.CHANGE_DETECTION_STRATEGY_VALUES = [ChangeDetectionStrategy.CheckOnce, ChangeDetectionStrategy.Checked, ChangeDetectionStrategy.CheckAlways, ChangeDetectionStrategy.Detached, ChangeDetectionStrategy.OnPush, ChangeDetectionStrategy.Default, ChangeDetectionStrategy.OnPushObserve];\nexports.CHANGE_DETECTOR_STATE_VALUES = [ChangeDetectorState.NeverChecked, ChangeDetectorState.CheckedBefore, ChangeDetectorState.Errored];\nfunction isDefaultChangeDetectionStrategy(changeDetectionStrategy) {\n return lang_1.isBlank(changeDetectionStrategy) || changeDetectionStrategy === ChangeDetectionStrategy.Default;\n}\nexports.isDefaultChangeDetectionStrategy = isDefaultChangeDetectionStrategy;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar constants_1 = require('./constants');\nvar DirectiveIndex = (function() {\n function DirectiveIndex(elementIndex, directiveIndex) {\n this.elementIndex = elementIndex;\n this.directiveIndex = directiveIndex;\n }\n Object.defineProperty(DirectiveIndex.prototype, \"name\", {\n get: function() {\n return this.elementIndex + \"_\" + this.directiveIndex;\n },\n enumerable: true,\n configurable: true\n });\n return DirectiveIndex;\n})();\nexports.DirectiveIndex = DirectiveIndex;\nvar DirectiveRecord = (function() {\n function DirectiveRecord(_a) {\n var _b = _a === void 0 ? {} : _a,\n directiveIndex = _b.directiveIndex,\n callAfterContentInit = _b.callAfterContentInit,\n callAfterContentChecked = _b.callAfterContentChecked,\n callAfterViewInit = _b.callAfterViewInit,\n callAfterViewChecked = _b.callAfterViewChecked,\n callOnChanges = _b.callOnChanges,\n callDoCheck = _b.callDoCheck,\n callOnInit = _b.callOnInit,\n callOnDestroy = _b.callOnDestroy,\n changeDetection = _b.changeDetection,\n outputs = _b.outputs;\n this.directiveIndex = directiveIndex;\n this.callAfterContentInit = lang_1.normalizeBool(callAfterContentInit);\n this.callAfterContentChecked = lang_1.normalizeBool(callAfterContentChecked);\n this.callOnChanges = lang_1.normalizeBool(callOnChanges);\n this.callAfterViewInit = lang_1.normalizeBool(callAfterViewInit);\n this.callAfterViewChecked = lang_1.normalizeBool(callAfterViewChecked);\n this.callDoCheck = lang_1.normalizeBool(callDoCheck);\n this.callOnInit = lang_1.normalizeBool(callOnInit);\n this.callOnDestroy = lang_1.normalizeBool(callOnDestroy);\n this.changeDetection = changeDetection;\n this.outputs = outputs;\n }\n DirectiveRecord.prototype.isDefaultChangeDetection = function() {\n return constants_1.isDefaultChangeDetectionStrategy(this.changeDetection);\n };\n return DirectiveRecord;\n})();\nexports.DirectiveRecord = DirectiveRecord;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar constants_1 = require('./constants');\nvar pipe_lifecycle_reflector_1 = require('./pipe_lifecycle_reflector');\nvar binding_record_1 = require('./binding_record');\nvar directive_record_1 = require('./directive_record');\nvar WrappedValue = (function() {\n function WrappedValue(wrapped) {\n this.wrapped = wrapped;\n }\n WrappedValue.wrap = function(value) {\n var w = _wrappedValues[_wrappedIndex++ % 5];\n w.wrapped = value;\n return w;\n };\n return WrappedValue;\n})();\nexports.WrappedValue = WrappedValue;\nvar _wrappedValues = [new WrappedValue(null), new WrappedValue(null), new WrappedValue(null), new WrappedValue(null), new WrappedValue(null)];\nvar _wrappedIndex = 0;\nvar SimpleChange = (function() {\n function SimpleChange(previousValue, currentValue) {\n this.previousValue = previousValue;\n this.currentValue = currentValue;\n }\n SimpleChange.prototype.isFirstChange = function() {\n return this.previousValue === ChangeDetectionUtil.uninitialized;\n };\n return SimpleChange;\n})();\nexports.SimpleChange = SimpleChange;\nvar _simpleChangesIndex = 0;\nvar _simpleChanges = [new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null), new SimpleChange(null, null)];\nfunction _simpleChange(previousValue, currentValue) {\n var index = _simpleChangesIndex++ % 20;\n var s = _simpleChanges[index];\n s.previousValue = previousValue;\n s.currentValue = currentValue;\n return s;\n}\nvar ChangeDetectionUtil = (function() {\n function ChangeDetectionUtil() {}\n ChangeDetectionUtil.arrayFn0 = function() {\n return [];\n };\n ChangeDetectionUtil.arrayFn1 = function(a1) {\n return [a1];\n };\n ChangeDetectionUtil.arrayFn2 = function(a1, a2) {\n return [a1, a2];\n };\n ChangeDetectionUtil.arrayFn3 = function(a1, a2, a3) {\n return [a1, a2, a3];\n };\n ChangeDetectionUtil.arrayFn4 = function(a1, a2, a3, a4) {\n return [a1, a2, a3, a4];\n };\n ChangeDetectionUtil.arrayFn5 = function(a1, a2, a3, a4, a5) {\n return [a1, a2, a3, a4, a5];\n };\n ChangeDetectionUtil.arrayFn6 = function(a1, a2, a3, a4, a5, a6) {\n return [a1, a2, a3, a4, a5, a6];\n };\n ChangeDetectionUtil.arrayFn7 = function(a1, a2, a3, a4, a5, a6, a7) {\n return [a1, a2, a3, a4, a5, a6, a7];\n };\n ChangeDetectionUtil.arrayFn8 = function(a1, a2, a3, a4, a5, a6, a7, a8) {\n return [a1, a2, a3, a4, a5, a6, a7, a8];\n };\n ChangeDetectionUtil.arrayFn9 = function(a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return [a1, a2, a3, a4, a5, a6, a7, a8, a9];\n };\n ChangeDetectionUtil.operation_negate = function(value) {\n return !value;\n };\n ChangeDetectionUtil.operation_add = function(left, right) {\n return left + right;\n };\n ChangeDetectionUtil.operation_subtract = function(left, right) {\n return left - right;\n };\n ChangeDetectionUtil.operation_multiply = function(left, right) {\n return left * right;\n };\n ChangeDetectionUtil.operation_divide = function(left, right) {\n return left / right;\n };\n ChangeDetectionUtil.operation_remainder = function(left, right) {\n return left % right;\n };\n ChangeDetectionUtil.operation_equals = function(left, right) {\n return left == right;\n };\n ChangeDetectionUtil.operation_not_equals = function(left, right) {\n return left != right;\n };\n ChangeDetectionUtil.operation_identical = function(left, right) {\n return left === right;\n };\n ChangeDetectionUtil.operation_not_identical = function(left, right) {\n return left !== right;\n };\n ChangeDetectionUtil.operation_less_then = function(left, right) {\n return left < right;\n };\n ChangeDetectionUtil.operation_greater_then = function(left, right) {\n return left > right;\n };\n ChangeDetectionUtil.operation_less_or_equals_then = function(left, right) {\n return left <= right;\n };\n ChangeDetectionUtil.operation_greater_or_equals_then = function(left, right) {\n return left >= right;\n };\n ChangeDetectionUtil.cond = function(cond, trueVal, falseVal) {\n return cond ? trueVal : falseVal;\n };\n ChangeDetectionUtil.mapFn = function(keys) {\n function buildMap(values) {\n var res = collection_1.StringMapWrapper.create();\n for (var i = 0; i < keys.length; ++i) {\n collection_1.StringMapWrapper.set(res, keys[i], values[i]);\n }\n return res;\n }\n switch (keys.length) {\n case 0:\n return function() {\n return [];\n };\n case 1:\n return function(a1) {\n return buildMap([a1]);\n };\n case 2:\n return function(a1, a2) {\n return buildMap([a1, a2]);\n };\n case 3:\n return function(a1, a2, a3) {\n return buildMap([a1, a2, a3]);\n };\n case 4:\n return function(a1, a2, a3, a4) {\n return buildMap([a1, a2, a3, a4]);\n };\n case 5:\n return function(a1, a2, a3, a4, a5) {\n return buildMap([a1, a2, a3, a4, a5]);\n };\n case 6:\n return function(a1, a2, a3, a4, a5, a6) {\n return buildMap([a1, a2, a3, a4, a5, a6]);\n };\n case 7:\n return function(a1, a2, a3, a4, a5, a6, a7) {\n return buildMap([a1, a2, a3, a4, a5, a6, a7]);\n };\n case 8:\n return function(a1, a2, a3, a4, a5, a6, a7, a8) {\n return buildMap([a1, a2, a3, a4, a5, a6, a7, a8]);\n };\n case 9:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return buildMap([a1, a2, a3, a4, a5, a6, a7, a8, a9]);\n };\n default:\n throw new exceptions_1.BaseException(\"Does not support literal maps with more than 9 elements\");\n }\n };\n ChangeDetectionUtil.keyedAccess = function(obj, args) {\n return obj[args[0]];\n };\n ChangeDetectionUtil.unwrapValue = function(value) {\n if (value instanceof WrappedValue) {\n return value.wrapped;\n } else {\n return value;\n }\n };\n ChangeDetectionUtil.changeDetectionMode = function(strategy) {\n return constants_1.isDefaultChangeDetectionStrategy(strategy) ? constants_1.ChangeDetectionStrategy.CheckAlways : constants_1.ChangeDetectionStrategy.CheckOnce;\n };\n ChangeDetectionUtil.simpleChange = function(previousValue, currentValue) {\n return _simpleChange(previousValue, currentValue);\n };\n ChangeDetectionUtil.isValueBlank = function(value) {\n return lang_1.isBlank(value);\n };\n ChangeDetectionUtil.s = function(value) {\n return lang_1.isPresent(value) ? \"\" + value : '';\n };\n ChangeDetectionUtil.protoByIndex = function(protos, selfIndex) {\n return selfIndex < 1 ? null : protos[selfIndex - 1];\n };\n ChangeDetectionUtil.callPipeOnDestroy = function(selectedPipe) {\n if (pipe_lifecycle_reflector_1.implementsOnDestroy(selectedPipe.pipe)) {\n selectedPipe.pipe.ngOnDestroy();\n }\n };\n ChangeDetectionUtil.bindingTarget = function(mode, elementIndex, name, unit, debug) {\n return new binding_record_1.BindingTarget(mode, elementIndex, name, unit, debug);\n };\n ChangeDetectionUtil.directiveIndex = function(elementIndex, directiveIndex) {\n return new directive_record_1.DirectiveIndex(elementIndex, directiveIndex);\n };\n ChangeDetectionUtil.looseNotIdentical = function(a, b) {\n return !lang_1.looseIdentical(a, b);\n };\n ChangeDetectionUtil.devModeEqual = function(a, b) {\n if (collection_1.isListLikeIterable(a) && collection_1.isListLikeIterable(b)) {\n return collection_1.areIterablesEqual(a, b, ChangeDetectionUtil.devModeEqual);\n } else if (!collection_1.isListLikeIterable(a) && !lang_1.isPrimitive(a) && !collection_1.isListLikeIterable(b) && !lang_1.isPrimitive(b)) {\n return true;\n } else {\n return lang_1.looseIdentical(a, b);\n }\n };\n ChangeDetectionUtil.uninitialized = lang_1.CONST_EXPR(new Object());\n return ChangeDetectionUtil;\n})();\nexports.ChangeDetectionUtil = ChangeDetectionUtil;\n","/* */ \n'use strict';\nvar iterable_differs_1 = require('./differs/iterable_differs');\nvar default_iterable_differ_1 = require('./differs/default_iterable_differ');\nvar keyvalue_differs_1 = require('./differs/keyvalue_differs');\nvar default_keyvalue_differ_1 = require('./differs/default_keyvalue_differ');\nvar lang_1 = require('../../facade/lang');\nvar ast_1 = require('./parser/ast');\nexports.ASTWithSource = ast_1.ASTWithSource;\nexports.AST = ast_1.AST;\nexports.AstTransformer = ast_1.AstTransformer;\nexports.PropertyRead = ast_1.PropertyRead;\nexports.LiteralArray = ast_1.LiteralArray;\nexports.ImplicitReceiver = ast_1.ImplicitReceiver;\nvar lexer_1 = require('./parser/lexer');\nexports.Lexer = lexer_1.Lexer;\nvar parser_1 = require('./parser/parser');\nexports.Parser = parser_1.Parser;\nvar locals_1 = require('./parser/locals');\nexports.Locals = locals_1.Locals;\nvar exceptions_1 = require('./exceptions');\nexports.DehydratedException = exceptions_1.DehydratedException;\nexports.ExpressionChangedAfterItHasBeenCheckedException = exceptions_1.ExpressionChangedAfterItHasBeenCheckedException;\nexports.ChangeDetectionError = exceptions_1.ChangeDetectionError;\nvar interfaces_1 = require('./interfaces');\nexports.ChangeDetectorDefinition = interfaces_1.ChangeDetectorDefinition;\nexports.DebugContext = interfaces_1.DebugContext;\nexports.ChangeDetectorGenConfig = interfaces_1.ChangeDetectorGenConfig;\nvar constants_1 = require('./constants');\nexports.ChangeDetectionStrategy = constants_1.ChangeDetectionStrategy;\nexports.CHANGE_DETECTION_STRATEGY_VALUES = constants_1.CHANGE_DETECTION_STRATEGY_VALUES;\nvar proto_change_detector_1 = require('./proto_change_detector');\nexports.DynamicProtoChangeDetector = proto_change_detector_1.DynamicProtoChangeDetector;\nvar jit_proto_change_detector_1 = require('./jit_proto_change_detector');\nexports.JitProtoChangeDetector = jit_proto_change_detector_1.JitProtoChangeDetector;\nvar binding_record_1 = require('./binding_record');\nexports.BindingRecord = binding_record_1.BindingRecord;\nexports.BindingTarget = binding_record_1.BindingTarget;\nvar directive_record_1 = require('./directive_record');\nexports.DirectiveIndex = directive_record_1.DirectiveIndex;\nexports.DirectiveRecord = directive_record_1.DirectiveRecord;\nvar dynamic_change_detector_1 = require('./dynamic_change_detector');\nexports.DynamicChangeDetector = dynamic_change_detector_1.DynamicChangeDetector;\nvar change_detector_ref_1 = require('./change_detector_ref');\nexports.ChangeDetectorRef = change_detector_ref_1.ChangeDetectorRef;\nvar iterable_differs_2 = require('./differs/iterable_differs');\nexports.IterableDiffers = iterable_differs_2.IterableDiffers;\nvar keyvalue_differs_2 = require('./differs/keyvalue_differs');\nexports.KeyValueDiffers = keyvalue_differs_2.KeyValueDiffers;\nvar change_detection_util_1 = require('./change_detection_util');\nexports.WrappedValue = change_detection_util_1.WrappedValue;\nexports.SimpleChange = change_detection_util_1.SimpleChange;\nexports.keyValDiff = lang_1.CONST_EXPR([lang_1.CONST_EXPR(new default_keyvalue_differ_1.DefaultKeyValueDifferFactory())]);\nexports.iterableDiff = lang_1.CONST_EXPR([lang_1.CONST_EXPR(new default_iterable_differ_1.DefaultIterableDifferFactory())]);\nexports.defaultIterableDiffers = lang_1.CONST_EXPR(new iterable_differs_1.IterableDiffers(exports.iterableDiff));\nexports.defaultKeyValueDiffers = lang_1.CONST_EXPR(new keyvalue_differs_1.KeyValueDiffers(exports.keyValDiff));\n","/* */ \n'use strict';// Promises are put into their own facade file so that they can be used without\r\n// introducing a dependency on rxjs. They are re-exported through facade/async.\r\nvar PromiseWrapper = (function () {\r\n function PromiseWrapper() {\r\n }\r\n PromiseWrapper.resolve = function (obj) { return Promise.resolve(obj); };\r\n PromiseWrapper.reject = function (obj, _) { return Promise.reject(obj); };\r\n // Note: We can't rename this method into `catch`, as this is not a valid\r\n // method name in Dart.\r\n PromiseWrapper.catchError = function (promise, onError) {\r\n return promise.catch(onError);\r\n };\r\n PromiseWrapper.all = function (promises) {\r\n if (promises.length == 0)\r\n return Promise.resolve([]);\r\n return Promise.all(promises);\r\n };\r\n PromiseWrapper.then = function (promise, success, rejection) {\r\n return promise.then(success, rejection);\r\n };\r\n PromiseWrapper.wrap = function (computation) {\r\n return new Promise(function (res, rej) {\r\n try {\r\n res(computation());\r\n }\r\n catch (e) {\r\n rej(e);\r\n }\r\n });\r\n };\r\n PromiseWrapper.scheduleMicrotask = function (computation) {\r\n PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function (_) { });\r\n };\r\n PromiseWrapper.isPromise = function (obj) { return obj instanceof Promise; };\r\n PromiseWrapper.completer = function () {\r\n var resolve;\r\n var reject;\r\n var p = new Promise(function (res, rej) {\r\n resolve = res;\r\n reject = rej;\r\n });\r\n return { promise: p, resolve: resolve, reject: reject };\r\n };\r\n return PromiseWrapper;\r\n})();\r\nexports.PromiseWrapper = PromiseWrapper;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbWlzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9mYWNhZGUvcHJvbWlzZS50cyJdLCJuYW1lcyI6WyJQcm9taXNlV3JhcHBlciIsIlByb21pc2VXcmFwcGVyLmNvbnN0cnVjdG9yIiwiUHJvbWlzZVdyYXBwZXIucmVzb2x2ZSIsIlByb21pc2VXcmFwcGVyLnJlamVjdCIsIlByb21pc2VXcmFwcGVyLmNhdGNoRXJyb3IiLCJQcm9taXNlV3JhcHBlci5hbGwiLCJQcm9taXNlV3JhcHBlci50aGVuIiwiUHJvbWlzZVdyYXBwZXIud3JhcCIsIlByb21pc2VXcmFwcGVyLnNjaGVkdWxlTWljcm90YXNrIiwiUHJvbWlzZVdyYXBwZXIuaXNQcm9taXNlIiwiUHJvbWlzZVdyYXBwZXIuY29tcGxldGVyIl0sIm1hcHBpbmdzIjoiQUFBQSwrRUFBK0U7QUFDL0UsK0VBQStFO0FBUy9FO0lBQUFBO0lBaURBQyxDQUFDQTtJQWhEUUQsc0JBQU9BLEdBQWRBLFVBQWtCQSxHQUFNQSxJQUFnQkUsTUFBTUEsQ0FBQ0EsT0FBT0EsQ0FBQ0EsT0FBT0EsQ0FBQ0EsR0FBR0EsQ0FBQ0EsQ0FBQ0EsQ0FBQ0EsQ0FBQ0E7SUFFL0RGLHFCQUFNQSxHQUFiQSxVQUFjQSxHQUFRQSxFQUFFQSxDQUFDQSxJQUFrQkcsTUFBTUEsQ0FBQ0EsT0FBT0EsQ0FBQ0EsTUFBTUEsQ0FBQ0EsR0FBR0EsQ0FBQ0EsQ0FBQ0EsQ0F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gICAgdmFyIHJlamVjdDtcblxuICAgIHZhciBwID0gbmV3IFByb21pc2UoZnVuY3Rpb24ocmVzLCByZWopIHtcbiAgICAgIHJlc29sdmUgPSByZXM7XG4gICAgICByZWplY3QgPSByZWo7XG4gICAgfSk7XG5cbiAgICByZXR1cm4ge3Byb21pc2U6IHAsIHJlc29sdmU6IHJlc29sdmUsIHJlamVjdDogcmVqZWN0fTtcbiAgfVxufVxuIl19","/* */ \nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = require('../Subscription');\nvar Subscriber_1 = require('../Subscriber');\nvar SubjectSubscription = (function(_super) {\n __extends(SubjectSubscription, _super);\n function SubjectSubscription(subject, observer) {\n _super.call(this);\n this.subject = subject;\n this.observer = observer;\n this.isUnsubscribed = false;\n }\n SubjectSubscription.prototype.unsubscribe = function() {\n if (this.isUnsubscribed) {\n return;\n }\n this.isUnsubscribed = true;\n var subject = this.subject;\n var observers = subject.observers;\n this.subject = void 0;\n if (!observers || observers.length === 0 || subject.isUnsubscribed) {\n return;\n }\n if (this.observer instanceof Subscriber_1.Subscriber) {\n this.observer.unsubscribe();\n }\n var subscriberIndex = observers.indexOf(this.observer);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n };\n return SubjectSubscription;\n})(Subscription_1.Subscription);\nexports.SubjectSubscription = SubjectSubscription;\n","/* */ \nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\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 SubjectSubscription_1 = require('./subject/SubjectSubscription');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\nvar subscriptionAdd = Subscription_1.Subscription.prototype.add;\nvar subscriptionRemove = Subscription_1.Subscription.prototype.remove;\nvar subscriptionUnsubscribe = Subscription_1.Subscription.prototype.unsubscribe;\nvar subscriberNext = Subscriber_1.Subscriber.prototype.next;\nvar subscriberError = Subscriber_1.Subscriber.prototype.error;\nvar subscriberComplete = Subscriber_1.Subscriber.prototype.complete;\nvar _subscriberNext = Subscriber_1.Subscriber.prototype._next;\nvar _subscriberError = Subscriber_1.Subscriber.prototype._error;\nvar _subscriberComplete = Subscriber_1.Subscriber.prototype._complete;\nvar Subject = (function(_super) {\n __extends(Subject, _super);\n function Subject() {\n _super.apply(this, arguments);\n this.observers = [];\n this.isUnsubscribed = false;\n this.dispatching = false;\n this.errorSignal = false;\n this.completeSignal = false;\n }\n Subject.prototype[rxSubscriber_1.rxSubscriber] = function() {\n return this;\n };\n Subject.create = function(source, destination) {\n return new BidirectionalSubject(source, destination);\n };\n Subject.prototype.lift = function(operator) {\n var subject = new BidirectionalSubject(this, this.destination || this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype._subscribe = function(subscriber) {\n if (subscriber.isUnsubscribed) {\n return;\n } else if (this.errorSignal) {\n subscriber.error(this.errorInstance);\n return;\n } else if (this.completeSignal) {\n subscriber.complete();\n return;\n } else if (this.isUnsubscribed) {\n throw new Error('Cannot subscribe to a disposed Subject.');\n }\n this.observers.push(subscriber);\n return new SubjectSubscription_1.SubjectSubscription(this, subscriber);\n };\n Subject.prototype.add = function(subscription) {\n subscriptionAdd.call(this, subscription);\n };\n Subject.prototype.remove = function(subscription) {\n subscriptionRemove.call(this, subscription);\n };\n Subject.prototype.unsubscribe = function() {\n this.observers = void 0;\n subscriptionUnsubscribe.call(this);\n };\n Subject.prototype.next = function(value) {\n if (this.isUnsubscribed) {\n return;\n }\n this.dispatching = true;\n this._next(value);\n this.dispatching = false;\n if (this.errorSignal) {\n this.error(this.errorInstance);\n } else if (this.completeSignal) {\n this.complete();\n }\n };\n Subject.prototype.error = function(err) {\n if (this.isUnsubscribed || this.completeSignal) {\n return;\n }\n this.errorSignal = true;\n this.errorInstance = err;\n if (this.dispatching) {\n return;\n }\n this._error(err);\n this.unsubscribe();\n };\n Subject.prototype.complete = function() {\n if (this.isUnsubscribed || this.errorSignal) {\n return;\n }\n this.completeSignal = true;\n if (this.dispatching) {\n return;\n }\n this._complete();\n this.unsubscribe();\n };\n Subject.prototype._next = function(value) {\n var index = -1;\n var observers = this.observers.slice(0);\n var len = observers.length;\n while (++index < len) {\n observers[index].next(value);\n }\n };\n Subject.prototype._error = function(err) {\n var index = -1;\n var observers = this.observers;\n var len = observers.length;\n this.observers = void 0;\n this.isUnsubscribed = true;\n while (++index < len) {\n observers[index].error(err);\n }\n this.isUnsubscribed = false;\n };\n Subject.prototype._complete = function() {\n var index = -1;\n var observers = this.observers;\n var len = observers.length;\n this.observers = void 0;\n this.isUnsubscribed = true;\n while (++index < len) {\n observers[index].complete();\n }\n this.isUnsubscribed = false;\n };\n return Subject;\n})(Observable_1.Observable);\nexports.Subject = Subject;\nvar BidirectionalSubject = (function(_super) {\n __extends(BidirectionalSubject, _super);\n function BidirectionalSubject(source, destination) {\n _super.call(this);\n this.source = source;\n this.destination = destination;\n }\n BidirectionalSubject.prototype._subscribe = function(subscriber) {\n var operator = this.operator;\n return this.source._subscribe.call(this.source, operator ? operator.call(subscriber) : subscriber);\n };\n BidirectionalSubject.prototype.next = function(value) {\n subscriberNext.call(this, value);\n };\n BidirectionalSubject.prototype.error = function(err) {\n subscriberError.call(this, err);\n };\n BidirectionalSubject.prototype.complete = function() {\n subscriberComplete.call(this);\n };\n BidirectionalSubject.prototype._next = function(value) {\n _subscriberNext.call(this, value);\n };\n BidirectionalSubject.prototype._error = function(err) {\n _subscriberError.call(this, err);\n };\n BidirectionalSubject.prototype._complete = function() {\n _subscriberComplete.call(this);\n };\n return BidirectionalSubject;\n})(Subject);\n","/* */ \nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = require('../Subscription');\nvar QueueAction = (function(_super) {\n __extends(QueueAction, _super);\n function QueueAction(scheduler, work) {\n _super.call(this);\n this.scheduler = scheduler;\n this.work = work;\n }\n QueueAction.prototype.schedule = function(state) {\n if (this.isUnsubscribed) {\n return this;\n }\n this.state = state;\n var scheduler = this.scheduler;\n scheduler.actions.push(this);\n scheduler.flush();\n return this;\n };\n QueueAction.prototype.execute = function() {\n if (this.isUnsubscribed) {\n throw new Error('How did did we execute a canceled Action?');\n }\n this.work(this.state);\n };\n QueueAction.prototype.unsubscribe = function() {\n var scheduler = this.scheduler;\n var actions = scheduler.actions;\n var index = actions.indexOf(this);\n this.work = void 0;\n this.state = void 0;\n this.scheduler = void 0;\n if (index !== -1) {\n actions.splice(index, 1);\n }\n _super.prototype.unsubscribe.call(this);\n };\n return QueueAction;\n})(Subscription_1.Subscription);\nexports.QueueAction = QueueAction;\n","/* */ \nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar QueueAction_1 = require('./QueueAction');\nvar FutureAction = (function(_super) {\n __extends(FutureAction, _super);\n function FutureAction(scheduler, work) {\n _super.call(this, scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n }\n FutureAction.prototype.schedule = function(state, delay) {\n var _this = this;\n if (delay === void 0) {\n delay = 0;\n }\n if (this.isUnsubscribed) {\n return this;\n }\n this.delay = delay;\n this.state = state;\n var id = this.id;\n if (id != null) {\n this.id = undefined;\n clearTimeout(id);\n }\n var scheduler = this.scheduler;\n this.id = setTimeout(function() {\n _this.id = void 0;\n scheduler.actions.push(_this);\n scheduler.flush();\n }, this.delay);\n return this;\n };\n FutureAction.prototype.unsubscribe = function() {\n var id = this.id;\n if (id != null) {\n this.id = void 0;\n clearTimeout(id);\n }\n _super.prototype.unsubscribe.call(this);\n };\n return FutureAction;\n})(QueueAction_1.QueueAction);\nexports.FutureAction = FutureAction;\n","/* */ \nvar QueueAction_1 = require('./QueueAction');\nvar FutureAction_1 = require('./FutureAction');\nvar QueueScheduler = (function() {\n function QueueScheduler() {\n this.actions = [];\n this.active = false;\n this.scheduled = false;\n }\n QueueScheduler.prototype.now = function() {\n return Date.now();\n };\n QueueScheduler.prototype.flush = function() {\n if (this.active || this.scheduled) {\n return;\n }\n this.active = true;\n var actions = this.actions;\n for (var action = void 0; action = actions.shift(); ) {\n action.execute();\n }\n this.active = false;\n };\n QueueScheduler.prototype.schedule = function(work, delay, state) {\n if (delay === void 0) {\n delay = 0;\n }\n return (delay <= 0) ? this.scheduleNow(work, state) : this.scheduleLater(work, delay, state);\n };\n QueueScheduler.prototype.scheduleNow = function(work, state) {\n return new QueueAction_1.QueueAction(this, work).schedule(state);\n };\n QueueScheduler.prototype.scheduleLater = function(work, delay, state) {\n return new FutureAction_1.FutureAction(this, work).schedule(state, delay);\n };\n return QueueScheduler;\n})();\nexports.QueueScheduler = QueueScheduler;\n","/* */ \nvar QueueScheduler_1 = require('./QueueScheduler');\nexports.queue = new QueueScheduler_1.QueueScheduler();\n","/* */ \nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('../Observable');\nvar Subscription_1 = require('../Subscription');\nvar queue_1 = require('../scheduler/queue');\nvar PromiseObservable = (function(_super) {\n __extends(PromiseObservable, _super);\n function PromiseObservable(promise, scheduler) {\n if (scheduler === void 0) {\n scheduler = queue_1.queue;\n }\n _super.call(this);\n this.promise = promise;\n this.scheduler = scheduler;\n this._isScalar = false;\n }\n PromiseObservable.create = function(promise, scheduler) {\n if (scheduler === void 0) {\n scheduler = queue_1.queue;\n }\n return new PromiseObservable(promise, scheduler);\n };\n PromiseObservable.prototype._subscribe = function(subscriber) {\n var _this = this;\n var scheduler = this.scheduler;\n var promise = this.promise;\n if (scheduler === queue_1.queue) {\n if (this._isScalar) {\n subscriber.next(this.value);\n subscriber.complete();\n } else {\n promise.then(function(value) {\n _this._isScalar = true;\n _this.value = value;\n subscriber.next(value);\n subscriber.complete();\n }, function(err) {\n return subscriber.error(err);\n }).then(null, function(err) {\n setTimeout(function() {\n throw err;\n });\n });\n }\n } else {\n var subscription = new Subscription_1.Subscription();\n if (this._isScalar) {\n var value = this.value;\n subscription.add(scheduler.schedule(dispatchNext, 0, {\n value: value,\n subscriber: subscriber\n }));\n } else {\n promise.then(function(value) {\n _this._isScalar = true;\n _this.value = value;\n subscription.add(scheduler.schedule(dispatchNext, 0, {\n value: value,\n subscriber: subscriber\n }));\n }, function(err) {\n return subscription.add(scheduler.schedule(dispatchError, 0, {\n err: err,\n subscriber: subscriber\n }));\n }).then(null, function(err) {\n scheduler.schedule(function() {\n throw err;\n });\n });\n }\n return subscription;\n }\n };\n return PromiseObservable;\n})(Observable_1.Observable);\nexports.PromiseObservable = PromiseObservable;\nfunction dispatchNext(_a) {\n var value = _a.value,\n subscriber = _a.subscriber;\n subscriber.next(value);\n subscriber.complete();\n}\nfunction dispatchError(_a) {\n var err = _a.err,\n subscriber = _a.subscriber;\n subscriber.error(err);\n}\n","/* */ \nvar root_1 = require('../util/root');\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 } 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) {\n return value = x;\n }, function(err) {\n return reject(err);\n }, function() {\n return resolve(value);\n });\n });\n}\nexports.toPromise = toPromise;\n","/* */ \nfunction throwError(e) { throw e; }\nexports.throwError = throwError;\n//# sourceMappingURL=throwError.js.map","/* */ \nfunction tryOrOnError(target) {\n function tryCatcher() {\n try {\n tryCatcher.target.apply(this, arguments);\n }\n catch (e) {\n this.error(e);\n }\n }\n tryCatcher.target = target;\n return tryCatcher;\n}\nexports.tryOrOnError = tryOrOnError;\n//# sourceMappingURL=tryOrOnError.js.map","/* tslint:disable:no-empty */\nfunction noop() { }\nexports.noop = noop;\n//# sourceMappingURL=noop.js.map","/* */ \nvar noop_1 = require('./util/noop');\nvar Subscription = (function() {\n function Subscription(_unsubscribe) {\n this.isUnsubscribed = false;\n if (_unsubscribe) {\n this._unsubscribe = _unsubscribe;\n }\n }\n Subscription.prototype._unsubscribe = function() {\n noop_1.noop();\n };\n Subscription.prototype.unsubscribe = function() {\n if (this.isUnsubscribed) {\n return;\n }\n this.isUnsubscribed = true;\n var unsubscribe = this._unsubscribe;\n var subscriptions = this._subscriptions;\n this._subscriptions = void 0;\n if (unsubscribe) {\n unsubscribe.call(this);\n }\n if (subscriptions != null) {\n var index = -1;\n var len = subscriptions.length;\n while (++index < len) {\n subscriptions[index].unsubscribe();\n }\n }\n };\n Subscription.prototype.add = function(subscription) {\n if (!subscription || (subscription === this) || (subscription === Subscription.EMPTY)) {\n return;\n }\n var sub = subscription;\n switch (typeof subscription) {\n case 'function':\n sub = new Subscription(subscription);\n case 'object':\n if (sub.isUnsubscribed || typeof sub.unsubscribe !== 'function') {\n break;\n } else if (this.isUnsubscribed) {\n sub.unsubscribe();\n } else {\n var subscriptions = this._subscriptions || (this._subscriptions = []);\n subscriptions.push(sub);\n }\n break;\n default:\n throw new Error('Unrecognized subscription ' + subscription + ' added to Subscription.');\n }\n };\n Subscription.prototype.remove = function(subscription) {\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.isUnsubscribed = true;\n return empty;\n }(new Subscription()));\n return Subscription;\n})();\nexports.Subscription = Subscription;\n","/* */ \nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar noop_1 = require('./util/noop');\nvar throwError_1 = require('./util/throwError');\nvar tryOrOnError_1 = require('./util/tryOrOnError');\nvar Subscription_1 = require('./Subscription');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\nvar Subscriber = (function(_super) {\n __extends(Subscriber, _super);\n function Subscriber(destination) {\n _super.call(this);\n this.destination = destination;\n this._isUnsubscribed = false;\n if (!this.destination) {\n return;\n }\n var subscription = destination._subscription;\n if (subscription) {\n this._subscription = subscription;\n } else if (destination instanceof Subscriber) {\n this._subscription = destination;\n }\n }\n Subscriber.prototype[rxSubscriber_1.rxSubscriber] = function() {\n return this;\n };\n Object.defineProperty(Subscriber.prototype, \"isUnsubscribed\", {\n get: function() {\n var subscription = this._subscription;\n if (subscription) {\n return this._isUnsubscribed || subscription.isUnsubscribed;\n } else {\n return this._isUnsubscribed;\n }\n },\n set: function(value) {\n var subscription = this._subscription;\n if (subscription) {\n subscription.isUnsubscribed = Boolean(value);\n } else {\n this._isUnsubscribed = Boolean(value);\n }\n },\n enumerable: true,\n configurable: true\n });\n Subscriber.create = function(next, error, complete) {\n var subscriber = new Subscriber();\n subscriber._next = (typeof next === 'function') && tryOrOnError_1.tryOrOnError(next) || noop_1.noop;\n subscriber._error = (typeof error === 'function') && error || throwError_1.throwError;\n subscriber._complete = (typeof complete === 'function') && complete || noop_1.noop;\n return subscriber;\n };\n Subscriber.prototype.add = function(sub) {\n var _subscription = this._subscription;\n if (_subscription) {\n _subscription.add(sub);\n } else {\n _super.prototype.add.call(this, sub);\n }\n };\n Subscriber.prototype.remove = function(sub) {\n if (this._subscription) {\n this._subscription.remove(sub);\n } else {\n _super.prototype.remove.call(this, sub);\n }\n };\n Subscriber.prototype.unsubscribe = function() {\n if (this._isUnsubscribed) {\n return;\n } else if (this._subscription) {\n this._isUnsubscribed = true;\n } else {\n _super.prototype.unsubscribe.call(this);\n }\n };\n Subscriber.prototype._next = function(value) {\n var destination = this.destination;\n if (destination.next) {\n destination.next(value);\n }\n };\n Subscriber.prototype._error = function(err) {\n var destination = this.destination;\n if (destination.error) {\n destination.error(err);\n }\n };\n Subscriber.prototype._complete = function() {\n var destination = this.destination;\n if (destination.complete) {\n destination.complete();\n }\n };\n Subscriber.prototype.next = function(value) {\n if (!this.isUnsubscribed) {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function(err) {\n if (!this.isUnsubscribed) {\n this._error(err);\n this.unsubscribe();\n }\n };\n Subscriber.prototype.complete = function() {\n if (!this.isUnsubscribed) {\n this._complete();\n this.unsubscribe();\n }\n };\n return Subscriber;\n})(Subscription_1.Subscription);\nexports.Subscriber = Subscriber;\n","/* */ \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","/* */ \nvar root_1 = require('./root');\nfunction polyfillSymbol(root) {\n var Symbol = ensureSymbol(root);\n ensureIterator(Symbol, root);\n ensureObservable(Symbol);\n ensureFor(Symbol);\n return Symbol;\n}\nexports.polyfillSymbol = polyfillSymbol;\nfunction ensureFor(Symbol) {\n if (!Symbol.for) {\n Symbol.for = symbolForPolyfill;\n }\n}\nexports.ensureFor = ensureFor;\nvar id = 0;\nfunction ensureSymbol(root) {\n if (!root.Symbol) {\n root.Symbol = function symbolFuncPolyfill(description) {\n return \"@@Symbol(\" + description + \"):\" + id++;\n };\n }\n return root.Symbol;\n}\nexports.ensureSymbol = ensureSymbol;\nfunction symbolForPolyfill(key) {\n return '@@' + key;\n}\nexports.symbolForPolyfill = symbolForPolyfill;\nfunction ensureIterator(Symbol, root) {\n if (!Symbol.iterator) {\n if (typeof Symbol.for === 'function') {\n Symbol.iterator = Symbol.for('iterator');\n } else if (root.Set && typeof new root.Set()['@@iterator'] === 'function') {\n Symbol.iterator = '@@iterator';\n } else if (root.Map) {\n var keys = Object.getOwnPropertyNames(root.Map.prototype);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (key !== 'entries' && key !== 'size' && root.Map.prototype[key] === root.Map.prototype['entries']) {\n Symbol.iterator = key;\n break;\n }\n }\n } else {\n Symbol.iterator = '@@iterator';\n }\n }\n}\nexports.ensureIterator = ensureIterator;\nfunction ensureObservable(Symbol) {\n if (!Symbol.observable) {\n if (typeof Symbol.for === 'function') {\n Symbol.observable = Symbol.for('observable');\n } else {\n Symbol.observable = '@@observable';\n }\n }\n}\nexports.ensureObservable = ensureObservable;\nexports.SymbolShim = polyfillSymbol(root_1.root);\n","/* */ \nvar SymbolShim_1 = require('../util/SymbolShim');\nexports.rxSubscriber = SymbolShim_1.SymbolShim.for('rxSubscriber');\n","/* */ \nvar Subscriber_1 = require('./Subscriber');\nvar root_1 = require('./util/root');\nvar SymbolShim_1 = require('./util/SymbolShim');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\nvar Observable = (function() {\n function Observable(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\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 Observable.prototype[SymbolShim_1.SymbolShim.observable] = function() {\n return this;\n };\n Observable.prototype.subscribe = function(observerOrNext, error, complete) {\n var subscriber;\n if (observerOrNext && typeof observerOrNext === 'object') {\n if (observerOrNext instanceof Subscriber_1.Subscriber) {\n subscriber = observerOrNext;\n } else if (observerOrNext[rxSubscriber_1.rxSubscriber]) {\n subscriber = observerOrNext[rxSubscriber_1.rxSubscriber]();\n } else {\n subscriber = new Subscriber_1.Subscriber(observerOrNext);\n }\n } else {\n var next = observerOrNext;\n subscriber = Subscriber_1.Subscriber.create(next, error, complete);\n }\n subscriber.add(this._subscribe(subscriber));\n return subscriber;\n };\n Observable.prototype.forEach = function(next, thisArg, PromiseCtor) {\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 } 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 var nextHandler;\n if (thisArg) {\n nextHandler = function nextHandlerFn(value) {\n var _a = nextHandlerFn,\n thisArg = _a.thisArg,\n next = _a.next;\n return next.call(thisArg, value);\n };\n nextHandler.thisArg = thisArg;\n nextHandler.next = next;\n } else {\n nextHandler = next;\n }\n var promiseCallback = function promiseCallbackFn(resolve, reject) {\n var _a = promiseCallbackFn,\n source = _a.source,\n nextHandler = _a.nextHandler;\n source.subscribe(nextHandler, reject, resolve);\n };\n promiseCallback.source = this;\n promiseCallback.nextHandler = nextHandler;\n return new PromiseCtor(promiseCallback);\n };\n Observable.prototype._subscribe = function(subscriber) {\n return this.source._subscribe(this.operator.call(subscriber));\n };\n Observable.create = function(subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n})();\nexports.Observable = Observable;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar lang_1 = require('./lang');\nvar promise_1 = require('./promise');\nexports.PromiseWrapper = promise_1.PromiseWrapper;\nexports.Promise = promise_1.Promise;\nvar Subject_1 = require('rxjs/Subject');\nvar fromPromise_1 = require('rxjs/observable/fromPromise');\nvar toPromise_1 = require('rxjs/operator/toPromise');\nvar Observable_1 = require('rxjs/Observable');\nexports.Observable = Observable_1.Observable;\nvar Subject_2 = require('rxjs/Subject');\nexports.Subject = Subject_2.Subject;\nvar TimerWrapper = (function() {\n function TimerWrapper() {}\n TimerWrapper.setTimeout = function(fn, millis) {\n return lang_1.global.setTimeout(fn, millis);\n };\n TimerWrapper.clearTimeout = function(id) {\n lang_1.global.clearTimeout(id);\n };\n TimerWrapper.setInterval = function(fn, millis) {\n return lang_1.global.setInterval(fn, millis);\n };\n TimerWrapper.clearInterval = function(id) {\n lang_1.global.clearInterval(id);\n };\n return TimerWrapper;\n})();\nexports.TimerWrapper = TimerWrapper;\nvar ObservableWrapper = (function() {\n function ObservableWrapper() {}\n ObservableWrapper.subscribe = function(emitter, onNext, onError, onComplete) {\n if (onComplete === void 0) {\n onComplete = function() {};\n }\n onError = (typeof onError === \"function\") && onError || lang_1.noop;\n onComplete = (typeof onComplete === \"function\") && onComplete || lang_1.noop;\n return emitter.subscribe({\n next: onNext,\n error: onError,\n complete: onComplete\n });\n };\n ObservableWrapper.isObservable = function(obs) {\n return !!obs.subscribe;\n };\n ObservableWrapper.hasSubscribers = function(obs) {\n return obs.observers.length > 0;\n };\n ObservableWrapper.dispose = function(subscription) {\n subscription.unsubscribe();\n };\n ObservableWrapper.callNext = function(emitter, value) {\n emitter.next(value);\n };\n ObservableWrapper.callEmit = function(emitter, value) {\n emitter.emit(value);\n };\n ObservableWrapper.callError = function(emitter, error) {\n emitter.error(error);\n };\n ObservableWrapper.callComplete = function(emitter) {\n emitter.complete();\n };\n ObservableWrapper.fromPromise = function(promise) {\n return fromPromise_1.PromiseObservable.create(promise);\n };\n ObservableWrapper.toPromise = function(obj) {\n return toPromise_1.toPromise.call(obj);\n };\n return ObservableWrapper;\n})();\nexports.ObservableWrapper = ObservableWrapper;\nvar EventEmitter = (function(_super) {\n __extends(EventEmitter, _super);\n function EventEmitter(isAsync) {\n if (isAsync === void 0) {\n isAsync = true;\n }\n _super.call(this);\n this._isAsync = isAsync;\n }\n EventEmitter.prototype.emit = function(value) {\n _super.prototype.next.call(this, value);\n };\n EventEmitter.prototype.next = function(value) {\n _super.prototype.next.call(this, value);\n };\n EventEmitter.prototype.subscribe = function(generatorOrNext, error, complete) {\n var schedulerFn;\n var errorFn = function(err) {\n return null;\n };\n var completeFn = function() {\n return null;\n };\n if (generatorOrNext && typeof generatorOrNext === 'object') {\n schedulerFn = this._isAsync ? function(value) {\n setTimeout(function() {\n return generatorOrNext.next(value);\n });\n } : function(value) {\n generatorOrNext.next(value);\n };\n if (generatorOrNext.error) {\n errorFn = this._isAsync ? function(err) {\n setTimeout(function() {\n return generatorOrNext.error(err);\n });\n } : function(err) {\n generatorOrNext.error(err);\n };\n }\n if (generatorOrNext.complete) {\n completeFn = this._isAsync ? function() {\n setTimeout(function() {\n return generatorOrNext.complete();\n });\n } : function() {\n generatorOrNext.complete();\n };\n }\n } else {\n schedulerFn = this._isAsync ? function(value) {\n setTimeout(function() {\n return generatorOrNext(value);\n });\n } : function(value) {\n generatorOrNext(value);\n };\n if (error) {\n errorFn = this._isAsync ? function(err) {\n setTimeout(function() {\n return error(err);\n });\n } : function(err) {\n error(err);\n };\n }\n if (complete) {\n completeFn = this._isAsync ? function() {\n setTimeout(function() {\n return complete();\n });\n } : function() {\n complete();\n };\n }\n }\n return _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);\n };\n return EventEmitter;\n})(Subject_1.Subject);\nexports.EventEmitter = EventEmitter;\n","/* */ \n'use strict';\nvar collection_1 = require('../../facade/collection');\nvar lang_1 = require('../../facade/lang');\nvar async_1 = require('../../facade/async');\nvar QueryList = (function() {\n function QueryList() {\n this._results = [];\n this._emitter = new async_1.EventEmitter();\n }\n Object.defineProperty(QueryList.prototype, \"changes\", {\n get: function() {\n return this._emitter;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryList.prototype, \"length\", {\n get: function() {\n return this._results.length;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryList.prototype, \"first\", {\n get: function() {\n return collection_1.ListWrapper.first(this._results);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(QueryList.prototype, \"last\", {\n get: function() {\n return collection_1.ListWrapper.last(this._results);\n },\n enumerable: true,\n configurable: true\n });\n QueryList.prototype.map = function(fn) {\n return this._results.map(fn);\n };\n QueryList.prototype.filter = function(fn) {\n return this._results.filter(fn);\n };\n QueryList.prototype.reduce = function(fn, init) {\n return this._results.reduce(fn, init);\n };\n QueryList.prototype.toArray = function() {\n return collection_1.ListWrapper.clone(this._results);\n };\n QueryList.prototype[lang_1.getSymbolIterator()] = function() {\n return this._results[lang_1.getSymbolIterator()]();\n };\n QueryList.prototype.toString = function() {\n return this._results.toString();\n };\n QueryList.prototype.reset = function(res) {\n this._results = res;\n };\n QueryList.prototype.notifyOnChanges = function() {\n this._emitter.emit(this);\n };\n return QueryList;\n})();\nexports.QueryList = QueryList;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar provider_1 = require('../di/provider');\nvar di_1 = require('../di');\nvar PipeProvider = (function(_super) {\n __extends(PipeProvider, _super);\n function PipeProvider(name, pure, key, resolvedFactories, multiBinding) {\n _super.call(this, key, resolvedFactories, multiBinding);\n this.name = name;\n this.pure = pure;\n }\n PipeProvider.createFromType = function(type, metadata) {\n var provider = new di_1.Provider(type, {useClass: type});\n var rb = provider_1.resolveProvider(provider);\n return new PipeProvider(metadata.name, metadata.pure, rb.key, rb.resolvedFactories, rb.multiProvider);\n };\n return PipeProvider;\n})(provider_1.ResolvedProvider_);\nexports.PipeProvider = PipeProvider;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar di_1 = require('../di');\nvar provider_1 = require('../di/provider');\nvar injector_1 = require('../di/injector');\nvar provider_2 = require('../di/provider');\nvar di_2 = require('../metadata/di');\nvar view_type_1 = require('./view_type');\nvar element_ref_1 = require('./element_ref');\nvar view_container_ref_1 = require('./view_container_ref');\nvar element_ref_2 = require('./element_ref');\nvar api_1 = require('../render/api');\nvar template_ref_1 = require('./template_ref');\nvar directives_1 = require('../metadata/directives');\nvar change_detection_1 = require('../change_detection/change_detection');\nvar query_list_1 = require('./query_list');\nvar reflection_1 = require('../reflection/reflection');\nvar pipe_provider_1 = require('../pipes/pipe_provider');\nvar view_container_ref_2 = require('./view_container_ref');\nvar _staticKeys;\nvar StaticKeys = (function() {\n function StaticKeys() {\n this.templateRefId = di_1.Key.get(template_ref_1.TemplateRef).id;\n this.viewContainerId = di_1.Key.get(view_container_ref_1.ViewContainerRef).id;\n this.changeDetectorRefId = di_1.Key.get(change_detection_1.ChangeDetectorRef).id;\n this.elementRefId = di_1.Key.get(element_ref_2.ElementRef).id;\n this.rendererId = di_1.Key.get(api_1.Renderer).id;\n }\n StaticKeys.instance = function() {\n if (lang_1.isBlank(_staticKeys))\n _staticKeys = new StaticKeys();\n return _staticKeys;\n };\n return StaticKeys;\n})();\nexports.StaticKeys = StaticKeys;\nvar DirectiveDependency = (function(_super) {\n __extends(DirectiveDependency, _super);\n function DirectiveDependency(key, optional, lowerBoundVisibility, upperBoundVisibility, properties, attributeName, queryDecorator) {\n _super.call(this, key, optional, lowerBoundVisibility, upperBoundVisibility, properties);\n this.attributeName = attributeName;\n this.queryDecorator = queryDecorator;\n this._verify();\n }\n DirectiveDependency.prototype._verify = function() {\n var count = 0;\n if (lang_1.isPresent(this.queryDecorator))\n count++;\n if (lang_1.isPresent(this.attributeName))\n count++;\n if (count > 1)\n throw new exceptions_1.BaseException('A directive injectable can contain only one of the following @Attribute or @Query.');\n };\n DirectiveDependency.createFrom = function(d) {\n return new DirectiveDependency(d.key, d.optional, d.lowerBoundVisibility, d.upperBoundVisibility, d.properties, DirectiveDependency._attributeName(d.properties), DirectiveDependency._query(d.properties));\n };\n DirectiveDependency._attributeName = function(properties) {\n var p = properties.find(function(p) {\n return p instanceof di_2.AttributeMetadata;\n });\n return lang_1.isPresent(p) ? p.attributeName : null;\n };\n DirectiveDependency._query = function(properties) {\n return properties.find(function(p) {\n return p instanceof di_2.QueryMetadata;\n });\n };\n return DirectiveDependency;\n})(di_1.Dependency);\nexports.DirectiveDependency = DirectiveDependency;\nvar DirectiveProvider = (function(_super) {\n __extends(DirectiveProvider, _super);\n function DirectiveProvider(key, factory, deps, isComponent, providers, viewProviders, queries) {\n _super.call(this, key, [new provider_2.ResolvedFactory(factory, deps)], false);\n this.isComponent = isComponent;\n this.providers = providers;\n this.viewProviders = viewProviders;\n this.queries = queries;\n }\n Object.defineProperty(DirectiveProvider.prototype, \"displayName\", {\n get: function() {\n return this.key.displayName;\n },\n enumerable: true,\n configurable: true\n });\n DirectiveProvider.createFromType = function(type, meta) {\n var provider = new di_1.Provider(type, {useClass: type});\n if (lang_1.isBlank(meta)) {\n meta = new directives_1.DirectiveMetadata();\n }\n var rb = provider_2.resolveProvider(provider);\n var rf = rb.resolvedFactories[0];\n var deps = rf.dependencies.map(DirectiveDependency.createFrom);\n var isComponent = meta instanceof directives_1.ComponentMetadata;\n var resolvedProviders = lang_1.isPresent(meta.providers) ? di_1.Injector.resolve(meta.providers) : null;\n var resolvedViewProviders = meta instanceof directives_1.ComponentMetadata && lang_1.isPresent(meta.viewProviders) ? di_1.Injector.resolve(meta.viewProviders) : null;\n var queries = [];\n if (lang_1.isPresent(meta.queries)) {\n collection_1.StringMapWrapper.forEach(meta.queries, function(meta, fieldName) {\n var setter = reflection_1.reflector.setter(fieldName);\n queries.push(new QueryMetadataWithSetter(setter, meta));\n });\n }\n deps.forEach(function(d) {\n if (lang_1.isPresent(d.queryDecorator)) {\n queries.push(new QueryMetadataWithSetter(null, d.queryDecorator));\n }\n });\n return new DirectiveProvider(rb.key, rf.factory, deps, isComponent, resolvedProviders, resolvedViewProviders, queries);\n };\n return DirectiveProvider;\n})(provider_2.ResolvedProvider_);\nexports.DirectiveProvider = DirectiveProvider;\nvar QueryMetadataWithSetter = (function() {\n function QueryMetadataWithSetter(setter, metadata) {\n this.setter = setter;\n this.metadata = metadata;\n }\n return QueryMetadataWithSetter;\n})();\nexports.QueryMetadataWithSetter = QueryMetadataWithSetter;\nfunction setProvidersVisibility(providers, visibility, result) {\n for (var i = 0; i < providers.length; i++) {\n result.set(providers[i].key.id, visibility);\n }\n}\nvar AppProtoElement = (function() {\n function AppProtoElement(firstProviderIsComponent, index, attributes, pwvs, protoQueryRefs, directiveVariableBindings) {\n this.firstProviderIsComponent = firstProviderIsComponent;\n this.index = index;\n this.attributes = attributes;\n this.protoQueryRefs = protoQueryRefs;\n this.directiveVariableBindings = directiveVariableBindings;\n var length = pwvs.length;\n if (length > 0) {\n this.protoInjector = new injector_1.ProtoInjector(pwvs);\n } else {\n this.protoInjector = null;\n this.protoQueryRefs = [];\n }\n }\n AppProtoElement.create = function(metadataCache, index, attributes, directiveTypes, directiveVariableBindings) {\n var componentDirProvider = null;\n var mergedProvidersMap = new Map();\n var providerVisibilityMap = new Map();\n var providers = collection_1.ListWrapper.createGrowableSize(directiveTypes.length);\n var protoQueryRefs = [];\n for (var i = 0; i < directiveTypes.length; i++) {\n var dirProvider = metadataCache.getResolvedDirectiveMetadata(directiveTypes[i]);\n providers[i] = new injector_1.ProviderWithVisibility(dirProvider, dirProvider.isComponent ? injector_1.Visibility.PublicAndPrivate : injector_1.Visibility.Public);\n if (dirProvider.isComponent) {\n componentDirProvider = dirProvider;\n } else {\n if (lang_1.isPresent(dirProvider.providers)) {\n provider_1.mergeResolvedProviders(dirProvider.providers, mergedProvidersMap);\n setProvidersVisibility(dirProvider.providers, injector_1.Visibility.Public, providerVisibilityMap);\n }\n }\n if (lang_1.isPresent(dirProvider.viewProviders)) {\n provider_1.mergeResolvedProviders(dirProvider.viewProviders, mergedProvidersMap);\n setProvidersVisibility(dirProvider.viewProviders, injector_1.Visibility.Private, providerVisibilityMap);\n }\n for (var queryIdx = 0; queryIdx < dirProvider.queries.length; queryIdx++) {\n var q = dirProvider.queries[queryIdx];\n protoQueryRefs.push(new ProtoQueryRef(i, q.setter, q.metadata));\n }\n }\n if (lang_1.isPresent(componentDirProvider) && lang_1.isPresent(componentDirProvider.providers)) {\n provider_1.mergeResolvedProviders(componentDirProvider.providers, mergedProvidersMap);\n setProvidersVisibility(componentDirProvider.providers, injector_1.Visibility.Public, providerVisibilityMap);\n }\n mergedProvidersMap.forEach(function(provider, _) {\n providers.push(new injector_1.ProviderWithVisibility(provider, providerVisibilityMap.get(provider.key.id)));\n });\n return new AppProtoElement(lang_1.isPresent(componentDirProvider), index, attributes, providers, protoQueryRefs, directiveVariableBindings);\n };\n AppProtoElement.prototype.getProviderAtIndex = function(index) {\n return this.protoInjector.getProviderAtIndex(index);\n };\n return AppProtoElement;\n})();\nexports.AppProtoElement = AppProtoElement;\nvar _Context = (function() {\n function _Context(element, componentElement, injector) {\n this.element = element;\n this.componentElement = componentElement;\n this.injector = injector;\n }\n return _Context;\n})();\nvar InjectorWithHostBoundary = (function() {\n function InjectorWithHostBoundary(injector, hostInjectorBoundary) {\n this.injector = injector;\n this.hostInjectorBoundary = hostInjectorBoundary;\n }\n return InjectorWithHostBoundary;\n})();\nexports.InjectorWithHostBoundary = InjectorWithHostBoundary;\nvar AppElement = (function() {\n function AppElement(proto, parentView, parent, nativeElement, embeddedViewFactory) {\n var _this = this;\n this.proto = proto;\n this.parentView = parentView;\n this.parent = parent;\n this.nativeElement = nativeElement;\n this.embeddedViewFactory = embeddedViewFactory;\n this.nestedViews = null;\n this.componentView = null;\n this.ref = new element_ref_1.ElementRef_(this);\n var parentInjector = lang_1.isPresent(parent) ? parent._injector : parentView.parentInjector;\n if (lang_1.isPresent(this.proto.protoInjector)) {\n var isBoundary;\n if (lang_1.isPresent(parent) && lang_1.isPresent(parent.proto.protoInjector)) {\n isBoundary = false;\n } else {\n isBoundary = parentView.hostInjectorBoundary;\n }\n this._queryStrategy = this._buildQueryStrategy();\n this._injector = new di_1.Injector(this.proto.protoInjector, parentInjector, isBoundary, this, function() {\n return _this._debugContext();\n });\n var injectorStrategy = this._injector.internalStrategy;\n this._strategy = injectorStrategy instanceof injector_1.InjectorInlineStrategy ? new ElementDirectiveInlineStrategy(injectorStrategy, this) : new ElementDirectiveDynamicStrategy(injectorStrategy, this);\n this._strategy.init();\n } else {\n this._queryStrategy = null;\n this._injector = parentInjector;\n this._strategy = null;\n }\n }\n AppElement.getViewParentInjector = function(parentViewType, containerAppElement, imperativelyCreatedProviders, rootInjector) {\n var parentInjector;\n var hostInjectorBoundary;\n switch (parentViewType) {\n case view_type_1.ViewType.COMPONENT:\n parentInjector = containerAppElement._injector;\n hostInjectorBoundary = true;\n break;\n case view_type_1.ViewType.EMBEDDED:\n parentInjector = lang_1.isPresent(containerAppElement.proto.protoInjector) ? containerAppElement._injector.parent : containerAppElement._injector;\n hostInjectorBoundary = containerAppElement._injector.hostBoundary;\n break;\n case view_type_1.ViewType.HOST:\n if (lang_1.isPresent(containerAppElement)) {\n parentInjector = lang_1.isPresent(containerAppElement.proto.protoInjector) ? containerAppElement._injector.parent : containerAppElement._injector;\n if (lang_1.isPresent(imperativelyCreatedProviders)) {\n var imperativeProvidersWithVisibility = imperativelyCreatedProviders.map(function(p) {\n return new injector_1.ProviderWithVisibility(p, injector_1.Visibility.Public);\n });\n parentInjector = new di_1.Injector(new injector_1.ProtoInjector(imperativeProvidersWithVisibility), parentInjector, true, null, null);\n hostInjectorBoundary = false;\n } else {\n hostInjectorBoundary = containerAppElement._injector.hostBoundary;\n }\n } else {\n parentInjector = rootInjector;\n hostInjectorBoundary = true;\n }\n break;\n }\n return new InjectorWithHostBoundary(parentInjector, hostInjectorBoundary);\n };\n AppElement.prototype.attachComponentView = function(componentView) {\n this.componentView = componentView;\n };\n AppElement.prototype._debugContext = function() {\n var c = this.parentView.getDebugContext(this, null, null);\n return lang_1.isPresent(c) ? new _Context(c.element, c.componentElement, c.injector) : null;\n };\n AppElement.prototype.hasVariableBinding = function(name) {\n var vb = this.proto.directiveVariableBindings;\n return lang_1.isPresent(vb) && collection_1.StringMapWrapper.contains(vb, name);\n };\n AppElement.prototype.getVariableBinding = function(name) {\n var index = this.proto.directiveVariableBindings[name];\n return lang_1.isPresent(index) ? this.getDirectiveAtIndex(index) : this.getElementRef();\n };\n AppElement.prototype.get = function(token) {\n return this._injector.get(token);\n };\n AppElement.prototype.hasDirective = function(type) {\n return lang_1.isPresent(this._injector.getOptional(type));\n };\n AppElement.prototype.getComponent = function() {\n return lang_1.isPresent(this._strategy) ? this._strategy.getComponent() : null;\n };\n AppElement.prototype.getInjector = function() {\n return this._injector;\n };\n AppElement.prototype.getElementRef = function() {\n return this.ref;\n };\n AppElement.prototype.getViewContainerRef = function() {\n return new view_container_ref_2.ViewContainerRef_(this);\n };\n AppElement.prototype.getTemplateRef = function() {\n if (lang_1.isPresent(this.embeddedViewFactory)) {\n return new template_ref_1.TemplateRef_(this.ref);\n }\n return null;\n };\n AppElement.prototype.getDependency = function(injector, provider, dep) {\n if (provider instanceof DirectiveProvider) {\n var dirDep = dep;\n if (lang_1.isPresent(dirDep.attributeName))\n return this._buildAttribute(dirDep);\n if (lang_1.isPresent(dirDep.queryDecorator))\n return this._queryStrategy.findQuery(dirDep.queryDecorator).list;\n if (dirDep.key.id === StaticKeys.instance().changeDetectorRefId) {\n if (this.proto.firstProviderIsComponent) {\n return new _ComponentViewChangeDetectorRef(this);\n } else {\n return this.parentView.changeDetector.ref;\n }\n }\n if (dirDep.key.id === StaticKeys.instance().elementRefId) {\n return this.getElementRef();\n }\n if (dirDep.key.id === StaticKeys.instance().viewContainerId) {\n return this.getViewContainerRef();\n }\n if (dirDep.key.id === StaticKeys.instance().templateRefId) {\n var tr = this.getTemplateRef();\n if (lang_1.isBlank(tr) && !dirDep.optional) {\n throw new di_1.NoProviderError(null, dirDep.key);\n }\n return tr;\n }\n if (dirDep.key.id === StaticKeys.instance().rendererId) {\n return this.parentView.renderer;\n }\n } else if (provider instanceof pipe_provider_1.PipeProvider) {\n if (dep.key.id === StaticKeys.instance().changeDetectorRefId) {\n if (this.proto.firstProviderIsComponent) {\n return new _ComponentViewChangeDetectorRef(this);\n } else {\n return this.parentView.changeDetector;\n }\n }\n }\n return injector_1.UNDEFINED;\n };\n AppElement.prototype._buildAttribute = function(dep) {\n var attributes = this.proto.attributes;\n if (lang_1.isPresent(attributes) && collection_1.StringMapWrapper.contains(attributes, dep.attributeName)) {\n return attributes[dep.attributeName];\n } else {\n return null;\n }\n };\n AppElement.prototype.addDirectivesMatchingQuery = function(query, list) {\n var templateRef = this.getTemplateRef();\n if (query.selector === template_ref_1.TemplateRef && lang_1.isPresent(templateRef)) {\n list.push(templateRef);\n }\n if (this._strategy != null) {\n this._strategy.addDirectivesMatchingQuery(query, list);\n }\n };\n AppElement.prototype._buildQueryStrategy = function() {\n if (this.proto.protoQueryRefs.length === 0) {\n return _emptyQueryStrategy;\n } else if (this.proto.protoQueryRefs.length <= InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES) {\n return new InlineQueryStrategy(this);\n } else {\n return new DynamicQueryStrategy(this);\n }\n };\n AppElement.prototype.getDirectiveAtIndex = function(index) {\n return this._injector.getAt(index);\n };\n AppElement.prototype.ngAfterViewChecked = function() {\n if (lang_1.isPresent(this._queryStrategy))\n this._queryStrategy.updateViewQueries();\n };\n AppElement.prototype.ngAfterContentChecked = function() {\n if (lang_1.isPresent(this._queryStrategy))\n this._queryStrategy.updateContentQueries();\n };\n AppElement.prototype.traverseAndSetQueriesAsDirty = function() {\n var inj = this;\n while (lang_1.isPresent(inj)) {\n inj._setQueriesAsDirty();\n if (lang_1.isBlank(inj.parent) && inj.parentView.proto.type === view_type_1.ViewType.EMBEDDED) {\n inj = inj.parentView.containerAppElement;\n } else {\n inj = inj.parent;\n }\n }\n };\n AppElement.prototype._setQueriesAsDirty = function() {\n if (lang_1.isPresent(this._queryStrategy)) {\n this._queryStrategy.setContentQueriesAsDirty();\n }\n if (this.parentView.proto.type === view_type_1.ViewType.COMPONENT) {\n this.parentView.containerAppElement._queryStrategy.setViewQueriesAsDirty();\n }\n };\n return AppElement;\n})();\nexports.AppElement = AppElement;\nvar _EmptyQueryStrategy = (function() {\n function _EmptyQueryStrategy() {}\n _EmptyQueryStrategy.prototype.setContentQueriesAsDirty = function() {};\n _EmptyQueryStrategy.prototype.setViewQueriesAsDirty = function() {};\n _EmptyQueryStrategy.prototype.updateContentQueries = function() {};\n _EmptyQueryStrategy.prototype.updateViewQueries = function() {};\n _EmptyQueryStrategy.prototype.findQuery = function(query) {\n throw new exceptions_1.BaseException(\"Cannot find query for directive \" + query + \".\");\n };\n return _EmptyQueryStrategy;\n})();\nvar _emptyQueryStrategy = new _EmptyQueryStrategy();\nvar InlineQueryStrategy = (function() {\n function InlineQueryStrategy(ei) {\n var protoRefs = ei.proto.protoQueryRefs;\n if (protoRefs.length > 0)\n this.query0 = new QueryRef(protoRefs[0], ei);\n if (protoRefs.length > 1)\n this.query1 = new QueryRef(protoRefs[1], ei);\n if (protoRefs.length > 2)\n this.query2 = new QueryRef(protoRefs[2], ei);\n }\n InlineQueryStrategy.prototype.setContentQueriesAsDirty = function() {\n if (lang_1.isPresent(this.query0) && !this.query0.isViewQuery)\n this.query0.dirty = true;\n if (lang_1.isPresent(this.query1) && !this.query1.isViewQuery)\n this.query1.dirty = true;\n if (lang_1.isPresent(this.query2) && !this.query2.isViewQuery)\n this.query2.dirty = true;\n };\n InlineQueryStrategy.prototype.setViewQueriesAsDirty = function() {\n if (lang_1.isPresent(this.query0) && this.query0.isViewQuery)\n this.query0.dirty = true;\n if (lang_1.isPresent(this.query1) && this.query1.isViewQuery)\n this.query1.dirty = true;\n if (lang_1.isPresent(this.query2) && this.query2.isViewQuery)\n this.query2.dirty = true;\n };\n InlineQueryStrategy.prototype.updateContentQueries = function() {\n if (lang_1.isPresent(this.query0) && !this.query0.isViewQuery) {\n this.query0.update();\n }\n if (lang_1.isPresent(this.query1) && !this.query1.isViewQuery) {\n this.query1.update();\n }\n if (lang_1.isPresent(this.query2) && !this.query2.isViewQuery) {\n this.query2.update();\n }\n };\n InlineQueryStrategy.prototype.updateViewQueries = function() {\n if (lang_1.isPresent(this.query0) && this.query0.isViewQuery) {\n this.query0.update();\n }\n if (lang_1.isPresent(this.query1) && this.query1.isViewQuery) {\n this.query1.update();\n }\n if (lang_1.isPresent(this.query2) && this.query2.isViewQuery) {\n this.query2.update();\n }\n };\n InlineQueryStrategy.prototype.findQuery = function(query) {\n if (lang_1.isPresent(this.query0) && this.query0.protoQueryRef.query === query) {\n return this.query0;\n }\n if (lang_1.isPresent(this.query1) && this.query1.protoQueryRef.query === query) {\n return this.query1;\n }\n if (lang_1.isPresent(this.query2) && this.query2.protoQueryRef.query === query) {\n return this.query2;\n }\n throw new exceptions_1.BaseException(\"Cannot find query for directive \" + query + \".\");\n };\n InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES = 3;\n return InlineQueryStrategy;\n})();\nvar DynamicQueryStrategy = (function() {\n function DynamicQueryStrategy(ei) {\n this.queries = ei.proto.protoQueryRefs.map(function(p) {\n return new QueryRef(p, ei);\n });\n }\n DynamicQueryStrategy.prototype.setContentQueriesAsDirty = function() {\n for (var i = 0; i < this.queries.length; ++i) {\n var q = this.queries[i];\n if (!q.isViewQuery)\n q.dirty = true;\n }\n };\n DynamicQueryStrategy.prototype.setViewQueriesAsDirty = function() {\n for (var i = 0; i < this.queries.length; ++i) {\n var q = this.queries[i];\n if (q.isViewQuery)\n q.dirty = true;\n }\n };\n DynamicQueryStrategy.prototype.updateContentQueries = function() {\n for (var i = 0; i < this.queries.length; ++i) {\n var q = this.queries[i];\n if (!q.isViewQuery) {\n q.update();\n }\n }\n };\n DynamicQueryStrategy.prototype.updateViewQueries = function() {\n for (var i = 0; i < this.queries.length; ++i) {\n var q = this.queries[i];\n if (q.isViewQuery) {\n q.update();\n }\n }\n };\n DynamicQueryStrategy.prototype.findQuery = function(query) {\n for (var i = 0; i < this.queries.length; ++i) {\n var q = this.queries[i];\n if (q.protoQueryRef.query === query) {\n return q;\n }\n }\n throw new exceptions_1.BaseException(\"Cannot find query for directive \" + query + \".\");\n };\n return DynamicQueryStrategy;\n})();\nvar ElementDirectiveInlineStrategy = (function() {\n function ElementDirectiveInlineStrategy(injectorStrategy, _ei) {\n this.injectorStrategy = injectorStrategy;\n this._ei = _ei;\n }\n ElementDirectiveInlineStrategy.prototype.init = function() {\n var i = this.injectorStrategy;\n var p = i.protoStrategy;\n i.resetConstructionCounter();\n if (p.provider0 instanceof DirectiveProvider && lang_1.isPresent(p.keyId0) && i.obj0 === injector_1.UNDEFINED)\n i.obj0 = i.instantiateProvider(p.provider0, p.visibility0);\n if (p.provider1 instanceof DirectiveProvider && lang_1.isPresent(p.keyId1) && i.obj1 === injector_1.UNDEFINED)\n i.obj1 = i.instantiateProvider(p.provider1, p.visibility1);\n if (p.provider2 instanceof DirectiveProvider && lang_1.isPresent(p.keyId2) && i.obj2 === injector_1.UNDEFINED)\n i.obj2 = i.instantiateProvider(p.provider2, p.visibility2);\n if (p.provider3 instanceof DirectiveProvider && lang_1.isPresent(p.keyId3) && i.obj3 === injector_1.UNDEFINED)\n i.obj3 = i.instantiateProvider(p.provider3, p.visibility3);\n if (p.provider4 instanceof DirectiveProvider && lang_1.isPresent(p.keyId4) && i.obj4 === injector_1.UNDEFINED)\n i.obj4 = i.instantiateProvider(p.provider4, p.visibility4);\n if (p.provider5 instanceof DirectiveProvider && lang_1.isPresent(p.keyId5) && i.obj5 === injector_1.UNDEFINED)\n i.obj5 = i.instantiateProvider(p.provider5, p.visibility5);\n if (p.provider6 instanceof DirectiveProvider && lang_1.isPresent(p.keyId6) && i.obj6 === injector_1.UNDEFINED)\n i.obj6 = i.instantiateProvider(p.provider6, p.visibility6);\n if (p.provider7 instanceof DirectiveProvider && lang_1.isPresent(p.keyId7) && i.obj7 === injector_1.UNDEFINED)\n i.obj7 = i.instantiateProvider(p.provider7, p.visibility7);\n if (p.provider8 instanceof DirectiveProvider && lang_1.isPresent(p.keyId8) && i.obj8 === injector_1.UNDEFINED)\n i.obj8 = i.instantiateProvider(p.provider8, p.visibility8);\n if (p.provider9 instanceof DirectiveProvider && lang_1.isPresent(p.keyId9) && i.obj9 === injector_1.UNDEFINED)\n i.obj9 = i.instantiateProvider(p.provider9, p.visibility9);\n };\n ElementDirectiveInlineStrategy.prototype.getComponent = function() {\n return this.injectorStrategy.obj0;\n };\n ElementDirectiveInlineStrategy.prototype.isComponentKey = function(key) {\n return this._ei.proto.firstProviderIsComponent && lang_1.isPresent(key) && key.id === this.injectorStrategy.protoStrategy.keyId0;\n };\n ElementDirectiveInlineStrategy.prototype.addDirectivesMatchingQuery = function(query, list) {\n var i = this.injectorStrategy;\n var p = i.protoStrategy;\n if (lang_1.isPresent(p.provider0) && p.provider0.key.token === query.selector) {\n if (i.obj0 === injector_1.UNDEFINED)\n i.obj0 = i.instantiateProvider(p.provider0, p.visibility0);\n list.push(i.obj0);\n }\n if (lang_1.isPresent(p.provider1) && p.provider1.key.token === query.selector) {\n if (i.obj1 === injector_1.UNDEFINED)\n i.obj1 = i.instantiateProvider(p.provider1, p.visibility1);\n list.push(i.obj1);\n }\n if (lang_1.isPresent(p.provider2) && p.provider2.key.token === query.selector) {\n if (i.obj2 === injector_1.UNDEFINED)\n i.obj2 = i.instantiateProvider(p.provider2, p.visibility2);\n list.push(i.obj2);\n }\n if (lang_1.isPresent(p.provider3) && p.provider3.key.token === query.selector) {\n if (i.obj3 === injector_1.UNDEFINED)\n i.obj3 = i.instantiateProvider(p.provider3, p.visibility3);\n list.push(i.obj3);\n }\n if (lang_1.isPresent(p.provider4) && p.provider4.key.token === query.selector) {\n if (i.obj4 === injector_1.UNDEFINED)\n i.obj4 = i.instantiateProvider(p.provider4, p.visibility4);\n list.push(i.obj4);\n }\n if (lang_1.isPresent(p.provider5) && p.provider5.key.token === query.selector) {\n if (i.obj5 === injector_1.UNDEFINED)\n i.obj5 = i.instantiateProvider(p.provider5, p.visibility5);\n list.push(i.obj5);\n }\n if (lang_1.isPresent(p.provider6) && p.provider6.key.token === query.selector) {\n if (i.obj6 === injector_1.UNDEFINED)\n i.obj6 = i.instantiateProvider(p.provider6, p.visibility6);\n list.push(i.obj6);\n }\n if (lang_1.isPresent(p.provider7) && p.provider7.key.token === query.selector) {\n if (i.obj7 === injector_1.UNDEFINED)\n i.obj7 = i.instantiateProvider(p.provider7, p.visibility7);\n list.push(i.obj7);\n }\n if (lang_1.isPresent(p.provider8) && p.provider8.key.token === query.selector) {\n if (i.obj8 === injector_1.UNDEFINED)\n i.obj8 = i.instantiateProvider(p.provider8, p.visibility8);\n list.push(i.obj8);\n }\n if (lang_1.isPresent(p.provider9) && p.provider9.key.token === query.selector) {\n if (i.obj9 === injector_1.UNDEFINED)\n i.obj9 = i.instantiateProvider(p.provider9, p.visibility9);\n list.push(i.obj9);\n }\n };\n return ElementDirectiveInlineStrategy;\n})();\nvar ElementDirectiveDynamicStrategy = (function() {\n function ElementDirectiveDynamicStrategy(injectorStrategy, _ei) {\n this.injectorStrategy = injectorStrategy;\n this._ei = _ei;\n }\n ElementDirectiveDynamicStrategy.prototype.init = function() {\n var inj = this.injectorStrategy;\n var p = inj.protoStrategy;\n inj.resetConstructionCounter();\n for (var i = 0; i < p.keyIds.length; i++) {\n if (p.providers[i] instanceof DirectiveProvider && lang_1.isPresent(p.keyIds[i]) && inj.objs[i] === injector_1.UNDEFINED) {\n inj.objs[i] = inj.instantiateProvider(p.providers[i], p.visibilities[i]);\n }\n }\n };\n ElementDirectiveDynamicStrategy.prototype.getComponent = function() {\n return this.injectorStrategy.objs[0];\n };\n ElementDirectiveDynamicStrategy.prototype.isComponentKey = function(key) {\n var p = this.injectorStrategy.protoStrategy;\n return this._ei.proto.firstProviderIsComponent && lang_1.isPresent(key) && key.id === p.keyIds[0];\n };\n ElementDirectiveDynamicStrategy.prototype.addDirectivesMatchingQuery = function(query, list) {\n var ist = this.injectorStrategy;\n var p = ist.protoStrategy;\n for (var i = 0; i < p.providers.length; i++) {\n if (p.providers[i].key.token === query.selector) {\n if (ist.objs[i] === injector_1.UNDEFINED) {\n ist.objs[i] = ist.instantiateProvider(p.providers[i], p.visibilities[i]);\n }\n list.push(ist.objs[i]);\n }\n }\n };\n return ElementDirectiveDynamicStrategy;\n})();\nvar ProtoQueryRef = (function() {\n function ProtoQueryRef(dirIndex, setter, query) {\n this.dirIndex = dirIndex;\n this.setter = setter;\n this.query = query;\n }\n Object.defineProperty(ProtoQueryRef.prototype, \"usesPropertySyntax\", {\n get: function() {\n return lang_1.isPresent(this.setter);\n },\n enumerable: true,\n configurable: true\n });\n return ProtoQueryRef;\n})();\nexports.ProtoQueryRef = ProtoQueryRef;\nvar QueryRef = (function() {\n function QueryRef(protoQueryRef, originator) {\n this.protoQueryRef = protoQueryRef;\n this.originator = originator;\n this.list = new query_list_1.QueryList();\n this.dirty = true;\n }\n Object.defineProperty(QueryRef.prototype, \"isViewQuery\", {\n get: function() {\n return this.protoQueryRef.query.isViewQuery;\n },\n enumerable: true,\n configurable: true\n });\n QueryRef.prototype.update = function() {\n if (!this.dirty)\n return;\n this._update();\n this.dirty = false;\n if (this.protoQueryRef.usesPropertySyntax) {\n var dir = this.originator.getDirectiveAtIndex(this.protoQueryRef.dirIndex);\n if (this.protoQueryRef.query.first) {\n this.protoQueryRef.setter(dir, this.list.length > 0 ? this.list.first : null);\n } else {\n this.protoQueryRef.setter(dir, this.list);\n }\n }\n this.list.notifyOnChanges();\n };\n QueryRef.prototype._update = function() {\n var aggregator = [];\n if (this.protoQueryRef.query.isViewQuery) {\n var nestedView = this.originator.componentView;\n if (lang_1.isPresent(nestedView))\n this._visitView(nestedView, aggregator);\n } else {\n this._visit(this.originator, aggregator);\n }\n this.list.reset(aggregator);\n };\n ;\n QueryRef.prototype._visit = function(inj, aggregator) {\n var view = inj.parentView;\n var startIdx = inj.proto.index;\n for (var i = startIdx; i < view.appElements.length; i++) {\n var curInj = view.appElements[i];\n if (i > startIdx && (lang_1.isBlank(curInj.parent) || curInj.parent.proto.index < startIdx)) {\n break;\n }\n if (!this.protoQueryRef.query.descendants && !(curInj.parent == this.originator || curInj == this.originator))\n continue;\n this._visitInjector(curInj, aggregator);\n this._visitViewContainerViews(curInj.nestedViews, aggregator);\n }\n };\n QueryRef.prototype._visitInjector = function(inj, aggregator) {\n if (this.protoQueryRef.query.isVarBindingQuery) {\n this._aggregateVariableBinding(inj, aggregator);\n } else {\n this._aggregateDirective(inj, aggregator);\n }\n };\n QueryRef.prototype._visitViewContainerViews = function(views, aggregator) {\n if (lang_1.isPresent(views)) {\n for (var j = 0; j < views.length; j++) {\n this._visitView(views[j], aggregator);\n }\n }\n };\n QueryRef.prototype._visitView = function(view, aggregator) {\n for (var i = 0; i < view.appElements.length; i++) {\n var inj = view.appElements[i];\n this._visitInjector(inj, aggregator);\n this._visitViewContainerViews(inj.nestedViews, aggregator);\n }\n };\n QueryRef.prototype._aggregateVariableBinding = function(inj, aggregator) {\n var vb = this.protoQueryRef.query.varBindings;\n for (var i = 0; i < vb.length; ++i) {\n if (inj.hasVariableBinding(vb[i])) {\n aggregator.push(inj.getVariableBinding(vb[i]));\n }\n }\n };\n QueryRef.prototype._aggregateDirective = function(inj, aggregator) {\n inj.addDirectivesMatchingQuery(this.protoQueryRef.query, aggregator);\n };\n return QueryRef;\n})();\nexports.QueryRef = QueryRef;\nvar _ComponentViewChangeDetectorRef = (function(_super) {\n __extends(_ComponentViewChangeDetectorRef, _super);\n function _ComponentViewChangeDetectorRef(_appElement) {\n _super.call(this);\n this._appElement = _appElement;\n }\n _ComponentViewChangeDetectorRef.prototype.markForCheck = function() {\n this._appElement.componentView.changeDetector.ref.markForCheck();\n };\n _ComponentViewChangeDetectorRef.prototype.detach = function() {\n this._appElement.componentView.changeDetector.ref.detach();\n };\n _ComponentViewChangeDetectorRef.prototype.detectChanges = function() {\n this._appElement.componentView.changeDetector.ref.detectChanges();\n };\n _ComponentViewChangeDetectorRef.prototype.checkNoChanges = function() {\n this._appElement.componentView.changeDetector.ref.checkNoChanges();\n };\n _ComponentViewChangeDetectorRef.prototype.reattach = function() {\n this._appElement.componentView.changeDetector.ref.reattach();\n };\n return _ComponentViewChangeDetectorRef;\n})(change_detection_1.ChangeDetectorRef);\n","/* */ \n'use strict';var RenderComponentType = (function () {\r\n function RenderComponentType(id, encapsulation, styles) {\r\n this.id = id;\r\n this.encapsulation = encapsulation;\r\n this.styles = styles;\r\n }\r\n return RenderComponentType;\r\n})();\r\nexports.RenderComponentType = RenderComponentType;\r\nvar RenderDebugInfo = (function () {\r\n function RenderDebugInfo(injector, component, providerTokens, locals) {\r\n this.injector = injector;\r\n this.component = component;\r\n this.providerTokens = providerTokens;\r\n this.locals = locals;\r\n }\r\n return RenderDebugInfo;\r\n})();\r\nexports.RenderDebugInfo = RenderDebugInfo;\r\nvar Renderer = (function () {\r\n function Renderer() {\r\n }\r\n return Renderer;\r\n})();\r\nexports.Renderer = Renderer;\r\n/**\r\n * Injectable service that provides a low-level interface for modifying the UI.\r\n *\r\n * Use this service to bypass Angular's templating and make custom UI changes that can't be\r\n * expressed declaratively. For example if you need to set a property or an attribute whose name is\r\n * not statically known, use {@link #setElementProperty} or {@link #setElementAttribute}\r\n * respectively.\r\n *\r\n * If you are implementing a custom renderer, you must implement this interface.\r\n *\r\n * The default Renderer implementation is `DomRenderer`. Also available is `WebWorkerRenderer`.\r\n */\r\nvar RootRenderer = (function () {\r\n function RootRenderer() {\r\n }\r\n return RootRenderer;\r\n})();\r\nexports.RootRenderer = RootRenderer;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2NvcmUvcmVuZGVyL2FwaS50cyJdLCJuYW1lcyI6WyJSZW5kZXJDb21wb25lbnRUeXBlIiwiUmVuZGVyQ29tcG9uZW50VHlwZS5jb25zdHJ1Y3RvciIsIlJlbmRlckRlYnVnSW5mbyIsIlJlbmRlckRlYnVnSW5mby5jb25zdHJ1Y3RvciIsIlJlbmRlcmVyIiwiUmVuZGVyZXIuY29uc3RydWN0b3IiLCJSb290UmVuZGVyZXIiLCJSb290UmVuZGVyZXIuY29uc3RydWN0b3IiXSwibWFwcGluZ3MiOiJBQUdBO0lBQ0VBLDZCQUFtQkEsRUFBVUEsRUFBU0EsYUFBZ0NBLEVBQ25EQSxNQUE2QkE7UUFEN0JDLE9BQUVBLEdBQUZBLEVBQUVBLENBQVFBO1FBQVNBLGtCQUFhQSxHQUFiQSxhQUFhQSxDQUFtQkE7UUFDbkRBLFdBQU1BLEdBQU5BLE1BQU1BLENBQXVCQTtJQUFHQSxDQUFDQTtJQUN0REQsMEJBQUNBO0FBQURBLENBQUNBLEFBSEQsSUFHQztBQUhZLDJCQUFtQixzQkFHL0IsQ0FBQTtBQUVEO0lBQ0VFLHlCQUFtQkEsUUFBa0JBLEVBQVNBLFNBQWNBLEVBQVNBLGNBQXFCQSxFQUN2RUEsTUFBd0JBO1FBRHhCQyxhQUFRQSxHQUFSQSxRQUFRQSxDQUFVQTtRQUFTQSxjQUFTQSxHQUFUQSxTQUFTQSxDQUFLQTtRQUFTQSxtQkFBY0EsR0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dHJhY3QgcmVuZGVyQ29tcG9uZW50KGNvbXBvbmVudFR5cGU6IFJlbmRlckNvbXBvbmVudFR5cGUpOiBSZW5kZXJlcjtcbn1cbiJdfQ==","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar trace;\nvar events;\nfunction detectWTF() {\n var wtf = lang_1.global['wtf'];\n if (wtf) {\n trace = wtf['trace'];\n if (trace) {\n events = trace['events'];\n return true;\n }\n }\n return false;\n}\nexports.detectWTF = detectWTF;\nfunction createScope(signature, flags) {\n if (flags === void 0) {\n flags = null;\n }\n return events.createScope(signature, flags);\n}\nexports.createScope = createScope;\nfunction leave(scope, returnValue) {\n trace.leaveScope(scope, returnValue);\n return returnValue;\n}\nexports.leave = leave;\nfunction startTimeRange(rangeType, action) {\n return trace.beginTimeRange(rangeType, action);\n}\nexports.startTimeRange = startTimeRange;\nfunction endTimeRange(range) {\n trace.endTimeRange(range);\n}\nexports.endTimeRange = endTimeRange;\n","/* */ \n'use strict';\nvar impl = require('./wtf_impl');\nexports.wtfEnabled = impl.detectWTF();\nfunction noopScope(arg0, arg1) {\n return null;\n}\nexports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function(signature, flags) {\n return noopScope;\n};\nexports.wtfLeave = exports.wtfEnabled ? impl.leave : function(s, r) {\n return r;\n};\nexports.wtfStartTimeRange = exports.wtfEnabled ? impl.startTimeRange : function(rangeType, action) {\n return null;\n};\nexports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function(r) {\n return null;\n};\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar _nextClassId = 0;\nfunction extractAnnotation(annotation) {\n if (lang_1.isFunction(annotation) && annotation.hasOwnProperty('annotation')) {\n annotation = annotation.annotation;\n }\n return annotation;\n}\nfunction applyParams(fnOrArray, key) {\n if (fnOrArray === Object || fnOrArray === String || fnOrArray === Function || fnOrArray === Number || fnOrArray === Array) {\n throw new Error(\"Can not use native \" + lang_1.stringify(fnOrArray) + \" as constructor\");\n }\n if (lang_1.isFunction(fnOrArray)) {\n return fnOrArray;\n } else if (fnOrArray instanceof Array) {\n var annotations = fnOrArray;\n var fn = fnOrArray[fnOrArray.length - 1];\n if (!lang_1.isFunction(fn)) {\n throw new Error(\"Last position of Class method array must be Function in key \" + key + \" was '\" + lang_1.stringify(fn) + \"'\");\n }\n var annoLength = annotations.length - 1;\n if (annoLength != fn.length) {\n throw new Error(\"Number of annotations (\" + annoLength + \") does not match number of arguments (\" + fn.length + \") in the function: \" + lang_1.stringify(fn));\n }\n var paramsAnnotations = [];\n for (var i = 0,\n 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 } else if (lang_1.isFunction(annotation)) {\n paramAnnotations.push(extractAnnotation(annotation));\n } else {\n paramAnnotations.push(annotation);\n }\n }\n Reflect.defineMetadata('parameters', paramsAnnotations, fn);\n return fn;\n } else {\n throw new Error(\"Only Function or Array is supported in Class definition for key '\" + key + \"' is '\" + lang_1.stringify(fnOrArray) + \"'\");\n }\n}\nfunction 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 (lang_1.isFunction(clsDef.extends)) {\n constructor.prototype = proto = Object.create(clsDef.extends.prototype);\n } else {\n throw new Error(\"Class definition 'extends' property must be a constructor function was: \" + lang_1.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 if (!constructor['name']) {\n constructor['overriddenName'] = \"class\" + _nextClassId++;\n }\n return constructor;\n}\nexports.Class = Class;\nvar Reflect = lang_1.global.Reflect;\nif (!(Reflect && Reflect.getMetadata)) {\n throw 'reflect-metadata shim is required when using class decorators';\n}\nfunction makeDecorator(annotationCls, chainFn) {\n if (chainFn === void 0) {\n chainFn = null;\n }\n function DecoratorFactory(objOrType) {\n var annotationInstance = new annotationCls(objOrType);\n if (this instanceof annotationCls) {\n return annotationInstance;\n } else {\n var chainAnnotation = lang_1.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 = annotations || [];\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 return DecoratorFactory;\n}\nexports.makeDecorator = makeDecorator;\nfunction 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 } else {\n ParamDecorator.annotation = annotationInstance;\n return ParamDecorator;\n }\n function ParamDecorator(cls, unusedKey, index) {\n var parameters = Reflect.getMetadata('parameters', cls);\n parameters = parameters || [];\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 return ParamDecoratorFactory;\n}\nexports.makeParamDecorator = makeParamDecorator;\nfunction makePropDecorator(decoratorCls) {\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(decoratorCls.prototype);\n decoratorCls.apply(decoratorInstance, args);\n if (this instanceof decoratorCls) {\n return decoratorInstance;\n } else {\n return function PropDecorator(target, name) {\n var meta = Reflect.getOwnMetadata('propMetadata', target.constructor);\n meta = meta || {};\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(decoratorCls.prototype);\n return PropDecoratorFactory;\n}\nexports.makePropDecorator = makePropDecorator;\n","/* */ \n'use strict';\nvar metadata_1 = require('./metadata');\nvar decorators_1 = require('../util/decorators');\nexports.Inject = decorators_1.makeParamDecorator(metadata_1.InjectMetadata);\nexports.Optional = decorators_1.makeParamDecorator(metadata_1.OptionalMetadata);\nexports.Injectable = decorators_1.makeDecorator(metadata_1.InjectableMetadata);\nexports.Self = decorators_1.makeParamDecorator(metadata_1.SelfMetadata);\nexports.Host = decorators_1.makeParamDecorator(metadata_1.HostMetadata);\nexports.SkipSelf = decorators_1.makeParamDecorator(metadata_1.SkipSelfMetadata);\n","// shim for using process in browser\n\nvar process = module.exports = {};\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\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 = setTimeout(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 clearTimeout(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 setTimeout(drainQueue, 0);\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","module.exports = require(\"npm:process@0.11.2/browser.js\");","module.exports = System._nodeRequire ? process : require('process');","module.exports = require(\"github:jspm/nodelibs-process@0.1.2/index\");","/* */ \n(function(process) {\n 'use strict';\n var collection_1 = require('../../facade/collection');\n var provider_1 = require('./provider');\n var exceptions_1 = require('./exceptions');\n var lang_1 = require('../../facade/lang');\n var exceptions_2 = require('../../facade/exceptions');\n var key_1 = require('./key');\n var metadata_1 = require('./metadata');\n var _MAX_CONSTRUCTION_COUNTER = 10;\n exports.UNDEFINED = lang_1.CONST_EXPR(new Object());\n (function(Visibility) {\n Visibility[Visibility[\"Public\"] = 0] = \"Public\";\n Visibility[Visibility[\"Private\"] = 1] = \"Private\";\n Visibility[Visibility[\"PublicAndPrivate\"] = 2] = \"PublicAndPrivate\";\n })(exports.Visibility || (exports.Visibility = {}));\n var Visibility = exports.Visibility;\n function canSee(src, dst) {\n return (src === dst) || (dst === Visibility.PublicAndPrivate || src === Visibility.PublicAndPrivate);\n }\n var ProtoInjectorInlineStrategy = (function() {\n function ProtoInjectorInlineStrategy(protoEI, bwv) {\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 this.visibility0 = null;\n this.visibility1 = null;\n this.visibility2 = null;\n this.visibility3 = null;\n this.visibility4 = null;\n this.visibility5 = null;\n this.visibility6 = null;\n this.visibility7 = null;\n this.visibility8 = null;\n this.visibility9 = null;\n var length = bwv.length;\n if (length > 0) {\n this.provider0 = bwv[0].provider;\n this.keyId0 = bwv[0].getKeyId();\n this.visibility0 = bwv[0].visibility;\n }\n if (length > 1) {\n this.provider1 = bwv[1].provider;\n this.keyId1 = bwv[1].getKeyId();\n this.visibility1 = bwv[1].visibility;\n }\n if (length > 2) {\n this.provider2 = bwv[2].provider;\n this.keyId2 = bwv[2].getKeyId();\n this.visibility2 = bwv[2].visibility;\n }\n if (length > 3) {\n this.provider3 = bwv[3].provider;\n this.keyId3 = bwv[3].getKeyId();\n this.visibility3 = bwv[3].visibility;\n }\n if (length > 4) {\n this.provider4 = bwv[4].provider;\n this.keyId4 = bwv[4].getKeyId();\n this.visibility4 = bwv[4].visibility;\n }\n if (length > 5) {\n this.provider5 = bwv[5].provider;\n this.keyId5 = bwv[5].getKeyId();\n this.visibility5 = bwv[5].visibility;\n }\n if (length > 6) {\n this.provider6 = bwv[6].provider;\n this.keyId6 = bwv[6].getKeyId();\n this.visibility6 = bwv[6].visibility;\n }\n if (length > 7) {\n this.provider7 = bwv[7].provider;\n this.keyId7 = bwv[7].getKeyId();\n this.visibility7 = bwv[7].visibility;\n }\n if (length > 8) {\n this.provider8 = bwv[8].provider;\n this.keyId8 = bwv[8].getKeyId();\n this.visibility8 = bwv[8].visibility;\n }\n if (length > 9) {\n this.provider9 = bwv[9].provider;\n this.keyId9 = bwv[9].getKeyId();\n this.visibility9 = bwv[9].visibility;\n }\n }\n ProtoInjectorInlineStrategy.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 exceptions_1.OutOfBoundsError(index);\n };\n ProtoInjectorInlineStrategy.prototype.createInjectorStrategy = function(injector) {\n return new InjectorInlineStrategy(injector, this);\n };\n return ProtoInjectorInlineStrategy;\n })();\n exports.ProtoInjectorInlineStrategy = ProtoInjectorInlineStrategy;\n var ProtoInjectorDynamicStrategy = (function() {\n function ProtoInjectorDynamicStrategy(protoInj, bwv) {\n var len = bwv.length;\n this.providers = collection_1.ListWrapper.createFixedSize(len);\n this.keyIds = collection_1.ListWrapper.createFixedSize(len);\n this.visibilities = collection_1.ListWrapper.createFixedSize(len);\n for (var i = 0; i < len; i++) {\n this.providers[i] = bwv[i].provider;\n this.keyIds[i] = bwv[i].getKeyId();\n this.visibilities[i] = bwv[i].visibility;\n }\n }\n ProtoInjectorDynamicStrategy.prototype.getProviderAtIndex = function(index) {\n if (index < 0 || index >= this.providers.length) {\n throw new exceptions_1.OutOfBoundsError(index);\n }\n return this.providers[index];\n };\n ProtoInjectorDynamicStrategy.prototype.createInjectorStrategy = function(ei) {\n return new InjectorDynamicStrategy(this, ei);\n };\n return ProtoInjectorDynamicStrategy;\n })();\n exports.ProtoInjectorDynamicStrategy = ProtoInjectorDynamicStrategy;\n var ProtoInjector = (function() {\n function ProtoInjector(bwv) {\n this.numberOfProviders = bwv.length;\n this._strategy = bwv.length > _MAX_CONSTRUCTION_COUNTER ? new ProtoInjectorDynamicStrategy(this, bwv) : new ProtoInjectorInlineStrategy(this, bwv);\n }\n ProtoInjector.fromResolvedProviders = function(providers) {\n var bd = providers.map(function(b) {\n return new ProviderWithVisibility(b, Visibility.Public);\n });\n return new ProtoInjector(bd);\n };\n ProtoInjector.prototype.getProviderAtIndex = function(index) {\n return this._strategy.getProviderAtIndex(index);\n };\n return ProtoInjector;\n })();\n exports.ProtoInjector = ProtoInjector;\n var InjectorInlineStrategy = (function() {\n function InjectorInlineStrategy(injector, protoStrategy) {\n this.injector = injector;\n this.protoStrategy = protoStrategy;\n this.obj0 = exports.UNDEFINED;\n this.obj1 = exports.UNDEFINED;\n this.obj2 = exports.UNDEFINED;\n this.obj3 = exports.UNDEFINED;\n this.obj4 = exports.UNDEFINED;\n this.obj5 = exports.UNDEFINED;\n this.obj6 = exports.UNDEFINED;\n this.obj7 = exports.UNDEFINED;\n this.obj8 = exports.UNDEFINED;\n this.obj9 = exports.UNDEFINED;\n }\n InjectorInlineStrategy.prototype.resetConstructionCounter = function() {\n this.injector._constructionCounter = 0;\n };\n InjectorInlineStrategy.prototype.instantiateProvider = function(provider, visibility) {\n return this.injector._new(provider, visibility);\n };\n InjectorInlineStrategy.prototype.getObjByKeyId = function(keyId, visibility) {\n var p = this.protoStrategy;\n var inj = this.injector;\n if (p.keyId0 === keyId && canSee(p.visibility0, visibility)) {\n if (this.obj0 === exports.UNDEFINED) {\n this.obj0 = inj._new(p.provider0, p.visibility0);\n }\n return this.obj0;\n }\n if (p.keyId1 === keyId && canSee(p.visibility1, visibility)) {\n if (this.obj1 === exports.UNDEFINED) {\n this.obj1 = inj._new(p.provider1, p.visibility1);\n }\n return this.obj1;\n }\n if (p.keyId2 === keyId && canSee(p.visibility2, visibility)) {\n if (this.obj2 === exports.UNDEFINED) {\n this.obj2 = inj._new(p.provider2, p.visibility2);\n }\n return this.obj2;\n }\n if (p.keyId3 === keyId && canSee(p.visibility3, visibility)) {\n if (this.obj3 === exports.UNDEFINED) {\n this.obj3 = inj._new(p.provider3, p.visibility3);\n }\n return this.obj3;\n }\n if (p.keyId4 === keyId && canSee(p.visibility4, visibility)) {\n if (this.obj4 === exports.UNDEFINED) {\n this.obj4 = inj._new(p.provider4, p.visibility4);\n }\n return this.obj4;\n }\n if (p.keyId5 === keyId && canSee(p.visibility5, visibility)) {\n if (this.obj5 === exports.UNDEFINED) {\n this.obj5 = inj._new(p.provider5, p.visibility5);\n }\n return this.obj5;\n }\n if (p.keyId6 === keyId && canSee(p.visibility6, visibility)) {\n if (this.obj6 === exports.UNDEFINED) {\n this.obj6 = inj._new(p.provider6, p.visibility6);\n }\n return this.obj6;\n }\n if (p.keyId7 === keyId && canSee(p.visibility7, visibility)) {\n if (this.obj7 === exports.UNDEFINED) {\n this.obj7 = inj._new(p.provider7, p.visibility7);\n }\n return this.obj7;\n }\n if (p.keyId8 === keyId && canSee(p.visibility8, visibility)) {\n if (this.obj8 === exports.UNDEFINED) {\n this.obj8 = inj._new(p.provider8, p.visibility8);\n }\n return this.obj8;\n }\n if (p.keyId9 === keyId && canSee(p.visibility9, visibility)) {\n if (this.obj9 === exports.UNDEFINED) {\n this.obj9 = inj._new(p.provider9, p.visibility9);\n }\n return this.obj9;\n }\n return exports.UNDEFINED;\n };\n InjectorInlineStrategy.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 exceptions_1.OutOfBoundsError(index);\n };\n InjectorInlineStrategy.prototype.getMaxNumberOfObjects = function() {\n return _MAX_CONSTRUCTION_COUNTER;\n };\n return InjectorInlineStrategy;\n })();\n exports.InjectorInlineStrategy = InjectorInlineStrategy;\n var InjectorDynamicStrategy = (function() {\n function InjectorDynamicStrategy(protoStrategy, injector) {\n this.protoStrategy = protoStrategy;\n this.injector = injector;\n this.objs = collection_1.ListWrapper.createFixedSize(protoStrategy.providers.length);\n collection_1.ListWrapper.fill(this.objs, exports.UNDEFINED);\n }\n InjectorDynamicStrategy.prototype.resetConstructionCounter = function() {\n this.injector._constructionCounter = 0;\n };\n InjectorDynamicStrategy.prototype.instantiateProvider = function(provider, visibility) {\n return this.injector._new(provider, visibility);\n };\n InjectorDynamicStrategy.prototype.getObjByKeyId = function(keyId, visibility) {\n var p = this.protoStrategy;\n for (var i = 0; i < p.keyIds.length; i++) {\n if (p.keyIds[i] === keyId && canSee(p.visibilities[i], visibility)) {\n if (this.objs[i] === exports.UNDEFINED) {\n this.objs[i] = this.injector._new(p.providers[i], p.visibilities[i]);\n }\n return this.objs[i];\n }\n }\n return exports.UNDEFINED;\n };\n InjectorDynamicStrategy.prototype.getObjAtIndex = function(index) {\n if (index < 0 || index >= this.objs.length) {\n throw new exceptions_1.OutOfBoundsError(index);\n }\n return this.objs[index];\n };\n InjectorDynamicStrategy.prototype.getMaxNumberOfObjects = function() {\n return this.objs.length;\n };\n return InjectorDynamicStrategy;\n })();\n exports.InjectorDynamicStrategy = InjectorDynamicStrategy;\n var ProviderWithVisibility = (function() {\n function ProviderWithVisibility(provider, visibility) {\n this.provider = provider;\n this.visibility = visibility;\n }\n ;\n ProviderWithVisibility.prototype.getKeyId = function() {\n return this.provider.key.id;\n };\n return ProviderWithVisibility;\n })();\n exports.ProviderWithVisibility = ProviderWithVisibility;\n var Injector = (function() {\n function Injector(_proto, _parent, _isHostBoundary, _depProvider, _debugContext) {\n if (_parent === void 0) {\n _parent = null;\n }\n if (_isHostBoundary === void 0) {\n _isHostBoundary = false;\n }\n if (_depProvider === void 0) {\n _depProvider = null;\n }\n if (_debugContext === void 0) {\n _debugContext = null;\n }\n this._isHostBoundary = _isHostBoundary;\n this._depProvider = _depProvider;\n this._debugContext = _debugContext;\n this._constructionCounter = 0;\n this._proto = _proto;\n this._parent = _parent;\n this._strategy = _proto._strategy.createInjectorStrategy(this);\n }\n Injector.resolve = function(providers) {\n return provider_1.resolveProviders(providers);\n };\n Injector.resolveAndCreate = function(providers) {\n var resolvedProviders = Injector.resolve(providers);\n return Injector.fromResolvedProviders(resolvedProviders);\n };\n Injector.fromResolvedProviders = function(providers) {\n return new Injector(ProtoInjector.fromResolvedProviders(providers));\n };\n Injector.fromResolvedBindings = function(providers) {\n return Injector.fromResolvedProviders(providers);\n };\n Object.defineProperty(Injector.prototype, \"hostBoundary\", {\n get: function() {\n return this._isHostBoundary;\n },\n enumerable: true,\n configurable: true\n });\n Injector.prototype.debugContext = function() {\n return this._debugContext();\n };\n Injector.prototype.get = function(token) {\n return this._getByKey(key_1.Key.get(token), null, null, false, Visibility.PublicAndPrivate);\n };\n Injector.prototype.getOptional = function(token) {\n return this._getByKey(key_1.Key.get(token), null, null, true, Visibility.PublicAndPrivate);\n };\n Injector.prototype.getAt = function(index) {\n return this._strategy.getObjAtIndex(index);\n };\n Object.defineProperty(Injector.prototype, \"parent\", {\n get: function() {\n return this._parent;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Injector.prototype, \"internalStrategy\", {\n get: function() {\n return this._strategy;\n },\n enumerable: true,\n configurable: true\n });\n Injector.prototype.resolveAndCreateChild = function(providers) {\n var resolvedProviders = Injector.resolve(providers);\n return this.createChildFromResolved(resolvedProviders);\n };\n Injector.prototype.createChildFromResolved = function(providers) {\n var bd = providers.map(function(b) {\n return new ProviderWithVisibility(b, Visibility.Public);\n });\n var proto = new ProtoInjector(bd);\n var inj = new Injector(proto);\n inj._parent = this;\n return inj;\n };\n Injector.prototype.resolveAndInstantiate = function(provider) {\n return this.instantiateResolved(Injector.resolve([provider])[0]);\n };\n Injector.prototype.instantiateResolved = function(provider) {\n return this._instantiateProvider(provider, Visibility.PublicAndPrivate);\n };\n Injector.prototype._new = function(provider, visibility) {\n if (this._constructionCounter++ > this._strategy.getMaxNumberOfObjects()) {\n throw new exceptions_1.CyclicDependencyError(this, provider.key);\n }\n return this._instantiateProvider(provider, visibility);\n };\n Injector.prototype._instantiateProvider = function(provider, visibility) {\n if (provider.multiProvider) {\n var res = collection_1.ListWrapper.createFixedSize(provider.resolvedFactories.length);\n for (var i = 0; i < provider.resolvedFactories.length; ++i) {\n res[i] = this._instantiate(provider, provider.resolvedFactories[i], visibility);\n }\n return res;\n } else {\n return this._instantiate(provider, provider.resolvedFactories[0], visibility);\n }\n };\n Injector.prototype._instantiate = function(provider, resolvedFactory, visibility) {\n var factory = resolvedFactory.factory;\n var deps = resolvedFactory.dependencies;\n var length = deps.length;\n var d0,\n d1,\n d2,\n d3,\n d4,\n d5,\n d6,\n d7,\n d8,\n d9,\n d10,\n d11,\n d12,\n d13,\n d14,\n d15,\n d16,\n d17,\n d18,\n d19;\n try {\n d0 = length > 0 ? this._getByDependency(provider, deps[0], visibility) : null;\n d1 = length > 1 ? this._getByDependency(provider, deps[1], visibility) : null;\n d2 = length > 2 ? this._getByDependency(provider, deps[2], visibility) : null;\n d3 = length > 3 ? this._getByDependency(provider, deps[3], visibility) : null;\n d4 = length > 4 ? this._getByDependency(provider, deps[4], visibility) : null;\n d5 = length > 5 ? this._getByDependency(provider, deps[5], visibility) : null;\n d6 = length > 6 ? this._getByDependency(provider, deps[6], visibility) : null;\n d7 = length > 7 ? this._getByDependency(provider, deps[7], visibility) : null;\n d8 = length > 8 ? this._getByDependency(provider, deps[8], visibility) : null;\n d9 = length > 9 ? this._getByDependency(provider, deps[9], visibility) : null;\n d10 = length > 10 ? this._getByDependency(provider, deps[10], visibility) : null;\n d11 = length > 11 ? this._getByDependency(provider, deps[11], visibility) : null;\n d12 = length > 12 ? this._getByDependency(provider, deps[12], visibility) : null;\n d13 = length > 13 ? this._getByDependency(provider, deps[13], visibility) : null;\n d14 = length > 14 ? this._getByDependency(provider, deps[14], visibility) : null;\n d15 = length > 15 ? this._getByDependency(provider, deps[15], visibility) : null;\n d16 = length > 16 ? this._getByDependency(provider, deps[16], visibility) : null;\n d17 = length > 17 ? this._getByDependency(provider, deps[17], visibility) : null;\n d18 = length > 18 ? this._getByDependency(provider, deps[18], visibility) : null;\n d19 = length > 19 ? this._getByDependency(provider, deps[19], visibility) : null;\n } catch (e) {\n if (e instanceof exceptions_1.AbstractProviderError || e instanceof exceptions_1.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 exceptions_2.BaseException(\"Cannot instantiate '\" + provider.key.displayName + \"' because it has more than 20 dependencies\");\n }\n } catch (e) {\n throw new exceptions_1.InstantiationError(this, e, e.stack, provider.key);\n }\n return obj;\n };\n Injector.prototype._getByDependency = function(provider, dep, providerVisibility) {\n var special = lang_1.isPresent(this._depProvider) ? this._depProvider.getDependency(this, provider, dep) : exports.UNDEFINED;\n if (special !== exports.UNDEFINED) {\n return special;\n } else {\n return this._getByKey(dep.key, dep.lowerBoundVisibility, dep.upperBoundVisibility, dep.optional, providerVisibility);\n }\n };\n Injector.prototype._getByKey = function(key, lowerBoundVisibility, upperBoundVisibility, optional, providerVisibility) {\n if (key === INJECTOR_KEY) {\n return this;\n }\n if (upperBoundVisibility instanceof metadata_1.SelfMetadata) {\n return this._getByKeySelf(key, optional, providerVisibility);\n } else if (upperBoundVisibility instanceof metadata_1.HostMetadata) {\n return this._getByKeyHost(key, optional, providerVisibility, lowerBoundVisibility);\n } else {\n return this._getByKeyDefault(key, optional, providerVisibility, lowerBoundVisibility);\n }\n };\n Injector.prototype._throwOrNull = function(key, optional) {\n if (optional) {\n return null;\n } else {\n throw new exceptions_1.NoProviderError(this, key);\n }\n };\n Injector.prototype._getByKeySelf = function(key, optional, providerVisibility) {\n var obj = this._strategy.getObjByKeyId(key.id, providerVisibility);\n return (obj !== exports.UNDEFINED) ? obj : this._throwOrNull(key, optional);\n };\n Injector.prototype._getByKeyHost = function(key, optional, providerVisibility, lowerBoundVisibility) {\n var inj = this;\n if (lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata) {\n if (inj._isHostBoundary) {\n return this._getPrivateDependency(key, optional, inj);\n } else {\n inj = inj._parent;\n }\n }\n while (inj != null) {\n var obj = inj._strategy.getObjByKeyId(key.id, providerVisibility);\n if (obj !== exports.UNDEFINED)\n return obj;\n if (lang_1.isPresent(inj._parent) && inj._isHostBoundary) {\n return this._getPrivateDependency(key, optional, inj);\n } else {\n inj = inj._parent;\n }\n }\n return this._throwOrNull(key, optional);\n };\n Injector.prototype._getPrivateDependency = function(key, optional, inj) {\n var obj = inj._parent._strategy.getObjByKeyId(key.id, Visibility.Private);\n return (obj !== exports.UNDEFINED) ? obj : this._throwOrNull(key, optional);\n };\n Injector.prototype._getByKeyDefault = function(key, optional, providerVisibility, lowerBoundVisibility) {\n var inj = this;\n if (lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata) {\n providerVisibility = inj._isHostBoundary ? Visibility.PublicAndPrivate : Visibility.Public;\n inj = inj._parent;\n }\n while (inj != null) {\n var obj = inj._strategy.getObjByKeyId(key.id, providerVisibility);\n if (obj !== exports.UNDEFINED)\n return obj;\n providerVisibility = inj._isHostBoundary ? Visibility.PublicAndPrivate : Visibility.Public;\n inj = inj._parent;\n }\n return this._throwOrNull(key, optional);\n };\n Object.defineProperty(Injector.prototype, \"displayName\", {\n get: function() {\n return \"Injector(providers: [\" + _mapProviders(this, function(b) {\n return (\" \\\"\" + b.key.displayName + \"\\\" \");\n }).join(\", \") + \"])\";\n },\n enumerable: true,\n configurable: true\n });\n Injector.prototype.toString = function() {\n return this.displayName;\n };\n return Injector;\n })();\n exports.Injector = Injector;\n var INJECTOR_KEY = key_1.Key.get(Injector);\n function _mapProviders(injector, fn) {\n var res = [];\n for (var i = 0; i < injector._proto.numberOfProviders; ++i) {\n res.push(fn(injector._proto.getProviderAtIndex(i)));\n }\n return res;\n }\n})(require('process'));\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar InjectMetadata = (function() {\n function InjectMetadata(token) {\n this.token = token;\n }\n InjectMetadata.prototype.toString = function() {\n return \"@Inject(\" + lang_1.stringify(this.token) + \")\";\n };\n InjectMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object])], InjectMetadata);\n return InjectMetadata;\n})();\nexports.InjectMetadata = InjectMetadata;\nvar OptionalMetadata = (function() {\n function OptionalMetadata() {}\n OptionalMetadata.prototype.toString = function() {\n return \"@Optional()\";\n };\n OptionalMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], OptionalMetadata);\n return OptionalMetadata;\n})();\nexports.OptionalMetadata = OptionalMetadata;\nvar DependencyMetadata = (function() {\n function DependencyMetadata() {}\n Object.defineProperty(DependencyMetadata.prototype, \"token\", {\n get: function() {\n return null;\n },\n enumerable: true,\n configurable: true\n });\n DependencyMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], DependencyMetadata);\n return DependencyMetadata;\n})();\nexports.DependencyMetadata = DependencyMetadata;\nvar InjectableMetadata = (function() {\n function InjectableMetadata() {}\n InjectableMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], InjectableMetadata);\n return InjectableMetadata;\n})();\nexports.InjectableMetadata = InjectableMetadata;\nvar SelfMetadata = (function() {\n function SelfMetadata() {}\n SelfMetadata.prototype.toString = function() {\n return \"@Self()\";\n };\n SelfMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], SelfMetadata);\n return SelfMetadata;\n})();\nexports.SelfMetadata = SelfMetadata;\nvar SkipSelfMetadata = (function() {\n function SkipSelfMetadata() {}\n SkipSelfMetadata.prototype.toString = function() {\n return \"@SkipSelf()\";\n };\n SkipSelfMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], SkipSelfMetadata);\n return SkipSelfMetadata;\n})();\nexports.SkipSelfMetadata = SkipSelfMetadata;\nvar HostMetadata = (function() {\n function HostMetadata() {}\n HostMetadata.prototype.toString = function() {\n return \"@Host()\";\n };\n HostMetadata = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [])], HostMetadata);\n return HostMetadata;\n})();\nexports.HostMetadata = HostMetadata;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar reflection_1 = require('../reflection/reflection');\nvar key_1 = require('./key');\nvar metadata_1 = require('./metadata');\nvar exceptions_2 = require('./exceptions');\nvar forward_ref_1 = require('./forward_ref');\nvar Dependency = (function() {\n function Dependency(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 Dependency.fromKey = function(key) {\n return new Dependency(key, false, null, null, []);\n };\n return Dependency;\n})();\nexports.Dependency = Dependency;\nvar _EMPTY_LIST = lang_1.CONST_EXPR([]);\nvar Provider = (function() {\n function Provider(token, _a) {\n var useClass = _a.useClass,\n useValue = _a.useValue,\n useExisting = _a.useExisting,\n useFactory = _a.useFactory,\n deps = _a.deps,\n 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 Object.defineProperty(Provider.prototype, \"multi\", {\n get: function() {\n return lang_1.normalizeBool(this._multi);\n },\n enumerable: true,\n configurable: true\n });\n Provider = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object, Object])], Provider);\n return Provider;\n})();\nexports.Provider = Provider;\nvar Binding = (function(_super) {\n __extends(Binding, _super);\n function Binding(token, _a) {\n var toClass = _a.toClass,\n toValue = _a.toValue,\n toAlias = _a.toAlias,\n toFactory = _a.toFactory,\n deps = _a.deps,\n multi = _a.multi;\n _super.call(this, token, {\n useClass: toClass,\n useValue: toValue,\n useExisting: toAlias,\n useFactory: toFactory,\n deps: deps,\n multi: multi\n });\n }\n Object.defineProperty(Binding.prototype, \"toClass\", {\n get: function() {\n return this.useClass;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"toAlias\", {\n get: function() {\n return this.useExisting;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"toFactory\", {\n get: function() {\n return this.useFactory;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Binding.prototype, \"toValue\", {\n get: function() {\n return this.useValue;\n },\n enumerable: true,\n configurable: true\n });\n Binding = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [Object, Object])], Binding);\n return Binding;\n})(Provider);\nexports.Binding = Binding;\nvar ResolvedProvider_ = (function() {\n function ResolvedProvider_(key, resolvedFactories, multiProvider) {\n this.key = key;\n this.resolvedFactories = resolvedFactories;\n this.multiProvider = multiProvider;\n }\n Object.defineProperty(ResolvedProvider_.prototype, \"resolvedFactory\", {\n get: function() {\n return this.resolvedFactories[0];\n },\n enumerable: true,\n configurable: true\n });\n return ResolvedProvider_;\n})();\nexports.ResolvedProvider_ = ResolvedProvider_;\nvar ResolvedFactory = (function() {\n function ResolvedFactory(factory, dependencies) {\n this.factory = factory;\n this.dependencies = dependencies;\n }\n return ResolvedFactory;\n})();\nexports.ResolvedFactory = ResolvedFactory;\nfunction bind(token) {\n return new ProviderBuilder(token);\n}\nexports.bind = bind;\nfunction provide(token, _a) {\n var useClass = _a.useClass,\n useValue = _a.useValue,\n useExisting = _a.useExisting,\n useFactory = _a.useFactory,\n deps = _a.deps,\n multi = _a.multi;\n return new Provider(token, {\n useClass: useClass,\n useValue: useValue,\n useExisting: useExisting,\n useFactory: useFactory,\n deps: deps,\n multi: multi\n });\n}\nexports.provide = provide;\nvar ProviderBuilder = (function() {\n function ProviderBuilder(token) {\n this.token = token;\n }\n ProviderBuilder.prototype.toClass = function(type) {\n if (!lang_1.isType(type)) {\n throw new exceptions_1.BaseException(\"Trying to create a class provider but \\\"\" + lang_1.stringify(type) + \"\\\" is not a class!\");\n }\n return new Provider(this.token, {useClass: type});\n };\n ProviderBuilder.prototype.toValue = function(value) {\n return new Provider(this.token, {useValue: value});\n };\n ProviderBuilder.prototype.toAlias = function(aliasToken) {\n if (lang_1.isBlank(aliasToken)) {\n throw new exceptions_1.BaseException(\"Can not alias \" + lang_1.stringify(this.token) + \" to a blank value!\");\n }\n return new Provider(this.token, {useExisting: aliasToken});\n };\n ProviderBuilder.prototype.toFactory = function(factory, dependencies) {\n if (!lang_1.isFunction(factory)) {\n throw new exceptions_1.BaseException(\"Trying to create a factory provider but \\\"\" + lang_1.stringify(factory) + \"\\\" is not a function!\");\n }\n return new Provider(this.token, {\n useFactory: factory,\n deps: dependencies\n });\n };\n return ProviderBuilder;\n})();\nexports.ProviderBuilder = ProviderBuilder;\nfunction resolveFactory(provider) {\n var factoryFn;\n var resolvedDeps;\n if (lang_1.isPresent(provider.useClass)) {\n var useClass = forward_ref_1.resolveForwardRef(provider.useClass);\n factoryFn = reflection_1.reflector.factory(useClass);\n resolvedDeps = _dependenciesFor(useClass);\n } else if (lang_1.isPresent(provider.useExisting)) {\n factoryFn = function(aliasInstance) {\n return aliasInstance;\n };\n resolvedDeps = [Dependency.fromKey(key_1.Key.get(provider.useExisting))];\n } else if (lang_1.isPresent(provider.useFactory)) {\n factoryFn = provider.useFactory;\n resolvedDeps = _constructDependencies(provider.useFactory, provider.dependencies);\n } else {\n factoryFn = function() {\n return provider.useValue;\n };\n resolvedDeps = _EMPTY_LIST;\n }\n return new ResolvedFactory(factoryFn, resolvedDeps);\n}\nexports.resolveFactory = resolveFactory;\nfunction resolveProvider(provider) {\n return new ResolvedProvider_(key_1.Key.get(provider.token), [resolveFactory(provider)], provider.multi);\n}\nexports.resolveProvider = resolveProvider;\nfunction resolveProviders(providers) {\n var normalized = _normalizeProviders(providers, []);\n var resolved = normalized.map(resolveProvider);\n return collection_1.MapWrapper.values(mergeResolvedProviders(resolved, new Map()));\n}\nexports.resolveProviders = resolveProviders;\nfunction mergeResolvedProviders(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 (lang_1.isPresent(existing)) {\n if (provider.multiProvider !== existing.multiProvider) {\n throw new exceptions_2.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 } else {\n normalizedProvidersMap.set(provider.key.id, provider);\n }\n } else {\n var resolvedProvider;\n if (provider.multiProvider) {\n resolvedProvider = new ResolvedProvider_(provider.key, collection_1.ListWrapper.clone(provider.resolvedFactories), provider.multiProvider);\n } else {\n resolvedProvider = provider;\n }\n normalizedProvidersMap.set(provider.key.id, resolvedProvider);\n }\n }\n return normalizedProvidersMap;\n}\nexports.mergeResolvedProviders = mergeResolvedProviders;\nfunction _normalizeProviders(providers, res) {\n providers.forEach(function(b) {\n if (b instanceof lang_1.Type) {\n res.push(provide(b, {useClass: b}));\n } else if (b instanceof Provider) {\n res.push(b);\n } else if (b instanceof Array) {\n _normalizeProviders(b, res);\n } else if (b instanceof ProviderBuilder) {\n throw new exceptions_2.InvalidProviderError(b.token);\n } else {\n throw new exceptions_2.InvalidProviderError(b);\n }\n });\n return res;\n}\nfunction _constructDependencies(factoryFunction, dependencies) {\n if (lang_1.isBlank(dependencies)) {\n return _dependenciesFor(factoryFunction);\n } else {\n var params = dependencies.map(function(t) {\n return [t];\n });\n return dependencies.map(function(t) {\n return _extractToken(factoryFunction, t, params);\n });\n }\n}\nfunction _dependenciesFor(typeOrFunc) {\n var params = reflection_1.reflector.parameters(typeOrFunc);\n if (lang_1.isBlank(params))\n return [];\n if (params.some(lang_1.isBlank)) {\n throw new exceptions_2.NoAnnotationError(typeOrFunc, params);\n }\n return params.map(function(p) {\n return _extractToken(typeOrFunc, p, params);\n });\n}\nfunction _extractToken(typeOrFunc, metadata, params) {\n var depProps = [];\n var token = null;\n var optional = false;\n if (!lang_1.isArray(metadata)) {\n if (metadata instanceof metadata_1.InjectMetadata) {\n return _createDependency(metadata.token, optional, null, null, depProps);\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 lang_1.Type) {\n token = paramMetadata;\n } else if (paramMetadata instanceof metadata_1.InjectMetadata) {\n token = paramMetadata.token;\n } else if (paramMetadata instanceof metadata_1.OptionalMetadata) {\n optional = true;\n } else if (paramMetadata instanceof metadata_1.SelfMetadata) {\n upperBoundVisibility = paramMetadata;\n } else if (paramMetadata instanceof metadata_1.HostMetadata) {\n upperBoundVisibility = paramMetadata;\n } else if (paramMetadata instanceof metadata_1.SkipSelfMetadata) {\n lowerBoundVisibility = paramMetadata;\n } else if (paramMetadata instanceof metadata_1.DependencyMetadata) {\n if (lang_1.isPresent(paramMetadata.token)) {\n token = paramMetadata.token;\n }\n depProps.push(paramMetadata);\n }\n }\n token = forward_ref_1.resolveForwardRef(token);\n if (lang_1.isPresent(token)) {\n return _createDependency(token, optional, lowerBoundVisibility, upperBoundVisibility, depProps);\n } else {\n throw new exceptions_2.NoAnnotationError(typeOrFunc, params);\n }\n}\nfunction _createDependency(token, optional, lowerBoundVisibility, upperBoundVisibility, depProps) {\n return new Dependency(key_1.Key.get(token), optional, lowerBoundVisibility, upperBoundVisibility, depProps);\n}\n","/* */ \n'use strict';/**\r\n * Type literals is a Dart-only feature. This is here only so we can x-compile\r\n * to multiple languages.\r\n */\r\nvar TypeLiteral = (function () {\r\n function TypeLiteral() {\r\n }\r\n Object.defineProperty(TypeLiteral.prototype, \"type\", {\r\n get: function () { throw new Error(\"Type literals are only supported in Dart\"); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return TypeLiteral;\r\n})();\r\nexports.TypeLiteral = TypeLiteral;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZV9saXRlcmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2NvcmUvZGkvdHlwZV9saXRlcmFsLnRzIl0sIm5hbWVzIjpbIlR5cGVMaXRlcmFsIiwiVHlwZUxpdGVyYWwuY29uc3RydWN0b3IiLCJUeXBlTGl0ZXJhbC50eXBlIl0sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7QUFDSDtJQUFBQTtJQUVBQyxDQUFDQTtJQURDRCxzQkFBSUEsNkJBQUlBO2FBQVJBLGNBQWtCRSxNQUFNQSxJQUFJQSxLQUFLQSxDQUFDQSwwQ0FBMENBLENBQUNBLENBQUNBLENBQUNBLENBQUNBOzs7T0FBQUY7SUFDbEZBLGtCQUFDQTtBQUFEQSxDQUFDQSxBQUZELElBRUM7QUFGWSxtQkFBVyxjQUV2QixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUeXBlIGxpdGVyYWxzIGlzIGEgRGFydC1vbmx5IGZlYXR1cmUuIFRoaXMgaXMgaGVyZSBvbmx5IHNvIHdlIGNhbiB4LWNvbXBpbGVcbiAqIHRvIG11bHRpcGxlIGxhbmd1YWdlcy5cbiAqL1xuZXhwb3J0IGNsYXNzIFR5cGVMaXRlcmFsIHtcbiAgZ2V0IHR5cGUoKTogYW55IHsgdGhyb3cgbmV3IEVycm9yKFwiVHlwZSBsaXRlcmFscyBhcmUgb25seSBzdXBwb3J0ZWQgaW4gRGFydFwiKTsgfVxufVxuIl19","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nfunction forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function() {\n return lang_1.stringify(this());\n };\n return forwardRefFn;\n}\nexports.forwardRef = forwardRef;\nfunction resolveForwardRef(type) {\n if (lang_1.isFunction(type) && type.hasOwnProperty('__forward_ref__') && type.__forward_ref__ === forwardRef) {\n return type();\n } else {\n return type;\n }\n}\nexports.resolveForwardRef = resolveForwardRef;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar type_literal_1 = require('./type_literal');\nvar forward_ref_1 = require('./forward_ref');\nvar type_literal_2 = require('./type_literal');\nexports.TypeLiteral = type_literal_2.TypeLiteral;\nvar Key = (function() {\n function Key(token, id) {\n this.token = token;\n this.id = id;\n if (lang_1.isBlank(token)) {\n throw new exceptions_1.BaseException('Token must be defined!');\n }\n }\n Object.defineProperty(Key.prototype, \"displayName\", {\n get: function() {\n return lang_1.stringify(this.token);\n },\n enumerable: true,\n configurable: true\n });\n Key.get = function(token) {\n return _globalKeyRegistry.get(forward_ref_1.resolveForwardRef(token));\n };\n Object.defineProperty(Key, \"numberOfKeys\", {\n get: function() {\n return _globalKeyRegistry.numberOfKeys;\n },\n enumerable: true,\n configurable: true\n });\n return Key;\n})();\nexports.Key = Key;\nvar KeyRegistry = (function() {\n function KeyRegistry() {\n this._allKeys = new Map();\n }\n KeyRegistry.prototype.get = function(token) {\n if (token instanceof Key)\n return token;\n var theToken = token;\n if (token instanceof type_literal_1.TypeLiteral) {\n theToken = token.type;\n }\n token = theToken;\n if (this._allKeys.has(token)) {\n return this._allKeys.get(token);\n }\n var newKey = new Key(token, Key.numberOfKeys);\n this._allKeys.set(token, newKey);\n return newKey;\n };\n Object.defineProperty(KeyRegistry.prototype, \"numberOfKeys\", {\n get: function() {\n return this._allKeys.size;\n },\n enumerable: true,\n configurable: true\n });\n return KeyRegistry;\n})();\nexports.KeyRegistry = KeyRegistry;\nvar _globalKeyRegistry = new KeyRegistry();\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar collection_1 = require('../../facade/collection');\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nfunction findFirstClosedCycle(keys) {\n var res = [];\n for (var i = 0; i < keys.length; ++i) {\n if (collection_1.ListWrapper.contains(res, keys[i])) {\n res.push(keys[i]);\n return res;\n } else {\n res.push(keys[i]);\n }\n }\n return res;\n}\nfunction constructResolvingPath(keys) {\n if (keys.length > 1) {\n var reversed = findFirstClosedCycle(collection_1.ListWrapper.reversed(keys));\n var tokenStrs = reversed.map(function(k) {\n return lang_1.stringify(k.token);\n });\n return \" (\" + tokenStrs.join(' -> ') + \")\";\n } else {\n return \"\";\n }\n}\nvar AbstractProviderError = (function(_super) {\n __extends(AbstractProviderError, _super);\n function AbstractProviderError(injector, key, constructResolvingMessage) {\n _super.call(this, \"DI Exception\");\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 Object.defineProperty(AbstractProviderError.prototype, \"context\", {\n get: function() {\n return this.injectors[this.injectors.length - 1].debugContext();\n },\n enumerable: true,\n configurable: true\n });\n return AbstractProviderError;\n})(exceptions_1.BaseException);\nexports.AbstractProviderError = AbstractProviderError;\nvar NoProviderError = (function(_super) {\n __extends(NoProviderError, _super);\n function NoProviderError(injector, key) {\n _super.call(this, injector, key, function(keys) {\n var first = lang_1.stringify(collection_1.ListWrapper.first(keys).token);\n return \"No provider for \" + first + \"!\" + constructResolvingPath(keys);\n });\n }\n return NoProviderError;\n})(AbstractProviderError);\nexports.NoProviderError = NoProviderError;\nvar CyclicDependencyError = (function(_super) {\n __extends(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);\nexports.CyclicDependencyError = CyclicDependencyError;\nvar InstantiationError = (function(_super) {\n __extends(InstantiationError, _super);\n function InstantiationError(injector, originalException, originalStack, key) {\n _super.call(this, \"DI Exception\", originalException, originalStack, null);\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, \"wrapperMessage\", {\n get: function() {\n var first = lang_1.stringify(collection_1.ListWrapper.first(this.keys).token);\n return \"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() {\n return this.keys[0];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(InstantiationError.prototype, \"context\", {\n get: function() {\n return this.injectors[this.injectors.length - 1].debugContext();\n },\n enumerable: true,\n configurable: true\n });\n return InstantiationError;\n})(exceptions_1.WrappedException);\nexports.InstantiationError = InstantiationError;\nvar InvalidProviderError = (function(_super) {\n __extends(InvalidProviderError, _super);\n function InvalidProviderError(provider) {\n _super.call(this, \"Invalid provider - only instances of Provider and Type are allowed, got: \" + provider.toString());\n }\n return InvalidProviderError;\n})(exceptions_1.BaseException);\nexports.InvalidProviderError = InvalidProviderError;\nvar NoAnnotationError = (function(_super) {\n __extends(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,\n ii = params.length; i < ii; i++) {\n var parameter = params[i];\n if (lang_1.isBlank(parameter) || parameter.length == 0) {\n signature.push('?');\n } else {\n signature.push(parameter.map(lang_1.stringify).join(' '));\n }\n }\n return \"Cannot resolve all parameters for '\" + lang_1.stringify(typeOrFunc) + \"'(\" + signature.join(', ') + \"). \" + \"Make sure that all the parameters are decorated with Inject or have valid type annotations and that '\" + lang_1.stringify(typeOrFunc) + \"' is decorated with Injectable.\";\n };\n return NoAnnotationError;\n})(exceptions_1.BaseException);\nexports.NoAnnotationError = NoAnnotationError;\nvar OutOfBoundsError = (function(_super) {\n __extends(OutOfBoundsError, _super);\n function OutOfBoundsError(index) {\n _super.call(this, \"Index \" + index + \" is out-of-bounds.\");\n }\n return OutOfBoundsError;\n})(exceptions_1.BaseException);\nexports.OutOfBoundsError = OutOfBoundsError;\nvar MixingMultiProvidersWithRegularProvidersError = (function(_super) {\n __extends(MixingMultiProvidersWithRegularProvidersError, _super);\n function MixingMultiProvidersWithRegularProvidersError(provider1, provider2) {\n _super.call(this, \"Cannot mix multi providers and regular providers, got: \" + provider1.toString() + \" \" + provider2.toString());\n }\n return MixingMultiProvidersWithRegularProvidersError;\n})(exceptions_1.BaseException);\nexports.MixingMultiProvidersWithRegularProvidersError = MixingMultiProvidersWithRegularProvidersError;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar lang_1 = require('../../facade/lang');\nvar OpaqueToken = (function() {\n function OpaqueToken(_desc) {\n this._desc = _desc;\n }\n OpaqueToken.prototype.toString = function() {\n return \"Token \" + this._desc;\n };\n OpaqueToken = __decorate([lang_1.CONST(), __metadata('design:paramtypes', [String])], OpaqueToken);\n return OpaqueToken;\n})();\nexports.OpaqueToken = OpaqueToken;\n","/* */ \n'use strict';\nfunction __export(m) {\n for (var p in m)\n if (!exports.hasOwnProperty(p))\n exports[p] = m[p];\n}\nvar metadata_1 = require('./di/metadata');\nexports.InjectMetadata = metadata_1.InjectMetadata;\nexports.OptionalMetadata = metadata_1.OptionalMetadata;\nexports.InjectableMetadata = metadata_1.InjectableMetadata;\nexports.SelfMetadata = metadata_1.SelfMetadata;\nexports.HostMetadata = metadata_1.HostMetadata;\nexports.SkipSelfMetadata = metadata_1.SkipSelfMetadata;\nexports.DependencyMetadata = metadata_1.DependencyMetadata;\n__export(require('./di/decorators'));\nvar forward_ref_1 = require('./di/forward_ref');\nexports.forwardRef = forward_ref_1.forwardRef;\nexports.resolveForwardRef = forward_ref_1.resolveForwardRef;\nvar injector_1 = require('./di/injector');\nexports.Injector = injector_1.Injector;\nvar provider_1 = require('./di/provider');\nexports.Binding = provider_1.Binding;\nexports.ProviderBuilder = provider_1.ProviderBuilder;\nexports.ResolvedFactory = provider_1.ResolvedFactory;\nexports.Dependency = provider_1.Dependency;\nexports.bind = provider_1.bind;\nexports.Provider = provider_1.Provider;\nexports.provide = provider_1.provide;\nvar key_1 = require('./di/key');\nexports.Key = key_1.Key;\nexports.TypeLiteral = key_1.TypeLiteral;\nvar exceptions_1 = require('./di/exceptions');\nexports.NoProviderError = exceptions_1.NoProviderError;\nexports.AbstractProviderError = exceptions_1.AbstractProviderError;\nexports.CyclicDependencyError = exceptions_1.CyclicDependencyError;\nexports.InstantiationError = exceptions_1.InstantiationError;\nexports.InvalidProviderError = exceptions_1.InvalidProviderError;\nexports.NoAnnotationError = exceptions_1.NoAnnotationError;\nexports.OutOfBoundsError = exceptions_1.OutOfBoundsError;\nvar opaque_token_1 = require('./di/opaque_token');\nexports.OpaqueToken = opaque_token_1.OpaqueToken;\n","/* */ \n'use strict';\nvar di_1 = require('./di');\nvar lang_1 = require('../facade/lang');\nexports.APP_COMPONENT_REF_PROMISE = lang_1.CONST_EXPR(new di_1.OpaqueToken('Promise<ComponentRef>'));\nexports.APP_COMPONENT = lang_1.CONST_EXPR(new di_1.OpaqueToken('AppComponent'));\nexports.APP_ID = lang_1.CONST_EXPR(new di_1.OpaqueToken('AppId'));\nfunction _appIdRandomProviderFactory() {\n return \"\" + _randomChar() + _randomChar() + _randomChar();\n}\nexports.APP_ID_RANDOM_PROVIDER = lang_1.CONST_EXPR(new di_1.Provider(exports.APP_ID, {\n useFactory: _appIdRandomProviderFactory,\n deps: []\n}));\nfunction _randomChar() {\n return lang_1.StringWrapper.fromCharCode(97 + lang_1.Math.floor(lang_1.Math.random() * 25));\n}\nexports.PLATFORM_INITIALIZER = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Platform Initializer\"));\nexports.APP_INITIALIZER = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Application Initializer\"));\nexports.PACKAGE_ROOT_URL = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Application Packages Root URL\"));\n","/* */ \n'use strict';(function (ViewType) {\r\n // A view that contains the host element with bound component directive.\r\n // Contains a COMPONENT view\r\n ViewType[ViewType[\"HOST\"] = 0] = \"HOST\";\r\n // The view of the component\r\n // Can contain 0 to n EMBEDDED views\r\n ViewType[ViewType[\"COMPONENT\"] = 1] = \"COMPONENT\";\r\n // A view that is embedded into another View via a <template> element\r\n // inside of a COMPONENT view\r\n ViewType[ViewType[\"EMBEDDED\"] = 2] = \"EMBEDDED\";\r\n})(exports.ViewType || (exports.ViewType = {}));\r\nvar ViewType = exports.ViewType;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld190eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL3ZpZXdfdHlwZS50cyJdLCJuYW1lcyI6WyJWaWV3VHlwZSJdLCJtYXBwaW5ncyI6IkFBQUEsV0FBWSxRQUFRO0lBQ2xCQSx3RUFBd0VBO0lBQ3hFQSw0QkFBNEJBO0lBQzVCQSx1Q0FBSUEsQ0FBQUE7SUFDSkEsNEJBQTRCQTtJQUM1QkEsb0NBQW9DQTtJQUNwQ0EsaURBQVNBLENBQUFBO0lBQ1RBLHFFQUFxRUE7SUFDckVBLDZCQUE2QkE7SUFDN0JBLCtDQUFRQSxDQUFBQTtBQUNWQSxDQUFDQSxFQVZXLGdCQUFRLEtBQVIsZ0JBQVEsUUFVbkI7QUFWRCxJQUFZLFFBQVEsR0FBUixnQkFVWCxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gVmlld1R5cGUge1xuICAvLyBBIHZpZXcgdGhhdCBjb250YWlucyB0aGUgaG9zdCBlbGVtZW50IHdpdGggYm91bmQgY29tcG9uZW50IGRpcmVjdGl2ZS5cbiAgLy8gQ29udGFpbnMgYSBDT01QT05FTlQgdmlld1xuICBIT1NULFxuICAvLyBUaGUgdmlldyBvZiB0aGUgY29tcG9uZW50XG4gIC8vIENhbiBjb250YWluIDAgdG8gbiBFTUJFRERFRCB2aWV3c1xuICBDT01QT05FTlQsXG4gIC8vIEEgdmlldyB0aGF0IGlzIGVtYmVkZGVkIGludG8gYW5vdGhlciBWaWV3IHZpYSBhIDx0ZW1wbGF0ZT4gZWxlbWVudFxuICAvLyBpbnNpZGUgb2YgYSBDT01QT05FTlQgdmlld1xuICBFTUJFRERFRFxufVxuIl19","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar di_1 = require('../di');\nvar lang_1 = require('../../facade/lang');\nvar collection_1 = require('../../facade/collection');\nvar exceptions_1 = require('../../facade/exceptions');\nvar view_1 = require('./view');\nvar element_1 = require('./element');\nvar api_1 = require('../render/api');\nvar profile_1 = require('../profile/profile');\nvar application_tokens_1 = require('../application_tokens');\nvar view_type_1 = require('./view_type');\nvar AppViewManager = (function() {\n function AppViewManager() {}\n return AppViewManager;\n})();\nexports.AppViewManager = AppViewManager;\nvar AppViewManager_ = (function(_super) {\n __extends(AppViewManager_, _super);\n function AppViewManager_(_renderer, _appId) {\n _super.call(this);\n this._renderer = _renderer;\n this._appId = _appId;\n this._nextCompTypeId = 0;\n this._createRootHostViewScope = profile_1.wtfCreateScope('AppViewManager#createRootHostView()');\n this._destroyRootHostViewScope = profile_1.wtfCreateScope('AppViewManager#destroyRootHostView()');\n this._createEmbeddedViewInContainerScope = profile_1.wtfCreateScope('AppViewManager#createEmbeddedViewInContainer()');\n this._createHostViewInContainerScope = profile_1.wtfCreateScope('AppViewManager#createHostViewInContainer()');\n this._destroyViewInContainerScope = profile_1.wtfCreateScope('AppViewMananger#destroyViewInContainer()');\n this._attachViewInContainerScope = profile_1.wtfCreateScope('AppViewMananger#attachViewInContainer()');\n this._detachViewInContainerScope = profile_1.wtfCreateScope('AppViewMananger#detachViewInContainer()');\n }\n AppViewManager_.prototype.getViewContainer = function(location) {\n return location.internalElement.getViewContainerRef();\n };\n AppViewManager_.prototype.getHostElement = function(hostViewRef) {\n var hostView = hostViewRef.internalView;\n if (hostView.proto.type !== view_type_1.ViewType.HOST) {\n throw new exceptions_1.BaseException('This operation is only allowed on host views');\n }\n return hostView.appElements[0].ref;\n };\n AppViewManager_.prototype.getNamedElementInComponentView = function(hostLocation, variableName) {\n var appEl = hostLocation.internalElement;\n var componentView = appEl.componentView;\n if (lang_1.isBlank(componentView)) {\n throw new exceptions_1.BaseException(\"There is no component directive at element \" + hostLocation);\n }\n for (var i = 0; i < componentView.appElements.length; i++) {\n var compAppEl = componentView.appElements[i];\n if (collection_1.StringMapWrapper.contains(compAppEl.proto.directiveVariableBindings, variableName)) {\n return compAppEl.ref;\n }\n }\n throw new exceptions_1.BaseException(\"Could not find variable \" + variableName);\n };\n AppViewManager_.prototype.getComponent = function(hostLocation) {\n return hostLocation.internalElement.getComponent();\n };\n AppViewManager_.prototype.createRootHostView = function(hostViewFactoryRef, overrideSelector, injector, projectableNodes) {\n if (projectableNodes === void 0) {\n projectableNodes = null;\n }\n var s = this._createRootHostViewScope();\n var hostViewFactory = hostViewFactoryRef.internalHostViewFactory;\n var selector = lang_1.isPresent(overrideSelector) ? overrideSelector : hostViewFactory.selector;\n var view = hostViewFactory.viewFactory(this._renderer, this, null, projectableNodes, selector, null, injector);\n return profile_1.wtfLeave(s, view.ref);\n };\n AppViewManager_.prototype.destroyRootHostView = function(hostViewRef) {\n var s = this._destroyRootHostViewScope();\n var hostView = hostViewRef.internalView;\n hostView.renderer.detachView(view_1.flattenNestedViewRenderNodes(hostView.rootNodesOrAppElements));\n hostView.destroy();\n profile_1.wtfLeave(s);\n };\n AppViewManager_.prototype.createEmbeddedViewInContainer = function(viewContainerLocation, index, templateRef) {\n var s = this._createEmbeddedViewInContainerScope();\n var contextEl = templateRef.elementRef.internalElement;\n var view = contextEl.embeddedViewFactory(contextEl.parentView.renderer, this, contextEl, contextEl.parentView.projectableNodes, null, null, null);\n this._attachViewToContainer(view, viewContainerLocation.internalElement, index);\n return profile_1.wtfLeave(s, view.ref);\n };\n AppViewManager_.prototype.createHostViewInContainer = function(viewContainerLocation, index, hostViewFactoryRef, dynamicallyCreatedProviders, projectableNodes) {\n var s = this._createHostViewInContainerScope();\n var viewContainerLocation_ = viewContainerLocation;\n var contextEl = viewContainerLocation_.internalElement;\n var hostViewFactory = hostViewFactoryRef.internalHostViewFactory;\n var view = hostViewFactory.viewFactory(contextEl.parentView.renderer, contextEl.parentView.viewManager, contextEl, projectableNodes, null, dynamicallyCreatedProviders, null);\n this._attachViewToContainer(view, viewContainerLocation_.internalElement, index);\n return profile_1.wtfLeave(s, view.ref);\n };\n AppViewManager_.prototype.destroyViewInContainer = function(viewContainerLocation, index) {\n var s = this._destroyViewInContainerScope();\n var view = this._detachViewInContainer(viewContainerLocation.internalElement, index);\n view.destroy();\n profile_1.wtfLeave(s);\n };\n AppViewManager_.prototype.attachViewInContainer = function(viewContainerLocation, index, viewRef) {\n var viewRef_ = viewRef;\n var s = this._attachViewInContainerScope();\n this._attachViewToContainer(viewRef_.internalView, viewContainerLocation.internalElement, index);\n return profile_1.wtfLeave(s, viewRef_);\n };\n AppViewManager_.prototype.detachViewInContainer = function(viewContainerLocation, index) {\n var s = this._detachViewInContainerScope();\n var view = this._detachViewInContainer(viewContainerLocation.internalElement, index);\n return profile_1.wtfLeave(s, view.ref);\n };\n AppViewManager_.prototype.onViewCreated = function(view) {};\n AppViewManager_.prototype.onViewDestroyed = function(view) {};\n AppViewManager_.prototype.createRenderComponentType = function(encapsulation, styles) {\n return new api_1.RenderComponentType(this._appId + \"-\" + this._nextCompTypeId++, encapsulation, styles);\n };\n AppViewManager_.prototype._attachViewToContainer = function(view, vcAppElement, viewIndex) {\n if (view.proto.type === view_type_1.ViewType.COMPONENT) {\n throw new exceptions_1.BaseException(\"Component views can't be moved!\");\n }\n var nestedViews = vcAppElement.nestedViews;\n if (nestedViews == null) {\n nestedViews = [];\n vcAppElement.nestedViews = nestedViews;\n }\n collection_1.ListWrapper.insert(nestedViews, viewIndex, view);\n var refNode;\n if (viewIndex > 0) {\n var prevView = nestedViews[viewIndex - 1];\n refNode = prevView.rootNodesOrAppElements.length > 0 ? prevView.rootNodesOrAppElements[prevView.rootNodesOrAppElements.length - 1] : null;\n } else {\n refNode = vcAppElement.nativeElement;\n }\n if (lang_1.isPresent(refNode)) {\n var refRenderNode;\n if (refNode instanceof element_1.AppElement) {\n refRenderNode = refNode.nativeElement;\n } else {\n refRenderNode = refNode;\n }\n view.renderer.attachViewAfter(refRenderNode, view_1.flattenNestedViewRenderNodes(view.rootNodesOrAppElements));\n }\n vcAppElement.parentView.changeDetector.addContentChild(view.changeDetector);\n vcAppElement.traverseAndSetQueriesAsDirty();\n };\n AppViewManager_.prototype._detachViewInContainer = function(vcAppElement, viewIndex) {\n var view = collection_1.ListWrapper.removeAt(vcAppElement.nestedViews, viewIndex);\n if (view.proto.type === view_type_1.ViewType.COMPONENT) {\n throw new exceptions_1.BaseException(\"Component views can't be moved!\");\n }\n vcAppElement.traverseAndSetQueriesAsDirty();\n view.renderer.detachView(view_1.flattenNestedViewRenderNodes(view.rootNodesOrAppElements));\n view.changeDetector.remove();\n return view;\n };\n AppViewManager_ = __decorate([di_1.Injectable(), __param(1, di_1.Inject(application_tokens_1.APP_ID)), __metadata('design:paramtypes', [api_1.RootRenderer, String])], AppViewManager_);\n return AppViewManager_;\n})(AppViewManager);\nexports.AppViewManager_ = AppViewManager_;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar di_1 = require('../di');\nvar compiler_1 = require('./compiler');\nvar lang_1 = require('../../facade/lang');\nvar view_manager_1 = require('./view_manager');\nvar ComponentRef = (function() {\n function ComponentRef() {}\n Object.defineProperty(ComponentRef.prototype, \"hostView\", {\n get: function() {\n return this.location.internalElement.parentView.ref;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ComponentRef.prototype, \"hostComponent\", {\n get: function() {\n return this.instance;\n },\n enumerable: true,\n configurable: true\n });\n return ComponentRef;\n})();\nexports.ComponentRef = ComponentRef;\nvar ComponentRef_ = (function(_super) {\n __extends(ComponentRef_, _super);\n function ComponentRef_(location, instance, componentType, injector, _dispose) {\n _super.call(this);\n this._dispose = _dispose;\n this.location = location;\n this.instance = instance;\n this.componentType = componentType;\n this.injector = injector;\n }\n Object.defineProperty(ComponentRef_.prototype, \"hostComponentType\", {\n get: function() {\n return this.componentType;\n },\n enumerable: true,\n configurable: true\n });\n ComponentRef_.prototype.dispose = function() {\n this._dispose();\n };\n return ComponentRef_;\n})(ComponentRef);\nexports.ComponentRef_ = ComponentRef_;\nvar DynamicComponentLoader = (function() {\n function DynamicComponentLoader() {}\n return DynamicComponentLoader;\n})();\nexports.DynamicComponentLoader = DynamicComponentLoader;\nvar DynamicComponentLoader_ = (function(_super) {\n __extends(DynamicComponentLoader_, _super);\n function DynamicComponentLoader_(_compiler, _viewManager) {\n _super.call(this);\n this._compiler = _compiler;\n this._viewManager = _viewManager;\n }\n DynamicComponentLoader_.prototype.loadAsRoot = function(type, overrideSelector, injector, onDispose, projectableNodes) {\n var _this = this;\n return this._compiler.compileInHost(type).then(function(hostProtoViewRef) {\n var hostViewRef = _this._viewManager.createRootHostView(hostProtoViewRef, overrideSelector, injector, projectableNodes);\n var newLocation = _this._viewManager.getHostElement(hostViewRef);\n var component = _this._viewManager.getComponent(newLocation);\n var dispose = function() {\n if (lang_1.isPresent(onDispose)) {\n onDispose();\n }\n _this._viewManager.destroyRootHostView(hostViewRef);\n };\n return new ComponentRef_(newLocation, component, type, injector, dispose);\n });\n };\n DynamicComponentLoader_.prototype.loadIntoLocation = function(type, hostLocation, anchorName, providers, projectableNodes) {\n if (providers === void 0) {\n providers = null;\n }\n if (projectableNodes === void 0) {\n projectableNodes = null;\n }\n return this.loadNextToLocation(type, this._viewManager.getNamedElementInComponentView(hostLocation, anchorName), providers, projectableNodes);\n };\n DynamicComponentLoader_.prototype.loadNextToLocation = function(type, location, providers, projectableNodes) {\n var _this = this;\n if (providers === void 0) {\n providers = null;\n }\n if (projectableNodes === void 0) {\n projectableNodes = null;\n }\n return this._compiler.compileInHost(type).then(function(hostProtoViewRef) {\n var viewContainer = _this._viewManager.getViewContainer(location);\n var hostViewRef = viewContainer.createHostView(hostProtoViewRef, viewContainer.length, providers, projectableNodes);\n var newLocation = _this._viewManager.getHostElement(hostViewRef);\n var component = _this._viewManager.getComponent(newLocation);\n var dispose = function() {\n var index = viewContainer.indexOf(hostViewRef);\n if (!hostViewRef.destroyed && index !== -1) {\n viewContainer.remove(index);\n }\n };\n return new ComponentRef_(newLocation, component, type, null, dispose);\n });\n };\n DynamicComponentLoader_ = __decorate([di_1.Injectable(), __metadata('design:paramtypes', [compiler_1.Compiler, view_manager_1.AppViewManager])], DynamicComponentLoader_);\n return DynamicComponentLoader_;\n})(DynamicComponentLoader);\nexports.DynamicComponentLoader_ = DynamicComponentLoader_;\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar di_1 = require('./di');\nvar application_tokens_1 = require('./application_tokens');\nvar change_detection_1 = require('./change_detection/change_detection');\nvar resolved_metadata_cache_1 = require('./linker/resolved_metadata_cache');\nvar view_manager_1 = require('./linker/view_manager');\nvar view_manager_2 = require('./linker/view_manager');\nvar view_resolver_1 = require('./linker/view_resolver');\nvar directive_resolver_1 = require('./linker/directive_resolver');\nvar pipe_resolver_1 = require('./linker/pipe_resolver');\nvar compiler_1 = require('./linker/compiler');\nvar compiler_2 = require('./linker/compiler');\nvar dynamic_component_loader_1 = require('./linker/dynamic_component_loader');\nvar dynamic_component_loader_2 = require('./linker/dynamic_component_loader');\nexports.APPLICATION_COMMON_PROVIDERS = lang_1.CONST_EXPR([new di_1.Provider(compiler_1.Compiler, {useClass: compiler_2.Compiler_}), application_tokens_1.APP_ID_RANDOM_PROVIDER, resolved_metadata_cache_1.ResolvedMetadataCache, new di_1.Provider(view_manager_1.AppViewManager, {useClass: view_manager_2.AppViewManager_}), view_resolver_1.ViewResolver, new di_1.Provider(change_detection_1.IterableDiffers, {useValue: change_detection_1.defaultIterableDiffers}), new di_1.Provider(change_detection_1.KeyValueDiffers, {useValue: change_detection_1.defaultKeyValueDiffers}), directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver, new di_1.Provider(dynamic_component_loader_1.DynamicComponentLoader, {useClass: dynamic_component_loader_2.DynamicComponentLoader_})]);\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar collection_1 = require('../../facade/collection');\nvar ReflectionInfo = (function() {\n function ReflectionInfo(annotations, parameters, factory, interfaces, propMetadata) {\n this.annotations = annotations;\n this.parameters = parameters;\n this.factory = factory;\n this.interfaces = interfaces;\n this.propMetadata = propMetadata;\n }\n return ReflectionInfo;\n})();\nexports.ReflectionInfo = ReflectionInfo;\nvar Reflector = (function() {\n function Reflector(reflectionCapabilities) {\n this._injectableInfo = new collection_1.Map();\n this._getters = new collection_1.Map();\n this._setters = new collection_1.Map();\n this._methods = new collection_1.Map();\n this._usedKeys = null;\n this.reflectionCapabilities = reflectionCapabilities;\n }\n Reflector.prototype.isReflectionEnabled = function() {\n return this.reflectionCapabilities.isReflectionEnabled();\n };\n Reflector.prototype.trackUsage = function() {\n this._usedKeys = new collection_1.Set();\n };\n Reflector.prototype.listUnusedKeys = function() {\n var _this = this;\n if (this._usedKeys == null) {\n throw new exceptions_1.BaseException('Usage tracking is disabled');\n }\n var allTypes = collection_1.MapWrapper.keys(this._injectableInfo);\n return allTypes.filter(function(key) {\n return !collection_1.SetWrapper.has(_this._usedKeys, key);\n });\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) {\n _mergeMaps(this._getters, getters);\n };\n Reflector.prototype.registerSetters = function(setters) {\n _mergeMaps(this._setters, setters);\n };\n Reflector.prototype.registerMethods = function(methods) {\n _mergeMaps(this._methods, methods);\n };\n Reflector.prototype.factory = function(type) {\n if (this._containsReflectionInfo(type)) {\n var res = this._getReflectionInfo(type).factory;\n return lang_1.isPresent(res) ? res : null;\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 lang_1.isPresent(res) ? res : [];\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 lang_1.isPresent(res) ? res : [];\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 lang_1.isPresent(res) ? res : {};\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 lang_1.isPresent(res) ? res : [];\n } else {\n return this.reflectionCapabilities.interfaces(type);\n }\n };\n Reflector.prototype.getter = function(name) {\n if (this._getters.has(name)) {\n return this._getters.get(name);\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 } 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 } else {\n return this.reflectionCapabilities.method(name);\n }\n };\n Reflector.prototype._getReflectionInfo = function(typeOrFunc) {\n if (lang_1.isPresent(this._usedKeys)) {\n this._usedKeys.add(typeOrFunc);\n }\n return this._injectableInfo.get(typeOrFunc);\n };\n Reflector.prototype._containsReflectionInfo = function(typeOrFunc) {\n return this._injectableInfo.has(typeOrFunc);\n };\n Reflector.prototype.importUri = function(type) {\n return this.reflectionCapabilities.importUri(type);\n };\n return Reflector;\n})();\nexports.Reflector = Reflector;\nfunction _mergeMaps(target, config) {\n collection_1.StringMapWrapper.forEach(config, function(v, k) {\n return target.set(k, v);\n });\n}\n","/* */ \n'use strict';\nvar lang_1 = require('./lang');\nvar exceptions_1 = require('./exceptions');\nvar collection_1 = require('./collection');\nvar _ArrayLogger = (function() {\n function _ArrayLogger() {\n this.res = [];\n }\n _ArrayLogger.prototype.log = function(s) {\n this.res.push(s);\n };\n _ArrayLogger.prototype.logError = function(s) {\n this.res.push(s);\n };\n _ArrayLogger.prototype.logGroup = function(s) {\n this.res.push(s);\n };\n _ArrayLogger.prototype.logGroupEnd = function() {};\n ;\n return _ArrayLogger;\n})();\nvar ExceptionHandler = (function() {\n function ExceptionHandler(_logger, _rethrowException) {\n if (_rethrowException === void 0) {\n _rethrowException = true;\n }\n this._logger = _logger;\n this._rethrowException = _rethrowException;\n }\n ExceptionHandler.exceptionToString = function(exception, stackTrace, reason) {\n if (stackTrace === void 0) {\n stackTrace = null;\n }\n if (reason === void 0) {\n reason = null;\n }\n var l = new _ArrayLogger();\n var e = new ExceptionHandler(l, false);\n e.call(exception, stackTrace, reason);\n return l.res.join(\"\\n\");\n };\n ExceptionHandler.prototype.call = function(exception, stackTrace, reason) {\n if (stackTrace === void 0) {\n stackTrace = null;\n }\n if (reason === void 0) {\n reason = null;\n }\n var originalException = this._findOriginalException(exception);\n var originalStack = this._findOriginalStack(exception);\n var context = this._findContext(exception);\n this._logger.logGroup(\"EXCEPTION: \" + this._extractMessage(exception));\n if (lang_1.isPresent(stackTrace) && lang_1.isBlank(originalStack)) {\n this._logger.logError(\"STACKTRACE:\");\n this._logger.logError(this._longStackTrace(stackTrace));\n }\n if (lang_1.isPresent(reason)) {\n this._logger.logError(\"REASON: \" + reason);\n }\n if (lang_1.isPresent(originalException)) {\n this._logger.logError(\"ORIGINAL EXCEPTION: \" + this._extractMessage(originalException));\n }\n if (lang_1.isPresent(originalStack)) {\n this._logger.logError(\"ORIGINAL STACKTRACE:\");\n this._logger.logError(this._longStackTrace(originalStack));\n }\n if (lang_1.isPresent(context)) {\n this._logger.logError(\"ERROR CONTEXT:\");\n this._logger.logError(context);\n }\n this._logger.logGroupEnd();\n if (this._rethrowException)\n throw exception;\n };\n ExceptionHandler.prototype._extractMessage = function(exception) {\n return exception instanceof exceptions_1.WrappedException ? exception.wrapperMessage : exception.toString();\n };\n ExceptionHandler.prototype._longStackTrace = function(stackTrace) {\n return collection_1.isListLikeIterable(stackTrace) ? stackTrace.join(\"\\n\\n-----async gap-----\\n\") : stackTrace.toString();\n };\n ExceptionHandler.prototype._findContext = function(exception) {\n try {\n if (!(exception instanceof exceptions_1.WrappedException))\n return null;\n return lang_1.isPresent(exception.context) ? exception.context : this._findContext(exception.originalException);\n } catch (e) {\n return null;\n }\n };\n ExceptionHandler.prototype._findOriginalException = function(exception) {\n if (!(exception instanceof exceptions_1.WrappedException))\n return null;\n var e = exception.originalException;\n while (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) {\n e = e.originalException;\n }\n return e;\n };\n ExceptionHandler.prototype._findOriginalStack = function(exception) {\n if (!(exception instanceof exceptions_1.WrappedException))\n return null;\n var e = exception;\n var stack = exception.originalStack;\n while (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) {\n e = e.originalException;\n if (e instanceof exceptions_1.WrappedException && lang_1.isPresent(e.originalException)) {\n stack = e.originalStack;\n }\n }\n return stack;\n };\n return ExceptionHandler;\n})();\nexports.ExceptionHandler = ExceptionHandler;\n","/* */ \n'use strict';\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar exception_handler_1 = require('./exception_handler');\nvar exception_handler_2 = require('./exception_handler');\nexports.ExceptionHandler = exception_handler_2.ExceptionHandler;\nvar BaseException = (function(_super) {\n __extends(BaseException, _super);\n function BaseException(message) {\n if (message === void 0) {\n message = \"--\";\n }\n _super.call(this, message);\n this.message = message;\n this.stack = (new Error(message)).stack;\n }\n BaseException.prototype.toString = function() {\n return this.message;\n };\n return BaseException;\n})(Error);\nexports.BaseException = BaseException;\nvar WrappedException = (function(_super) {\n __extends(WrappedException, _super);\n function WrappedException(_wrapperMessage, _originalException, _originalStack, _context) {\n _super.call(this, _wrapperMessage);\n this._wrapperMessage = _wrapperMessage;\n this._originalException = _originalException;\n this._originalStack = _originalStack;\n this._context = _context;\n this._wrapperStack = (new Error(_wrapperMessage)).stack;\n }\n Object.defineProperty(WrappedException.prototype, \"wrapperMessage\", {\n get: function() {\n return this._wrapperMessage;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedException.prototype, \"wrapperStack\", {\n get: function() {\n return this._wrapperStack;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedException.prototype, \"originalException\", {\n get: function() {\n return this._originalException;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedException.prototype, \"originalStack\", {\n get: function() {\n return this._originalStack;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedException.prototype, \"context\", {\n get: function() {\n return this._context;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(WrappedException.prototype, \"message\", {\n get: function() {\n return exception_handler_1.ExceptionHandler.exceptionToString(this);\n },\n enumerable: true,\n configurable: true\n });\n WrappedException.prototype.toString = function() {\n return this.message;\n };\n return WrappedException;\n})(Error);\nexports.WrappedException = WrappedException;\nfunction makeTypeError(message) {\n return new TypeError(message);\n}\nexports.makeTypeError = makeTypeError;\nfunction unimplemented() {\n throw new BaseException('unimplemented');\n}\nexports.unimplemented = unimplemented;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar exceptions_1 = require('../../facade/exceptions');\nvar ReflectionCapabilities = (function() {\n function ReflectionCapabilities(reflect) {\n this._reflect = lang_1.isPresent(reflect) ? reflect : lang_1.global.Reflect;\n }\n ReflectionCapabilities.prototype.isReflectionEnabled = function() {\n return true;\n };\n ReflectionCapabilities.prototype.factory = function(t) {\n switch (t.length) {\n case 0:\n return function() {\n return new t();\n };\n case 1:\n return function(a1) {\n return new t(a1);\n };\n case 2:\n return function(a1, a2) {\n return new t(a1, a2);\n };\n case 3:\n return function(a1, a2, a3) {\n return new t(a1, a2, a3);\n };\n case 4:\n return function(a1, a2, a3, a4) {\n return new t(a1, a2, a3, a4);\n };\n case 5:\n return function(a1, a2, a3, a4, a5) {\n return new t(a1, a2, a3, a4, a5);\n };\n case 6:\n return function(a1, a2, a3, a4, a5, a6) {\n return new t(a1, a2, a3, a4, a5, a6);\n };\n case 7:\n return function(a1, a2, a3, a4, a5, a6, a7) {\n return new t(a1, a2, a3, a4, a5, a6, a7);\n };\n case 8:\n return function(a1, a2, a3, a4, a5, a6, a7, a8) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8);\n };\n case 9:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9);\n };\n case 10:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);\n };\n case 11:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);\n };\n case 12:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);\n };\n case 13:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13);\n };\n case 14:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);\n };\n case 15:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);\n };\n case 16:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16);\n };\n case 17:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17);\n };\n case 18:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18);\n };\n case 19:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19);\n };\n case 20:\n return function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) {\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20);\n };\n }\n ;\n throw new Error(\"Cannot create a factory for '\" + lang_1.stringify(t) + \"' because its constructor has more than 20 arguments\");\n };\n ReflectionCapabilities.prototype._zipTypesAndAnnotations = function(paramTypes, paramAnnotations) {\n var result;\n if (typeof paramTypes === 'undefined') {\n result = new Array(paramAnnotations.length);\n } else {\n result = new Array(paramTypes.length);\n }\n for (var i = 0; i < result.length; i++) {\n if (typeof paramTypes === 'undefined') {\n result[i] = [];\n } else if (paramTypes[i] != Object) {\n result[i] = [paramTypes[i]];\n } else {\n result[i] = [];\n }\n if (lang_1.isPresent(paramAnnotations) && lang_1.isPresent(paramAnnotations[i])) {\n result[i] = result[i].concat(paramAnnotations[i]);\n }\n }\n return result;\n };\n ReflectionCapabilities.prototype.parameters = function(typeOrFunc) {\n if (lang_1.isPresent(typeOrFunc.parameters)) {\n return typeOrFunc.parameters;\n }\n if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) {\n var paramAnnotations = this._reflect.getMetadata('parameters', typeOrFunc);\n var paramTypes = this._reflect.getMetadata('design:paramtypes', typeOrFunc);\n if (lang_1.isPresent(paramTypes) || lang_1.isPresent(paramAnnotations)) {\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n }\n var parameters = new Array(typeOrFunc.length);\n parameters.fill(undefined);\n return parameters;\n };\n ReflectionCapabilities.prototype.annotations = function(typeOrFunc) {\n if (lang_1.isPresent(typeOrFunc.annotations)) {\n var annotations = typeOrFunc.annotations;\n if (lang_1.isFunction(annotations) && annotations.annotations) {\n annotations = annotations.annotations;\n }\n return annotations;\n }\n if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) {\n var annotations = this._reflect.getMetadata('annotations', typeOrFunc);\n if (lang_1.isPresent(annotations))\n return annotations;\n }\n return [];\n };\n ReflectionCapabilities.prototype.propMetadata = function(typeOrFunc) {\n if (lang_1.isPresent(typeOrFunc.propMetadata)) {\n var propMetadata = typeOrFunc.propMetadata;\n if (lang_1.isFunction(propMetadata) && propMetadata.propMetadata) {\n propMetadata = propMetadata.propMetadata;\n }\n return propMetadata;\n }\n if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) {\n var propMetadata = this._reflect.getMetadata('propMetadata', typeOrFunc);\n if (lang_1.isPresent(propMetadata))\n return propMetadata;\n }\n return {};\n };\n ReflectionCapabilities.prototype.interfaces = function(type) {\n throw new exceptions_1.BaseException(\"JavaScript does not support interfaces\");\n };\n ReflectionCapabilities.prototype.getter = function(name) {\n return new Function('o', 'return o.' + name + ';');\n };\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 ReflectionCapabilities.prototype.importUri = function(type) {\n return './';\n };\n return ReflectionCapabilities;\n})();\nexports.ReflectionCapabilities = ReflectionCapabilities;\n","/* */ \n'use strict';\nvar reflector_1 = require('./reflector');\nvar reflector_2 = require('./reflector');\nexports.Reflector = reflector_2.Reflector;\nexports.ReflectionInfo = reflector_2.ReflectionInfo;\nvar reflection_capabilities_1 = require('./reflection_capabilities');\nexports.reflector = new reflector_1.Reflector(new reflection_capabilities_1.ReflectionCapabilities());\n","/* */ \n'use strict';\nfunction __export(m) {\n for (var p in m)\n if (!exports.hasOwnProperty(p))\n exports[p] = m[p];\n}\n__export(require('./src/core/metadata'));\n__export(require('./src/core/util'));\n__export(require('./src/core/prod_mode'));\n__export(require('./src/core/di'));\n__export(require('./src/facade/facade'));\nvar lang_1 = require('./src/facade/lang');\nexports.enableProdMode = lang_1.enableProdMode;\nvar application_ref_1 = require('./src/core/application_ref');\nexports.platform = application_ref_1.platform;\nexports.createNgZone = application_ref_1.createNgZone;\nexports.PlatformRef = application_ref_1.PlatformRef;\nexports.ApplicationRef = application_ref_1.ApplicationRef;\nvar application_tokens_1 = require('./src/core/application_tokens');\nexports.APP_ID = application_tokens_1.APP_ID;\nexports.APP_COMPONENT = application_tokens_1.APP_COMPONENT;\nexports.APP_INITIALIZER = application_tokens_1.APP_INITIALIZER;\nexports.PACKAGE_ROOT_URL = application_tokens_1.PACKAGE_ROOT_URL;\nexports.PLATFORM_INITIALIZER = application_tokens_1.PLATFORM_INITIALIZER;\n__export(require('./src/core/zone'));\n__export(require('./src/core/render'));\n__export(require('./src/core/linker'));\nvar debug_node_1 = require('./src/core/debug/debug_node');\nexports.DebugElement = debug_node_1.DebugElement;\nexports.DebugNode = debug_node_1.DebugNode;\nexports.asNativeElements = debug_node_1.asNativeElements;\n__export(require('./src/core/testability/testability'));\n__export(require('./src/core/change_detection'));\n__export(require('./src/core/platform_directives_and_pipes'));\n__export(require('./src/core/platform_common_providers'));\n__export(require('./src/core/application_common_providers'));\n__export(require('./src/core/reflection/reflection'));\n","/* */ \n'use strict';var __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar globalScope;\r\nif (typeof window === 'undefined') {\r\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\r\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\r\n globalScope = self;\r\n }\r\n else {\r\n globalScope = global;\r\n }\r\n}\r\nelse {\r\n globalScope = window;\r\n}\r\nexports.IS_DART = false;\r\n// Need to declare a new variable for global here since TypeScript\r\n// exports the original value of the symbol.\r\nvar _global = globalScope;\r\nexports.global = _global;\r\nexports.Type = Function;\r\nfunction getTypeNameForDebugging(type) {\r\n return type['name'];\r\n}\r\nexports.getTypeNameForDebugging = getTypeNameForDebugging;\r\nexports.Math = _global.Math;\r\nexports.Date = _global.Date;\r\nvar _devMode = true;\r\nvar _modeLocked = false;\r\nfunction lockMode() {\r\n _modeLocked = true;\r\n}\r\nexports.lockMode = lockMode;\r\n/**\r\n * Disable Angular's development mode, which turns off assertions and other\r\n * checks within the framework.\r\n *\r\n * One important assertion this disables verifies that a change detection pass\r\n * does not result in additional changes to any bindings (also known as\r\n * unidirectional data flow).\r\n */\r\nfunction enableProdMode() {\r\n if (_modeLocked) {\r\n // Cannot use BaseException as that ends up importing from facade/lang.\r\n throw 'Cannot enable prod mode after platform setup.';\r\n }\r\n _devMode = false;\r\n}\r\nexports.enableProdMode = enableProdMode;\r\nfunction assertionsEnabled() {\r\n return _devMode;\r\n}\r\nexports.assertionsEnabled = assertionsEnabled;\r\n// TODO: remove calls to assert in production environment\r\n// Note: Can't just export this and import in in other files\r\n// as `assert` is a reserved keyword in Dart\r\n_global.assert = function assert(condition) {\r\n // TODO: to be fixed properly via #2830, noop for now\r\n};\r\n// This function is needed only to properly support Dart's const expressions\r\n// see https://github.com/angular/ts2dart/pull/151 for more info\r\nfunction CONST_EXPR(expr) {\r\n return expr;\r\n}\r\nexports.CONST_EXPR = CONST_EXPR;\r\nfunction CONST() {\r\n return function (target) { return target; };\r\n}\r\nexports.CONST = CONST;\r\nfunction isPresent(obj) {\r\n return obj !== undefined && obj !== null;\r\n}\r\nexports.isPresent = isPresent;\r\nfunction isBlank(obj) {\r\n return obj === undefined || obj === null;\r\n}\r\nexports.isBlank = isBlank;\r\nfunction isString(obj) {\r\n return typeof obj === \"string\";\r\n}\r\nexports.isString = isString;\r\nfunction isFunction(obj) {\r\n return typeof obj === \"function\";\r\n}\r\nexports.isFunction = isFunction;\r\nfunction isType(obj) {\r\n return isFunction(obj);\r\n}\r\nexports.isType = isType;\r\nfunction isStringMap(obj) {\r\n return typeof obj === 'object' && obj !== null;\r\n}\r\nexports.isStringMap = isStringMap;\r\nfunction isPromise(obj) {\r\n return obj instanceof _global.Promise;\r\n}\r\nexports.isPromise = isPromise;\r\nfunction isArray(obj) {\r\n return Array.isArray(obj);\r\n}\r\nexports.isArray = isArray;\r\nfunction isNumber(obj) {\r\n return typeof obj === 'number';\r\n}\r\nexports.isNumber = isNumber;\r\nfunction isDate(obj) {\r\n return obj instanceof exports.Date && !isNaN(obj.valueOf());\r\n}\r\nexports.isDate = isDate;\r\nfunction noop() { }\r\nexports.noop = noop;\r\nfunction stringify(token) {\r\n if (typeof token === 'string') {\r\n return token;\r\n }\r\n if (token === undefined || token === null) {\r\n return '' + token;\r\n }\r\n if (token.name) {\r\n return token.name;\r\n }\r\n if (token.overriddenName) {\r\n return token.overriddenName;\r\n }\r\n var res = token.toString();\r\n var newLineIndex = res.indexOf(\"\\n\");\r\n return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);\r\n}\r\nexports.stringify = stringify;\r\n// serialize / deserialize enum exist only for consistency with dart API\r\n// enums in typescript don't need to be serialized\r\nfunction serializeEnum(val) {\r\n return val;\r\n}\r\nexports.serializeEnum = serializeEnum;\r\nfunction deserializeEnum(val, values) {\r\n return val;\r\n}\r\nexports.deserializeEnum = deserializeEnum;\r\nvar StringWrapper = (function () {\r\n function StringWrapper() {\r\n }\r\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\r\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\r\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\r\n StringWrapper.equals = function (s, s2) { return s === s2; };\r\n StringWrapper.stripLeft = function (s, charVal) {\r\n if (s && s.length) {\r\n var pos = 0;\r\n for (var i = 0; i < s.length; i++) {\r\n if (s[i] != charVal)\r\n break;\r\n pos++;\r\n }\r\n s = s.substring(pos);\r\n }\r\n return s;\r\n };\r\n StringWrapper.stripRight = function (s, charVal) {\r\n if (s && s.length) {\r\n var pos = s.length;\r\n for (var i = s.length - 1; i >= 0; i--) {\r\n if (s[i] != charVal)\r\n break;\r\n pos--;\r\n }\r\n s = s.substring(0, pos);\r\n }\r\n return s;\r\n };\r\n StringWrapper.replace = function (s, from, replace) {\r\n return s.replace(from, replace);\r\n };\r\n StringWrapper.replaceAll = function (s, from, replace) {\r\n return s.replace(from, replace);\r\n };\r\n StringWrapper.slice = function (s, from, to) {\r\n if (from === void 0) { from = 0; }\r\n if (to === void 0) { to = null; }\r\n return s.slice(from, to === null ? undefined : to);\r\n };\r\n StringWrapper.replaceAllMapped = function (s, from, cb) {\r\n return s.replace(from, function () {\r\n var matches = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n matches[_i - 0] = arguments[_i];\r\n }\r\n // Remove offset & string from the result array\r\n matches.splice(-2, 2);\r\n // The callback receives match, p1, ..., pn\r\n return cb(matches);\r\n });\r\n };\r\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\r\n StringWrapper.compare = function (a, b) {\r\n if (a < b) {\r\n return -1;\r\n }\r\n else if (a > b) {\r\n return 1;\r\n }\r\n else {\r\n return 0;\r\n }\r\n };\r\n return StringWrapper;\r\n})();\r\nexports.StringWrapper = StringWrapper;\r\nvar StringJoiner = (function () {\r\n function StringJoiner(parts) {\r\n if (parts === void 0) { parts = []; }\r\n this.parts = parts;\r\n }\r\n StringJoiner.prototype.add = function (part) { this.parts.push(part); };\r\n StringJoiner.prototype.toString = function () { return this.parts.join(\"\"); };\r\n return StringJoiner;\r\n})();\r\nexports.StringJoiner = StringJoiner;\r\nvar NumberParseError = (function (_super) {\r\n __extends(NumberParseError, _super);\r\n function NumberParseError(message) {\r\n _super.call(this);\r\n this.message = message;\r\n }\r\n NumberParseError.prototype.toString = function () { return this.message; };\r\n return NumberParseError;\r\n})(Error);\r\nexports.NumberParseError = NumberParseError;\r\nvar NumberWrapper = (function () {\r\n function NumberWrapper() {\r\n }\r\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\r\n NumberWrapper.equal = function (a, b) { return a === b; };\r\n NumberWrapper.parseIntAutoRadix = function (text) {\r\n var result = parseInt(text);\r\n if (isNaN(result)) {\r\n throw new NumberParseError(\"Invalid integer literal when parsing \" + text);\r\n }\r\n return result;\r\n };\r\n NumberWrapper.parseInt = function (text, radix) {\r\n if (radix == 10) {\r\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\r\n return parseInt(text, radix);\r\n }\r\n }\r\n else if (radix == 16) {\r\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\r\n return parseInt(text, radix);\r\n }\r\n }\r\n else {\r\n var result = parseInt(text, radix);\r\n if (!isNaN(result)) {\r\n return result;\r\n }\r\n }\r\n throw new NumberParseError(\"Invalid integer literal when parsing \" + text + \" in base \" +\r\n radix);\r\n };\r\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\r\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\r\n Object.defineProperty(NumberWrapper, \"NaN\", {\r\n get: function () { return NaN; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\r\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\r\n return NumberWrapper;\r\n})();\r\nexports.NumberWrapper = NumberWrapper;\r\nexports.RegExp = _global.RegExp;\r\nvar RegExpWrapper = (function () {\r\n function RegExpWrapper() {\r\n }\r\n RegExpWrapper.create = function (regExpStr, flags) {\r\n if (flags === void 0) { flags = ''; }\r\n flags = flags.replace(/g/g, '');\r\n return new _global.RegExp(regExpStr, flags + 'g');\r\n };\r\n RegExpWrapper.firstMatch = function (regExp, input) {\r\n // Reset multimatch regex state\r\n regExp.lastIndex = 0;\r\n return regExp.exec(input);\r\n };\r\n RegExpWrapper.test = function (regExp, input) {\r\n regExp.lastIndex = 0;\r\n return regExp.test(input);\r\n };\r\n RegExpWrapper.matcher = function (regExp, input) {\r\n // Reset regex state for the case\r\n // someone did not loop over all matches\r\n // last time.\r\n regExp.lastIndex = 0;\r\n return { re: regExp, input: input };\r\n };\r\n return RegExpWrapper;\r\n})();\r\nexports.RegExpWrapper = RegExpWrapper;\r\nvar RegExpMatcherWrapper = (function () {\r\n function RegExpMatcherWrapper() {\r\n }\r\n RegExpMatcherWrapper.next = function (matcher) {\r\n return matcher.re.exec(matcher.input);\r\n };\r\n return RegExpMatcherWrapper;\r\n})();\r\nexports.RegExpMatcherWrapper = RegExpMatcherWrapper;\r\nvar FunctionWrapper = (function () {\r\n function FunctionWrapper() {\r\n }\r\n FunctionWrapper.apply = function (fn, posArgs) { return fn.apply(null, posArgs); };\r\n return FunctionWrapper;\r\n})();\r\nexports.FunctionWrapper = FunctionWrapper;\r\n// JS has NaN !== NaN\r\nfunction looseIdentical(a, b) {\r\n return a === b || typeof a === \"number\" && typeof b === \"number\" && isNaN(a) && isNaN(b);\r\n}\r\nexports.looseIdentical = looseIdentical;\r\n// JS considers NaN is the same as NaN for map Key (while NaN !== NaN otherwise)\r\n// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\r\nfunction getMapKey(value) {\r\n return value;\r\n}\r\nexports.getMapKey = getMapKey;\r\nfunction normalizeBlank(obj) {\r\n return isBlank(obj) ? null : obj;\r\n}\r\nexports.normalizeBlank = normalizeBlank;\r\nfunction normalizeBool(obj) {\r\n return isBlank(obj) ? false : obj;\r\n}\r\nexports.normalizeBool = normalizeBool;\r\nfunction isJsObject(o) {\r\n return o !== null && (typeof o === \"function\" || typeof o === \"object\");\r\n}\r\nexports.isJsObject = isJsObject;\r\nfunction print(obj) {\r\n console.log(obj);\r\n}\r\nexports.print = print;\r\n// Can't be all uppercase as our transpiler would think it is a special directive...\r\nvar Json = (function () {\r\n function Json() {\r\n }\r\n Json.parse = function (s) { return _global.JSON.parse(s); };\r\n Json.stringify = function (data) {\r\n // Dart doesn't take 3 arguments\r\n return _global.JSON.stringify(data, null, 2);\r\n };\r\n return Json;\r\n})();\r\nexports.Json = Json;\r\nvar DateWrapper = (function () {\r\n function DateWrapper() {\r\n }\r\n DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) {\r\n if (month === void 0) { month = 1; }\r\n if (day === void 0) { day = 1; }\r\n if (hour === void 0) { hour = 0; }\r\n if (minutes === void 0) { minutes = 0; }\r\n if (seconds === void 0) { seconds = 0; }\r\n if (milliseconds === void 0) { milliseconds = 0; }\r\n return new exports.Date(year, month - 1, day, hour, minutes, seconds, milliseconds);\r\n };\r\n DateWrapper.fromISOString = function (str) { return new exports.Date(str); };\r\n DateWrapper.fromMillis = function (ms) { return new exports.Date(ms); };\r\n DateWrapper.toMillis = function (date) { return date.getTime(); };\r\n DateWrapper.now = function () { return new exports.Date(); };\r\n DateWrapper.toJson = function (date) { return date.toJSON(); };\r\n return DateWrapper;\r\n})();\r\nexports.DateWrapper = DateWrapper;\r\nfunction setValueOnPath(global, path, value) {\r\n var parts = path.split('.');\r\n var obj = global;\r\n while (parts.length > 1) {\r\n var name = parts.shift();\r\n if (obj.hasOwnProperty(name) && isPresent(obj[name])) {\r\n obj = obj[name];\r\n }\r\n else {\r\n obj = obj[name] = {};\r\n }\r\n }\r\n if (obj === undefined || obj === null) {\r\n obj = {};\r\n }\r\n obj[parts.shift()] = value;\r\n}\r\nexports.setValueOnPath = setValueOnPath;\r\nvar _symbolIterator = null;\r\nfunction getSymbolIterator() {\r\n if (isBlank(_symbolIterator)) {\r\n if (isPresent(Symbol) && isPresent(Symbol.iterator)) {\r\n _symbolIterator = Symbol.iterator;\r\n }\r\n else {\r\n // es6-shim specific logic\r\n var keys = Object.getOwnPropertyNames(Map.prototype);\r\n for (var i = 0; i < keys.length; ++i) {\r\n var key = keys[i];\r\n if (key !== 'entries' && key !== 'size' &&\r\n Map.prototype[key] === Map.prototype['entries']) {\r\n _symbolIterator = key;\r\n }\r\n }\r\n }\r\n }\r\n return _symbolIterator;\r\n}\r\nexports.getSymbolIterator = getSymbolIterator;\r\nfunction evalExpression(sourceUrl, expr, declarations, vars) {\r\n var fnBody = declarations + \"\\nreturn \" + expr + \"\\n//# sourceURL=\" + sourceUrl;\r\n var fnArgNames = [];\r\n var fnArgValues = [];\r\n for (var argName in vars) {\r\n fnArgNames.push(argName);\r\n fnArgValues.push(vars[argName]);\r\n }\r\n return new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat(fnBody))))().apply(void 0, fnArgValues);\r\n}\r\nexports.evalExpression = evalExpression;\r\nfunction isPrimitive(obj) {\r\n return !isJsObject(obj);\r\n}\r\nexports.isPrimitive = isPrimitive;\r\nfunction hasConstructor(value, type) {\r\n return value.constructor === type;\r\n}\r\nexports.hasConstructor = hasConstructor;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFuZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFuZ3VsYXIyL3NyYy9mYWNhZGUvbGFuZy50cyJdLCJuYW1lcyI6WyJnZXRUeXBlTmFtZUZvckRlYnVnZ2luZyIsImxvY2tNb2RlIiwiZW5hYmxlUHJvZE1vZGUiLCJhc3NlcnRpb25zRW5hYmxlZCIsImFzc2VydCIsIkNPTlNUX0VYUFIiLCJDT05TVCIsImlzUHJlc2VudCIsImlzQmxhbmsiLCJpc1N0cmluZyIsImlzRnVuY3Rpb24iLCJpc1R5cGUiLCJpc1N0cmluZ01hcCIsImlzUHJvbWlzZSIsImlzQXJyYXkiLCJpc051bWJlciIsImlzRGF0ZSIsIm5vb3AiLCJzdHJpbmdpZnkiLCJzZXJpYWxpemVFbnVtIiwiZGVzZXJpYWxpemVFbnVtIiwiU3RyaW5nV3JhcHBlciIsIlN0cmluZ1dyYXBwZXIuY29uc3RydWN0b3IiLCJTdHJpbmdXcmFwcGVyLmZyb21DaGFyQ29kZSIsIlN0cmluZ1dyYXBwZXIuY2hhckNvZGVBdCIsIlN0cmluZ1dyYXBwZXIuc3BsaXQiLCJTdHJpbmdXcmFwcGVyLmVxdWFscyIsIlN0cmluZ1dyYXBwZXIuc3RyaXBMZWZ0IiwiU3RyaW5nV3JhcHBlci5zdHJpcFJpZ2h0IiwiU3RyaW5nV3JhcHBlci5yZXBsYWNlIiwiU3RyaW5nV3JhcHBlci5yZXBsYWNlQWxsIiwiU3RyaW5nV3JhcHBlci5zbGljZSIsIlN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbE1hcHBlZCIsIlN0cmluZ1dyYXBwZXIuY29udGFpbnMiLCJTdHJpbmdXcmFwcGVyLmNvbXBh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tdO1xuICB2YXIgZm5BcmdWYWx1ZXMgPSBbXTtcbiAgZm9yICh2YXIgYXJnTmFtZSBpbiB2YXJzKSB7XG4gICAgZm5BcmdOYW1lcy5wdXNoKGFyZ05hbWUpO1xuICAgIGZuQXJnVmFsdWVzLnB1c2godmFyc1thcmdOYW1lXSk7XG4gIH1cbiAgcmV0dXJuIG5ldyBGdW5jdGlvbiguLi5mbkFyZ05hbWVzLmNvbmNhdChmbkJvZHkpKSguLi5mbkFyZ1ZhbHVlcyk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc1ByaW1pdGl2ZShvYmo6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gIWlzSnNPYmplY3Qob2JqKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGhhc0NvbnN0cnVjdG9yKHZhbHVlOiBPYmplY3QsIHR5cGU6IFR5cGUpOiBib29sZWFuIHtcbiAgcmV0dXJuIHZhbHVlLmNvbnN0cnVjdG9yID09PSB0eXBlO1xufSJdfQ==","/* */ \n'use strict';\nvar lang_1 = require('./lang');\nexports.Map = lang_1.global.Map;\nexports.Set = lang_1.global.Set;\nvar createMapFromPairs = (function() {\n try {\n if (new exports.Map([[1, 2]]).size === 1) {\n return function createMapFromPairs(pairs) {\n return new exports.Map(pairs);\n };\n }\n } catch (e) {}\n return function createMapAndPopulateFromPairs(pairs) {\n var map = new exports.Map();\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})();\nvar createMapFromMap = (function() {\n try {\n if (new exports.Map(new exports.Map())) {\n return function createMapFromMap(m) {\n return new exports.Map(m);\n };\n }\n } catch (e) {}\n return function createMapAndPopulateFromMap(m) {\n var map = new exports.Map();\n m.forEach(function(v, k) {\n map.set(k, v);\n });\n return map;\n };\n})();\nvar _clearValues = (function() {\n if ((new exports.Map()).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 } else {\n return function _clearValuesWithForeEach(m) {\n m.forEach(function(v, k) {\n m.set(k, null);\n });\n };\n }\n})();\nvar _arrayFromMap = (function() {\n try {\n if ((new exports.Map()).values().next) {\n return function createArrayFromMap(m, getValues) {\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\n };\n }\n } catch (e) {}\n return function createArrayFromMapWithForeach(m, getValues) {\n var res = ListWrapper.createFixedSize(m.size),\n i = 0;\n m.forEach(function(v, k) {\n res[i] = getValues ? v : k;\n i++;\n });\n return res;\n };\n})();\nvar MapWrapper = (function() {\n function MapWrapper() {}\n MapWrapper.clone = function(m) {\n return createMapFromMap(m);\n };\n MapWrapper.createFromStringMap = function(stringMap) {\n var result = new exports.Map();\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) {\n return r[k] = v;\n });\n return r;\n };\n MapWrapper.createFromPairs = function(pairs) {\n return createMapFromPairs(pairs);\n };\n MapWrapper.clearValues = function(m) {\n _clearValues(m);\n };\n MapWrapper.iterable = function(m) {\n return m;\n };\n MapWrapper.keys = function(m) {\n return _arrayFromMap(m, false);\n };\n MapWrapper.values = function(m) {\n return _arrayFromMap(m, true);\n };\n return MapWrapper;\n})();\nexports.MapWrapper = MapWrapper;\nvar StringMapWrapper = (function() {\n function StringMapWrapper() {}\n StringMapWrapper.create = function() {\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) {\n map[key] = value;\n };\n StringMapWrapper.keys = function(map) {\n return Object.keys(map);\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) {\n delete map[key];\n };\n StringMapWrapper.forEach = function(map, callback) {\n for (var prop in map) {\n if (map.hasOwnProperty(prop)) {\n callback(map[prop], prop);\n }\n }\n };\n StringMapWrapper.merge = function(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 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})();\nexports.StringMapWrapper = StringMapWrapper;\nvar ListWrapper = (function() {\n function ListWrapper() {}\n ListWrapper.createFixedSize = function(size) {\n return new Array(size);\n };\n ListWrapper.createGrowableSize = function(size) {\n return new Array(size);\n };\n ListWrapper.clone = function(array) {\n return array.slice(0);\n };\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) {\n startIndex = 0;\n }\n return array.indexOf(value, startIndex);\n };\n ListWrapper.contains = function(list, el) {\n return list.indexOf(el) !== -1;\n };\n ListWrapper.reversed = function(array) {\n var a = ListWrapper.clone(array);\n return a.reverse();\n };\n ListWrapper.concat = function(a, b) {\n return a.concat(b);\n };\n ListWrapper.insert = function(list, index, value) {\n list.splice(index, 0, value);\n };\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) {\n list.length = 0;\n };\n ListWrapper.isEmpty = function(list) {\n return list.length == 0;\n };\n ListWrapper.fill = function(list, value, start, end) {\n if (start === void 0) {\n start = 0;\n }\n if (end === void 0) {\n end = null;\n }\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) {\n from = 0;\n }\n if (to === void 0) {\n to = null;\n }\n return l.slice(from, to === null ? undefined : to);\n };\n ListWrapper.splice = function(l, from, length) {\n return l.splice(from, length);\n };\n ListWrapper.sort = function(l, compareFn) {\n if (lang_1.isPresent(compareFn)) {\n l.sort(compareFn);\n } else {\n l.sort();\n }\n };\n ListWrapper.toString = function(l) {\n return l.toString();\n };\n ListWrapper.toJSON = function(l) {\n return JSON.stringify(l);\n };\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 (lang_1.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 return ListWrapper;\n})();\nexports.ListWrapper = ListWrapper;\nfunction isListLikeIterable(obj) {\n if (!lang_1.isJsObject(obj))\n return false;\n return lang_1.isArray(obj) || (!(obj instanceof exports.Map) && lang_1.getSymbolIterator() in obj);\n}\nexports.isListLikeIterable = isListLikeIterable;\nfunction areIterablesEqual(a, b, comparator) {\n var iterator1 = a[lang_1.getSymbolIterator()]();\n var iterator2 = b[lang_1.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}\nexports.areIterablesEqual = areIterablesEqual;\nfunction iterateListLike(obj, fn) {\n if (lang_1.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n } else {\n var iterator = obj[lang_1.getSymbolIterator()]();\n var item;\n while (!((item = iterator.next()).done)) {\n fn(item.value);\n }\n }\n}\nexports.iterateListLike = iterateListLike;\nvar createSetFromList = (function() {\n var test = new exports.Set([1, 2, 3]);\n if (test.size === 3) {\n return function createSetFromList(lst) {\n return new exports.Set(lst);\n };\n } else {\n return function createSetAndPopulateFromList(lst) {\n var res = new exports.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})();\nvar SetWrapper = (function() {\n function SetWrapper() {}\n SetWrapper.createFromList = function(lst) {\n return createSetFromList(lst);\n };\n SetWrapper.has = function(s, key) {\n return s.has(key);\n };\n SetWrapper.delete = function(m, k) {\n m.delete(k);\n };\n return SetWrapper;\n})();\nexports.SetWrapper = SetWrapper;\n","/* */ \n'use strict';\nvar __decorate = (this && this.__decorate) || function(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function(k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n};\nvar core_1 = require('../../../core');\nvar lang_1 = require('../../facade/lang');\nvar collection_1 = require('../../facade/collection');\nvar _WHEN_DEFAULT = lang_1.CONST_EXPR(new Object());\nvar SwitchView = (function() {\n function SwitchView(_viewContainerRef, _templateRef) {\n this._viewContainerRef = _viewContainerRef;\n this._templateRef = _templateRef;\n }\n SwitchView.prototype.create = function() {\n this._viewContainerRef.createEmbeddedView(this._templateRef);\n };\n SwitchView.prototype.destroy = function() {\n this._viewContainerRef.clear();\n };\n return SwitchView;\n})();\nexports.SwitchView = SwitchView;\nvar NgSwitch = (function() {\n function NgSwitch() {\n this._useDefault = false;\n this._valueViews = new collection_1.Map();\n this._activeViews = [];\n }\n Object.defineProperty(NgSwitch.prototype, \"ngSwitch\", {\n set: function(value) {\n this._emptyAllActiveViews();\n this._useDefault = false;\n var views = this._valueViews.get(value);\n if (lang_1.isBlank(views)) {\n this._useDefault = true;\n views = lang_1.normalizeBlank(this._valueViews.get(_WHEN_DEFAULT));\n }\n this._activateViews(views);\n this._switchValue = value;\n },\n enumerable: true,\n configurable: true\n });\n NgSwitch.prototype._onWhenValueChanged = function(oldWhen, newWhen, view) {\n this._deregisterView(oldWhen, view);\n this._registerView(newWhen, view);\n if (oldWhen === this._switchValue) {\n view.destroy();\n collection_1.ListWrapper.remove(this._activeViews, view);\n } else if (newWhen === this._switchValue) {\n if (this._useDefault) {\n this._useDefault = false;\n this._emptyAllActiveViews();\n }\n view.create();\n this._activeViews.push(view);\n }\n if (this._activeViews.length === 0 && !this._useDefault) {\n this._useDefault = true;\n this._activateViews(this._valueViews.get(_WHEN_DEFAULT));\n }\n };\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 NgSwitch.prototype._activateViews = function(views) {\n if (lang_1.isPresent(views)) {\n for (var i = 0; i < views.length; i++) {\n views[i].create();\n }\n this._activeViews = views;\n }\n };\n NgSwitch.prototype._registerView = function(value, view) {\n var views = this._valueViews.get(value);\n if (lang_1.isBlank(views)) {\n views = [];\n this._valueViews.set(value, views);\n }\n views.push(view);\n };\n NgSwitch.prototype._deregisterView = function(value, view) {\n if (value === _WHEN_DEFAULT)\n return;\n var views = this._valueViews.get(value);\n if (views.length == 1) {\n this._valueViews.delete(value);\n } else {\n collection_1.ListWrapper.remove(views, view);\n }\n };\n NgSwitch = __decorate([core_1.Directive({\n selector: '[ngSwitch]',\n inputs: ['ngSwitch']\n }), __metadata('design:paramtypes', [])], NgSwitch);\n return NgSwitch;\n})();\nexports.NgSwitch = NgSwitch;\nvar NgSwitchWhen = (function() {\n function NgSwitchWhen(viewContainer, templateRef, ngSwitch) {\n this._value = _WHEN_DEFAULT;\n this._switch = ngSwitch;\n this._view = new SwitchView(viewContainer, templateRef);\n }\n Object.defineProperty(NgSwitchWhen.prototype, \"ngSwitchWhen\", {\n set: function(value) {\n this._switch._onWhenValueChanged(this._value, value, this._view);\n this._value = value;\n },\n enumerable: true,\n configurable: true\n });\n NgSwitchWhen = __decorate([core_1.Directive({\n selector: '[ngSwitchWhen]',\n inputs: ['ngSwitchWhen']\n }), __param(2, core_1.Host()), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])], NgSwitchWhen);\n return NgSwitchWhen;\n})();\nexports.NgSwitchWhen = NgSwitchWhen;\nvar NgSwitchDefault = (function() {\n function NgSwitchDefault(viewContainer, templateRef, sswitch) {\n sswitch._registerView(_WHEN_DEFAULT, new SwitchView(viewContainer, templateRef));\n }\n NgSwitchDefault = __decorate([core_1.Directive({selector: '[ngSwitchDefault]'}), __param(2, core_1.Host()), __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])], NgSwitchDefault);\n return NgSwitchDefault;\n})();\nexports.NgSwitchDefault = NgSwitchDefault;\n","/* */ \n'use strict';\nvar lang_1 = require('../../facade/lang');\nvar ng_class_1 = require('./ng_class');\nvar ng_for_1 = require('./ng_for');\nvar ng_if_1 = require('./ng_if');\nvar ng_style_1 = require('./ng_style');\nvar ng_switch_1 = require('./ng_switch');\nexports.CORE_DIRECTIVES = lang_1.CONST_EXPR([ng_class_1.NgClass, ng_for_1.NgFor, ng_if_1.NgIf, ng_style_1.NgStyle, ng_switch_1.NgSwitch, ng_switch_1.NgSwitchWhen, ng_switch_1.NgSwitchDefault]);\n","/* */ \n'use strict';\nfunction __export(m) {\n for (var p in m)\n if (!exports.hasOwnProperty(p))\n exports[p] = m[p];\n}\nvar ng_class_1 = require('./directives/ng_class');\nexports.NgClass = ng_class_1.NgClass;\nvar ng_for_1 = require('./directives/ng_for');\nexports.NgFor = ng_for_1.NgFor;\nvar ng_if_1 = require('./directives/ng_if');\nexports.NgIf = ng_if_1.NgIf;\nvar ng_style_1 = require('./directives/ng_style');\nexports.NgStyle = ng_style_1.NgStyle;\nvar ng_switch_1 = require('./directives/ng_switch');\nexports.NgSwitch = ng_switch_1.NgSwitch;\nexports.NgSwitchWhen = ng_switch_1.NgSwitchWhen;\nexports.NgSwitchDefault = ng_switch_1.NgSwitchDefault;\n__export(require('./directives/observable_list_diff'));\nvar core_directives_1 = require('./directives/core_directives');\nexports.CORE_DIRECTIVES = core_directives_1.CORE_DIRECTIVES;\n","/* */ \n'use strict';\nvar lang_1 = require('../facade/lang');\nvar forms_1 = require('./forms');\nvar directives_1 = require('./directives');\nexports.COMMON_DIRECTIVES = lang_1.CONST_EXPR([directives_1.CORE_DIRECTIVES, forms_1.FORM_DIRECTIVES]);\n","/* */ \n'use strict';\nfunction __export(m) {\n for (var p in m)\n if (!exports.hasOwnProperty(p))\n exports[p] = m[p];\n}\n__export(require('./src/common/pipes'));\n__export(require('./src/common/directives'));\n__export(require('./src/common/forms'));\n__export(require('./src/common/common_directives'));\n","'use strict';\n\nimport {Component, View, EventEmitter} from 'angular2/core';\nimport {CORE_DIRECTIVES} from 'angular2/common';\n\n@Component({\n selector: 'tabs',\n events: ['change']\n})\n@View({\n template: `\n <ul>\n <li *ngFor=\"#tab of tabs\" [ngClass]=\"{active: tab.active}\" (click)=\"selectTab(tab)\"\n class=\"tab-{{tab.tabStatus}}\">{{tab.tabTitle}}</li>\n </ul>\n <ng-content></ng-content>\n `,\n directives: [CORE_DIRECTIVES],\n styles: [`\n ul{display:block;margin:0;padding:0}li{list-style:none;display:inline-block;cursor:pointer}.tab-success:before,.tab-error:before,.tab-redirect:before,.tab-info:before{content:\"\";display:inline-block;vertical-align:middle;height:6px;width:6px;border-radius:50%;margin-right:0.5em}.tab-success:before{box-shadow:0 0 3px 0 #00aa11;background-color:#00aa11}.tab-error:before{box-shadow:0 0 3px 0 #E53935;background-color:#E53935}.tab-redirect:before{box-shadow:0 0 3px 0 #F88F00;background-color:#F88F00}.tab-info:before{box-shadow:0 0 3px 0 #66C2FF;background-color:#66C2FF}\n `]\n})\nexport class Tabs {\n constructor() {\n this.tabs = [];\n this.change = new EventEmitter();\n }\n\n selectTab(tab, notify = true) {\n if (tab.active) return;\n this.tabs.forEach((tab) => {\n tab.active = false;\n });\n tab.active = true;\n notify && this.change.next(tab.tabTitle);\n }\n\n selectyByTitle(tabTitle, notify = false) {\n let prevActive;\n let newActive;\n this.tabs.forEach((tab) => {\n if (tab.active) prevActive = tab;\n tab.active = false;\n if (tab.tabTitle === tabTitle) {\n newActive = tab;\n }\n });\n if (newActive) {\n newActive.active = true;\n } else {\n prevActive.active = true;\n }\n notify && this.change.next(tabTitle);\n }\n\n addTab(tab) {\n if (this.tabs.length === 0) {\n tab.active = true;\n }\n this.tabs.push(tab);\n }\n}\n\n@Component({\n selector: 'tab',\n inputs: ['tabTitle', 'tabStatus']\n})\n@View({\n template: `\n <div class=\"tab-wrap\" [ngClass]=\"{ 'active': active }\">\n <ng-content></ng-content>\n </div>\n `,\n directives: [CORE_DIRECTIVES],\n styles: [`\n .tab-wrap {\n display: none;\n }\n\n .tab-wrap.active {\n display: block;\n }`\n ]\n})\n@Reflect.metadata('parameters', [ [Tabs] ])\nexport class Tab {\n constructor(tabs) {\n this.active = false;\n tabs.addTab(this);\n }\n}\n","/* */ \nvar IObject = require('./$.iobject'),\n defined = require('./$.defined');\nmodule.exports = function(it) {\n return IObject(defined(it));\n};\n","/* */ \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() {\n fn(1);\n }), 'Object', exp);\n};\n","/* */ \nvar toIObject = require('./$.to-iobject');\nrequire('./$.object-sap')('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor) {\n return function getOwnPropertyDescriptor(it, key) {\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n","/* */ \nvar $ = require('../../modules/$');\nrequire('../../modules/es6.object.get-own-property-descriptor');\nmodule.exports = function getOwnPropertyDescriptor(it, key) {\n return $.getDesc(it, key);\n};\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/get-own-property-descriptor\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Object$getOwnPropertyDescriptor = require('../core-js/object/get-own-property-descriptor')[\"default\"];\nexports[\"default\"] = function get(_x, _x2, _x3) {\n var _again = true;\n _function: while (_again) {\n var object = _x,\n property = _x2,\n receiver = _x3;\n _again = false;\n if (object === null)\n object = Function.prototype;\n var desc = _Object$getOwnPropertyDescriptor(object, property);\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n if (parent === null) {\n return undefined;\n } else {\n _x = parent;\n _x2 = property;\n _x3 = receiver;\n _again = true;\n desc = parent = undefined;\n continue _function;\n }\n } else if (\"value\" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n if (getter === undefined) {\n return undefined;\n }\n return getter.call(receiver);\n }\n }\n};\nexports.__esModule = true;\n","/* */ \nvar $ = require('../../modules/$');\nmodule.exports = function create(P, D) {\n return $.create(P, D);\n};\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };","/* */ \nmodule.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};","/* */ \nvar isObject = require('./$.is-object');\nmodule.exports = function(it) {\n if (!isObject(it))\n throw TypeError(it + ' is not an object!');\n return it;\n};\n","/* */ \nvar getDesc = require('./$').getDesc,\n isObject = require('./$.is-object'),\n anObject = require('./$.an-object');\nvar check = function(O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null)\n throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? function(test, buggy, set) {\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) {\n buggy = true;\n }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy)\n O.__proto__ = proto;\n else\n set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","/* */ \nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n","/* */ \nrequire('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Object$create = require('../core-js/object/create')[\"default\"];\nvar _Object$setPrototypeOf = require('../core-js/object/set-prototype-of')[\"default\"];\nexports[\"default\"] = function(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n subClass.prototype = _Object$create(superClass && superClass.prototype, {constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }});\n if (superClass)\n _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\nexports.__esModule = true;\n","/* */ \nvar $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc) {\n return $.setDesc(it, key, desc);\n};\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Object$defineProperty = require('../core-js/object/define-property')[\"default\"];\nexports[\"default\"] = (function() {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor)\n descriptor.writable = true;\n _Object$defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps)\n defineProperties(Constructor.prototype, protoProps);\n if (staticProps)\n defineProperties(Constructor, staticProps);\n return Constructor;\n };\n})();\nexports.__esModule = true;\n","/* */ \n\"use strict\";\n\nexports[\"default\"] = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nexports.__esModule = true;","// 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","/* */ \nmodule.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};","/* */ \nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length) {\n aFunction(fn);\n if (that === undefined)\n return fn;\n switch (length) {\n case 1:\n return function(a) {\n return fn.call(that, a);\n };\n case 2:\n return function(a, b) {\n return fn.call(that, a, b);\n };\n case 3:\n return function(a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function() {\n return fn.apply(that, arguments);\n };\n};\n","/* */ \nvar global = require('./$.global'),\n core = require('./$.core'),\n ctx = require('./$.ctx'),\n PROTOTYPE = 'prototype';\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 IS_WRAP = type & $export.W,\n exports = IS_GLOBAL ? core : core[name] || (core[name] = {}),\n target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE],\n key,\n own,\n out;\n if (IS_GLOBAL)\n source = name;\n for (key in source) {\n own = !IS_FORCED && target && key in target;\n if (own && key in exports)\n continue;\n out = own ? target[key] : source[key];\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? (function(C) {\n var F = function(param) {\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if (IS_PROTO)\n (exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n$export.F = 1;\n$export.G = 2;\n$export.S = 4;\n$export.P = 8;\n$export.B = 16;\n$export.W = 32;\nmodule.exports = $export;\n","/* */ \nvar $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\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};","/* */ \nvar defined = require('./$.defined');\nmodule.exports = function(it) {\n return Object(defined(it));\n};\n","/* */ \nvar toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};","/* */ \nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","/* */ \nmodule.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};","/* */ \nvar $ = require('./$'),\n toObject = require('./$.to-object'),\n IObject = require('./$.iobject');\nmodule.exports = require('./$.fails')(function() {\n var a = Object.assign,\n A = {},\n B = {},\n S = Symbol(),\n K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k) {\n B[k] = k;\n });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source) {\n var T = toObject(target),\n $$ = arguments,\n $$len = $$.length,\n index = 1,\n getKeys = $.getKeys,\n getSymbols = $.getSymbols,\n isEnum = $.isEnum;\n while ($$len > index) {\n var S = IObject($$[index++]),\n keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S),\n length = keys.length,\n j = 0,\n key;\n while (length > j)\n if (isEnum.call(S, key = keys[j++]))\n T[key] = S[key];\n }\n return T;\n} : Object.assign;\n","/* */ \nvar $export = require('./$.export');\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n","/* */ \nvar core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef","/* */ \nrequire('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };","/* */ \n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toString = Object.prototype.toString;\n\nmodule.exports = function forEach (obj, fn, ctx) {\n if (toString.call(fn) !== '[object Function]') {\n throw new TypeError('iterator must be a function');\n }\n var l = obj.length;\n if (l === +l) {\n for (var i = 0; i < l; i++) {\n fn.call(ctx, obj[i], i, obj);\n }\n } else {\n for (var k in obj) {\n if (hasOwn.call(obj, k)) {\n fn.call(ctx, obj[k], k, obj);\n }\n }\n }\n};\n\n","module.exports = require(\"npm:foreach@2.0.5/index.js\");","/* */ \n'use strict';\n\nvar each = require('foreach');\nmodule.exports = api;\n\n\n/**\n * Convenience wrapper around the api.\n * Calls `.get` when called with an `object` and a `pointer`.\n * Calls `.set` when also called with `value`.\n * If only supplied `object`, returns a partially applied function, mapped to the object.\n *\n * @param obj\n * @param pointer\n * @param value\n * @returns {*}\n */\n\nfunction api (obj, pointer, value) {\n // .set()\n if (arguments.length === 3) {\n return api.set(obj, pointer, value);\n }\n // .get()\n if (arguments.length === 2) {\n return api.get(obj, pointer);\n }\n // Return a partially applied function on `obj`.\n var wrapped = api.bind(api, obj);\n\n // Support for oo style\n for (var name in api) {\n if (api.hasOwnProperty(name)) {\n wrapped[name] = api[name].bind(wrapped, obj);\n }\n }\n return wrapped;\n}\n\n\n/**\n * Lookup a json pointer in an object\n *\n * @param obj\n * @param pointer\n * @returns {*}\n */\napi.get = function get (obj, pointer) {\n var tok,\n refTokens = api.parse(pointer);\n while (refTokens.length) {\n tok = refTokens.shift();\n if (!(tok in obj)) {\n throw new Error('Invalid reference token: ' + tok);\n }\n obj = obj[tok];\n }\n return obj;\n};\n\n/**\n * Sets a value on an object\n *\n * @param obj\n * @param pointer\n * @param value\n */\napi.set = function set (obj, pointer, value) {\n var refTokens = api.parse(pointer),\n tok,\n nextTok = refTokens[0];\n while (refTokens.length > 1) {\n tok = refTokens.shift();\n if (tok === '-' && Array.isArray(obj)) {\n tok = obj.length;\n }\n nextTok = refTokens[0];\n\n if (!(tok in obj)) {\n if (nextTok.match(/^(\\d+|-)$/)) {\n obj[tok] = [];\n } else {\n obj[tok] = {};\n }\n }\n obj = obj[tok];\n }\n if (nextTok === '-' && Array.isArray(obj)) {\n nextTok = obj.length;\n }\n obj[nextTok] = value;\n return this;\n};\n\n/**\n * Removes an attribute\n *\n * @param obj\n * @param pointer\n */\napi.remove = function (obj, pointer) {\n var refTokens = api.parse(pointer);\n var finalToken = refTokens.pop();\n if (finalToken === undefined) {\n throw new Error('Invalid JSON pointer for remove: \"' + pointer + '\"');\n }\n delete api.get(obj, api.compile(refTokens))[finalToken];\n};\n\n/**\n * Returns a (pointer -> value) dictionary for an object\n *\n * @param obj\n * @param {function} descend\n * @returns {}\n */\napi.dict = function dict (obj, descend) {\n var results = {};\n api.walk(obj, function (value, pointer) {\n results[pointer] = value;\n }, descend);\n return results;\n};\n\n/**\n * Iterates over an object\n * Iterator: function (value, pointer) {}\n *\n * @param obj\n * @param {function} iterator\n * @param {function} descend\n */\napi.walk = function walk (obj, iterator, descend) {\n var refTokens = [];\n\n descend = descend || function (value) {\n var type = Object.prototype.toString.call(value);\n return type === '[object Object]' || type === '[object Array]';\n };\n\n (function next (cur) {\n each(cur, function (value, key) {\n refTokens.push(String(key));\n if (descend(value)) {\n next(value);\n } else {\n iterator(value, api.compile(refTokens));\n }\n refTokens.pop();\n });\n }(obj));\n};\n\n/**\n * Tests if an object has a value for a json pointer\n *\n * @param obj\n * @param pointer\n * @returns {boolean}\n */\napi.has = function has (obj, pointer) {\n try {\n api.get(obj, pointer);\n } catch (e) {\n return false;\n }\n return true;\n};\n\n/**\n * Escapes a reference token\n *\n * @param str\n * @returns {string}\n */\napi.escape = function escape (str) {\n return str.toString().replace(/~/g, '~0').replace(/\\//g, '~1');\n};\n\n/**\n * Unescapes a reference token\n *\n * @param str\n * @returns {string}\n */\napi.unescape = function unescape (str) {\n return str.replace(/~1/g, '/').replace(/~0/g, '~');\n};\n\n/**\n * Converts a json pointer into a array of reference tokens\n *\n * @param pointer\n * @returns {Array}\n */\napi.parse = function parse (pointer) {\n if (pointer === '') { return []; }\n if (pointer.charAt(0) !== '/') { throw new Error('Invalid JSON pointer: ' + pointer); }\n return pointer.substring(1).split(/\\//).map(api.unescape);\n};\n\n/**\n * Builds a json pointer from a array of reference tokens\n *\n * @param refTokens\n * @returns {string}\n */\napi.compile = function compile (refTokens) {\n if (refTokens.length === 0) { return ''; }\n return '/' + refTokens.map(api.escape).join('/');\n};\n","module.exports = require(\"npm:json-pointer@0.3.0/index\");","'use strict';\nimport JsonPointerLib from 'json-pointer';\n\n/**\n * Wrapper for JsonPointer. Provides common operations\n */\nexport class JsonPointer extends JsonPointerLib {\n /**\n * returns last JsonPointer token\n * if level > 1 returns levels last (second last/third last)\n * @example\n * // returns subpath\n * JsonPointerHelper.baseName('/path/0/subpath')\n * // returns foo\n * JsonPointerHelper.baseName('/path/foo/subpath', 2)\n */\n static baseName(pointer, level=1) {\n let tokens = JsonPointer.parse(pointer);\n return tokens[tokens.length - (level)];\n }\n\n /**\n * returns dirname of pointer\n * if level > 1 returns corresponding dirname in the hierarchy\n * @example\n * // returns /path/0\n * JsonPointerHelper.dirName('/path/0/subpath')\n * // returns /path\n * JsonPointerHelper.dirName('/path/foo/subpath', 2)\n */\n static dirName(pointer, level=1) {\n let tokens = JsonPointer.parse(pointer);\n return JsonPointer.compile(tokens.slice(0, tokens.length - level));\n }\n\n /**\n * overridden JsonPointer original parse to take care of prefixing '#' symbol\n * that is not valid JsonPointer\n */\n static parse(pointer) {\n let ptr = pointer;\n if (ptr.charAt(0) === '#') {\n ptr = ptr.substring(1);\n }\n return JsonPointerLib._origParse(ptr);\n }\n\n /**\n * Creates a JSON pointer path, by joining one or more tokens to a base path.\n *\n * @param {string} base - The base path\n * @param {string|string[]} tokens - The token(s) to append (e.g. [\"name\", \"first\"])\n * @returns {string}\n */\n static join(base, tokens) {\n // TODO: optimize\n let baseTokens = JsonPointer.parse(base);\n let resTokens = baseTokens.concat(tokens);\n return JsonPointer.compile(resTokens);\n }\n}\n\nJsonPointerLib._origParse = JsonPointerLib.parse;\nJsonPointerLib.parse = JsonPointer.parse;\n\n\nObject.assign(JsonPointer, JsonPointerLib);\nexport default JsonPointer;\n","'use strict';\n\nimport {ElementRef} from 'angular2/core';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport {Tabs, Tab} from '../../common/components/Tabs/tabs';\nimport JsonPointer from '../../utils/JsonPointer';\n\n@RedocComponent({\n selector: 'json-schema',\n template: `\n <span *ngIf=\"isTrivial\" class=\"param-wrap\">\n <span class=\"param-type param-type-trivial {{type}}\"\n [ngClass]=\"{'with-hint': _displayTypeHint}\" title=\"{{_displayTypeHint}}\">{{_displayType}}</span>\n </span>\n <div *ngIf=\"!isTrivial\" class=\"params-wrap\" [ngClass]=\"{'params-array': isArray}\">\n <div *ngFor=\"#prop of data.properties\" class=\"param-wrap\">\n <div class=\"param\" [ngClass]=\"{'discriminator': prop.isDiscriminator}\">\n <div class=\"param-name\">\n <span class=\"param-name-content\">{{prop._name}}</span>\n </div>\n <div class=\"param-info\">\n <div>\n <span class=\"param-type {{prop.type}}\" [ngClass]=\"{'with-hint': prop._displayTypeHint}\"\n title=\"{{prop._displayTypeHint}}\"> {{prop._displayType}} {{prop._displayFormat}}</span>\n <span *ngIf=\"prop.required\" class=\"param-required\">Required</span>\n <div *ngIf=\"prop.enum\" class=\"param-enum\">\n <span *ngFor=\"#enumItem of prop.enum\" class=\"enum-value {{enumItem.type}}\"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class=\"param-description\" innerHtml=\"{{prop.description | marked}}\"></div>\n <div class=\"discriminator-info\" *ngIf=\"prop.isDiscriminator\"> This field value determines the exact schema: </div>\n </div>\n </div>\n <div class=\"param-schema\" [ngClass]=\"{'param-array': prop._isArray}\" *ngIf=\"prop._pointer\">\n <json-schema pointer=\"{{prop._pointer}}\" [isArray]='prop._isArray'>\n </json-schema>\n </div>\n </div>\n <div *ngIf=\"data.derived.length\" class=\"param-wrap\">\n <tabs>\n <tab *ngFor=\"#derived of data.derived\" tabTitle=\"{{derived.name}}\">\n <json-schema pointer=\"{{derived.$ref}}\" [final]=\"derived.final\">\n </json-schema>\n </tab>\n </tabs>\n </div>\n </div>\n `,\n styles: [`\n .param-schema{padding-left:12.5px;border-left:1px solid #7D97CE}.param-wrap{position:relative}.param-schema:before{content:\"\";position:absolute;left:13.5px;top:20px;bottom:0;border-left:1px solid #7D97CE}.param-name{flex-grow:0;-ms-flex-grow:0;display:inline-block;font-size:14px;padding:10px 0 10px 0;font-weight:bold;box-sizing:border-box;line-height:20px;border-left:1px solid #7D97CE;white-space:nowrap;position:relative}.param-name-content{padding-right:25px;display:inline-block}.param-info{flex-grow:1;-ms-flex-grow:1;padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;display:inline-block}.param{display:flex;display:-ms-flexbox}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:#999;font-size:12px;line-height:20px;vertical-align:middle;font-weight:bold}.param-type.array:before{content:\"Array of \";color:#999}.param-type.string,.enum-value.string{color:rgba(0,80,0,0.7)}.param-type.integer,.param-type.number,.enum-value.number{color:rgba(74,139,179,0.8)}.param-type.object{color:rgba(0,50,159,0.7)}.param-type.boolean,.enum-value.boolean{color:firebrick}.param-type.with-hint{background-color:rgba(0,50,159,0.1);padding:0.2em 0;font-size:0.85em;border-radius:3px;cursor:help}.param-type.with-hint:before,.param-type.with-hint:after{content:\"\\\\00a0\"}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:\"\";display:inline-block;width:7px;height:7px;background-color:#7D97CE;margin:0 10px;vertical-align:middle}.param-name>span:after{content:\"\";position:absolute;border-top:1px solid #7D97CE;width:10px;left:0;top:20px}.param-wrap:first-of-type>.param>.param-name:before{content:\"\";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.param-wrap:last-of-type>.param>.param-name{position:static}.param-wrap:last-of-type>.param>.param-name:after{content:\"\";display:block;position:absolute;left:-1px;border-left:2px solid #fff;top:21px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-enum{color:#666}.param-enum:before{content:\"Values: {\"}.param-enum:after{content:\"}\"}.param-enum>.enum-value:after{content:\", \"}.param-enum>.enum-value:last-of-type:after{content:none}:host{display:block}.params-wrap.params-array:before,.params-wrap.params-array:after{display:block;font-weight:bold;color:#999;font-size:12px;line-height:1.5}.params-wrap.params-array:after{content:\"]\"}.params-wrap.params-array:before{content:\"Array [\";padding-top:1em}.params-wrap.params-array{padding-left:10px}.param-schema.param-array:before{bottom:9px;width:10px;border-left-style:dashed;border-bottom:1px dashed #7D97CE}.params-wrap.params-array>.param-wrap:first-of-type>.param>.param-name:after{content:\"\";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.params-wrap>.param>.param-schema.param-array{border-left-color:transparent}.param.discriminator>div{padding-bottom:0;border-bottom:0}.discriminator-info{font-weight:bold}:host tabs{display:block;border-left:1px solid #7D97CE}:host tabs li{margin:0.2em 0.5em 0.2em 0;font-size:14px;border:0;color:white;padding:0 15px;border-radius:10px;background-color:#8A9094}:host tabs li:last-of-type{margin:0}:host tabs li.active{background-color:#00329F}tabs .params-wrap>.param-wrap:first-of-type .param-name{border-left:0}tabs .params-wrap>.param-wrap:first-of-type .param-name:before{display:none}\n `],\n directives: [JsonSchema, Tabs, Tab],\n inputs: ['isArray', 'final']\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ElementRef]])\nexport default class JsonSchema extends BaseComponent {\n constructor(schemaMgr, elementRef) {\n super(schemaMgr);\n this.$element = elementRef.nativeElement;\n this.final = false;\n }\n\n prepareModel() {\n this.data = {};\n this.data.properties = [];\n this.data.derived = [];\n\n if (!this.componentSchema) {\n throw new Error(`Can't load component schema at ${this.pointer}`);\n }\n\n this.dereference();\n let schema = this.componentSchema;\n\n if (schema.type === 'array') {\n this.isArray = true;\n if (schema._pointer) {\n this.pointer = JsonPointer.join(schema._pointer, 'items');\n }\n schema = schema.items;\n }\n let normPtr = schema._pointer || this.pointer;\n let derived = this.schemaMgr.findDerivedDefinitions( normPtr );\n if (!this.final && derived.length) {\n this.data.derived = derived;\n this.data.discriminator = schema.discriminator;\n }\n\n this.joinAllOf(schema, {omitParent: true});\n\n if (schema.type !== 'object') {\n this.isTrivial = true;\n this._displayType = schema.type;\n if (schema.format) this._displayType = `${this.displayType} <${schema.format}>`;\n return;\n }\n\n this.pointer = schema._pointer || this.pointer;\n\n this.requiredMap = {};\n if (this.schema.required) {\n this.schema.required.forEach(prop => this.requiredMap[prop] = true);\n }\n\n if (!schema.properties) {\n this.isTrivial = true;\n this._displayType = schema.type;\n this._displayTypeHint = 'This field may contain data of any type';\n return;\n }\n\n let discriminatorFieldIdx = -1;\n let props = Object.keys(schema.properties).map((prop, idx) => {\n let propData = schema.properties[prop];\n let propPointer = JsonPointer.join(this.pointer, ['properties', prop]);\n propData = JsonSchema.injectPropData(propData, prop, propPointer, this.requiredMap, schema);\n if (propData.isDiscriminator) discriminatorFieldIdx = idx;\n return propData;\n });\n // Move discriminator field to the end of properties list\n if (discriminatorFieldIdx > -1) {\n let discrProp = props.splice(discriminatorFieldIdx, 1);\n props.push(discrProp[0]);\n }\n this.data.properties = props;\n }\n\n static injectPropData(propData, propName, propPointer, requiredMap, schema) {\n let propEnum;\n\n propData = Object.assign({}, propData);\n propData._name = propName;\n propData.required = propData.required || (requiredMap && requiredMap[propName]);\n propData._displayType = propData.type;\n propData.isDiscriminator = (schema && schema.discriminator === propName);\n propEnum = propData.enum;\n if (propData.type === 'array') {\n let itemType = propData.items.type;\n let itemFormat = propData.items.format;\n propEnum = propData.items.enum;\n if (itemType === 'object' || !itemType) {\n itemType = propData.items.title || 'object';\n propData._pointer = propData.items._pointer\n || JsonPointer.join(propPointer, ['items']);\n }\n propData._displayType = `${itemType}`;\n propData.format = itemFormat;\n propData._isArray = true;\n propData.type = 'array ' + propData.items.type;\n }\n\n if (propData.type === 'object') {\n propData._displayType = propData.title || 'object';\n }\n\n if (!propData.type) {\n propData._displayType = '< * >';\n propData._displayTypeHint = 'This field may contain data of any type';\n }\n\n if (propData.format) propData._displayFormat = `<${propData.format}>`;\n if (propEnum) {\n propData.enum = propEnum.map((value) => {\n return {val: value, type: typeof value};\n });\n }\n\n return propData;\n }\n\n ngAfterViewInit() {\n // adjust widht only on parent level\n let $el = this.$element.parentElement;\n while($el && $el.tagName !== 'JSON-SCHEMA' && $el.tagName !== 'REDOC') {\n $el = $el.parentElement;\n }\n if ($el && $el.tagName === 'REDOC' ) {\n this.adjustNameColumnWidth();\n }\n }\n\n adjustNameColumnWidth() {\n // TODO handle internal schemes differently\n\n let names = [].slice.call(this.$element.querySelectorAll('.param-name-content'));\n let widths = names.map(el => el.offsetWidth);\n let maxWidth = Math.max(...widths);\n if (!maxWidth) return;\n names.forEach(el => {\n el.parentNode.style.minWidth = maxWidth + 'px';\n });\n\n let discrValues = this.$element.querySelector('tabs ul');\n if (discrValues) discrValues.style.paddingLeft = maxWidth + 'px';\n }\n}\n","'use strict';\n\nimport ApiInfo from './ApiInfo/api-info';\nimport ApiLogo from './ApiLogo/api-logo';\nimport Method from './Method/method.js';\nimport MethodsList from './MethodsList/methods-list';\nimport ParamsList from './ParamsList/params-list';\nimport Redoc from './Redoc/redoc';\nimport ResponsesList from './ResponsesList/responses-list';\nimport ResponsesSamples from './ResponsesSamples/responses-samples';\nimport SchemaSample from './SchemaSample/schema-sample';\nimport SideMenu from './SideMenu/side-menu';\nimport JsonSchema from './JsonSchema/json-schema';\n\nconst REDOC_COMPONENTS = [\n ApiInfo,\n ApiLogo,\n JsonSchema,\n Method,\n MethodsList,\n ParamsList,\n Redoc,\n ResponsesList,\n ResponsesSamples,\n SchemaSample,\n SideMenu\n];\n\nexport {\n ApiInfo,\n ApiLogo,\n JsonSchema,\n Method,\n MethodsList,\n ParamsList,\n Redoc,\n ResponsesList,\n ResponsesSamples,\n SchemaSample,\n SideMenu,\n REDOC_COMPONENTS\n};\n","'use strict';\n\nimport {Redoc} from './components/index';\nexport var init = Redoc.init;\n\nwindow.Redoc = Redoc;\nRedoc.autoInit();\n"],"sourceRoot":"/source/"} |