Showing preview only (5,967K chars total). Download the full file or copy to clipboard to get everything.
Repository: luckymarmot/API-Flow
Branch: develop
Commit: 24cc71aec64c
Files: 207
Total size: 5.6 MB
Directory structure:
gitextract_azhcxwm0/
├── .babelrc
├── .codeclimate.yml
├── .eslintignore
├── .flowconfig
├── .gitignore
├── .npmignore
├── .nvmrc
├── .travis.yml
├── LICENSE
├── Makefile
├── README.md
├── bin/
│ └── api-flow.js
├── configs/
│ ├── node/
│ │ ├── api-flow-config.js
│ │ ├── api-flow.js
│ │ └── webpack.config.babel.js
│ ├── paw/
│ │ ├── generators/
│ │ │ ├── Generator.js
│ │ │ ├── postman2/
│ │ │ │ ├── api-flow-config.js
│ │ │ │ └── webpack.config.babel.js
│ │ │ ├── raml1/
│ │ │ │ ├── api-flow-config.js
│ │ │ │ └── webpack.config.babel.js
│ │ │ └── swagger/
│ │ │ ├── api-flow-config.js
│ │ │ └── webpack.config.babel.js
│ │ └── importers/
│ │ ├── Importer.js
│ │ ├── postman2/
│ │ │ ├── api-flow-config.js
│ │ │ └── webpack.config.babel.js
│ │ ├── raml1/
│ │ │ ├── api-flow-config.js
│ │ │ └── webpack.config.babel.js
│ │ └── swagger/
│ │ ├── api-flow-config.js
│ │ └── webpack.config.babel.js
│ ├── shared/
│ │ └── raml-1-parser.js
│ ├── web/
│ │ ├── api-flow-config.js
│ │ ├── api-flow.js
│ │ └── webpack.config.babel.js
│ └── webworker/
│ ├── api-flow-config.js
│ ├── api-flow.js
│ └── webpack.config.babel.js
├── linting/
│ ├── dev.yaml
│ ├── eslint_base.yaml
│ └── prod.yaml
├── package.json
├── scripts/
│ ├── clean.sh
│ ├── configure.sh
│ ├── flow-runner.js
│ ├── generators.sh
│ ├── importers.sh
│ ├── lint.sh
│ ├── pack.sh
│ ├── runners.sh
│ ├── test.sh
│ ├── transfer.sh
│ └── watch.sh
├── src/
│ ├── README.md
│ ├── api-flow-config.js
│ ├── api-flow.js
│ ├── environments/
│ │ ├── environment.js
│ │ ├── node/
│ │ │ └── Environment.js
│ │ ├── paw/
│ │ │ └── Environment.js
│ │ ├── template/
│ │ │ └── Environment.js
│ │ ├── web/
│ │ │ └── Environment.js
│ │ └── worker/
│ │ └── Environment.js
│ ├── loaders/
│ │ ├── internal/
│ │ │ └── Loader.js
│ │ ├── loaders.js
│ │ ├── paw/
│ │ │ └── Loader.js
│ │ ├── postman/
│ │ │ └── v2.0/
│ │ │ ├── Loader.js
│ │ │ └── __tests__/
│ │ │ └── Loader.spec.js
│ │ ├── raml/
│ │ │ └── Loader.js
│ │ ├── swagger/
│ │ │ └── Loader.js
│ │ └── template/
│ │ └── v1.0/
│ │ ├── Loader.js
│ │ └── __tests__/
│ │ └── Loader.spec.js
│ ├── mocks/
│ │ ├── PawMocks.js
│ │ ├── PawShims.js
│ │ └── __tests__/
│ │ ├── PawMocks.spec.js
│ │ └── PawShims.spec.js
│ ├── models/
│ │ ├── Api.js
│ │ ├── Auth.js
│ │ ├── Constraint.js
│ │ ├── Contact.js
│ │ ├── Context.js
│ │ ├── Core.js
│ │ ├── Group.js
│ │ ├── Info.js
│ │ ├── Interface.js
│ │ ├── Item.js
│ │ ├── License.js
│ │ ├── ModelInfo.js
│ │ ├── Parameter.js
│ │ ├── ParameterContainer.js
│ │ ├── Reference.js
│ │ ├── Request.js
│ │ ├── Resource.js
│ │ ├── Response.js
│ │ ├── Store.js
│ │ ├── URL.js
│ │ ├── URLComponent.js
│ │ ├── Variable.js
│ │ ├── __tests__/
│ │ │ ├── Api.spec.js
│ │ │ ├── Constraint.spec.js
│ │ │ ├── Contact.spec.js
│ │ │ ├── Context.spec.js
│ │ │ ├── Group.spec.js
│ │ │ ├── Info.spec.js
│ │ │ ├── Interface.spec.js
│ │ │ ├── License.spec.js
│ │ │ ├── ModelInfo.spec.js
│ │ │ ├── Parameter.spec.js
│ │ │ ├── ParameterContainer.spec.js
│ │ │ ├── Reference.spec.js
│ │ │ ├── Request.spec.js
│ │ │ ├── Resource.spec.js
│ │ │ ├── Response.spec.js
│ │ │ ├── Store.spec.js
│ │ │ ├── URL.spec.js
│ │ │ ├── URLComponent.spec.js
│ │ │ └── Variable.spec.js
│ │ └── auths/
│ │ ├── AWSSig4.js
│ │ ├── ApiKey.js
│ │ ├── Basic.js
│ │ ├── Custom.js
│ │ ├── Digest.js
│ │ ├── Hawk.js
│ │ ├── NTLM.js
│ │ ├── Negotiate.js
│ │ ├── OAuth1.js
│ │ ├── OAuth2.js
│ │ └── __tests__/
│ │ ├── AWSSig4.spec.js
│ │ ├── ApiKey.spec.js
│ │ ├── Basic.spec.js
│ │ ├── Custom.spec.js
│ │ ├── Digest.spec.js
│ │ ├── Hawk.spec.js
│ │ ├── NTLM.spec.js
│ │ ├── Negotiate.spec.js
│ │ ├── OAuth1.spec.js
│ │ └── OAuth2.spec.js
│ ├── parsers/
│ │ ├── README.md
│ │ ├── dummy/
│ │ │ └── Parser.js
│ │ ├── internal/
│ │ │ └── Parser.js
│ │ ├── parsers.js
│ │ ├── paw/
│ │ │ ├── Parser.js
│ │ │ └── __tests__/
│ │ │ └── Parser.spec.js
│ │ ├── postman/
│ │ │ └── v2.0/
│ │ │ ├── Parser.js
│ │ │ └── __tests__/
│ │ │ └── Parser.spec.js
│ │ ├── raml/
│ │ │ └── v1.0/
│ │ │ ├── Parser.js
│ │ │ └── __tests__/
│ │ │ └── Parser.spec.js
│ │ ├── swagger/
│ │ │ └── v2.0/
│ │ │ ├── Parser.js
│ │ │ └── __tests__/
│ │ │ └── Parser.spec.js
│ │ └── template/
│ │ └── v1.0/
│ │ ├── Parser.js
│ │ └── __tests__/
│ │ └── Parser.spec.js
│ ├── serializers/
│ │ ├── api-blueprint/
│ │ │ └── 1A/
│ │ │ ├── Serializer.js
│ │ │ └── __tests__/
│ │ │ └── Serializer.spec.js
│ │ ├── internal/
│ │ │ └── Serializer.js
│ │ ├── paw/
│ │ │ ├── Serializer.js
│ │ │ └── __tests__/
│ │ │ └── Serializer.spec.js
│ │ ├── postman/
│ │ │ └── v2.0/
│ │ │ ├── Serializer.js
│ │ │ └── __tests__/
│ │ │ └── Serializer.spec.js
│ │ ├── raml/
│ │ │ └── v1.0/
│ │ │ ├── Serializer.js
│ │ │ └── __tests__/
│ │ │ └── Serializer.spec.js
│ │ ├── serializers.js
│ │ └── swagger/
│ │ └── v2.0/
│ │ ├── Serializer.js
│ │ └── __tests__/
│ │ └── Serializer.spec.js
│ └── utils/
│ ├── __tests__/
│ │ └── fp-utils.spec.js
│ ├── fp-utils.js
│ └── gen-utils.js
├── testing/
│ ├── e2e/
│ │ ├── internal-apiblueprint-1a/
│ │ │ ├── e2e.spec.js
│ │ │ ├── test-case-0/
│ │ │ │ ├── input.json
│ │ │ │ └── output.json
│ │ │ └── test-case-1/
│ │ │ ├── input.json
│ │ │ └── output.json
│ │ ├── internal-internal/
│ │ │ ├── e2e.spec.js
│ │ │ ├── test-case-0/
│ │ │ │ └── input.json
│ │ │ └── test-case-1/
│ │ │ └── input.json
│ │ ├── internal-postman2/
│ │ │ ├── e2e.spec.js
│ │ │ ├── test-case-0/
│ │ │ │ ├── input.json
│ │ │ │ └── output.json
│ │ │ └── test-case-1/
│ │ │ ├── input.json
│ │ │ └── output.json
│ │ ├── internal-raml1/
│ │ │ ├── e2e.spec.js
│ │ │ ├── test-case-0/
│ │ │ │ ├── input.json
│ │ │ │ └── output.raml
│ │ │ └── test-case-1/
│ │ │ ├── input.json
│ │ │ └── output.raml
│ │ ├── internal-swagger2/
│ │ │ ├── e2e.spec.js
│ │ │ ├── test-case-0/
│ │ │ │ ├── input.json
│ │ │ │ └── output.json
│ │ │ └── test-case-1/
│ │ │ ├── input.json
│ │ │ └── output.json
│ │ ├── postman-collection2-internal/
│ │ │ ├── e2e.spec.js
│ │ │ └── test-case-0/
│ │ │ ├── input.json
│ │ │ └── output.json
│ │ ├── raml1-internal/
│ │ │ ├── e2e.spec.js
│ │ │ ├── test-case-0/
│ │ │ │ ├── input.raml
│ │ │ │ └── output.json
│ │ │ └── test-case-1/
│ │ │ ├── examples/
│ │ │ │ └── songs.xml
│ │ │ ├── input.raml
│ │ │ ├── libraries/
│ │ │ │ ├── api-library.raml
│ │ │ │ └── songs-library.raml
│ │ │ ├── output.json
│ │ │ ├── schemas/
│ │ │ │ ├── idea.raml
│ │ │ │ └── songs.xsd
│ │ │ └── secured/
│ │ │ └── accessToken.raml
│ │ └── swagger2-internal/
│ │ ├── e2e.spec.js
│ │ ├── input.json
│ │ └── output.json
│ ├── e2e-runner.js
│ ├── mocha-runner.js
│ └── test-require-patch.js
└── webpack.config.babel.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .babelrc
================================================
{
"presets": [
"es2015",
"stage-0",
"stage-1",
"stage-2",
"stage-3"
],
"plugins": [
"transform-runtime",
"transform-decorators-legacy"
],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
}
================================================
FILE: .codeclimate.yml
================================================
engines:
eslint:
enabled: true
config:
config: ./linting/eslint_base.yaml
fixme:
enabled: true
exclude_paths:
- "scripts/"
- "testing/"
- "configs/"
- "src/**/*.spec.js"
ratings:
paths:
- "src/**/*.js"
================================================
FILE: .eslintignore
================================================
src/libs/
================================================
FILE: .flowconfig
================================================
[ignore]
**/.*badly-formed.*
[options]
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
[libs]
types/
================================================
FILE: .gitignore
================================================
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
*.iml
## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:
# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries
# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml
# Gradle:
# .idea/gradle.xml
# .idea/libraries
# Mongo Explorer plugin:
# .idea/mongoSettings.xml
## File-based project format:
*.ipr
*.iws
## Plugin-specific files:
# IntelliJ
/out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
# Build
dist/
releases/
resources/
node_modules/
lib/
.DS_Store
deploy-script.sh
coverage/
.nyc_output/
================================================
FILE: .npmignore
================================================
node_modules/
src/
build/
linting/
dist/paw/
dist/web/
dist/webworker/
.git/
.babelrc
.eslintignore
.gitignore
.travis.yml
.npmignore
.nvmrc
.travis.yml
Makefile
webpack.config.babel.js
npm-shrinkwrap.json
================================================
FILE: .nvmrc
================================================
v7.4.0
================================================
FILE: .travis.yml
================================================
language: node_js
node_js: 7.4
cache:
yarn: true
directories:
- node_modules
env:
- TEST_TARGET=lint
- TEST_TARGET=unit
- TEST_TARGET=e2e
- TEST_TARGET=cov
script:
- make test
================================================
FILE: LICENSE
================================================
The MIT License (MIT)
Copyright (c) 2015 Paw Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: Makefile
================================================
BASE=$(shell pwd)
SCRIPTS=$(BASE)/scripts
extensions_dir=$(HOME)/Library/Containers/com.luckymarmot.Paw/Data/Library/Application\ Support/com.luckymarmot.Paw/Extensions/
all: configure pack
clean:
sh "$(SCRIPTS)/clean.sh" $(BASE)
configure:
sh "$(SCRIPTS)/configure.sh" $(BASE)
runners:
sh "$(SCRIPTS)/runners.sh" $(BASE) $(TARGET)
importers:
sh "$(SCRIPTS)/importers.sh" $(BASE) $(TARGET)
generators:
sh "$(SCRIPTS)/generators.sh" $(BASE) $(TARGET)
transfer: clean importers generators
sh "$(SCRIPTS)/transfer.sh" $(BASE) $(extensions_dir) $(TARGET)
pack: clean importers generators
sh "$(SCRIPTS)/pack.sh" $(BASE) $(TARGET)
lint:
sh "$(SCRIPTS)/lint.sh" $(BASE)
test:
sh "$(SCRIPTS)/test.sh" $(BASE) $(TEST_TARGET)
validate: lint test
watch:
sh "$(SCRIPTS)/watch.sh" $(BASE) $(COMMAND)
================================================
FILE: README.md
================================================
[](https://travis-ci.org/luckymarmot/API-Flow)
# API-Flow
A flow written in ES6 using Immutable to convert between API description formats (Swagger, etc.) and other programs such as cURL command lines.
## What formats are supported and what will be in the future
We currently support:
- `Swagger v2.0 (in/out)`
- `RAML v1.0 (in/out)`
- `Postman Collection v2.0 (in/out)`
- `Paw v3.1 (in/out)`
We intend to support:
- `Swagger v3.0`
- `RAML v0.8`
- `Postman Collection v1.0`
- `Postman Dump v1.0`
- `Insomnia v3.0`
- `Api-Blueprint`
- and many more.
## Installation
### from a cloned repository
just run
```sh
git clone https://github.com/luckymarmot/API-Flow.git
cd API-Flow
make install
```
This will install the node module dependencies
## Building the different libraries
### node, web, and webworker
run the following command to build API-Flow for the different environments that you need
```sh
# use TARGET="node" if you only want the node library
make runners TARGET="node web webworker"
```
### Paw
You can use the following command to add the different extensions to Paw
```sh
# use TARGET="swagger" if you only want the swagger bindings
make transfer TARGET="swagger raml1 postman2"
```
## Using the npm module
### as a standard library
```js
const ApiFlow = require('api-flow'); // if from npm
const ApiFlow = require('./dist/node/api-flow.js'); // if from `make runners TARGET="node"`
const options = {
source: {
format: 'swagger',
version: 'v2.0'
},
target: {
format: 'raml',
version: 'v1.0'
}
}
const promise = ApiFlow.transform({
options,
uri: path.resolve(__dirname, './my_super_swagger.yml')
})
promise.then((data) => {
// do some cool stuff with the data
})
```
### Using as a CLI (coming soon)
```sh
node ./bin/api-flow.js some_swagger.json -f swagger -t raml > converted.yml
```
### User Interface
API-Flow is one of the main components of [Console.REST](https://github.com/luckymarmot/console-rest). If you're an API user, you can easily use [https://console.rest/](https://console.rest/) to convert API description files. If you're an API provider, you can add a button to your API docs to let your users open and play with your API in client apps including Paw or Postman.
## Contributing
PRs are welcomed!
Our sole requirement is that organizations that want to extend API-Flow to support their format write both a parser and a serializer, and not simply a serializer.
## Documentation
You can find more information about the internal structure of API-Flow in [src](https://github.com/luckymarmot/API-Flow/tree/develop/src). We've also created a set of templates to help speed up the extension process: [loader](https://github.com/luckymarmot/API-Flow/tree/develop/src/loaders/template/v1.0), [parser](https://github.com/luckymarmot/API-Flow/tree/develop/src/parsers/template/v1.0/), and [environment](https://github.com/luckymarmot/API-Flow/tree/develop/src/environments/template)
## License
This repository is released under the [MIT License](LICENSE). Feel free to fork, and modify!
Copyright © 2016 Paw Inc.
## Contributors
See [Contributors](https://github.com/luckymarmot/API-Flow/graphs/contributors).
================================================
FILE: bin/api-flow.js
================================================
#! /usr/bin/env node
/* eslint-disable */
var FlowCLI = require('../dist/node/api-flow.js').default;
var cli = new FlowCLI(process.argv);
var parser = cli._createParser();
cli.processArguments(parser);
cli.run().then((data) => {
console.log(data)
});
================================================
FILE: configs/node/api-flow-config.js
================================================
import Environment from '../../src/environments/node/Environment'
import SwaggerLoader from '../../src/loaders/swagger/Loader'
import RAMLLoader from '../../src/loaders/raml/Loader'
import PostmanV2Loader from '../../src/loaders/postman/v2.0/Loader'
import SwaggerV2Parser from '../../src/parsers/swagger/v2.0/Parser'
import RAMLV1Parser from '../../src/parsers/raml/v1.0/Parser'
import PostmanV2Parser from '../../src/loaders/postman/v2.0/Parser'
import SwaggerV2Serializer from '../../src/serializers/swagger/v2.0/Serializer'
import RAMLV1Serializer from '../../src/serializers/raml/v1.0/Serializer'
import PostmanV2Serializer from '../../src/serializers/postman/v2.0/Serializer'
import InternalSerializer from '../../src/serializers/internal/Serializer'
export const loaders = [
SwaggerLoader,
RAMLLoader,
PostmanV2Loader
]
export const parsers = [
SwaggerV2Parser,
RAMLV1Parser,
PostmanV2Parser
]
export const serializers = [
SwaggerV2Serializer,
RAMLV1Serializer,
InternalSerializer,
PostmanV2Serializer
]
export const environment = Environment
================================================
FILE: configs/node/api-flow.js
================================================
import ApiFlow from '../../src/api-flow'
export default ApiFlow
================================================
FILE: configs/node/webpack.config.babel.js
================================================
const path = require('path')
const config = {
target: 'node',
entry: path.resolve(__dirname, './api-flow.js'),
output: {
path: path.resolve(__dirname, '../../dist/node/'),
filename: 'api-flow.js',
library: 'ApiFlow',
libraryTarget: 'umd'
},
module: {
rules: [
{ test: /\.js$/, use: 'babel-loader', include: [ path.resolve(__dirname, '../../src') ] },
{ test: /\.json$/, use: 'json-loader', include: [ path.resolve(__dirname, '../../') ] }
],
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
resolve: {
alias: {
'api-flow-config$': path.resolve(__dirname, './api-flow-config.js')
}
},
node: {
fs: false,
request: false,
net: false,
tls: false
}
}
module.exports = config
================================================
FILE: configs/paw/generators/Generator.js
================================================
import { registerCodeGenerator } from '../../../src/mocks/PawShims'
import { target } from 'api-flow-config'
import ApiFlow from '../../../src/api-flow'
@registerCodeGenerator
export default class SwaggerGenerator {
static identifier = target.identifier
static title = target.humanTitle
static help =
'https://github.com/luckymarmot/API-Flow'
static languageHighlighter = 'json'
static fileExtension = 'json'
/* eslint-disable no-unused-vars */
generate(context, reqs, opts) {
/* eslint-enable no-unused-vars */
try {
const options = { context, reqs, source: { format: 'paw', version: 'v3.0' }, target }
const serialized = ApiFlow.serialize(ApiFlow.parse({ options }))
return serialized
}
catch (e) {
/* eslint-disable no-console */
console.error(
this.constructor.title,
'generation failed with error:',
e,
e.stack,
JSON.stringify(e, null, ' ')
)
/* eslint-enable no-console */
throw e
}
}
}
================================================
FILE: configs/paw/generators/postman2/api-flow-config.js
================================================
import Environment from '../../../../src/environments/paw/Environment'
import PawLoader from '../../../../src/loaders/paw/Loader'
import PawParser from '../../../../src/parsers/paw/Parser'
import PostmanV2Serializer from '../../../../src/serializers/postman/v2.0/Serializer'
export const loaders = [
PawLoader
]
export const parsers = [
PawParser
]
export const serializers = [
PostmanV2Serializer
]
export const target = {
identifier: 'com.luckymarmot.PawExtensions.PostmanCollectionGenerator',
title: 'PostmanCollectionGenerator',
humanTitle: 'Postman Collection 2.0',
format: PostmanV2Serializer.__meta__.format,
version: PostmanV2Serializer.__meta__.version
}
export const environment = Environment
================================================
FILE: configs/paw/generators/postman2/webpack.config.babel.js
================================================
const { target } = require('./api-flow-config.js')
const path = require('path')
const config = {
target: 'web',
entry: path.resolve(__dirname, '../Generator.js'),
output: {
path: path.resolve(__dirname, '../../../../dist/paw/', target.identifier),
filename: target.title + '.js',
libraryTarget: 'umd'
},
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
include: [ path.resolve(__dirname, '../../../../src'), path.resolve(__dirname, '../') ]
},
{
test: /\.json$/,
use: 'json-loader',
include: [ path.resolve(__dirname, '../../../../') ]
}
],
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
resolve: {
alias: {
'api-flow-config$': path.resolve(__dirname, './api-flow-config.js')
}
},
node: {
fs: false,
request: false,
net: false,
tls: false
}
}
module.exports = config
================================================
FILE: configs/paw/generators/raml1/api-flow-config.js
================================================
import Environment from '../../../../src/environments/paw/Environment'
import PawLoader from '../../../../src/loaders/paw/Loader'
import PawParser from '../../../../src/parsers/paw/Parser'
import RAMLV1Serializer from '../../../../src/serializers/raml/v1.0/Serializer'
export const loaders = [
PawLoader
]
export const parsers = [
PawParser
]
export const serializers = [
RAMLV1Serializer
]
export const target = {
identifier: 'com.luckymarmot.PawExtensions.RAML1Generator',
title: 'RAML1Generator',
humanTitle: 'RAML 1.0',
format: RAMLV1Serializer.__meta__.format,
version: RAMLV1Serializer.__meta__.version
}
export const environment = Environment
================================================
FILE: configs/paw/generators/raml1/webpack.config.babel.js
================================================
const { target } = require('./api-flow-config.js')
const path = require('path')
const config = {
target: 'web',
entry: path.resolve(__dirname, '../Generator.js'),
output: {
path: path.resolve(__dirname, '../../../../dist/paw/', target.identifier),
filename: target.title + '.js',
libraryTarget: 'umd'
},
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
include: [ path.resolve(__dirname, '../../../../src'), path.resolve(__dirname, '../') ]
},
{
test: /\.json$/,
use: 'json-loader',
include: [ path.resolve(__dirname, '../../../../') ]
}
],
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
resolve: {
alias: {
'api-flow-config$': path.resolve(__dirname, './api-flow-config.js')
}
},
node: {
fs: false,
request: false,
net: false,
tls: false
}
}
module.exports = config
================================================
FILE: configs/paw/generators/swagger/api-flow-config.js
================================================
import Environment from '../../../../src/environments/paw/Environment'
import PawLoader from '../../../../src/loaders/paw/Loader'
import PawParser from '../../../../src/parsers/paw/Parser'
import SwaggerV2Serializer from '../../../../src/serializers/swagger/v2.0/Serializer'
export const loaders = [
PawLoader
]
export const parsers = [
PawParser
]
export const serializers = [
SwaggerV2Serializer
]
export const target = {
identifier: 'com.luckymarmot.PawExtensions.SwaggerGenerator',
title: 'SwaggerGenerator',
humanTitle: 'Swagger 2.0',
format: SwaggerV2Serializer.__meta__.format,
version: SwaggerV2Serializer.__meta__.version
}
export const environment = Environment
================================================
FILE: configs/paw/generators/swagger/webpack.config.babel.js
================================================
const { target } = require('./api-flow-config.js')
const path = require('path')
const config = {
target: 'web',
entry: path.resolve(__dirname, '../Generator.js'),
output: {
path: path.resolve(__dirname, '../../../../dist/paw/', target.identifier),
filename: target.title + '.js',
libraryTarget: 'umd'
},
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
include: [ path.resolve(__dirname, '../../../../src'), path.resolve(__dirname, '../') ]
},
{
test: /\.json$/,
use: 'json-loader',
include: [ path.resolve(__dirname, '../../../../') ]
}
],
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
resolve: {
alias: {
'api-flow-config$': path.resolve(__dirname, './api-flow-config.js')
}
},
node: {
fs: false,
request: false,
net: false,
tls: false
}
}
module.exports = config
================================================
FILE: configs/paw/importers/Importer.js
================================================
import { registerImporter } from '../../../src/mocks/PawShims'
import path from 'path'
import { source } from 'api-flow-config'
import ApiFlow from '../../../src/api-flow'
import { convertEntryListInMap } from '../../../src/utils/fp-utils'
const methods = {}
@registerImporter // eslint-disable-line
class SwaggerImporter {
static identifier = source.identifier
static title = source.humanTitle
static fileExtensions = [];
canImport(context, items) {
return methods.canImport(context, items)
}
import(context, items, options) {
return methods.import(context, items, options)
}
}
methods.getUriFromItem = (item) => {
if (item.url) {
return item.url
}
if (!item.file || !item.file.path || !item.file.name) {
return 'file://localhost/'
}
const uri = 'file://' + path.join(item.file.path, item.file.name)
return uri
}
methods.getCacheFromItems = (items) => {
return items.map(item => {
const uri = methods.getUriFromItem(item)
return { key: uri, value: item.content }
}).reduce(convertEntryListInMap, {})
}
methods.canImport = (context, items) => {
const fixedItems = items.map(item => {
item.uri = methods.getUriFromItem(item)
return item
})
const primaryUri = ApiFlow.findPrimaryUri({ items: fixedItems })
return primaryUri ? 1 : 0
}
methods.import = (context, items) => {
const options = { context, source, target: { format: 'paw', version: 'v3.0' } }
const itemMap = methods.getCacheFromItems(items)
ApiFlow.setCache(itemMap)
const fixedItems = items.map(item => {
item.uri = methods.getUriFromItem(item)
return item
})
const uri = ApiFlow.findPrimaryUri({ items: fixedItems })
return ApiFlow.transform({ options, uri })
// const statusMessage = methods.formatStatusMessage(parser, serializer)
}
export default SwaggerImporter
================================================
FILE: configs/paw/importers/postman2/api-flow-config.js
================================================
import Environment from '../../../../src/environments/paw/Environment'
import PostmanCollectionV2Loader from '../../../../src/loaders/postman/v2.0/Loader'
import PostmanCollectionV2Parser from '../../../../src/parsers/postman/v2.0/Parser'
import PawSerializer from '../../../../src/serializers/paw/Serializer'
export const loaders = [
PostmanCollectionV2Loader
]
export const parsers = [
PostmanCollectionV2Parser
]
export const serializers = [
PawSerializer
]
export const source = {
identifier: 'com.luckymarmot.PawExtensions.PostmanCollectionV2Importer',
title: 'PostmanCollectionV2Importer',
humanTitle: 'Postman Collection 2.0 Importer',
format: PostmanCollectionV2Parser.__meta__.format,
version: PostmanCollectionV2Parser.__meta__.version
}
export const environment = Environment
================================================
FILE: configs/paw/importers/postman2/webpack.config.babel.js
================================================
const { source } = require('./api-flow-config.js')
const path = require('path')
const config = {
target: 'web',
entry: path.resolve(__dirname, '../Importer.js'),
output: {
path: path.resolve(__dirname, '../../../../dist/paw/', source.identifier),
filename: source.title + '.js',
libraryTarget: 'umd'
},
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
include: [ path.resolve(__dirname, '../../../../src'), path.resolve(__dirname, '../') ]
},
{
test: /\.json$/,
use: 'json-loader',
include: [ path.resolve(__dirname, '../../../../') ]
}
],
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
resolve: {
alias: {
'api-flow-config$': path.resolve(__dirname, './api-flow-config.js')
}
},
node: {
fs: false,
request: false,
net: false,
tls: false
}
}
module.exports = config
================================================
FILE: configs/paw/importers/raml1/api-flow-config.js
================================================
import Environment from '../../../../src/environments/paw/Environment'
import RAMLLoader from '../../../../src/loaders/raml/Loader'
import RAMLV1Parser from '../../../../src/parsers/raml/v1.0/Parser'
import PawSerializer from '../../../../src/serializers/paw/Serializer'
export const loaders = [
RAMLLoader
]
export const parsers = [
RAMLV1Parser
]
export const serializers = [
PawSerializer
]
export const source = {
identifier: 'com.luckymarmot.PawExtensions.RAML1Importer',
title: 'RAML1Importer',
humanTitle: 'RAML 1.0 Importer',
format: RAMLV1Parser.__meta__.format,
version: RAMLV1Parser.__meta__.version
}
export const environment = Environment
================================================
FILE: configs/paw/importers/raml1/webpack.config.babel.js
================================================
const { source } = require('./api-flow-config.js')
const path = require('path')
const config = {
target: 'web',
entry: path.resolve(__dirname, '../Importer.js'),
output: {
path: path.resolve(__dirname, '../../../../dist/paw/', source.identifier),
filename: source.title + '.js',
libraryTarget: 'umd'
},
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
include: [ path.resolve(__dirname, '../../../../src'), path.resolve(__dirname, '../') ]
},
{
test: /\.json$/,
use: 'json-loader',
include: [ path.resolve(__dirname, '../../../../') ]
}
],
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
resolve: {
alias: {
'api-flow-config$': path.resolve(__dirname, './api-flow-config.js'),
'raml-1-parser': path.resolve(__dirname, '../../../shared/raml-1-parser.js')
}
},
node: {
fs: false,
request: false,
net: false,
tls: false
}
}
module.exports = config
================================================
FILE: configs/paw/importers/swagger/api-flow-config.js
================================================
import Environment from '../../../../src/environments/paw/Environment'
import SwaggerLoader from '../../../../src/loaders/swagger/Loader'
import SwaggerV2Parser from '../../../../src/parsers/swagger/v2.0/Parser'
import PawSerializer from '../../../../src/serializers/paw/Serializer'
export const loaders = [
SwaggerLoader
]
export const parsers = [
SwaggerV2Parser
]
export const serializers = [
PawSerializer
]
export const source = {
identifier: 'com.luckymarmot.PawExtensions.SwaggerImporter',
title: 'SwaggerImporter',
humanTitle: 'Swagger 2.0 Importer',
format: SwaggerV2Parser.__meta__.format,
version: SwaggerV2Parser.__meta__.version
}
export const environment = Environment
================================================
FILE: configs/paw/importers/swagger/webpack.config.babel.js
================================================
const { source } = require('./api-flow-config.js')
const path = require('path')
const config = {
target: 'web',
entry: path.resolve(__dirname, '../Importer.js'),
output: {
path: path.resolve(__dirname, '../../../../dist/paw/', source.identifier),
filename: source.title + '.js',
libraryTarget: 'umd'
},
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
include: [ path.resolve(__dirname, '../../../../src'), path.resolve(__dirname, '../') ]
},
{
test: /\.json$/,
use: 'json-loader',
include: [ path.resolve(__dirname, '../../../../') ]
}
],
noParse: /node_modules\/json-schema\/lib\/validate\.js/
},
resolve: {
alias: {
'api-flow-config$': path.resolve(__dirname, './api-flow-config.js')
}
},
node: {
fs: false,
request: false,
net: false,
tls: false
}
}
module.exports = config
================================================
FILE: configs/shared/raml-1-parser.js
================================================
/* eslint-disable */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=400)}([function(e,t,n){"use strict";function r(){return t.rt.getSchemaUtils()}function i(e){e.isUnion?e.addAdapter(new C(e)):e.range&&e.addAdapter(new E(e))}function a(e){return e.getSource&&"function"==typeof e.getSource}function o(e){var t=e;return t.genuineUserDefinedType&&t.isUserDefined&&t.isUserDefined()}function s(e,t,n,r,i){return new b(e,t).withDomain(n,i).withRange(r)}var u=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};t.rt=n(337);var c=t.rt.nominalTypes;t.getSchemaUtils=r,t.TOP_LEVEL_EXTRA=t.rt.TOP_LEVEL_EXTRA,t.DEFINED_IN_TYPES_EXTRA=t.rt.DEFINED_IN_TYPES_EXTRA,t.USER_DEFINED_EXTRA=t.rt.USER_DEFINED_EXTRA,t.SOURCE_EXTRA=t.rt.SOURCE_EXTRA,t.tsInterfaces=t.rt.tsInterfaces,t.injector={inject:function(e){i(e)}},c.registerInjector(t.injector);var l=function(e){function t(){e.apply(this,arguments)}return u(t,e),t}(c.AbstractType);t.AbstractType=l;var p=function(e){function t(){e.apply(this,arguments)}return u(t,e),t}(c.ValueType);t.ValueType=p;var f=function(){function e(){}return e.isInstance=function(t){if(null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier)for(var n=0,r=t.getClassIdentifier();n<r.length;n++){var i=r[n];if(i==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){return[].concat(e.CLASS_IDENTIFIER)},e.prototype.getSource=function(){return null},e.CLASS_IDENTIFIER="definitionSystem.SourceProvider",e}();t.SourceProvider=f,t.isSourceProvider=a;var d=function(e){function t(){e.apply(this,arguments),this.values=[]}return u(t,e),t.isInstance=function(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(var n=0,r=e.getClassIdentifier();n<r.length;n++){var i=r[n];if(i==t.CLASS_IDENTIFIER)return!0}return!1},t.prototype.getClassIdentifier=function(){return[].concat(t.CLASS_IDENTIFIER)},t.CLASS_IDENTIFIER="definitionSystem.EnumType",t}(p);t.EnumType=d;var m=function(e){function t(t,n,r,i){e.call(this,t,i,n),this.referenceTo=r}return u(t,e),t.isInstance=function(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(var n=0,r=e.getClassIdentifier();n<r.length;n++){var i=r[n];if(i==t.CLASS_IDENTIFIER)return!0}return!1},t.prototype.getClassIdentifier=function(){return[].concat(t.CLASS_IDENTIFIER)},t.prototype.getReferencedType=function(){return this.universe().type(this.referenceTo)},t.prototype.hasStructure=function(){return!0},t.CLASS_IDENTIFIER="definitionSystem.ReferenceType",t}(p);t.ReferenceType=m;var h=function(e){function t(t,n,r,i){void 0===i&&(i=""),e.call(this,t,n,r)}return u(t,e),t.isInstance=function(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(var n=0,r=e.getClassIdentifier();n<r.length;n++){var i=r[n];if(i==t.CLASS_IDENTIFIER)return!0}return!1},t.prototype.getClassIdentifier=function(){return[].concat(t.CLASS_IDENTIFIER)},t.prototype.allProperties=function(t){return void 0===t&&(t={}),e.prototype.allProperties.call(this,t)},t.CLASS_IDENTIFIER="definitionSystem.NodeClass",t}(c.StructuredType);t.NodeClass=h;var y=function(e){function t(t,n,r,i,a){e.call(this,t,n,i,a),this.getAdapter(C).setDeclaringNode(r)}return u(t,e),t.isInstance=function(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(var n=0,r=e.getClassIdentifier();n<r.length;n++){var i=r[n];if(i==t.CLASS_IDENTIFIER_UserDefinedClass)return!0}return!1},t.prototype.getClassIdentifier=function(){return e.prototype.getClassIdentifier.call(this).concat(t.CLASS_IDENTIFIER_UserDefinedClass)},t.prototype.key=function(){return null},t.prototype.isUserDefined=function(){return!0},t.prototype.typeId=function(){var e=this.nameId(),t=this.getAdapter(C).getDeclaringNode();if(t){e+=t.lowLevel().start();var n=t.lowLevel().unit();n&&(e+=n.absolutePath())}return e},t.prototype.hasValueTypeInHierarchy=function(){return!!this._value||(this.isAssignableFrom("ObjectTypeDeclaration"),!1)},t.prototype.isGenuineUserDefinedType=function(){return null!=this.genuineUserDefinedType()},t.prototype.genuineUserDefinedType=function(){return this.getAdapter(C).getDeclaringNode()?this:null},t.CLASS_IDENTIFIER_UserDefinedClass="definitionSystem.UserDefinedClass",t}(h);t.UserDefinedClass=y,t.isUserDefinedClass=o;var _=function(e){function t(){e.apply(this,arguments)}return u(t,e),t.prototype.allProperties=function(e){void 0===e&&(e={});var t=this.superTypes()[0].allProperties();if(0==t.length){var n=this.getAdapter(C).getDeclaringNode(),r=new S("value",n);r.withDomain(this),r.withCanBeValue(),r.withRequired(!1);this.superTypes()[0];t=[],r.withRange(r.node().asElement().definition().universe().type("string")),t.push(r)}return t},t.prototype.isAnnotationType=function(){return!0},t}(y);t.AnnotationType=_;var g=function(e){function t(t,n,r,i){void 0===n&&(n=""),void 0===r&&(r=null),void 0===i&&(i="RAML08"),e.call(this,n),this._parent=r,this._classes=[],this._uversion="RAML08",this.aMap={},this.matchedObjects=t,this._uversion=i}return u(t,e),t.prototype.matched=function(){return this.matchedObjects?this.matchedObjects:this._parent?this._parent.matched():void 0},t.prototype.setTopLevel=function(e){this._topLevel=e},t.prototype.getTopLevel=function(){return this._topLevel},t.prototype.setOriginalTopLevelText=function(e){this._originalTopLevelText=e},t.prototype.getOriginalTopLevelText=function(){return this._originalTopLevelText},t.prototype.setTypedVersion=function(e){this._typedVersion=e},t.prototype.getTypedVersion=function(){return this._typedVersion},t.prototype.version=function(){return this._uversion},t.prototype.setUniverseVersion=function(e){this._uversion=e},t.prototype.types=function(){var e=[].concat(this._classes);return null!=this._parent&&(e=e.concat(this._parent.types())),e},t.prototype.type=function(e){if(this.aMap[e])return this.aMap[e];for(var t,n=0;n<this._classes.length;n++)if(this._classes[n].nameId()==e){t=this._classes[n];break}if(null==t&&this._parent){var t=this._parent.type(e);if(t instanceof l){t._universe=this}}return t},t.prototype.register=function(e){return this._classes.push(e),e instanceof h&&this._classes.forEach(function(t){if(t instanceof h){t.getAdapter(C).getExtendedType()==e&&e.getAdapter(C).getRuntimeExtenders().push(t)}}),this},t.prototype.registerAlias=function(e,t){this.aMap[e]=t},t.prototype.unregister=function(e){this._classes=this._classes.filter(function(t){return t!=e});var t=e.superTypes();return t.forEach(function(t){var n=t;n._superTypes=n._superTypes.filter(function(t){return t!=e})}),t=e.subTypes(),t.forEach(function(t){var n=t;n._subTypes=n._subTypes.filter(function(t){return t!=e})}),this},t.prototype.registerSuperClass=function(e,t){var n=e,r=t;n._superTypes.push(t),r._subTypes.push(e)},t}(c.Described);t.Universe=g,t.prop=s;var v=function(){function e(e,t){this.name=e,this.value=t}return e}();t.ChildValueConstraint=v;var b=function(e){function t(){e.apply(this,arguments),this._isFromParentValue=!1,this._isFromParentKey=!1,this._key=!1,this._declaresFields=!1,this._describes=null,this._canBeDuplicator=!1,this._allowsNull=!1,this._canBeValue=!1,this._isInherited=!1,this._selfNode=!1,this._noDirectParse=!1,this._contextReq=[],this.determinesChildValues=[]}return u(t,e),t.prototype.isPrimitive=function(){return this.range().isValueType()&&!(this.range()instanceof m)},t.prototype.withNoDirectParse=function(){this._noDirectParse=!0},t.prototype.isNoDirectParse=function(){return this._noDirectParse},t.prototype.withSelfNode=function(){this._selfNode=!0},t.prototype.isSelfNode=function(){return this._selfNode},t.prototype.matchKey=function(t){return null!=this._groupName?this.isAnnotation()?"("==t.charAt(0)&&")"==t.charAt(t.length-1):this._groupName==t:e.prototype.matchKey.call(this,t)},t.prototype.valueDocProvider=function(){return this._vprovider},t.prototype.setValueDocProvider=function(e){return this._vprovider=e,this},t.prototype.suggester=function(){return this._suggester},t.prototype.setValueSuggester=function(e){this._suggester=e},t.prototype.enumOptions=function(){return this._enumOptions&&"string"==typeof this._enumOptions?[this._enumOptions+""]:this._enumOptions},t.prototype.getOftenKeys=function(){return this._oftenKeys},t.prototype.withOftenKeys=function(e){return this._oftenKeys=e,this},t.prototype.withCanBeValue=function(){return this._canBeValue=!0,this},t.prototype.withInherited=function(e){this._isInherited=e},t.prototype.isInherited=function(){return this._isInherited},t.prototype.isAllowNull=function(){return this._allowsNull},t.prototype.withAllowNull=function(){this._allowsNull=!0},t.prototype.getCanBeDuplicator=function(){return this._canBeDuplicator},t.prototype.canBeValue=function(){return this._canBeValue},t.prototype.setCanBeDuplicator=function(){return this._canBeDuplicator=!0,!0},t.prototype.inheritedContextValue=function(){return this._inheritsValueFromContext},t.prototype.withInheritedContextValue=function(e){return this._inheritsValueFromContext=e,this},t.prototype.withContextRequirement=function(e,t){this._contextReq.push({name:e,value:t})},t.prototype.getContextRequirements=function(){return this._contextReq},t.prototype.withDescribes=function(e){return this._describes=e,this},t.prototype.describesAnnotation=function(){return null!=this._describes},t.prototype.describedAnnotation=function(){return this._describes},t.prototype.isReference=function(){return this.range()instanceof m},t.prototype.referencesTo=function(){return this.range().getReferencedType()},t.prototype.newInstanceName=function(){return this._newInstanceName?this._newInstanceName:this.range().nameId()},t.prototype.withThisPropertyDeclaresFields=function(e){return void 0===e&&(e=!0),this._declaresFields=e,this},t.prototype.isThisPropertyDeclaresTypeFields=function(){return this._declaresFields},t.prototype.withNewInstanceName=function(e){return this._newInstanceName=e,this},t.prototype.addChildValueConstraint=function(e){this.determinesChildValues.push(e)},t.prototype.getChildValueConstraints=function(){return this.determinesChildValues},t.prototype.childRestrictions=function(){return this.determinesChildValues},t.prototype.id=function(){return this._id?this._id:this._groupName?this.domain().getAdapter(C).getDeclaringNode()?null:(this._id=this._groupName+this.domain().nameId(),this._id):null},t.prototype.isAnnotation=function(){return"annotations"==this._groupName&&this.domain()&&!this.domain().isUserDefined()},t.prototype.withFromParentValue=function(e){return void 0===e&&(e=!0),this._isFromParentValue=e,this},t.prototype.withFromParentKey=function(e){return void 0===e&&(e=!0),this._isFromParentKey=e,this},t.prototype.isFromParentKey=function(){return this._isFromParentKey},t.prototype.isFromParentValue=function(){return this._isFromParentValue},t.prototype.withGroupName=function(e){return this._groupName=e,this},t.prototype.unmerge=function(){return this._groupName=this.nameId(),this},t.prototype.merge=function(){return this._groupName=null,this},t.prototype.withKey=function(e){return this._key=e,this},t.prototype.isKey=function(){return this._key},t.prototype.isMerged=function(){return null==this._groupName},t.prototype.groupName=function(){return this._groupName},t.prototype.key=function(){return null},t}(c.Property);t.Property=b;var S=function(e){function t(t,n){e.call(this,t),this._node=n}return u(t,e),t.isInstance=function(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(var n=e.getClassIdentifier(),r=0;r<n.length;r++)if(n[r]==t.CLASS_IDENTIFIER)return!0;return!1},t.prototype.getClassIdentifier=function(){return[].concat(t.CLASS_IDENTIFIER)},t.prototype.withDisplayName=function(e){this._displayName=e},t.prototype.getDisplayName=function(){return this._displayName},t.prototype.node=function(){return this._node||null==this.sourceProvider||(this._node=this.sourceProvider.getSource()),this._node},t.prototype.setSourceProvider=function(e){this.sourceProvider=e},t.CLASS_IDENTIFIER="definitionSystem.UserDefinedProp",t}(b);t.UserDefinedProp=S;var A=function(){function e(){}return e.prototype.setDocTableName=function(e){this._documentationTableName=e},e.prototype.docTableName=function(){return this._documentationTableName},e.prototype.setHidden=function(e){this._isHidden=e},e.prototype.isHidden=function(){return this._isHidden},e.prototype.setMarkdownDescription=function(e){this._markdownDescription=e},e.prototype.markdownDescription=function(){return this._markdownDescription},e.prototype.setValueDescription=function(e){this._valueDescription=e},e.prototype.valueDescription=function(){return this._valueDescription},e}();t.RAMLPropertyDocumentationService=A;var T=function(e){function t(){e.apply(this,arguments)}return u(t,e),t.prototype.isSystem=function(){return this._isSystemProperty},t.prototype.withSystem=function(e){return this._isSystemProperty=e,this},t.prototype.isEmbedMap=function(){return this._isEmbededMap},t.prototype.withEmbedMap=function(){return this._isEmbededMap=!0,this},t}(A);t.RAMLPropertyParserService=T;var E=function(e){function t(t){if(e.call(this),this._property=t,this._meta={},!t)throw new Error;e.call(this)}return u(t,e),t.prototype.valueDocProvider=function(){return this._property.valueDocProvider()},t.prototype.withPropertyGrammarType=function(e){this._propertyGrammarType=e},t.prototype.getPropertyGrammarType=function(){return this._propertyGrammarType},t.prototype.id=function(){return this._property.nameId()},t.prototype.range=function(){return this._property.range()},t.prototype.domain=function(){return this._property.domain()},t.prototype.isAllowNull=function(){return this._property.isAllowNull()},t.prototype.referencesTo=function(){return this._property.referencesTo()},t.prototype.isReference=function(){return this._property.isReference()},t.prototype.nameId=function(){return this._property.nameId()},t.prototype.priority=function(){return this.isKey()?128:this.isReference()?64:this.isTypeExpr()?32:"example"==this.nameId()?0:-1024},t.prototype.isKey=function(){return this._property instanceof b&&this._property.isKey()},t.prototype.isMerged=function(){return this._property instanceof b&&this._property.isMerged()},t.prototype.isTypeExpr=function(){return this.texpr},t.prototype.isExampleProperty=function(){return this.example},t.prototype.setExample=function(e){this.example=e},t.prototype.setTypeExpression=function(e){this.texpr=e},t.prototype.isDescriminating=function(){return this._property.isDescriminator()},t.prototype.putMeta=function(e,t){this._meta[e]=t},t.prototype.meta=function(e){return this._meta[e]},t}(T);t.RAMLPropertyService=E;var C=function(){function e(e){
//!!!
this._allowsOptionalProperties=!1,this._possibleInterfaces=[],
//!!!
this._canInherit=[],this._declaredBy=[],
//!!!
this._aliases=[],
//!!!???
this._defining=[],this._runtimeExtenders=[],
//!!!???
this._declaresType=null,
//!!!
this._isTemplate=!1,
//!!!
this._contextRequirements=[],this._type=e}return e.prototype.withAllowQuestion=function(){this._allowsOptionalProperties=!0},e.prototype.getAllowQuestion=function(){return this._allowsOptionalProperties},e.prototype.withCanInherit=function(e){this._canInherit.push(e)},e.prototype.getReferenceIs=function(){return this._referenceIs},e.prototype.withReferenceIs=function(e){this._referenceIs=e},e.prototype.descriminatorValue=function(){return 0==this.valueRequirements().length?this.nameId():this.valueRequirements()[0].value},e.prototype.getCanInherit=function(){return this._canInherit},e.prototype.withAllowAny=function(){this._allowsAnyChildren=!0},e.prototype.getAllowAny=function(){return this._allowsAnyChildren||this._type.isExternal()},e.prototype.globallyDeclaredBy=function(){return this._declaredBy},e.prototype.setGloballyDeclaredBy=function(e){this._declaredBy.push(e)},e.prototype.setDeclaringNode=function(e){this._node=e},e.prototype.nameId=function(){return this._type.nameId()},e.prototype.universe=function(){return this._type.universe()},e.prototype.isAssignableFrom=function(e){return this._type.isAssignableFrom(e)},e.prototype.setConsumesRefs=function(e){this._consumesRef=e},e.prototype.definingPropertyIsEnough=function(e){this._defining.push(e)},e.prototype.getDefining=function(){return this._defining},e.prototype.getConsumesRefs=function(){return this._consumesRef},e.prototype.addAlias=function(e){this._aliases.push(e)},e.prototype.getAliases=function(){return this._aliases},e.prototype.valueRequirements=function(){return this._type.valueRequirements()},e.prototype.isAnnotation=function(){return this._annotationChecked?this._isAnnotation:(this._annotationChecked=!0,this._isAnnotation=this._type.allSuperTypes().some(function(e){return e.key()&&"AnnotationRef"==e.key().name}),this._isAnnotation)},e.prototype.allowValue=function(){return this._allowsValueSet?this._allowsValue:this._type.allProperties().some(function(e){return e.isFromParentValue()||e.canBeValue()})?(this._allowsValue=!0,this._allowsValueSet=!0,!0):(this._allowsValueSet=!0,!1)},e.prototype.key=function(){return this._type.key()},e.prototype.getRepresentationOf=function(){return this._representationOf},e.prototype.getPath=function(){return""},e.prototype.isDeclaration=function(){return!!this._isTemplate||(!!this._convertsToGlobal||(!!this._declaresType||!(!this.key()||"Library"!==this.key().name)))},e.prototype.isGlobalDeclaration=function(){return!!this._actuallyExports||(!!this._isTemplate||!!this._declaresType)},e.prototype.isTypeSystemMember=function(){return null!=this._declaresType},e.prototype.getExtendedType=function(){return this.universe().type(this._declaresType)},e.prototype.setInlinedTemplates=function(e){return this._isTemplate=e,this},e.prototype.getRuntimeExtenders=function(){return this._runtimeExtenders},e.prototype.isInlinedTemplates=function(){return this._isTemplate},e.prototype.setExtendedTypeName=function(t){this._declaresType=t;var n=this.universe().type(t);if(n instanceof h){n.getAdapter(e)._runtimeExtenders.push(this._type)}},e.prototype.getKeyProp=function(){for(var e=this._type.allProperties(),t=0;t<e.length;t++)if(e[t].getAdapter(E).isKey())return e[t];return null},e.prototype.withActuallyExports=function(e){this._actuallyExports=e},e.prototype.withConvertsToGlobal=function(e){this._convertsToGlobal=e},e.prototype.getConvertsToGlobal=function(){return this._convertsToGlobal},e.prototype.getActuallyExports=function(){return this._actuallyExports},e.prototype.isUserDefined=function(){return this._type instanceof h?this._type.isUserDefined():this._type instanceof l&&this._type.isUserDefined()},e.prototype.withContextRequirement=function(e,t){this._contextRequirements.push({name:e,value:t})},e.prototype.getContextRequirements=function(){return this._contextRequirements},e.prototype.findMembersDeterminer=function(){for(var e=this._type.allProperties(),t=0;t<e.length;t++)if(e[t].isThisPropertyDeclaresTypeFields())return e[t];return null},e.prototype.getDeclaringNode=function(){if(this._node)return this._node;if(this._type){var e=this._type.getExtra(t.SOURCE_EXTRA);return e?e instanceof f||e.getSource&&"function"==typeof e.getSource?e.getSource():e:null}return null},e.prototype.registerSupertypes=function(e){var t=this,n=this._type.universe();e.forEach(function(e){var r=n.type(e);r&&t._type.addSuperType(r)})},e.prototype.registerPossibleInterfaces=function(e){for(var t=this._type.universe(),n=0,r=e;n<r.length;n++){var i=r[n],a=t.type(i);if(!a)return;this._possibleInterfaces.push(a)}},e.prototype.possibleInterfaces=function(){return this._possibleInterfaces},e}();t.RAMLService=C;var N={},w=n(333),k=w.universeDumps,x=n(334),R=n(335);t.universesInfo=R,t.getUniverse=function(){var e=function(e){if(N[e])return N[e];var t=k[e],n=x.toDefSystem(t,"RAML08"==e?R.Universe08:R.Universe10);return n&&(n.setUniverseVersion(e),N[e]=n),n};return e.availableUniverses=function(){return Object.keys(k)},e}()},function(e,t,n){var r,i;(function(){function n(e){function t(t,n,r,i,a,o){for(;a>=0&&a<o;a+=e){var s=i?i[a]:a;r=n(r,t[s],s,t)}return r}return function(n,r,i,a){r=T(r,a,4);var o=!R(n)&&A.keys(n),s=(o||n).length,u=e>0?0:s-1;return arguments.length<3&&(i=n[o?o[u]:u],u+=e),t(n,r,i,o,u,s)}}function a(e){return function(t,n,r){n=E(n,r);for(var i=x(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}function o(e,t,n){return function(r,i,a){var o=0,s=x(r);if("number"==typeof a)e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return a=n(r,i),r[a]===i?a:-1;if(i!==i)return a=t(m.call(r,o,s),A.isNaN),a>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(r[a]===i)return a;return-1}}function s(e,t){var n=L.length,r=e.constructor,i=A.isFunction(r)&&r.prototype||p,a="constructor";for(A.has(e,a)&&!A.contains(t,a)&&t.push(a);n--;)(a=L[n])in e&&e[a]!==i[a]&&!A.contains(t,a)&&t.push(a)}var u=this,c=u._,l=Array.prototype,p=Object.prototype,f=Function.prototype,d=l.push,m=l.slice,h=p.toString,y=p.hasOwnProperty,_=Array.isArray,g=Object.keys,v=f.bind,b=Object.create,S=function(){},A=function(e){return e instanceof A?e:this instanceof A?void(this._wrapped=e):new A(e)};void 0!==e&&e.exports&&(t=e.exports=A),t._=A,A.VERSION="1.8.3";var T=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}},E=function(e,t,n){return null==e?A.identity:A.isFunction(e)?T(e,t,n):A.isObject(e)?A.matcher(e):A.property(e)};A.iteratee=function(e,t){return E(e,t,1/0)};var C=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,u=0;u<s;u++){var c=o[u];t&&void 0!==n[c]||(n[c]=a[c])}return n}},N=function(e){if(!A.isObject(e))return{};if(b)return b(e);S.prototype=e;var t=new S;return S.prototype=null,t},w=function(e){return function(t){return null==t?void 0:t[e]}},k=Math.pow(2,53)-1,x=w("length"),R=function(e){var t=x(e);return"number"==typeof t&&t>=0&&t<=k};A.each=A.forEach=function(e,t,n){t=T(t,n);var r,i;if(R(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=A.keys(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e},A.map=A.collect=function(e,t,n){t=E(t,n);for(var r=!R(e)&&A.keys(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=t(e[s],s,e)}return a},A.reduce=A.foldl=A.inject=n(1),A.reduceRight=A.foldr=n(-1),A.find=A.detect=function(e,t,n){var r;if(void 0!==(r=R(e)?A.findIndex(e,t,n):A.findKey(e,t,n))&&r!==-1)return e[r]},A.filter=A.select=function(e,t,n){var r=[];return t=E(t,n),A.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},A.reject=function(e,t,n){return A.filter(e,A.negate(E(t)),n)},A.every=A.all=function(e,t,n){t=E(t,n);for(var r=!R(e)&&A.keys(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0},A.some=A.any=function(e,t,n){t=E(t,n);for(var r=!R(e)&&A.keys(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1},A.contains=A.includes=A.include=function(e,t,n,r){return R(e)||(e=A.values(e)),("number"!=typeof n||r)&&(n=0),A.indexOf(e,t,n)>=0},A.invoke=function(e,t){var n=m.call(arguments,2),r=A.isFunction(t);return A.map(e,function(e){var i=r?t:e[t];return null==i?i:i.apply(e,n)})},A.pluck=function(e,t){return A.map(e,A.property(t))},A.where=function(e,t){return A.filter(e,A.matcher(t))},A.findWhere=function(e,t){return A.find(e,A.matcher(t))},A.max=function(e,t,n){var r,i,a=-(1/0),o=-(1/0);if(null==t&&null!=e){e=R(e)?e:A.values(e);for(var s=0,u=e.length;s<u;s++)(r=e[s])>a&&(a=r)}else t=E(t,n),A.each(e,function(e,n,r){((i=t(e,n,r))>o||i===-(1/0)&&a===-(1/0))&&(a=e,o=i)});return a},A.min=function(e,t,n){var r,i,a=1/0,o=1/0;if(null==t&&null!=e){e=R(e)?e:A.values(e);for(var s=0,u=e.length;s<u;s++)(r=e[s])<a&&(a=r)}else t=E(t,n),A.each(e,function(e,n,r){((i=t(e,n,r))<o||i===1/0&&a===1/0)&&(a=e,o=i)});return a},A.shuffle=function(e){for(var t,n=R(e)?e:A.values(e),r=n.length,i=Array(r),a=0;a<r;a++)t=A.random(0,a),t!==a&&(i[a]=i[t]),i[t]=n[a];return i},A.sample=function(e,t,n){return null==t||n?(R(e)||(e=A.values(e)),e[A.random(e.length-1)]):A.shuffle(e).slice(0,Math.max(0,t))},A.sortBy=function(e,t,n){return t=E(t,n),A.pluck(A.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var I=function(e){return function(t,n,r){var i={};return n=E(n,r),A.each(t,function(r,a){e(i,r,n(r,a,t))}),i}};A.groupBy=I(function(e,t,n){A.has(e,n)?e[n].push(t):e[n]=[t]}),A.indexBy=I(function(e,t,n){e[n]=t}),A.countBy=I(function(e,t,n){A.has(e,n)?e[n]++:e[n]=1}),A.toArray=function(e){return e?A.isArray(e)?m.call(e):R(e)?A.map(e,A.identity):A.values(e):[]},A.size=function(e){return null==e?0:R(e)?e.length:A.keys(e).length},A.partition=function(e,t,n){t=E(t,n);var r=[],i=[];return A.each(e,function(e,n,a){(t(e,n,a)?r:i).push(e)}),[r,i]},A.first=A.head=A.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:A.initial(e,e.length-t)},A.initial=function(e,t,n){return m.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},A.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:A.rest(e,Math.max(0,e.length-t))},A.rest=A.tail=A.drop=function(e,t,n){return m.call(e,null==t||n?1:t)},A.compact=function(e){return A.filter(e,A.identity)};var D=function(e,t,n,r){for(var i=[],a=0,o=r||0,s=x(e);o<s;o++){var u=e[o];if(R(u)&&(A.isArray(u)||A.isArguments(u))){t||(u=D(u,t,n));var c=0,l=u.length;for(i.length+=l;c<l;)i[a++]=u[c++]}else n||(i[a++]=u)}return i};A.flatten=function(e,t){return D(e,t,!1)},A.without=function(e){return A.difference(e,m.call(arguments,1))},A.uniq=A.unique=function(e,t,n,r){A.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=E(n,r));for(var i=[],a=[],o=0,s=x(e);o<s;o++){var u=e[o],c=n?n(u,o,e):u;t?(o&&a===c||i.push(u),a=c):n?A.contains(a,c)||(a.push(c),i.push(u)):A.contains(i,u)||i.push(u)}return i},A.union=function(){return A.uniq(D(arguments,!0,!0))},A.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=x(e);r<i;r++){var a=e[r];if(!A.contains(t,a)){for(var o=1;o<n&&A.contains(arguments[o],a);o++);o===n&&t.push(a)}}return t},A.difference=function(e){var t=D(arguments,!0,!0,1);return A.filter(e,function(e){return!A.contains(t,e)})},A.zip=function(){return A.unzip(arguments)},A.unzip=function(e){for(var t=e&&A.max(e,x).length||0,n=Array(t),r=0;r<t;r++)n[r]=A.pluck(e,r);return n},A.object=function(e,t){for(var n={},r=0,i=x(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},A.findIndex=a(1),A.findLastIndex=a(-1),A.sortedIndex=function(e,t,n,r){n=E(n,r,1);for(var i=n(t),a=0,o=x(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<i?a=s+1:o=s}return a},A.indexOf=o(1,A.findIndex,A.sortedIndex),A.lastIndexOf=o(-1,A.findLastIndex),A.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i};var M=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=N(e.prototype),o=e.apply(a,i);return A.isObject(o)?o:a};A.bind=function(e,t){if(v&&e.bind===v)return v.apply(e,m.call(arguments,1));if(!A.isFunction(e))throw new TypeError("Bind must be called on a function");var n=m.call(arguments,2),r=function(){return M(e,r,t,this,n.concat(m.call(arguments)))};return r},A.partial=function(e){var t=m.call(arguments,1),n=function(){for(var r=0,i=t.length,a=Array(i),o=0;o<i;o++)a[o]=t[o]===A?arguments[r++]:t[o];for(;r<arguments.length;)a.push(arguments[r++]);return M(e,n,this,this,a)};return n},A.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)n=arguments[t],e[n]=A.bind(e[n],e);return e},A.memoize=function(e,t){var n=function(r){var i=n.cache,a=""+(t?t.apply(this,arguments):r);return A.has(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n},A.delay=function(e,t){var n=m.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},A.defer=A.partial(A.delay,A,1),A.throttle=function(e,t,n){var r,i,a,o=null,s=0;n||(n={});var u=function(){s=n.leading===!1?0:A.now(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var c=A.now();s||n.leading!==!1||(s=c);var l=t-(c-s);return r=this,i=arguments,l<=0||l>t?(o&&(clearTimeout(o),o=null),s=c,a=e.apply(r,i),o||(r=i=null)):o||n.trailing===!1||(o=setTimeout(u,l)),a}},A.debounce=function(e,t,n){var r,i,a,o,s,u=function(){var c=A.now()-o;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(a,i),r||(a=i=null)))};return function(){a=this,i=arguments,o=A.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(a,i),a=i=null),s}},A.wrap=function(e,t){return A.partial(t,e)},A.negate=function(e){return function(){return!e.apply(this,arguments)}},A.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},A.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},A.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},A.once=A.partial(A.before,2);var P=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];A.keys=function(e){if(!A.isObject(e))return[];if(g)return g(e);var t=[];for(var n in e)A.has(e,n)&&t.push(n);return P&&s(e,t),t},A.allKeys=function(e){if(!A.isObject(e))return[];var t=[];for(var n in e)t.push(n);return P&&s(e,t),t},A.values=function(e){for(var t=A.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},A.mapObject=function(e,t,n){t=E(t,n);for(var r,i=A.keys(e),a=i.length,o={},s=0;s<a;s++)r=i[s],o[r]=t(e[r],r,e);return o},A.pairs=function(e){for(var t=A.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},A.invert=function(e){for(var t={},n=A.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},A.functions=A.methods=function(e){var t=[];for(var n in e)A.isFunction(e[n])&&t.push(n);return t.sort()},A.extend=C(A.allKeys),A.extendOwn=A.assign=C(A.keys),A.findKey=function(e,t,n){t=E(t,n);for(var r,i=A.keys(e),a=0,o=i.length;a<o;a++)if(r=i[a],t(e[r],r,e))return r},A.pick=function(e,t,n){var r,i,a={},o=e;if(null==o)return a;A.isFunction(t)?(i=A.allKeys(o),r=T(t,n)):(i=D(arguments,!1,!1,1),r=function(e,t,n){return t in n},o=Object(o));for(var s=0,u=i.length;s<u;s++){var c=i[s],l=o[c];r(l,c,o)&&(a[c]=l)}return a},A.omit=function(e,t,n){if(A.isFunction(t))t=A.negate(t);else{var r=A.map(D(arguments,!1,!1,1),String);t=function(e,t){return!A.contains(r,t)}}return A.pick(e,t,n)},A.defaults=C(A.allKeys,!0),A.create=function(e,t){var n=N(e);return t&&A.extendOwn(n,t),n},A.clone=function(e){return A.isObject(e)?A.isArray(e)?e.slice():A.extend({},e):e},A.tap=function(e,t){return t(e),e},A.isMatch=function(e,t){var n=A.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0};var O=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof A&&(e=e._wrapped),t instanceof A&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var a="[object Array]"===i;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(A.isFunction(o)&&o instanceof o&&A.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!O(e[u],t[u],n,r))return!1}else{var c,l=A.keys(e);if(u=l.length,A.keys(t).length!==u)return!1;for(;u--;)if(c=l[u],!A.has(t,c)||!O(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0};A.isEqual=function(e,t){return O(e,t)},A.isEmpty=function(e){return null==e||(R(e)&&(A.isArray(e)||A.isString(e)||A.isArguments(e))?0===e.length:0===A.keys(e).length)},A.isElement=function(e){return!(!e||1!==e.nodeType)},A.isArray=_||function(e){return"[object Array]"===h.call(e)},A.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},A.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){A["is"+e]=function(t){return h.call(t)==="[object "+e+"]"}}),A.isArguments(arguments)||(A.isArguments=function(e){return A.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(A.isFunction=function(e){return"function"==typeof e||!1}),A.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},A.isNaN=function(e){return A.isNumber(e)&&e!==+e},A.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===h.call(e)},A.isNull=function(e){return null===e},A.isUndefined=function(e){return void 0===e},A.has=function(e,t){return null!=e&&y.call(e,t)},A.noConflict=function(){return u._=c,this},A.identity=function(e){return e},A.constant=function(e){return function(){return e}},A.noop=function(){},A.property=w,A.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},A.matcher=A.matches=function(e){return e=A.extendOwn({},e),function(t){return A.isMatch(t,e)}},A.times=function(e,t,n){var r=Array(Math.max(0,e));t=T(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},A.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},A.now=Date.now||function(){return(new Date).getTime()};var U={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},F=A.invert(U),B=function(e){var t=function(t){return e[t]},n="(?:"+A.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};A.escape=B(U),A.unescape=B(F),A.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),A.isFunction(r)?r.call(e):r};var K=0;A.uniqueId=function(e){var t=++K+"";return e?e+t:t},A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},j=function(e){return"\\"+V[e]};A.template=function(e,t,n){!t&&n&&(t=n),t=A.defaults({},t,A.templateSettings);var r=RegExp([(t.escape||/(.)^/).source,(t.interpolate||/(.)^/).source,(t.evaluate||/(.)^/).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(r,function(t,n,r,o,s){return a+=e.slice(i,s).replace(/\\|'|\r|\n|\u2028|\u2029/g,j),i=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var o=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return o.call(this,e,A)},u=t.variable||"obj";return s.source="function("+u+"){\n"+a+"}",s},A.chain=function(e){var t=A(e);return t._chain=!0,t};var W=function(e,t){return e._chain?A(t).chain():t};A.mixin=function(e){A.each(A.functions(e),function(t){var n=A[t]=e[t];A.prototype[t]=function(){var e=[this._wrapped];return d.apply(e,arguments),W(this,n.apply(A,e))}})},A.mixin(A),A.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=l[e];A.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],W(this,n)}}),A.each(["concat","join","slice"],function(e){var t=l[e];A.prototype[e]=function(){return W(this,t.apply(this._wrapped,arguments))}}),A.prototype.value=function(){return this._wrapped},A.prototype.valueOf=A.prototype.toJSON=A.prototype.value,A.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return A}.apply(t,r))&&(e.exports=i)}).call(this)},function(e,t,n){var r,i;/**
* @preserve date-and-time.js (c) KNOWLEDGECODE | MIT
*/
!function(a){"use strict";var o={},s="en",u={en:{MMMM:["January","February","March","April","May","June","July","August","September","October","November","December"],MMM:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dddd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ddd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dd:["Su","Mo","Tu","We","Th","Fr","Sa"],A:["a.m.","p.m."],formats:{YYYY:function(e){return("000"+e.getFullYear()).slice(-4)},YY:function(e){return("0"+e.getFullYear()).slice(-2)},Y:function(e){return""+e.getFullYear()},MMMM:function(e){return this.MMMM[e.getMonth()]},MMM:function(e){return this.MMM[e.getMonth()]},MM:function(e){return("0"+(e.getMonth()+1)).slice(-2)},M:function(e){return""+(e.getMonth()+1)},DD:function(e){return("0"+e.getDate()).slice(-2)},D:function(e){return""+e.getDate()},HH:function(e){return("0"+e.getHours()).slice(-2)},H:function(e){return""+e.getHours()},A:function(e){return this.A[e.getHours()>11|0]},hh:function(e){return("0"+(e.getHours()%12||12)).slice(-2)},h:function(e){return""+(e.getHours()%12||12)},mm:function(e){return("0"+e.getMinutes()).slice(-2)},m:function(e){return""+e.getMinutes()},ss:function(e){return("0"+e.getSeconds()).slice(-2)},s:function(e){return""+e.getSeconds()},SSS:function(e){return("00"+e.getMilliseconds()).slice(-3)},SS:function(e){return("0"+(e.getMilliseconds()/10|0)).slice(-2)},S:function(e){return""+(e.getMilliseconds()/100|0)},dddd:function(e){return this.dddd[e.getDay()]},ddd:function(e){return this.ddd[e.getDay()]},dd:function(e){return this.dd[e.getDay()]},Z:function(e){var t=e.utc?0:e.getTimezoneOffset()/.6;return(t>0?"-":"+")+("000"+Math.abs(t-t%100*.4)).slice(-4)},post:function(e){return e}},parsers:{h:function(e,t){return(12===e?0:e)+12*t},pre:function(e){return e}}}},c=function(){return"object"==typeof e&&"object"==typeof e.exports},l=function(e,t){for(var n=0,r=e.length;n<r&&0!==t(e[n],n);n++);},p=function(e,t){var n,r,i,a=0,o=t.match(/YYYY|YY|MMM?M?|DD|HH|hh|mm|ss|SSS?|./g),c={Y:0,M:1,D:1,A:0,H:0,h:0,m:0,s:0,S:0};return e=u[s].parsers.pre(e),l(o,function(t){n=t.charAt(0),r=t.length,i=e.slice(a),/^(MM|DD|HH|hh|mm|ss|SS?S?)$/.test(t)?c[n]=0|i.slice(0,r):/^(YYYY|YY|M|D|H|h|m|s)$/.test(t)?(i=(i.match(4===r?/^\d{1,4}/:/^\d\d?/)||[""])[0],r=i.length,c[n]=0|i,"Y"===n&&c.Y<70&&(c.Y+=2e3)):/^(MMMM?|A)$/.test(t)&&l(u[s][t],function(e,t){if(!i.indexOf(e))return c[n]="M"===n?t+1:t,r=e.length,0}),a+=r}),c},f=function(e,t){return u[s].parsers.h(e,t)};o.format=function(e,t,n){var r=new Date(e.getTime()+(n?6e4*e.getTimezoneOffset():0)),i=u[s],a=i.formats;return r.utc=n,t.replace(/(\[[^\[\]]*]|\[.*\][^\[]*\]|YYYY|YY|MMM?M?|DD|HH|hh|mm|ss|SSS?|ddd?d?|.)/g,function(e){var t=a[e];return t?a.post(t.call(i,r)):e.replace(/\[(.*)]/,"$1")})},o.parse=function(e,t,n){var r=p(e,t),i=new Date(r.Y,r.M-1,r.D,r.H||f(r.h,r.A),r.m,r.s,r.S);return n?new Date(i.getTime()-6e4*i.getTimezoneOffset()):i},o.isValid=function(e,t){var n=p(e,t),r=n.H||f(n.h,n.A),i=new Date(n.Y,n.M-1,n.D,r,n.m,n.s,n.S);return n.Y===i.getFullYear()&&n.M-1===i.getMonth()&&n.D===i.getDate()&&r===i.getHours()&&n.m===i.getMinutes()&&n.s===i.getSeconds()&&n.S===i.getMilliseconds()},o.addYears=function(e,t){var n=new Date(e.getTime());return n.setFullYear(n.getFullYear()+t),n},o.addMonths=function(e,t){var n=new Date(e.getTime());return n.setMonth(n.getMonth()+t),n},o.addDays=function(e,t){return new Date(e.getTime()+864e5*t)},o.addHours=function(e,t){return new Date(e.getTime()+36e5*t)},o.addMinutes=function(e,t){return new Date(e.getTime()+6e4*t)},o.addSeconds=function(e,t){return new Date(e.getTime()+1e3*t)},o.addMilliseconds=function(e,t){return new Date(e.getTime()+t)},o.subtract=function(e,t){var n=e.getTime()-t.getTime();return{toMilliseconds:function(){return n},toSeconds:function(){return n/1e3|0},toMinutes:function(){return n/6e4|0},toHours:function(){return n/36e5|0},toDays:function(){return n/864e5|0}}},o.isLeapYear=function(e){var t=e.getFullYear();return!((t%4||!(t%100))&&t%400)},o.locale=function(e){return e&&("en"!==e&&c()&&n(178)("./"+e),s=e),s},o.getLocales=function(e){return u[e||s]},o.setLocales=function(e,t){var n=function(e,t){var n,r,i=function(){};i.prototype=t,n=new i;for(r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n},r=u[e]||u.en,i=n(t,r);t.formats&&(i.formats=n(t.formats,r.formats)),t.parsers&&(i.parsers=n(t.parsers,r.parsers)),u[e]=i},c()?e.exports=o:(r=[],void 0!==(i=function(){return o}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){"use strict";var r=n(0);e.exports=r.universesInfo},function(e,t,n){"use strict";function r(e,t){var n=e.name();if(A.LowLevelProxyNode.isInstance(t.lowLevel())){if(A.LowLevelProxyNode.isInstance(e.lowLevel()))return n;var r=t.root().lowLevel().unit(),i=r.project().namespaceResolver(),a=e.lowLevel().unit(),o=i.resolveNamespace(r,a);if(null!=o){var s=o.namespace();if(null!=s)return s+"."+n}}if(e.lowLevel().unit()!=t.lowLevel().unit())for(var u=t;;){if(u.lowLevel().includePath()||null==u.parent()){u.unitMap||(u.unitMap={},u.asElement().elements().forEach(function(e){if(e.definition().key()==R.Universe10.UsesDeclaration){var t=e.attr("value");if(t){var n=e.root().lowLevel().unit().resolve(t.value());if(null!=n){var r=e.attr("key");r&&(u.unitMap[n.absolutePath()]=r.value())}}}}));var c=u.unitMap[e.lowLevel().unit().absolutePath()];if(c)return c+"."+n}if(!u.parent())break;u=u.parent()}return n}function i(e){var t=e;return t&&t.valueName&&t.toHighLevel&&t.toHighLevel2}function a(e){var t=e;return t&&t.isString&&t.isFromKey&&t.isEmbedded}function o(e){var t=P.newMap([P.newMapping(P.newScalar("example"),e.lowLevel().actual())]),n=P.newMapping(P.newScalar("types"),P.newMap([P.newMapping(P.newScalar("__AUX_TYPE__"),t)])),r=P.newMap([n]),i=new I.ASTNode(r,e.lowLevel().unit(),null,null,null),a=K.parseFromAST(new J(i,e));return K.toNominal(a.types()[0],function(e){return null})}function s(e){return e.match(/^\s*#%RAML\s+(\d\.\d)\s*(\w*)\s*$/m)}function u(e){var t=e.lowLevel()&&e.lowLevel().unit()&&e.lowLevel().unit().contents();return null==t?null:$(t,e.lowLevel()).ptype}function c(e){if(null==e)return null;var t=e.contents(),n=e.ast(),r=$(t,n),i=r.ptype,a=r.localUniverse,o=a.type(i);o||(o=a.type("Api"));var s=new X(n,null,o,null);s.setUniverse(a);var u=o&&o.universe();return u&&"RAML10"==u.version()?o.isAssignableFrom(T.universesInfo.Universe10.LibraryBase.name)||s.children():s.children(),s}function l(e,t){if(t){return t.root().lowLevel().unit()?new j.PointOfViewValidationAcceptorImpl(e,t.root()):{accept:function(t){e.push(t)},begin:function(){},end:function(){},acceptUnique:function(t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.start==t.start&&i.message==t.message)return}this.accept(t)}}}}function p(e){if(null!=e.parent())return!1;var t=e.lowLevel().unit();if(null==t)return!1;var n=t.contents(),r=s(n);return!(r.length<3)&&"AnnotationTypeDeclaration"==r[2]}function f(e,t,n){var r=e.validationIssue;if(!r){var i=e.issueCode||t,a=e.node||n,o=e.message||"The "+t+" plugin reports an error",s=e.isWarning;r=w.createIssue(i,o,a,s)}return r}function d(e){for(var t=[],n=b.getNodeValidationPlugins(),r=0,i=n;r<i.length;r++){var a=i[r],o=a.process(e);o&&o.forEach(function(n){var r=f(n,a.id(),e);t.push(r)})}return t}function m(e){for(var t=new Q(e),n=[],r=b.getNodeAnnotationValidationPlugins(),i=0,a=r;i<a.length;i++){var o=a[i],s=o.process(t);s&&s.forEach(function(t){var r=f(t,o.id(),e);n.push(r)})}return n}function h(e,t){return y(e.map(function(e){return _(e,t)}))}function y(e){var t=[],n={};e.map(function(e){n[JSON.stringify(e)]=e});for(var r=Object.keys(n),i=0;i<r.length;i++)t.push(n[r[i]]);return t}function _(e,t){var n=e.node&&e.node.lowLevel()&&e.node.lowLevel().unit().lineMapper()||t.lowLevel().unit().lineMapper(),r=null;try{r=n.position(e.start)}catch(e){console.warn(e)}var i=null;try{i=n.position(e.end)}catch(e){console.warn(e)}var a;a=e.path?e.path:e.node?e.node.lowLevel().unit().path():C.declRoot(t).lowLevel().unit().path();var o={code:e.code,message:e.message,path:a,range:{start:r,end:i},isWarning:e.isWarning};return e.extras&&e.extras.length>0&&(o.trace=e.extras.map(function(e){return _(e,t)})),o}var g=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},v=n(0),b=n(24),S=n(1),A=n(17),T=v,E=n(46),C=n(21),N=n(314),w=n(35),k=n(25),x=n(316),R=n(3),I=n(9),D=n(64),M=T,P=n(14),L=n(89),O=n(140),U=n(139),F=n(5),B=n(28),K=v.rt,V=n(63),j=n(146);t.qName=r;var W=function(){function e(e,t){this._node=e,this._parent=t,this._implicit=!1,this.values={},e&&e.setHighLevelParseResult(this)}return e.isInstance=function(t){return null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier&&S.contains(t.getClassIdentifier(),e.CLASS_IDENTIFIER)},e.prototype.getClassIdentifier=function(){return[].concat(e.CLASS_IDENTIFIER)},e.prototype.getKind=function(){return b.NodeKind.BASIC},e.prototype.asAttr=function(){return null},e.prototype.asElement=function(){return null},e.prototype.hashkey=function(){return this._hashkey||(this._hashkey=this.parent()?this.parent().hashkey()+"/"+this.name():this.name()),this._hashkey},e.prototype.root=function(){return this.parent()?this.parent().root():this},e.prototype.version=function(){return""},e.prototype.getLowLevelStart=function(){return this.lowLevel().kind()===I.Kind.SCALAR?this.lowLevel().start():this.lowLevel().keyStart()},e.prototype.getLowLevelEnd=function(){return this.lowLevel().kind()===I.Kind.SCALAR?this.lowLevel().end():this.lowLevel().keyEnd()},e.prototype.isSameNode=function(e){return!(!e||e.lowLevel().actual()!=this.lowLevel().actual())},e.prototype.checkContextValue=function(e,t,n){var r=this.computedValue(e);return!(!r||r.indexOf(t)==-1)||(t==r||"false"==t)},e.prototype.printDetails=function(e){return(e?e:"")+"Unkown\n"},e.prototype.testSerialize=function(e){return(e?e:"")+"Unkown\n"},e.prototype.errors=function(){var e=[],t=l(e,this);return this.validate(t),e},e.prototype.markCh=function(){for(var e=this.lowLevel();A.LowLevelProxyNode.isInstance(e);)e=e.originalNode();if(e=e._node?e._node:e,e.markCh)return!0;e.markCh=1},e.prototype.unmarkCh=function(){for(var e=this.lowLevel();A.LowLevelProxyNode.isInstance(e);)e=e.originalNode();e=e._node?e._node:e,delete e.markCh},e.prototype.validate=function(e){w.validate(this,e);for(var t=0,n=d(this);t<n.length;t++){var r=n[t];e.accept(r)}for(var i=0,a=m(this);i<a.length;i++){var r=a[i];e.accept(r)}},e.prototype.allowRecursive=function(){return!1},e.prototype.setComputed=function(e,t){this.values[e]=t},e.prototype.computedValue=function(e){var t=this.values[e];return!t&&this.parent()?this.parent().computedValue(e):t},e.prototype.lowLevel=function(){return this._node},e.prototype.name=function(){var e=this.lowLevel().key();return e?e:""},e.prototype.optional=function(){var e=this.lowLevel(),t=e.optional();if(null!=e.key())return t;var n=this.property();if(!n||!n.isMultiValue())return t;for(var r=e.parent();r&&null==r.highLevelNode();){if(r.kind()==P.Kind.MAPPING)return r.optional();r=r.parent()}return t},e.prototype.parent=function(){return this._parent},e.prototype.setParent=function(e){this._parent=e},e.prototype.isElement=function(){return!1},e.prototype.directChildren=function(){return this.children()},e.prototype.children=function(){return[]},e.prototype.isAttached=function(){return null!=this.parent()},e.prototype.isImplicit=function(){return this._implicit},e.prototype.isAttr=function(){return!1},e.prototype.isUnknown=function(){return!0},e.prototype.id=function(){var e=this;if(this.cachedId)return this.cachedId;if(this._parent){var t=this.parent().id();t+="."+this.name();var n=this.parent().directChildren().filter(function(t){return t.name()==e.name()});if(n.length>1){t+="["+n.indexOf(this)+"]"}return this.cachedId=t,t}return this.cachedId="",this.cachedId},e.prototype.localId=function(){return this.name()},e.prototype.resetIDs=function(){this.cachedId=null,this.cachedFullId=null},e.prototype.fullLocalId=function(){var e=this;if(this.cachedFullId)return this.cachedFullId;if(this._parent){var t=".";t+=null!=this.property()&&F.isAnnotationsProperty(this.property())?this.lowLevel().key():this.name();var n=this.parent().directChildren().filter(function(t){return t.name()==e.name()});if(n.length>1){t+="["+n.indexOf(this)+"]"}return this.cachedFullId=t,t}return this.cachedFullId=this.localId(),this.cachedFullId},e.prototype.property=function(){return null},e.prototype.reuseMode=function(){return this._reuseMode},e.prototype.setReuseMode=function(e){this._reuseMode=e},e.prototype.isReused=function(){return this._isReused},e.prototype.setReused=function(e){this._isReused=e,this.children().forEach(function(t){return t.setReused(e)})},e.prototype.setJSON=function(e){this._jsonCache=e},e.prototype.getJSON=function(){return this._jsonCache},e.CLASS_IDENTIFIER="highLevelImpl.BasicASTNode",e}();t.BasicASTNode=W;var q=function(){function e(e,t,n,r){void 0===r&&(r=null),this.node=e,this._parent=t,this.kv=r,this._pr=n}return e.isInstance=function(t){return null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier&&S.contains(t.getClassIdentifier(),e.CLASS_IDENTIFIER)},e.prototype.getClassIdentifier=function(){return[].concat(e.CLASS_IDENTIFIER)},e.prototype.valueName=function(){var e=null;return this.kv&&(e=this.kv),e=this.node.key(),this._pr&&this._pr.isAnnotation()&&e&&"("==e.charAt(0)&&(e=e.substring(1,e.length-1)),e},e.prototype.children=function(){return this.node.children().map(function(t){return new e(t,null,null)})},e.prototype.lowLevel=function(){return this.node},e.prototype.toHighLevel=function(e){if(!e&&this._parent&&(e=this._parent),this._hl)return this._hl;var t=this.valueName(),n=C.referenceTargets(this._pr,e).filter(function(n){return r(n,e)==t});if(n&&n[0]){var i=n[0].localType(),a=new X(this.node,e,i,this._pr);return this._pr&&this._pr.childRestrictions().forEach(function(e){a.setComputed(e.name,e.value)}),this._hl=a,a}return null},e.prototype.toHighLevel2=function(e){!e&&this._parent&&(e=this._parent);var t=this.valueName(),n=C.referenceTargets(this._pr,e).filter(function(n){return r(n,e)==t});if(n&&n[0]){var i=n[0].localType(),a=new X(this.node,e,i,this._pr);return this._pr&&this._pr.childRestrictions().forEach(function(e){a.setComputed(e.name,e.value)}),a}if(this._pr.range()){var a=new X(this.node.parent(),e,this._pr.range(),this._pr);return this._pr&&this._pr.childRestrictions().forEach(function(e){a.setComputed(e.name,e.value)}),a}return null},e.prototype.resetHighLevelNode=function(){this._hl=null},e.CLASS_IDENTIFIER="highLevelImpl.StructuredValue",e}();t.StructuredValue=q,t.isStructuredValue=i;var z=function(e){function t(t,n,r,i,a){void 0===a&&(a=!1),e.call(this,t,n),this._def=r,this._prop=i,this.fromKey=a}return g(t,e),t.isInstance=function(e){return null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier&&S.contains(e.getClassIdentifier(),t.CLASS_IDENTIFIER_ASTPropImpl)},t.prototype.getClassIdentifier=function(){return e.prototype.getClassIdentifier.call(this).concat(t.CLASS_IDENTIFIER_ASTPropImpl)},t.prototype.definition=function(){return this._def},t.prototype.asAttr=function(){return this},t.prototype.errors=function(){var e=[],t=l(e,this);return this.parent().validate(t),e},t.prototype.isString=function(){return!(!this._def||this._def.key()!==R.Universe08.StringType&&this._def.key()!=R.Universe10.StringType)},t.prototype.isAnnotatedScalar=function(){return!this.property().isAnnotation()&&!this.property().isKey()&&this.lowLevel().isAnnotatedScalar()},t.prototype.annotations=function(){var e=this.lowLevel().children(),n=[],r=this.definition().universe().type(R.Universe10.Annotable.name);if(!r)return n;for(var i=r.property("annotations"),a=0;a<e.length;a++){var o=e[a],s=o.key();if(null!=s&&"("==s[0]&&")"==s[s.length-1]){var u=new t(o,this.parent(),i.range(),i);n.push(u)}}return n},t.prototype.getKind=function(){return b.NodeKind.ATTRIBUTE},t.prototype.owningWrapper=function(){return{node:this.parent().wrapperNode(),property:this.name()}},t.prototype.patchType=function(e){this._def=e},t.prototype.findReferenceDeclaration=function(){var e=this,t=C.referenceTargets(this.property(),this.parent()),n=this.value();if(q.isInstance(n))var i=n,a=i.valueName();else var a=""+n;return S.find(t,function(t){return r(t,e.parent())==a})},t.prototype.findReferencedValue=function(){var e=this.findReferenceDeclaration();if(e){var t=e.attr("value");if(e.definition().key()===R.Universe08.GlobalSchema){if(t){var n=t.value();if(n){return w.isValid(this._def,this.parent(),n,t.property(),t)}}return null}}return e},t.prototype.isElement=function(){return!1},t.prototype.property=function(){return this._prop},t.prototype.convertMultivalueToString=function(e){for(var t=0,n=2;" "==e[n];)t++,n++;var r=D.splitOnLines(e);return r=r.map(function(e){return e.substring(t,e.length)}),r.join("")},t.prototype.overrideValue=function(e){this._value=e},t.prototype.value=function(){return this._value?this._value:(this._value=this.calcValue(),this._value)},t.prototype.calcValue=function(){if(this._computed)return this.computedValue(this.property().nameId());if(this.fromKey){var e=this.parent(),t=e.definition();if("RAML08"==t.universe().version())return this._node.key();if(F.isNameProperty(this.property())&&t.isAssignableFrom(R.Universe10.TypeDeclaration.name)){var n=e.attr("required");if(n&&null!=n.value())return this._node.optional()?this._node.key()+"?":this._node.key()}return this._node.key()}if(this.property().isAnnotation()&&this._node.key()&&"annotations"!=this._node.key())return new q(this._node,this.parent(),this._prop);var r=null!=this.property()&&!(null==this.parent()||null==this.parent().definition()||F.isTypeProperty(this.property())&&F.isTypeDeclarationSibling(this.parent().definition()))&&F.isStringTypeType(this.property().range()),i=this._node.value(r);if(this.property().isSelfNode()&&(i&&!I.ASTNode.isInstance(i)||(i=this._node,0==i.children().length&&(i=null))),I.ASTNode.isInstance(i)||A.LowLevelProxyNode.isInstance(i)){var a=!1;if(this.property().range().hasStructure()||this._node.isAnnotatedScalar()&&this._node.children().forEach(function(e){"value"===e.key()&&(i=e.value(r),a=!0)}),!a)return this._sval?this._sval:(this._sval=new q(i,this.parent(),this._prop),this._sval)}if("string"==typeof i&&D.isMultiLineValue(i)){return this.convertMultivalueToString(i)}return null==i&&this._node.children().length>0&&this.property()&&(F.isTypeProperty(this.property())||F.isItemsProperty(this.property()))&&this.parent()&&F.isTypeDeclarationSibling(this.parent().definition())?new q(this._node,this.parent(),this._prop):i},t.prototype.name=function(){return this._prop.nameId()},t.prototype.printDetails=function(e){var t=this.definition().nameId(),n=this.property().range().nameId(),r=(e?e:"")+(this.name()+" : ")+t+"["+n+"] = "+this.value()+(this.property().isKey()&&this.optional()?"?":"")+"\n";if(q.isInstance(this.value())){var i=this.value().toHighLevel();i&&i.printDetails&&(r+=i.printDetails(e+"\t"))}return r},t.prototype.testSerialize=function(e){var t=this.definition().nameId(),n=(e?e:"")+(this.name()+" : ")+t+" = "+this.value()+"\n";if(q.isInstance(this.value())){var r=this.value().toHighLevel();if(r&&r.testSerialize)n+=r.testSerialize((e?e:"")+" ");else{var i=this.value().lowLevel(),a=i.dumpToObject(),o=JSON.stringify(a),s="";o.split("\n").forEach(function(t){return s+=(e?e:"")+" "+t+"\n"}),n+=s+"\n"}}return n},t.prototype.isAttr=function(){return!0},t.prototype.isUnknown=function(){return!1},t.prototype.setValue=function(e){N.setValue(this,e),this._value=null},t.prototype.setKey=function(e){N.setKey(this,e),this._value=null},t.prototype.children=function(){return[]},t.prototype.addStringValue=function(e){N.addStringValue(this,e),this._value=null},t.prototype.addStructuredValue=function(e){N.addStructuredValue(this,e),this._value=null},t.prototype.addValue=function(e){if(!this.property().isMultiValue())throw new Error("setValue(string) only apply to multi-values properties");"string"==typeof e?this.addStringValue(e):this.addStructuredValue(e),this._value=null},t.prototype.isEmbedded=function(){var e=this.lowLevel().asMapping().key.value;return this.property().canBeValue()&&e!=this.property().nameId()},t.prototype.remove=function(){N.removeAttr(this)},t.prototype.setValues=function(e){N.setValues(this,e),this._value=null},t.prototype.isEmpty=function(){if(!this.property().isMultiValue())throw new Error("isEmpty() only apply to multi-values attributes");var e=this.parent(),t=(e.lowLevel(),e.attributes(this.name()));if(0==t.length)return!0;if(1==t.length){var n=t[0].lowLevel();return!(!n.isMapping()||null!=n.value())}return!1},t.prototype.isFromKey=function(){return this.fromKey},t.CLASS_IDENTIFIER_ASTPropImpl="highLevelImpl.ASTPropImpl",t}(W);t.ASTPropImpl=z,t.isASTPropImpl=a;var H=new E.BasicNodeBuilder;!function(e){e[e.MERGE=0]="MERGE",e[e.AGGREGATE=1]="AGGREGATE"}(t.OverlayMergeMode||(t.OverlayMergeMode={}));var Y=t.OverlayMergeMode,J=function(e){function t(n,r){if(e.call(this),this._node=n,this._highLevelRoot=r,r.root().getMaster()&&this._node===r.lowLevel()){var i=r.getMasterCounterPart();i&&(this._toMerge=new t(i.lowLevel(),i))}}return g(t,e),t.isInstance=function(e){return null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier&&S.contains(e.getClassIdentifier(),t.CLASS_IDENTIFIER_LowLevelWrapperForTypeSystem)},t.prototype.getClassIdentifier=function(){return e.prototype.getClassIdentifier.call(this).concat(t.CLASS_IDENTIFIER_LowLevelWrapperForTypeSystem)},t.prototype.contentProvider=function(){var e=this._node&&this._node.includeBaseUnit()&&(this._node.includePath&&this._node.includePath()?this._node.includeBaseUnit().resolve(this._node.includePath()):this._node.includeBaseUnit());return new V.ContentProvider(e)},t.prototype.key=function(){var e=this._node.key();return this._node.optional()&&(e+="?"),e},t.prototype.value=function(){var e=this._node.valueKind();if(e===P.Kind.SEQ)return this.children().map(function(e){return e.value()});if(e===P.Kind.MAP||e===P.Kind.ANCHOR_REF){var n=this._node.dumpToObject(!1);return n[this.key()]}if(this._node.kind()==P.Kind.MAP){var n=this._node.dumpToObject(!1);return n}if(e===P.Kind.INCLUDE_REF){var r=null,i=this._node.includePath();try{r=this._node.unit().resolve(i)}catch(e){}if(null!=r&&r.isRAMLUnit()){var a=r.ast(),o=new t(a,r.highLevel().asElement());return a.kind()==P.Kind.SEQ?o.children().map(function(e){return e.value()}):o.value()}}return this._node.value()},t.prototype.children=function(){var e=this;if(this._children)return this._children;"uses"!=this.key()||this._node.parent().parent()?this._children=this._node.children().map(function(n){return new t(n,e._highLevelRoot)}):this._children=this._node.children().map(function(t){return new G(t,e._highLevelRoot)}),this.childByKey={};for(var n=0;n<this._children.length;n++){var r=this._children[n];this.childByKey[r.key()]=r}if(this._toMerge)for(var i=this._toMerge.children(),n=0;n<i.length;n++){var r=i[n],a=this.childByKey[r.key()];a?a._toMerge=r:(this._children.push(r),this.childByKey[r.key()]=r)}return this._children},t.prototype.childWithKey=function(e){return this._children||this.children(),this.childByKey[e]},t.prototype.kind=function(){var e=this._node.valueKind();return e==P.Kind.MAPPING||null===e?K.NodeKind.MAP:e==P.Kind.MAP?K.NodeKind.MAP:this._node.kind()==P.Kind.MAP?K.NodeKind.MAP:e==P.Kind.SEQ?K.NodeKind.ARRAY:e==P.Kind.INCLUDE_REF&&this._node.children().length>0?K.NodeKind.MAP:K.NodeKind.SCALAR},t.prototype.getSource=function(){if(!this._node)return null;var e=this._node.highLevelNode();if(!e){var t=this._node.start(),n=C.deepFindNode(this._highLevelRoot,t,t,!0,!1);return n&&(this._node.setHighLevelParseResult(n),X.isInstance(n)&&this._node.setHighLevelNode(n)),n}return e},t.prototype.node=function(){return this._node},t.CLASS_IDENTIFIER_LowLevelWrapperForTypeSystem="highLevelImpl.LowLevelWrapperForTypeSystem",t}(v.SourceProvider);t.LowLevelWrapperForTypeSystem=J;var G=function(e){function t(){e.apply(this,arguments)}return g(t,e),t.prototype.children=function(){var e=this._node.unit().resolve(this.value());return e&&e.isRAMLUnit()&&e.contents().trim().length>0?new J(e.ast(),this._highLevelRoot).children():[]},t.prototype.anchor=function(){return this._node.actual()},t.prototype.childWithKey=function(e){for(var t=this.children(),n=0;n<t.length;n++)if(t[n].key()==e)return t[n];return null},t}(J);t.UsesNodeWrapperFoTypeSystem=G,t.auxiliaryTypeForExample=o;var X=function(e){function t(t,n,r,i){e.call(this,t,n),this._def=r,this._prop=i,this._expanded=!1,this._allowQuestion=!1,this._subTypesCache=null,this._auxChecked=!1,this.overlayMergeMode=Y.MERGE,t&&t.setHighLevelNode(this),A.LowLevelProxyNode.isInstance(t)&&(this._expanded=!0)}return g(t,e),t.isInstance=function(e){return null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier&&S.contains(e.getClassIdentifier(),t.CLASS_IDENTIFIER_ASTNodeImpl)},t.prototype.getClassIdentifier=function(){return e.prototype.getClassIdentifier.call(this).concat(t.CLASS_IDENTIFIER_ASTNodeImpl)},t.prototype.createIssue=function(e){return w.toIssue(e,this)},t.prototype.validate=function(t){var n=this.definition().key();if((n==R.Universe10.Api||n==R.Universe08.Api||n==R.Universe10.Extension)&&!this.isExpanded()){var r=k.expandTraitsAndResourceTypes(this.wrapperNode()),i=r.highLevel();return i.resetChildren(),i.children(),i._expanded=!0,i.clearTypesCache(),void i.validate(t)}n!=R.Universe10.Overlay&&n!=R.Universe10.Extension||this.clearTypesCache(),e.prototype.validate.call(this,t)},t.prototype.clearTypesCache=function(){if(this._types=null,this.lowLevel()){this.lowLevel().actual().types=null}},t.prototype.types=function(){var e=this;if(!this._types){if(this.parent()&&this.definition().key()!==R.Universe10.Library)return this.parent().types();var t=this.lowLevel().actual();if(t.types)return t.types;this._types=K.parseFromAST(new J(this.lowLevel(),this)),this._types.types().forEach(function(t){x.convertType(e,t).putExtra(v.USER_DEFINED_EXTRA,!0)}),t.types=this._types}return this._types},t.prototype.setTypes=function(e){this._types=e},t.prototype.parsedType=function(){if(!this._ptype){if(this.property()&&this.property().nameId()==R.Universe10.MethodBase.properties.body.name){var e=this.isParametrizedType();this._ptype=K.parseTypeFromAST(this.name(),new J(this.lowLevel(),this),this.types(),!0,!1,!1,e)}else{var t=this.property()&&this.property().nameId()==R.Universe10.LibraryBase.properties.annotationTypes.name,n=!this.property()||this.property().nameId()==R.Universe10.LibraryBase.properties.types.name||this.property().nameId()==R.Universe10.LibraryBase.properties.schemas.name;if(!t&&null==this.parent()){var r=this.universe();r&&r.getOriginalTopLevelText()&&"AnnotationTypeDeclaration"==r.getOriginalTopLevelText()&&(t=!0)}this._ptype=K.parseTypeFromAST(this.name(),new J(this.lowLevel(),this),this.types(),!1,t,n)}this.property()&&F.isTypesProperty(this.property())&&this.parent()&&F.isApiType(this.parent().definition())&&this._ptype.putExtra&&this._ptype.putExtra(v.DEFINED_IN_TYPES_EXTRA,!0);this._ptype.putExtra(v.USER_DEFINED_EXTRA,!0),this._ptype.putExtra(v.SOURCE_EXTRA,this)}return this._ptype},t.prototype.isParametrizedType=function(){var e=!1,t=this.attr(R.Universe10.TypeDeclaration.properties.type.name);if(t){var n=t.value();if("string"==typeof n&&n.indexOf("<<")>=0)for(var r=this.parent();null!=r;){if(F.isResourceTypeType(r.definition())||F.isTraitType(r.definition())){e=!0;break}r=r.parent()}}return e},t.prototype.localType=function(){return x.typeFromNode(this)},t.prototype.patchProp=function(e){this._prop=e},t.prototype.getKind=function(){return b.NodeKind.NODE},t.prototype.wrapperNode=function(){if(!this._wrapperNode){if(F.isExampleSpecType(this.definition())){var e=o(this);return L.examplesFromNominal(e,this,!0,!1)[0]}var t=this.definition()&&this.definition().universe();t&&"RAML10"==t.version()?this.definition()&&this.definition().isAssignableFrom(T.universesInfo.Universe10.LibraryBase.name)||this.children():this.children(),this._wrapperNode=this.buildWrapperNode()}return this._wrapperNode},t.prototype.asElement=function(){return this},t.prototype.buildWrapperNode=function(){var e=this.definition().universe().version();return"RAML10"==e?O.buildWrapperNode(this):"RAML08"==e?U.buildWrapperNode(this):null},t.prototype.propertiesAllowedToUse=function(){var e=this;return this.definition().allProperties().filter(function(t){return e.isAllowedToUse(t)})},t.prototype.isAllowedToUse=function(e){var t=this,n=!0;return!e.getAdapter(M.RAMLPropertyService).isSystem()&&(e.getContextRequirements().forEach(function(e){if(e.name.indexOf("(")!=-1)return!0;var r=t.computedValue(e.name);r?n=n&&r==e.value:e.value&&(n=!1)}),n)},t.prototype.allowRecursive=function(){return!!this.definition().getAdapter(M.RAMLService).isUserDefined()},t.prototype.setWrapperNode=function(e){this._wrapperNode=e},t.prototype.setAssociatedType=function(e){this._associatedDef=e},t.prototype.associatedType=function(){return this._associatedDef},t.prototype.knownIds=function(){return this.isAuxilary(),this._knownIds?this._knownIds:{}},t.prototype.findById=function(e){var t=this,n=this.root();if(n!=this)return n.findById(e);if(!this._knownIds){this._knownIds={};var r=C.allChildren(this);r.forEach(function(e){return t._knownIds[e.id()]=e})}if(this.isAuxilary()){if(!this._slaveIds){this._slaveIds={};var r=C.allChildren(this);r.forEach(function(e){return t._slaveIds[e.id()]=e})}var i=this._slaveIds[e];if(i)return i}return this._knownIds[e]},t.prototype.isAuxilary=function(){if(this._isAux)return!0;if(this._auxChecked)return!1;this._auxChecked=!0;var e=this.getMaster();return!!e&&(this._isAux=!0,this.initilizeKnownIDs(e),!0)},t.prototype.initilizeKnownIDs=function(e){var t=this;this._knownIds={},C.allChildren(e).forEach(function(e){return t._knownIds[e.id()]=e}),this._knownIds[""]=e},t.prototype.getMaster=function(){if(this.masterApi)return this.masterApi;var e=this.calculateMasterByRef();return e&&e.setSlave(this),e},t.prototype.overrideMaster=function(e){this.masterApi=e,this.resetAuxilaryState(),e&&e.setSlave(this)},t.prototype.setSlave=function(e){this.slave=e},t.prototype.setMergeMode=function(e){this.overlayMergeMode=e,this.resetAuxilaryState()},t.prototype.getMergeMode=function(){return this.overlayMergeMode},t.prototype.calculateMasterByRef=function(){var e=this.lowLevel().unit();if(!e)return null;var t=e.getMasterReferenceNode();if(!t||!t.value())return null;var n=this.lowLevel();if(n.master)return n.master;var r=t.value(),i=this.lowLevel().unit().project().resolve(this.lowLevel().unit().path(),r);if(!i)return null;var a=i.expandedHighLevel();return a.setMergeMode(this.overlayMergeMode),n.master=a,a},t.prototype.resetAuxilaryState=function(){this._isAux=!1,this._auxChecked=!1,this._knownIds=null,this.clearChildrenCache()},t.prototype.printDetails=function(e){var t="";return e||(e=""),t+=e+this.definition().nameId()+"["+(this.property()?this.property().range().nameId():"")+"] <--- "+(this.property()?this.property().nameId():"")+"\n",this.children().forEach(function(n){t+=n.printDetails(e+"\t")}),t},t.prototype.testSerialize=function(e){var t="";return e||(e=""),t+=e+this.definition().nameId()+" <-- "+(this.property()?this.property().nameId():"")+"\n",this.children().forEach(function(n){n.testSerialize&&(t+=n.testSerialize(e+" "))}),t},t.prototype.getExtractedChildren=function(){var e=this.root();if(e.isAuxilary()){if(e._knownIds){var t=e._knownIds[this.id()];if(t){return t.children()}}return[]}return[]},t.prototype.getMasterCounterPart=function(){var e=this.root();if(e.isAuxilary()){if(e._knownIds){return e._knownIds[this.id()]}return null}return null},t.prototype.getExtractedLowLevelChildren=function(e){var t=this.root();if(t.isAuxilary()){if(t._knownLowLevelIds){var n=t._knownLowLevelIds[this.id()];if(n)return n.children()}return[]}return[]},t.prototype.allowsQuestion=function(){return this._allowQuestion||this.definition().getAdapter(M.RAMLService).getAllowQuestion()},t.prototype.findReferences=function(){var e=this,t=[];C.refFinder(this.root(),this,t),t.length>1&&(t=t.filter(function(t){return t!=e&&t.parent()!=e}));var n=[];return t.forEach(function(e){S.find(n,function(t){return t==e})||n.push(e)}),n},t.prototype.setNamePatch=function(e){this._patchedName=e},t.prototype.isNamePatch=function(){return this._patchedName},t.prototype.name=function(){if(this._patchedName)return this._patchedName;var t=S.find(this.directChildren(),function(e){return e.property()&&e.property().getAdapter(M.RAMLPropertyService).isKey()});if(t&&z.isInstance(t)){var n=null,r=this.definition(),i=r.universe().version();if(r&&"RAML10"==i&&t.isFromKey()){var a=this._node.key();n=this._node.optional()?a+"?":a}else n=t.value();return n}return e.prototype.name.call(this)},t.prototype.findElementAtOffset=function(e){return this._findNode(this,e,e)},t.prototype.isElement=function(){return!0},t.prototype.universe=function(){return this._universe?this._universe:this.definition().universe()},t.prototype.setUniverse=function(e){this._universe=e},t.prototype._findNode=function(e,t,n){var r=this;if(null==e)return null;if(e.lowLevel()&&e.lowLevel().start()<=t&&e.lowLevel().end()>=n){var i=e;return e.elements().forEach(function(a){if(a.lowLevel().unit()==e.lowLevel().unit()){var o=r._findNode(a,t,n);o&&(i=o)}}),i}return null},t.prototype.isStub=function(){return!this.lowLevel().unit()||this.lowLevel().unit().isStubUnit()},t.prototype.add=function(e){N.addToNode(this,e)},t.prototype.remove=function(e){N.removeNodeFrom(this,e)},t.prototype.dump=function(e){return this._node.dump()},t.prototype.patchType=function(e){this._def=e;this._associatedDef;this._associatedDef=null,this._children=null,this._mergedChildren=null},t.prototype.children=function(){var e=this.lowLevel();return e&&e.isValueInclude&&e.isValueInclude()&&B.isWaitingFor(e.includePath())?(this._children=null,[]):this._children?this._mergedChildren?this._mergedChildren:(this._mergedChildren=this.mergeChildren(this._children,this.getExtractedChildren()),this._mergedChildren):this._node?(this._children=H.process(this,this._node.children()),this._children=this._children.filter(function(e){return null!=e}),this.mergeChildren(this._children,this.getExtractedChildren())):[]},t.prototype.mergeChildren=function(e,t){var n=this,r=this.root();if(r.overlayMergeMode==Y.AGGREGATE)return e.concat(t);if(r.overlayMergeMode==Y.MERGE){var i=[];return e.forEach(function(e){var r=S.find(t,function(t){return t.fullLocalId()==e.fullLocalId()});r?n.mergeChild(i,e,r):i.push(e)}),t.forEach(function(t){S.find(e,function(e){return t.fullLocalId()==e.fullLocalId()})||i.push(t)}),i}return null},t.prototype.mergeLowLevelChildren=function(e,t){var n=this,r=this.root();if(r.overlayMergeMode==Y.AGGREGATE)return e.concat(t);if(r.overlayMergeMode==Y.MERGE){var i=[];return e.forEach(function(e){var r=S.find(t,function(t){return t.key()==e.key()});r?n.mergeLowLevelChild(i,e,r):i.push(e)}),t.forEach(function(t){S.find(e,function(e){return t.key()==e.key()})||i.push(t)}),i}return null},t.prototype.mergeLowLevelChild=function(e,t,n){if(t.kind()!=n.kind())return e.push(t),void e.push(n);e.push(t)},t.prototype.mergeChild=function(e,t,n){return t.getKind()!=n.getKind()?(e.push(t),void e.push(n)):t.getKind()==b.NodeKind.NODE?void e.push(t):t.getKind()==b.NodeKind.ATTRIBUTE?void e.push(t):t.getKind()==b.NodeKind.BASIC?(e.push(t),void e.push(n)):void 0},t.prototype.directChildren=function(){return this._children?this._children:this._node?(this._children=H.process(this,this._node.children()),this._mergedChildren=null,this._children):[]},t.prototype.resetChildren=function(){this._children=null,this._mergedChildren=null},t.prototype.isEmptyRamlFile=function(){return this.lowLevel().root().isScalar()},t.prototype.initRamlFile=function(){N.initEmptyRAMLFile(this)},t.prototype.createAttr=function(e,t){N.createAttr(this,e,t)},t.prototype.isAttr=function(){return!1},t.prototype.isUnknown=function(){return!1},t.prototype.value=function(){return this._node.value()},t.prototype.valuesOf=function(e){var t=this._def.property(e);return null!=t?this.elements().filter(function(e){return e.property()==t}):[]},t.prototype.attr=function(e){return S.find(this.attrs(),function(t){return t.name()==e})},t.prototype.attrOrCreate=function(e){return this.attr(e)||this.createAttr(e,""),this.attr(e)},t.prototype.attrValue=function(e){var t=this.attr(e);return t?t.value():null},t.prototype.attributes=function(e){return S.filter(this.attrs(),function(t){return t.name()==e})},t.prototype.attrs=function(){var e=this.children().filter(function(e){return e.isAttr()});if(this._patchedName){var t=S.find(this.definition().allProperties(),function(e){return e.getAdapter(M.RAMLPropertyService).isKey()});if(t){var n=new z(this.lowLevel(),this,t.range(),t,!0);return n._value=this._patchedName,[n].concat(e)}}return e},t.prototype.elements=function(){return this.children().filter(function(e){return!e.isAttr()&&!e.isUnknown()})},t.prototype.element=function(e){var t=this.elementsOfKind(e);return t.length>0?t[0]:null},t.prototype.elementsOfKind=function(e){return this.elements().filter(function(t){return t.property().nameId()==e})},t.prototype.definition=function(){return this._def},t.prototype.property=function(){return this._prop},t.prototype.isExpanded=function(){return this._expanded},t.prototype.copy=function(){return new t(this.lowLevel().copy(),this.parent(),this.definition(),this.property())},t.prototype.clearChildrenCache=function(){this._children=null,this._mergedChildren=null},t.prototype.optionalProperties=function(){var e=this.definition();if(null==e)return[];var t=[],n={};return this.lowLevel().children().forEach(function(e){e.optional()&&(n[e.key()]=!0)}),e.allProperties().forEach(function(e){var r=e;n[r.nameId()]&&t.push(r.nameId())}),t},t.prototype.setReuseMode=function(e){this._reuseMode=e,this._children&&this.lowLevel().valueKind()!=P.Kind.SEQ&&this._children.forEach(function(t){return t.setReuseMode(e)})},t.prototype.reusedNode=function(){return this._reusedNode},t.prototype.setReusedNode=function(e){this._reusedNode=e},t.prototype.resetRuntimeTypes=function(){delete this._associatedDef,this.elements().forEach(function(e){return e.resetRuntimeTypes()})},t.CLASS_IDENTIFIER_ASTNodeImpl="highLevelImpl.ASTNodeImpl",t}(W);t.ASTNodeImpl=X,t.universeProvider=n(88);var $=function(e,n){var r=s(e),i=r&&r[1]||"",a=r&&r.length>2&&r[2]||"Api",o=r&&r.length>2&&r[2],u="1.0"==i?new T.Universe(null,"RAML10",t.universeProvider("RAML10"),"RAML10"):new T.Universe(null,"RAML08",t.universeProvider("RAML08"));return"API"==a?a="Api":"NamedExample"==a?a="ExampleSpec":"DataType"==a?a="TypeDeclaration":"SecurityScheme"==a?a="AbstractSecurityScheme":"AnnotationTypeDeclaration"==a&&(a="TypeDeclaration"),u.setOriginalTopLevelText(o),u.setTopLevel(a),u.setTypedVersion(i),{ptype:a,localUniverse:u}};t.ramlFirstLine=s,t.getFragmentDefenitionName=u,t.fromUnit=c,t.createBasicValidationAcceptor=l,t.isAnnotationTypeFragment=p;var Q=function(){function e(e){this._node=e}return e.prototype.kind=function(){return"AnnotatedNode"},e.prototype.annotationsMap=function(){var e=this;return this._annotationsMap||(this._annotationsMap={},this.annotations().forEach(function(t){var n=t.name(),r=n.lastIndexOf(".");r>=0&&(n=n.substring(r+1)),e._annotationsMap[n]=t})),this._annotationsMap},e.prototype.annotations=function(){if(!this._annotations){var e=[];this._node.isElement()?e=this._node.asElement().attributes(T.universesInfo.Universe10.Annotable.properties.annotations.name):this._node.isAttr()&&(e=this._node.asAttr().annotations()),this._annotations=e.map(function(e){return new Z(e)})}return this._annotations},e.prototype.value=function(){if(this._node.isElement())return this._node.asElement().wrapperNode().toJSON();if(this._node.isAttr()){var e=this._node.asAttr().value();return q.isInstance(e)?e.lowLevel().dump():e}return this._node.lowLevel().dump()},e.prototype.name=function(){return this._node.name()},e.prototype.entry=function(){return this._node},e}();t.AnnotatedNode=Q;var Z=function(){function e(e){this.attr=e}return e.prototype.name=function(){return this.attr.value().valueName()},e.prototype.value=function(){var e=this.attr.value();if(q.isInstance(e)){var t=e.lowLevel().dumpToObject();return t[Object.keys(t)[0]]}return e},e.prototype.definition=function(){var e=this.attr.parent(),t=this.name(),n=C.referenceTargets(this.attr.property(),e).filter(function(n){return r(n,e)==t});return 0==n.length?null:n[0].parsedType()},e}();t.AnnotationInstance=Z,t.applyNodeValidationPlugins=d,t.applyNodeAnnotationValidationPlugins=m,t.toParserErrors=h},function(e,t,n){"use strict";function r(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.documentation.name||e.nameId()===qe.Universe08.Api.properties.documentation.name)}function i(e){return e===qe.Universe10.Trait.properties.usage.name||e===qe.Universe08.Trait.properties.usage.name||e===qe.Universe10.ResourceType.properties.usage.name||e===qe.Universe08.ResourceType.properties.usage.name||e===qe.Universe10.Library.properties.usage.name||e===qe.Universe10.Overlay.properties.usage.name||e===qe.Universe10.Extension.properties.usage.name}function a(e){return!!e&&i(e.nameId())}function o(e){return!!e&&(e.nameId()==qe.Universe10.Overlay.properties.extends.name||e.nameId()==qe.Universe10.Extension.properties.extends.name)}function s(e){return e===qe.Universe10.TypeDeclaration.properties.description.name||"description"===e}function u(e){return!!e&&s(e.nameId())}function c(e){return e===qe.Universe10.TypeDeclaration.properties.required.name||e===qe.Universe08.Parameter.properties.required.name||"required"===e}function l(e){return e===qe.Universe10.TypeDeclaration.properties.displayName.name||"displayName"===e}function p(e){return!!e&&l(e.nameId())}function f(e){return!!e&&c(e.nameId())}function d(e){return e===qe.Universe10.Api.properties.title.name||e===qe.Universe08.Api.properties.title.name||e===qe.Universe10.DocumentationItem.properties.title.name||e===qe.Universe08.DocumentationItem.properties.title.name||e===qe.Universe10.Overlay.properties.title.name||e===qe.Universe10.Extension.properties.title.name}function m(e){return!!e&&d(e.nameId())}function h(e){return!!e&&y(e.nameId())}function y(e){return e===qe.Universe08.MethodBase.properties.headers.name||e===qe.Universe08.Response.properties.headers.name||e===qe.Universe08.SecuritySchemePart.properties.headers.name||e===qe.Universe10.MethodBase.properties.headers.name||e===qe.Universe10.Response.properties.headers.name}function _(e){return!!e&&g(e.nameId())}function g(e){return e===qe.Universe08.BodyLike.properties.formParameters.name}function v(e){return!!e&&b(e.nameId())}function b(e){return e===qe.Universe08.MethodBase.properties.queryParameters.name||e===qe.Universe08.SecuritySchemePart.properties.queryParameters.name||e===qe.Universe10.MethodBase.properties.queryParameters.name}function S(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.annotations.name||e.nameId()===qe.Universe10.TypeDeclaration.properties.annotations.name||e.nameId()===qe.Universe10.Response.properties.annotations.name)}function A(e){return!!e&&e.nameId()===qe.Universe10.AnnotationRef.properties.annotation.name}function T(e){return!!e&&(e.nameId()===qe.Universe10.MethodBase.properties.is.name||e.nameId()===qe.Universe08.Method.properties.is.name||e.nameId()===qe.Universe10.ResourceBase.properties.is.name||e.nameId()===qe.Universe08.ResourceType.properties.is.name||e.nameId()===qe.Universe08.Resource.properties.is.name)}function E(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.securedBy.name||e.nameId()===qe.Universe08.Api.properties.securedBy.name||e.nameId()===qe.Universe10.MethodBase.properties.securedBy.name||e.nameId()===qe.Universe08.MethodBase.properties.securedBy.name||e.nameId()===qe.Universe08.ResourceType.properties.securedBy.name||e.nameId()===qe.Universe08.Resource.properties.securedBy.name||e.nameId()===qe.Universe10.ResourceBase.properties.securedBy.name)}function C(e){return!!e&&(e.nameId()===qe.Universe10.LibraryBase.properties.securitySchemes.name||e.nameId()===qe.Universe08.Api.properties.securitySchemes.name)}function N(e){return!!e&&(e.nameId()===qe.Universe10.SecuritySchemeRef.properties.securityScheme.name||e.nameId()===qe.Universe08.SecuritySchemeRef.properties.securityScheme.name)}function w(e){return!!e&&(e.nameId()===qe.Universe10.AbstractSecurityScheme.properties.type.name||e.nameId()===qe.Universe08.AbstractSecurityScheme.properties.type.name||e.nameId()===qe.Universe08.ResourceType.properties.type.name||e.nameId()===qe.Universe08.Resource.properties.type.name||e.nameId()===qe.Universe08.Parameter.properties.type.name||e.nameId()===qe.Universe10.ResourceBase.properties.type.name||e.nameId()===qe.Universe10.TypeDeclaration.properties.type.name)}function k(e){return!!e&&e.nameId()===qe.Universe10.ArrayTypeDeclaration.properties.items.name}function x(e){return!!e&&e.nameId()===qe.Universe10.ArrayTypeDeclaration.properties.structuredItems.name}function R(e){return!!e&&e.nameId()===qe.Universe10.ObjectTypeDeclaration.properties.properties.name}function I(e){return!!e&&(e.nameId()===qe.Universe10.MethodBase.properties.responses.name||e.nameId()===qe.Universe08.MethodBase.properties.responses.name)}function D(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.protocols.name||e.nameId()===qe.Universe08.Api.properties.protocols.name||e.nameId()===qe.Universe10.MethodBase.properties.protocols.name)}function M(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.properties.name.name||e.nameId()===qe.Universe10.TypeDeclaration.properties.name.name||e.nameId()===qe.Universe08.AbstractSecurityScheme.properties.name.name||e.nameId()===qe.Universe10.AbstractSecurityScheme.properties.name.name||e.nameId()===qe.Universe08.Trait.properties.name.name||e.nameId()===qe.Universe10.Trait.properties.name.name||"name"===e.nameId())}function P(e){return!!e&&(e.nameId()===qe.Universe10.MethodBase.properties.body.name||e.nameId()===qe.Universe08.MethodBase.properties.body.name||e.nameId()===qe.Universe10.Response.properties.body.name||e.nameId()===qe.Universe08.Response.properties.body.name)}function L(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.properties.default.name||e.nameId()===qe.Universe08.Parameter.properties.default.name)}function O(e){return!!e&&(e.nameId()===qe.Universe08.BodyLike.properties.schema.name||e.nameId()===qe.Universe08.XMLBody.properties.schema.name||e.nameId()===qe.Universe08.JSONBody.properties.schema.name||e.nameId()===qe.Universe10.TypeDeclaration.properties.schema.name)}function U(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.traits.name||e.nameId()===qe.Universe10.LibraryBase.properties.traits.name)}function F(e){return!!e&&(e.nameId()===qe.Universe08.TraitRef.properties.trait.name||e.nameId()===qe.Universe10.TraitRef.properties.trait.name)}function B(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.resourceTypes.name||e.nameId()===qe.Universe10.LibraryBase.properties.resourceTypes.name)}function K(e){return!!e&&(e.nameId()===qe.Universe08.ResourceTypeRef.properties.resourceType.name||e.nameId()===qe.Universe10.ResourceTypeRef.properties.resourceType.name)}function V(e){return!!e&&e.nameId()===qe.Universe10.TypeDeclaration.properties.facets.name}function j(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.schemas.name||e.nameId()===qe.Universe10.LibraryBase.properties.schemas.name)}function W(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.resources.name||e.nameId()===qe.Universe08.Api.properties.resources.name||e.nameId()===qe.Universe10.Resource.properties.resources.name||e.nameId()===qe.Universe08.Resource.properties.resources.name)}function q(e){return!!e&&(e.nameId()===qe.Universe10.ResourceBase.properties.methods.name||e.nameId()===qe.Universe08.Resource.properties.methods.name||e.nameId()===qe.Universe08.ResourceType.properties.methods.name)}function z(e){return e&&e.nameId()===qe.Universe10.LibraryBase.properties.types.name}function H(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.properties.example.name||"example"===e.nameId())}function Y(e){return!!e&&(e.nameId()===qe.Universe10.StringTypeDeclaration.properties.enum.name||e.nameId()===qe.Universe10.NumberTypeDeclaration.properties.enum.name||e.nameId()===qe.Universe08.StringTypeDeclaration.properties.enum.name)}function J(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.properties.example.name||e.nameId()===qe.Universe10.TypeDeclaration.properties.examples.name)}function G(e){return!!e&&e.nameId()===qe.Universe08.GlobalSchema.properties.value.name}function X(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.uriParameters.name||e.nameId()===qe.Universe08.ResourceType.properties.uriParameters.name||e.nameId()===qe.Universe08.Resource.properties.uriParameters.name||e.nameId()===qe.Universe10.ResourceBase.properties.uriParameters.name)}function $(e){return!!e&&(e.nameId()===qe.Universe08.Resource.properties.baseUriParameters.name||e.nameId()===qe.Universe08.Api.properties.baseUriParameters.name||e.nameId()===qe.Universe10.Api.properties.baseUriParameters.name)}function Q(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.RAMLVersion.name||e.nameId()===qe.Universe10.Api.properties.RAMLVersion.name)}function Z(e){return!!e&&e.nameId()===qe.Universe10.FragmentDeclaration.properties.uses.name}function ee(e){return!!e&&e.nameId()===qe.Universe10.LibraryBase.properties.annotationTypes.name}function te(e){return e.key()==qe.Universe10.Method||e.key()==qe.Universe08.Method}function ne(e){return e.key()==qe.Universe10.Api||e.key()==qe.Universe08.Api}function re(e){return e.key()==qe.Universe10.BooleanType||e.key()==qe.Universe08.BooleanType}function ie(e){return e.key()==qe.Universe10.MarkdownString||e.key()==qe.Universe08.MarkdownString}function ae(e){return e.key()==qe.Universe10.Resource||e.key()==qe.Universe08.Resource}function oe(e){return e.key()==qe.Universe10.Trait||e.key()==qe.Universe08.Trait}function se(e){return e.key()==qe.Universe10.TraitRef||e.key()==qe.Universe08.TraitRef}function ue(e){return e.key()==qe.Universe10.ResourceTypeRef||e.key()==qe.Universe08.ResourceTypeRef}function ce(e){return e.key()==qe.Universe08.GlobalSchema}function le(e){return e.key()==qe.Universe10.AbstractSecurityScheme||e.key()==qe.Universe08.AbstractSecurityScheme}function pe(e){return e.isAssignableFrom(qe.Universe10.AbstractSecurityScheme.name)}function fe(e){return e.key()==qe.Universe10.SecuritySchemeRef||e.key()==qe.Universe08.SecuritySchemeRef}function de(e){return e.key()==qe.Universe10.TypeDeclaration}function me(e){return e.key()==qe.Universe10.Response||e.key()==qe.Universe08.Response}function he(e){return e.key()==qe.Universe08.BodyLike}function ye(e){return e.key()==qe.Universe10.Overlay}function _e(e){return!1}function ge(e){return e.key()==qe.Universe10.ResourceType||e.key()==qe.Universe08.ResourceType}function ve(e){return e.key()==qe.Universe10.SchemaString||e.key()==qe.Universe08.SchemaString}function be(e){return e.key()==qe.Universe10.MethodBase||e.key()==qe.Universe08.MethodBase}function Se(e){return e.key()==qe.Universe10.Library}function Ae(e){return e.key()==qe.Universe10.StringType||e.key()==qe.Universe08.StringType}function Te(e){return e.key()==qe.Universe10.ExampleSpec}function Ee(e){return e.key()==qe.Universe10.Extension}function Ce(e){return e.isAssignableFrom(qe.Universe10.TypeDeclaration.name)}function Ne(e){return e.key()==qe.Universe10.DocumentationItem||e.key()==qe.Universe08.DocumentationItem}function we(e){return e.isAssignableFrom(qe.Universe10.AnnotationRef.name)}function ke(e){return e.isAssignableFrom(qe.Universe10.Api.name)||e.isAssignableFrom(qe.Universe08.Api.name)}function xe(e){return e.isAssignableFrom(qe.Universe10.LibraryBase.name)}function Re(e){return e.isAssignableFrom(qe.Universe10.ResourceBase.name)||e.isAssignableFrom(qe.Universe08.Resource.name)}function Ie(e){return e.isAssignableFrom(qe.Universe10.ObjectTypeDeclaration.name)}function De(e){return e.isAssignableFrom(qe.Universe10.TypeDeclaration.name)}function Me(e){return e.isAssignableFrom(qe.Universe10.StringTypeDeclaration.name)}function Pe(e){return e.isAssignableFrom(qe.Universe10.TypeDeclaration.name)}function Le(e){return e.isAssignableFrom(qe.Universe10.MethodBase.name)||e.isAssignableFrom(qe.Universe08.MethodBase.name)}function Oe(e){return e.key()==qe.Universe10.SecuritySchemePart||e.key()==qe.Universe08.SecuritySchemePart}function Ue(e){return e.nameId()===qe.Universe08.Api.properties.mediaType.name||e.nameId()===qe.Universe10.Api.properties.mediaType.name}function Fe(e){return"RAML08"==e.universe().version()}function Be(e){return"RAML10"==e.universe().version()}function Ke(e){return Fe(e.definition())}function Ve(e){return Fe(e.definition())}function je(e){return Be(e.definition())}function We(e){return Be(e.definition())}var qe=n(3);t.isDocumentationProperty=r,t.isUsagePropertyName=i,t.isUsageProperty=a,t.isMasterRefProperty=o,t.isDescriptionPropertyName=s,t.isDescriptionProperty=u,t.isRequiredPropertyName=c,t.isDisplayNamePropertyName=l,t.isDisplayNameProperty=p,t.isRequiredProperty=f,t.isTitlePropertyName=d,t.isTitleProperty=m,t.isHeadersProperty=h,t.isHeadersPropertyName=y,t.isFormParametersProperty=_,t.isFormParametersPropertyName=g,t.isQueryParametersProperty=v,t.isQueryParametersPropertyName=b,t.isAnnotationsProperty=S,t.isAnnotationProperty=A,t.isIsProperty=T,t.isSecuredByProperty=E,t.isSecuritySchemesProperty=C,t.isSecuritySchemeProperty=N,t.isTypeProperty=w,t.isItemsProperty=k,t.isStructuredItemsProperty=x,t.isPropertiesProperty=R,t.isResponsesProperty=I,t.isProtocolsProperty=D,t.isNameProperty=M,t.isBodyProperty=P,t.isDefaultValue=L,t.isSchemaProperty=O,t.isTraitsProperty=U,t.isTraitProperty=F,t.isResourceTypesProperty=B,t.isResourceTypeProperty=K,t.isFacetsProperty=V,t.isSchemasProperty=j,t.isResourcesProperty=W,t.isMethodsProperty=q,t.isTypesProperty=z,t.isExampleProperty=H,t.isEnumProperty=Y,t.isExamplesProperty=J,t.isValueProperty=G,t.isUriParametersProperty=X,t.isBaseUriParametersProperty=$,t.isRAMLVersionProperty=Q,t.isUsesProperty=Z,t.isAnnotationTypesProperty=ee,t.isMethodType=te,t.isApiType=ne,t.isBooleanTypeType=re,t.isMarkdownStringType=ie,t.isResourceType=ae,t.isTraitType=oe,t.isTraitRefType=se,t.isResourceTypeRefType=ue,t.isGlobalSchemaType=ce,t.isSecuritySchemaType=le,t.isSecuritySchemaTypeDescendant=pe,t.isSecuritySchemeRefType=fe,t.isTypeDeclarationType=de,t.isResponseType=me,t.isBodyLikeType=he,t.isOverlayType=ye,t.isAnnotationTypeType=_e,t.isResourceTypeType=ge,t.isSchemaStringType=ve,t.isMethodBaseType=be,t.isLibraryType=Se,t.isStringTypeType=Ae,t.isExampleSpecType=Te,t.isExtensionType=Ee,t.isTypeDeclarationTypeOrDescendant=Ce,t.isDocumentationType=Ne,t.isAnnotationRefTypeOrDescendant=we,t.isApiSibling=ke,t.isLibraryBaseSibling=xe,t.isResourceBaseSibling=Re,t.isObjectTypeDeclarationSibling=Ie,t.isTypeDeclarationDescendant=De,t.isStringTypeDeclarationDescendant=Me,t.isTypeDeclarationSibling=Pe,t.isMethodBaseSibling=Le,t.isSecuritySchemePartType=Oe,t.isMediaTypeProperty=Ue,t.isRAML08Type=Fe,t.isRAML10Type=Be,t.isRAML08Node=Ke,t.isRAML08Attribute=Ve,t.isRAML10Node=je,t.isRAML10Attribute=We},function(e,t,n){"use strict";function r(){return new T(T.OK,"","",null)}function i(e,t,n,r,i){void 0===n&&(n={}),void 0===r&&(r=T.ERROR),void 0===i&&(i=!1);var a=E(e,n);return new T(r,e.code,a,t,i)}function a(){return te}function o(e,t){return new Z(e,t)}function s(e,t){return new ee(e,t)}function u(e,n){var r=new $(e);return n.forEach(function(e){return r.addSuper(e)}),r.isSubTypeOf(t.NIL)&&(r.nullable=!0),r}function c(e){return u(e,[t.OBJECT])}function l(e,t,n){if(t.isScalar()&&n.isScalar()){if(t.allSubTypes().indexOf(n)!=-1)return t;if(n.allSubTypes().indexOf(t)!=-1)return n}var r=t.oneMeta(x.Discriminator),i=n.oneMeta(x.Discriminator);if(r&&i&&r.property===i.property){var a=t.descValue(),o=n.descValue();if(a!==o){var s=e[r.property];if(s===a)return t;if(s===o)return n}}return null}function p(e){return parseFloat(e)==parseInt(e)&&!isNaN(e)}function f(e){for(var t=[];null!=e;){if(null!=e.name()){t.push(e.name());break}if(!(e instanceof $))break;var n=e.contextMeta();if(null==n)break;t.push(n.path()),e=n._owner}return t.reverse()}function d(e,n,a){var o=n.metaOfType(x.Discriminator);if(0==o.length)return null;var s=o[0].value(),u=b.find([n].concat(n.allSuperTypes()),function(e){return e.getExtra(t.GLOBAL)});if(!u)return null;var c=u.name(),l=n.metaOfType(x.DiscriminatorValue);if(0!=l.length&&(c=l[0].value()),c){if(e.hasOwnProperty(s)){var p=e[s];if(p!=c){var f=i(T.CODE_INCORRECT_DISCRIMINATOR,this,{rootType:u.name(),value:p,propName:s},T.WARNING);return m(f,{name:s,child:a}),f}return r()}var d=i(T.CODE_MISSING_DISCRIMINATOR,this,{rootType:u.name(),propName:s});return m(d,a),d}}function m(e,t){if(e.getValidationPath()){for(var n=h(t),r=n;r.child;)r=r.child;r.child=e.getValidationPath(),e.setValidationPath(n)}else e.setValidationPath(t);e.getSubStatuses().forEach(function(e){m(e,t)})}function h(e){if(e){for(var t=e,n=null,r=null;t;)if(n){var i={name:t.name};r.child=i,t=t.child,r=i}else n={name:t.name},r=n,t=t.child,r=n;return n}return null}function y(e){for(var t=A.getAnnotationValidationPlugins(),n=[],r=0,i=t;r<i.length;r++){var a=i[r],o=a.process(e);o&&o.forEach(function(t){n.push(g(t,a.id(),e.entry()))})}return n}function _(e,t){for(var n=A.getTypeValidationPlugins(),r=[],i=0,a=n;i<a.length;i++){var o=a[i],s=o.process(e,t);s&&s.forEach(function(t){r.push(g(t,o.id(),e))})}return r}function g(e,t,n){var r=e.isWarning?T.WARNING:T.ERROR,i=e.issueCode||t,a=e.message||"The "+t+" plugin reports an error",o=new T(r,i,a,n);return o.setValidationPath(e.path),o}var v=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},b=n(1),S=n(92),A=n(48);t.messageRegistry=n(344);var T=function(){function e(e,t,n,r,i){void 0===i&&(i=!1),this.takeNodeFromSource=i,this.subStatus=[],this.severity=e,this.code=t,this.message=n,this.source=r}return e.prototype.getValidationPath=function(){return this.vp},e.prototype.getValidationPathAsString=function(){if(!this.vp)return"";for(var e="",t=this.vp;t;)e+=t.name,t.child&&(e+="/"),t=t.child;return e},e.prototype.setValidationPath=function(e){this.vp=e},e.prototype.addSubStatus=function(t,n){if(void 0===n&&(n=null),t){n&&m(t,{name:n}),this.subStatus.push(t);var r=e.OK;t.isOk()||(t.isError()?r=e.ERROR:t.isWarning()?r=e.WARNING:t.isInfo()&&(r=e.INFO)),this.severity<r&&(this.severity=r,this.message=t.getMessage())}},e.prototype.getErrors=function(){if(this.isError()||this.isWarning()){if(this.subStatus.length>0){var e=[];return this.subStatus.forEach(function(t){return e=e.concat(t.getErrors())}),e}return[this]}return[]},e.prototype.getSubStatuses=function(){return this.subStatus},e.prototype.getSeverity=function(){return this.severity},e.prototype.getMessage=function(){return this.message},e.prototype.setMessage=function(e){this.message=e},e.prototype.getSource=function(){return this.source},e.prototype.getCode=function(){return this.code},e.prototype.setCode=function(e){this.code=e},e.prototype.isWarning=function(){return this.severity==e.WARNING},e.prototype.isError=function(){return this.severity==e.ERROR},e.prototype.isOk=function(){return this.severity===e.OK},e.prototype.isInfo=function(){return this.severity===e.INFO},e.prototype.setSource=function(e){this.source=e},e.prototype.toString=function(){return this.isOk()?"OK":this.message},e.prototype.getExtra=function(e){return this.takeNodeFromSource&&e==A.SOURCE_EXTRA&&this.source instanceof C?this.source.node():null},e.prototype.putExtra=function(e,t){},e.CODE_CONFLICTING_TYPE_KIND=4,e.CODE_INCORRECT_DISCRIMINATOR=t.messageRegistry.INCORRECT_DISCRIMINATOR,e.CODE_MISSING_DISCRIMINATOR=t.messageRegistry.MISSING_DISCRIMINATOR,e.ERROR=3,e.INFO=1,e.OK=0,e.WARNING=2,e}();t.Status=T,t.ok=r,t.SCHEMA_AND_TYPE=A.SCHEMA_AND_TYPE_EXTRA,t.GLOBAL=A.GLOBAL_EXTRA,t.TOPLEVEL=A.TOP_LEVEL_EXTRA,t.SOURCE_EXTRA=A.SOURCE_EXTRA;var E=function(e,t){for(var n="",r=e.message,i=0,a=r.indexOf("{{");a>=0;a=r.indexOf("{{",i)){if(n+=r.substring(i,a),(i=r.indexOf("}}",a))<0){i=a;break}a+="{{".length;var o=r.substring(a,i);i+="}}".length;var s=t[o];if(void 0===s)throw new Error("Message parameter '"+o+"' has no value specified.");n+=s}return n+=r.substring(i,r.length)};t.error=i;var C=function(){function e(e){this._inheritable=e,this._annotations=[]}return e.prototype.node=function(){return this._node},e.prototype.setNode=function(e){this._node=e},e.prototype.owner=function(){return this._owner},e.prototype.isInheritable=function(){return this._inheritable},e.prototype.validateSelf=function(e){for(var t=r(),n=0,i=this._annotations;n<i.length;n++){var a=i[n],o=a.validateSelf(e);o.isOk()||t.addSubStatus(o)}for(var s=new ye(this,e),u=y(s),c=0,l=u;c<l.length;c++){var p=l[c];t.addSubStatus(p)}return m(t,{name:this.facetName()}),t},e.prototype.requiredTypes=function(){return[]},e.prototype.annotations=function(){return this._annotations},e.prototype.addAnnotation=function(e){this._annotations.push(e)},e}();t.TypeInformation=C;var N=null,w=function(e){function t(t){void 0===t&&(t=!0),e.call(this,t)}return v(t,e),t.prototype.intersect=function(e,n){var r=e.id()+""+n.id();if(t.intersections.hasOwnProperty(r))return t.intersections[r];var i=s(r,[e,n]);return t.intersections[r]=i,i},t.prototype.release=function(e){delete t.intersections[e.name()]},t.prototype.nothing=function(e,t){return void 0===t&&(t="Conflicting restrictions"),new ie(N,t,e)},t.prototype.composeWith=function(e){return null},t.prototype.preoptimize=function(){null===N&&(N=new re(null,null,"top")),N=N.push(this);try{return this.innerOptimize()}finally{N=N.pop()}},t.prototype.innerOptimize=function(){return this},t.prototype.tryCompose=function(e){null===N&&(N=new re(null,null,"top")),N=N.push(this);try{return this.composeWith(e)}finally{N=N.pop()}},t.prototype.kind=function(){return A.MetaInformationKind.Constraint},t.prototype.conflictMessage=function(e,t){return null},t.intersections={},t}(C);t.Constraint=w;var k=n(8),x=n(7),R=n(65),I=n(8),D=n(7),M=n(7),P=n(8),L=n(8),O=n(148),U=n(7),F=n(8);t.autoCloseFlag=!1;var B=function(){function e(e){void 0===e&&(e=null),this._parent=e,this._types={},this.typeList=[]}return e.prototype.put=function(e,t){this._types[e]=t},e.prototype.addType=function(e){e.isAnonymous()||(this._types[e.name()]=e,this.typeList.push(e))},e.prototype.get=function(e){return this._types.hasOwnProperty(e)?this._types[e]:null!=this._parent?this._parent.get(e):null},e.prototype.types=function(){return this.typeList},e.prototype.typeMap=function(){return this._types},e.prototype.parent=function(){return this._parent},e}();t.TypeRegistry=B;var K=function(){function e(){}return e.prototype.getInfos=function(e){if(e.getExtra("PInfos"))return e.getExtra("PInfos");var t={};return e.meta().forEach(function(e){if(e instanceof k.HasProperty){var n=e.value();t[n]={name:n,type:null}}}),e.meta().forEach(function(e){if(e instanceof k.PropertyIs){var n=e.propertyName();t[n]&&(t[n].type=e.value())}}),e.putExtra("PInfos",t),t},e.prototype.validate=function(e,t){var n=this,r=this.getInfos(e),i=!1;return Object.keys(r).forEach(function(e){i=i||n.validateInfo(r[e],t)}),i},e.prototype.validateInfo=function(e,t){var n=this;if(t.some(function(t){return t==e}))return!0;if(e.type instanceof Z){var r=e.type,i=!0;return r.options().forEach(function(r){n.validate(r,[e].concat(t))||(i=!1)}),i}return e.type.isArray()?void 0:this.validate(e.type,[e].concat(t))},e.prototype.validateType=function(e){var t=this,n=this.getInfos(e),r=[];return Object.keys(n).forEach(function(e){t.validateInfo(n[e],[])&&r.push(e)}),r},e}(),V=function(e){function n(n,r,i){e.call(this,T.ERROR,t.messageRegistry.RESTRICTIONS_CONFLICT.code,null,i),this._conflicting=n,this._stack=r,this.source=i,this.computeMessage()}return v(n,e),n.prototype.computeMessage=function(){var e=null;if(null!=this._stack&&this._stack.getRestriction()instanceof k.MinMaxRestriction){var t=this._stack.getRestriction();e=this._conflicting.conflictMessage(t.facetPath(),t.value())}null==e&&(e=this._conflicting+" and "+(null!=this._stack?this._stack.getRestriction().toString():""));var n="";if(this.source instanceof W){for(var r=[],i=this._stack;i;){var a=i.getRestriction();if(a instanceof P.PropertyIs){var o={name:a.propId()};r.length>0&&(o.child=r[r.length-1]),r.push(o)}i=i.pop()}m(this,r.pop());var s=k.anotherRestrictionComponent();n=s?" between types '"+f(this.source)+"' and '"+f(s)+"'":" in type '"+f(this.source)+"'"}this.message="Restrictions conflict"+n+": "+e},n.prototype.getConflictDescription=function(){var e="";return e+="Restrictions coflict:\n",e+=this._stack.getRestriction()+" conflicts with "+this._conflicting+"\n",e+="at\n",e+=this._stack.pop()},n.prototype.getConflicting=function(){return this._conflicting},n.prototype.getStack=function(){return this._stack},n.prototype.toRestriction=function(){return new ie(this._stack,this.message,this._conflicting)},n}(T);t.RestrictionsConflict=V;var j=0;t.VALIDATED_TYPE=null;var W=function(){function e(e){this._name=e,this.metaInfo=[],this._subTypes=[],this.innerid=j++,this.extras={},this._locked=!1}return e.prototype.getExtra=function(e){return this.extras[e]},e.prototype.putExtra=function(e,t){this.extras[e]=t},e.prototype.id=function(){return this.innerid},e.prototype.knownProperties=function(){return this.metaOfType(F.MatchesProperty)},e.prototype.lock=function(){this._locked=!0},e.prototype.isLocked=function(){return this._locked},e.prototype.allFacets=function(){return this.meta()},e.prototype.declaredFacets=function(){return this.declaredMeta()},e.prototype.isSubTypeOf=function(e){return e===t.ANY||this===e||this.superTypes().some(function(t){return t.isSubTypeOf(e)})},e.prototype.isSuperTypeOf=function(e){return this===e||this.allSubTypes().indexOf(e)!=-1},e.prototype.addMeta=function(e){this.metaInfo.push(e),e._owner=this},e.prototype.name=function(){return this._name},e.prototype.label=function(){return this._name},e.prototype.subTypes=function(){return this._subTypes},e.prototype.superTypes=function(){return[]},e.prototype.addSupertypeAnnotation=function(e,t){if(e&&0!=e.length){this.supertypeAnnotations||(this.supertypeAnnotations=[]);var n=this.supertypeAnnotations[t];n||(n={},this.supertypeAnnotations[t]=n);for(var r=0,i=e;r<i.length;r++){var a=i[r];n[a.facetName()]=a}}},e.prototype.validateType=function(e){var n=this;void 0===e&&(e=a());var r=new T(T.OK,"","",this);if(this.validateHierarchy(r),this.getExtra(A.PARSE_ERROR)&&r.addSubStatus(this.getExtra(A.PARSE_ERROR)),r.isOk()){if(r.addSubStatus(this.checkConfluent()),this.isExternal()&&"external"==this.kind()){var o=this;if(o.isJSON())try{var s=S.getJSONSchema(o.schema(),o.getContentProvider&&o.getContentProvider());s&&s.validateSelf()}catch(e){if("Maximum call stack size exceeded"==e.message)return i(t.messageRegistry.CIRCULAR_REFS_IN_JSON_SCHEMA,this);if(e instanceof he){var u=e;r.addSubStatus(i(u.messageEntry,this,u.parameters,u.isWarning?T.WARNING:T.ERROR))}else r.addSubStatus(i(t.messageRegistry.JSON_SCHEMA_VALIDATION_EXCEPTION,this,{msg:e.message}))}}r.isOk()&&this.superTypes().forEach(function(t){if(t.isAnonymous()){var n=t.validateType(e);n.isOk()||(m(n,{name:"type"}),r.addSubStatus(n))}})}if(this.getExtra(t.SCHEMA_AND_TYPE)&&r.addSubStatus(i(t.messageRegistry.SCHEMA_AND_TYPE,this)),r.isOk()&&this.validateMeta(e).getErrors().forEach(function(e){return r.addSubStatus(e)}),this.isObject()){var c={};this.restrictions().forEach(function(e){e.owner()!=n&&e instanceof k.HasProperty&&(c[e.value()]=!0)}),this.declaredMeta().forEach(function(e){e instanceof k.HasProperty&&delete c[e.value()]}),this.declaredMeta().forEach(function(e){if(e instanceof k.PropertyIs){var a=e;c.hasOwnProperty(a.propertyName())&&r.addSubStatus(i(t.messageRegistry.REQUIRED_OVERRIDE_OPTIONAL,n,{propertyName:a.propertyName()}))}});var l=(new K).validateType(this);l.length>0&&l.forEach(function(e){var a=i(t.messageRegistry.CYCLIC_DEPENDENCY,n,{typeName:e});m(a,{name:e}),r.addSubStatus(a)})}if(this.supertypeAnnotations)for(var p=0;p<this.supertypeAnnotations.length;p++)for(var f=this.supertypeAnnotations[p],d=0,h=Object.keys(f);d<h.length;d++){var g=h[d],v=f[g],b=v.validateSelf(e);b.isOk()||(m(b,{name:"type",child:{name:p}}),r.addSubStatus(b))}for(var E=_(this,e),C=0,N=E;C<N.length;C++){var w=N[C];r.addSubStatus(w)}for(var x=new ge(this,e),R=y(x),I=0,D=R;I<D.length;I++){var w=D[I];r.addSubStatus(w)}return r},e.prototype.validateHierarchy=function(e){var n=this;if(this.isAnonymous()||this.getExtra(A.TOP_LEVEL_EXTRA)&&a().get(this.name())&&e.addSubStatus(i(t.messageRegistry.REDEFINIG_BUILDTIN,this,{typeName:this.name()})),this.isSubTypeOf(t.RECURRENT)&&e.addSubStatus(i(t.messageRegistry.RECURRENT_DEFINITION,this),"type"),this.isSubTypeOf(t.UNKNOWN)&&e.addSubStatus(i(t.messageRegistry.INHERITING_UNKNOWN_TYPE,this),"type"),this.isUnion()){var r=this.typeFamily();r.some(function(e){return e.isSubTypeOf(t.RECURRENT)})&&e.addSubStatus(i(t.messageRegistry.RECURRENT_UNION_OPTION,this),"type"),r.some(function(e){return e.isSubTypeOf(t.UNKNOWN)})&&e.addSubStatus(i(t.messageRegistry.UNKNOWN_UNION_OPTION,this),"type")}if(this.isArray()){var o=this.familyWithArray(),s=this.getExtra(A.HAS_ITEMS)?"items":"type";if(o.indexOf(this)!=-1||o.some(function(e){return e===t.RECURRENT}))e.addSubStatus(i(t.messageRegistry.RECURRENT_ARRAY_DEFINITION,this),s);else if(o.some(function(e){return e===t.UNKNOWN})){var u=this.oneMeta(L.ComponentShouldBeOfType).value().name();e.addSubStatus(i(t.messageRegistry.UNKNOWN_ARRAY_COMPONENT,this,{componentTypeName:u}),s)}}var c=this.superTypes(),l=!1,p=!1;if(c.length>1&&c.forEach(function(e){e.isExternal()?l=!0:p=!0}),l&&p&&e.addSubStatus(i(t.messageRegistry.EXTERNALS_MIX,this)),this instanceof Z){this.options().forEach(function(r){r.isExternal()&&e.addSubStatus(i(t.messageRegistry.EXTERNALS_MIX,n))})}if(this.isExternal()&&this.getExtra(A.HAS_FACETS)){var f=i(t.messageRegistry.EXTERNAL_FACET,this,{name:this.getExtra(A.HAS_FACETS)});m(f,{name:this.getExtra(A.HAS_FACETS)}),e.addSubStatus(f)}},e.prototype.familyWithArray=function(){var e=this.allSuperTypes(),t=this.oneMeta(L.ComponentShouldBeOfType);if(t){var n=t.value();e=e.concat(n.familyWithArray())}return e},e.prototype.validateMeta=function(e){var t=new T(T.OK,"","",this);return this.declaredMeta().forEach(function(n){n.validateSelf(e).getErrors().forEach(function(e){return t.addSubStatus(e)})}),this.validateFacets(t),t},e.prototype.validateFacets=function(e){var n=this,r={},a={},o={};this.meta().forEach(function(e){if(e instanceof D.FacetDeclaration){var t=e;r[t.actualName()]=t,t.isOptional()||t.owner()!==n&&(o[t.actualName()]=t),t.owner()!=n&&(a[t.actualName()]=t)}}),this.declaredMeta().forEach(function(r){if(r instanceof D.FacetDeclaration){var o=r;if(o.owner()==n){var s=o.actualName();a.hasOwnProperty(s)&&e.addSubStatus(i(t.messageRegistry.OVERRIDE_FACET,n,{name:s}));var u=R.getInstance().facetPrototypeWithName(s);(u&&u.isApplicable(n)||"type"==s||"properties"==o.facetName()||"schema"==s||"facets"==s||"uses"==s)&&e.addSubStatus(i(t.messageRegistry.OVERRIDE_BUILTIN_FACET,n,{name:s})),"("==s.charAt(0)&&e.addSubStatus(i(t.messageRegistry.FACET_START_BRACKET,n,{name:s}))}}});var s={};this.meta().forEach(function(e){e instanceof P.PropertyIs&&(s[e.propId()]=!0)});for(var u=0,c=this.meta();u<c.length;u++){var l=c[u];if(l instanceof M.CustomFacet){var p=l,f=p.facetName();if(r.hasOwnProperty(f)){var d=r[f],m=d.value();if(d.owner()==this&&p.owner()==this){var h=i(t.messageRegistry.FACET_CAN_NOT_BE_FIXED_BY_THE_DECLARING_TYPE,p);h.setValidationPath({name:f}),e.addSubStatus(h)}else e.addSubStatus(m.validateDirect(p.value(),!1,!1)),delete o[f]}else this.isExternal()?e.addSubStatus(i(t.messageRegistry.FACET_PROHIBITED_FOR_EXTERNALS,p,{facetName:f},T.ERROR,!0)):e.addSubStatus(i(t.messageRegistry.UNKNOWN_FACET,p,{facetName:f},T.ERROR,!0))}}Object.getOwnPropertyNames(o).length>0&&e.addSubStatus(i(t.messageRegistry.MISSING_REQUIRED_FACETS,this,{facetsList:Object.keys(o).map(function(e){return"'"+e+"'"}).join(",")}))},e.prototype.allSuperTypes=function(){var e=[];return this.fillSuperTypes(e),e},e.prototype.fillSuperTypes=function(e){this.superTypes().forEach(function(t){b.contains(e,t)||(e.push(t),t.fillSuperTypes(e))})},e.prototype.allSubTypes=function(){var e=[];return this.fillSubTypes(e),e},e.prototype.fillSubTypes=function(e){this.subTypes().forEach(function(t){b.contains(e,t)||(e.push(t),t.fillSubTypes(e))})},e.prototype.inherit=function(e){var t=new $(e);return t.addSuper(this),t},e.prototype.isAnonymous=function(){return!this._name||0===this._name.length},e.prototype.isEmpty=function(){return!(this.metaInfo.length>2)&&0==this.metaInfo.filter(function(e){return!(e instanceof U.NotScalar)&&(!(e instanceof x.DiscriminatorValue)||e.isStrict())}).length},e.prototype.isArray=function(){return this===t.ARRAY||this.allSuperTypes().indexOf(t.ARRAY)!=-1},e.prototype.propertySet=function(){var e=[];return this.meta().forEach(function(t){if(t instanceof P.PropertyIs){var n=t;e.push(n.propertyName())}}),b.uniq(e)},e.prototype.checkConfluent=function(){if(this.computeConfluent)return r();this.computeConfluent=!0;var e=k.anotherRestrictionComponentsCount();try{var t=k.optimize(this.restrictions()),n=b.find(t,function(e){return e instanceof ne});if(n){var i=null,a=null;if(n instanceof ie){var o=n;i=o.getStack(),a=o.another()}return new V(a,i,this)}return r()}finally{this.computeConfluent=!1,k.releaseAnotherRestrictionComponent(e)}},e.prototype.isObject=function(){return this==t.OBJECT||this.allSuperTypes().indexOf(t.OBJECT)!=-1},e.prototype.isExternal=function(){return this==t.EXTERNAL||this.allSuperTypes().indexOf(t.EXTERNAL)!=-1},e.prototype.isBoolean=function(){return this==t.BOOLEAN||this.allSuperTypes().indexOf(t.BOOLEAN)!=-1},e.prototype.isString=function(){return this==t.STRING||this.allSuperTypes().indexOf(t.STRING)!=-1},e.prototype.isNumber=function(){return this==t.NUMBER||this.allSuperTypes().indexOf(t.NUMBER)!=-1},e.prototype.isFile=function(){return this==t.FILE||this.allSuperTypes().indexOf(t.FILE)!=-1},e.prototype.isScalar=function(){return this==t.SCALAR||this.allSuperTypes().indexOf(t.SCALAR)!=-1},e.prototype.isDateTime=function(){return this==t.DATETIME||this.allSuperTypes().indexOf(t.DATETIME)!=-1},e.prototype.isDateOnly=function(){return this==t.DATE_ONLY||this.allSuperTypes().indexOf(t.DATE_ONLY)!=-1},e.prototype.isTimeOnly=function(){return this==t.TIME_ONLY||this.allSuperTypes().indexOf(t.TIME_ONLY)!=-1},e.prototype.isInteger=function(){return this==t.INTEGER||this.allSuperTypes().indexOf(t.INTEGER)!=-1},e.prototype.isDateTimeOnly=function(){return this==t.DATETIME_ONLY||this.allSuperTypes().indexOf(t.DATETIME_ONLY)!=-1},e.prototype.isUnknown=function(){return this==t.UNKNOWN||this.allSuperTypes().indexOf(t.UNKNOWN)!=-1},e.prototype.isRecurrent=function(){return this==t.RECURRENT||this.allSuperTypes().indexOf(t.RECURRENT)!=-1},e.prototype.isBuiltin=function(){return this.metaInfo.indexOf(G)!=-1},e.prototype.exampleObject=function(){return O.example(this)},e.prototype.isPolymorphic=function(){return this.meta().some(function(e){return e instanceof z})},e.prototype.restrictions=function(e){if(void 0===e&&(e=!1),this.isUnion()){var t=[];return this.superTypes().forEach(function(e){t=t.concat(e.restrictions())}),t=t.concat(this.meta().filter(function(e){return e instanceof w}))}var n=[],r=null;return this.meta().forEach(function(t){if(t instanceof w){if(t instanceof ae&&e){if(r)return;r=t}n.push(t)}}),n},e.prototype.customFacets=function(){return this.declaredMeta().filter(function(e){return e instanceof x.CustomFacet})},e.prototype.allCustomFacets=function(){return this.meta().filter(function(e){return e instanceof x.CustomFacet})},e.prototype.isUnion=function(){var e=!1;return!this.isBuiltin()&&(this.allSuperTypes().forEach(function(t){return e=e||t instanceof Z}),e)},e.prototype.isIntersection=function(){var e=!1;return!this.isBuiltin()&&(this.allSuperTypes().forEach(function(t){return e=e||t instanceof ee}),e)},e.prototype.meta=function(){return[].concat(this.metaInfo)},e.prototype.validateDirect=function(e,n,r,a){var o=this;void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===a&&(a=null);var s=t.VALIDATED_TYPE;try{var u=t.autoCloseFlag;n&&(t.autoCloseFlag=!0),t.VALIDATED_TYPE=this;var c=new T(T.OK,"","",this);if(!(r||null!==e&&void 0!==e||this.nullable))return i(t.messageRegistry.OBJECT_EXPECTED,this);if(this.restrictions(!0).forEach(function(t){return c.addSubStatus(t.check(e,a))}),(n||t.autoCloseFlag)&&this.isObject()&&!this.oneMeta(I.KnownPropertyRestriction)){var l=new I.KnownPropertyRestriction(!1);l.patchOwner(this),l.check(e).getErrors().forEach(function(e){var t=new T(T.WARNING,e.getCode(),e.getMessage(),o);m(t,e.getValidationPath()),c.addSubStatus(t)})}}finally{t.autoCloseFlag=u,t.VALIDATED_TYPE=s}return c},e.prototype.validate=function(e,n,a){void 0===n&&(n=!1),void 0===a&&(a=!0);var o=t.autoCloseFlag;if(!(a||null!==e&&void 0!==e||this.nullable))return i(t.messageRegistry.NULL_NOT_ALLOWED,this);n&&(t.autoCloseFlag=!0);try{for(var s,u=[],c=this.subTypes().concat(this),l=0,p=c;l<p.length;l++){var f=p[l],m=d(e,f),h=f.validateDirect(e,n||o);if(m){if(m.isOk())return h;u.push(m)}else if(h.isOk())return h;s=h}if(0==u.length)return s;var y=r();return u.forEach(function(e){return y.addSubStatus(e)}),u.pop()}finally{t.autoCloseFlag=o}},e.prototype.declareMapProperty=function(e,t){return null!=t&&this.addMeta(new k.MapPropertyIs(e,t)),t},e.prototype.closeUnknownProperties=function(){this.addMeta(new I.KnownPropertyRestriction(!1))},e.prototype.canDoAc=function(){for(var e=b.uniq(this.typeFamily()),t=new T(T.OK,"","",this),n=0;n<e.length;n++)for(var r=0;r<e.length;r++)if(n!=r){var i=e[n],a=e[r],o=this.emptyIntersectionOrDiscriminator(i,a);t.addSubStatus(o)}return t},e.prototype.emptyIntersectionOrDiscriminator=function(e,t){return t===e?r():t.isScalar()&&e.isScalar()?r():s("",[e,t]).checkConfluent().isOk()?this.checkDiscriminator(e,t):r()},e.prototype.checkDiscriminator=function(e,n){var a=i(t.messageRegistry.DISCRIMINATOR_NEEDED,this,{name1:e.name(),name2:n.name()}),o=e.oneMeta(x.Discriminator),s=n.oneMeta(x.Discriminator);if(null!=o&&null!=s&&o.value()===s.value()){var u=e.name(),c=n.name(),l=e.oneMeta(x.DiscriminatorValue);null!=l&&(u=l.value());var p=n.oneMeta(x.DiscriminatorValue);if(null!=p&&(c=p.value()),u!==c)return r();a=i(t.messageRegistry.SAME_DISCRIMINATOR_VALUE,this,{name1:e.name(),name2:n.name()})}return a},e.prototype.ac=function(e){if(!this.isPolymorphic()&&!this.isUnion())return this;if(this.isBuiltin())return this;var n=b.uniq(this.typeFamily());if(0==n.length)return t.NOTHING;if(this.isScalar())return this.isNumber()?"number"==typeof e?this:t.NOTHING:this.isString()?"string"==typeof e?this:t.NOTHING:this.isBoolean()?"boolean"==typeof e?this:t.NOTHING:this;if(1===n.length)return n[0];var r=[];n.forEach(function(t){t.validateDirect(e,!0).isOk()&&r.push(t)});var i=this.discriminate(e,r);return i?i:t.NOTHING},e.prototype.declareProperty=function(e,t,n){return n||this.addMeta(new k.HasProperty(e)),null!=t&&this.addMeta(new k.PropertyIs(e,t)),this},e.prototype.discriminate=function(e,t){for(var n=[].concat(t),r=[].concat(t);n.length>1;){e:for(var i=0;i<r.length;i++)for(var a=0;a<r.length;a++){var o=r[i],s=r[a];if(o!=s){var u=l(e,o,s);if(u===o){r=r.filter(function(e){return e!=s}),!0;break e}if(u===s){r=r.filter(function(e){return e!=o}),!0;break e}r=r.filter(function(e){return e!=o&&e!=s}),!0;break e}}n=r}return 1==n.length?n[0]:null},e.prototype.oneMeta=function(e){return b.find(this.meta(),function(t){return t instanceof e})},e.prototype.metaOfType=function(e){return this.meta().filter(function(t){return t instanceof e})},e.prototype.declaredMeta=function(){return this.metaInfo},e.prototype.descValue=function(){var e=this.oneMeta(x.DiscriminatorValue);return e?e.value():this.name()},e.prototype.isAbstractOrInternal=function(){return this.metaInfo.some(function(e){return e instanceof H||e instanceof Y})},e.prototype.typeFamily=function(){if(this.isUnion()){var e=[];return this.allSuperTypes().forEach(function(t){if(t instanceof Z)for(var n=t.allOptions(),r=0;r<n.length;r++)e=e.concat(n[r].typeFamily())}),b.unique(e)}var t=[];return this.isAbstractOrInternal()||t.push(this),this.allSubTypes().forEach(function(e){e.isAbstractOrInternal()||t.push(e)}),b.unique(t)},e.prototype.hasPropertiesFacet=function(){return this.metaInfo.some(function(e){return e instanceof x.HasPropertiesFacet})},e}();t.AbstractType=W;var q=function(e){function n(){e.apply(this,arguments)}return v(n,e),n.prototype.requiredType=function(){return t.ANY},n.prototype.kind=function(){return A.MetaInformationKind.Modifier},n}(C);t.Modifier=q;var z=function(e){function t(){e.call(this,!0)}return v(t,e),t.prototype.facetName=function(){return"polymorphic"},t.prototype.value=function(){return!0},t}(q);t.Polymorphic=z;var H=function(e){function t(){e.call(this,!1)}return v(t,e),t.prototype.value=function(){return!0},t.prototype.facetName=function(){return"abstract"},t}(q);t.Abstract=H;var Y=function(e){function t(){e.call(this,!1)}return v(t,e),t.prototype.facetName=function(){return"abstract"},t.prototype.value=function(){return!0},t}(q);t.Internal=Y;var J=function(e){function t(){e.call(this,!1)}return v(t,e),t.prototype.facetName=function(){return"builtIn"},t.prototype.value=function(){return!0},t}(q),G=new J,X=function(e){function t(){e.apply(this,arguments)}return v(t,e),t.prototype.kind=function(){return"root"},t}(W);t.RootType=X;var $=function(e){function t(){e.apply(this,arguments),this._superTypes=[]}return v(t,e),t.prototype.superTypes=function(){return this._superTypes},t.prototype.knownProperties=function(){var e=this.metaOfType(F.MatchesProperty);return this.superTypes().forEach(function(t){e=e.concat(t.knownProperties())}),e},t.prototype.kind=function(){return"inherited"},t.prototype.meta=function(){var t=this,n=e.prototype.meta.call(this);return this.superTypes().forEach(function(e){e.meta().forEach(function(e){if(e instanceof I.KnownPropertyRestriction){var r=new I.KnownPropertyRestriction(!1);return r.patchOwner(t),void n.push(r)}e.isInheritable()&&n.push(e)})}),n},t.prototype.addSuper=function(e){this._superTypes.push(e),e.isLocked()||e._subTypes.push(this),e.nullable&&(this.nullable=!0)},t.prototype.label=function(){var t=this.metaOfType(L.ComponentShouldBeOfType);return t.length>0?t[0].value().label()+"[]":e.prototype.label.call(this)},t.prototype.contextMeta=function(){return this._contextMeta},t.prototype.setContextMeta=function(e){this._contextMeta=e},t.prototype.patch=function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])},t}(W);t.InheritedType=$;var Q=function(e){function t(t,n){e.call(this,t),this._options=n}return v(t,e),t.prototype.allOptions=function(){var e=this,t=[];return this._options.forEach(function(n){n.kind()==e.kind()?t=t.concat(n.allOptions()):t.push(n)}),b.unique(t)},t.prototype.options=function(){return this._options},t}(W);t.DerivedType=Q;var Z=function(e){function n(t,n){var r=this;e.call(this,t,n),this.options().forEach(function(e){e.nullable&&(r.nullable=!0)})}return v(n,e),n.prototype.kind=function(){return"union"},n.prototype.isSubTypeOf=function(e){var t=!0;return this.allOptions().forEach(function(n){n.isSubTypeOf(e)||(t=!1)}),t},n.prototype.validate=function(e){return this.validateDirect(e)},n.prototype.typeFamily=function(){var e=[];return this.allOptions().forEach(function(t){e=e.concat(t.typeFamily())}),e},n.prototype.knownProperties=function(){var e=this.metaOfType(F.MatchesProperty);return this.options().forEach(function(t){e=e.concat(t.knownProperties())}),e},n.prototype.validateDirect=function(e,t){void 0===t&&(t=!1);var n=new T(T.OK,"","",this);return this.restrictions().forEach(function(t){return n.addSubStatus(t.check(e,null))}),n},n.prototype.isUnion=function(){return!0},n.prototype.restrictions=function(){return[new le(this.allOptions().map(function(e){return new pe(e.restrictions())}),t.messageRegistry.UNION_TYPE_FAILURE,t.messageRegistry.UNION_TYPE_FAILURE_DETAILS)]},n.prototype.label=function(){return this.options().map(function(e){return e.label()}).join("|")},n}(Q);t.UnionType=Z;var ee=function(e){function t(){e.apply(this,arguments)}return v(t,e),t.prototype.kind=function(){return"intersection"},t.prototype.restrictions=function(){var e=[];return this.allOptions().forEach(function(t){return e=e.concat(t.restrictions())}),[new pe(e)]},t.prototype.label=function(){return this.options().map(function(e){return e.label()}).join("&")},t.prototype.isIntersection=function(){return!0},t}(Q);t.IntersectionType=ee;var te=new B;t.builtInRegistry=a,t.union=o,t.intersect=s,t.derive=u,t.deriveObjectType=c;var ne=function(e){function n(){e.apply(this,arguments)}return v(n,e),n.prototype.check=function(e){return null===e||void 0===e?r():i(t.messageRegistry.NOTHING,this)},n.prototype.requiredType=function(){return t.ANY},n.prototype.facetName=function(){return"nothing"},n.prototype.value=function(){return"!!!"},n}(w);t.NothingRestriction=ne;var re=function(){function e(e,t,n){this._previous=e,this._restriction=t,this.id=n}return e.prototype.getRestriction=function(){return this._restriction},e.prototype.pop=function(){return this._previous},e.prototype.push=function(t){return new e(this,t,t.toString())},e}();t.RestrictionStackEntry=re;var ie=function(e){function t(t,n,r){e.call(this),this._entry=t,this._message=n,this._another=r}return v(t,e),t.prototype.getMessage=function(){return this._message},t.prototype.getStack=function(){return this._entry},t.prototype.another=function(){return this._another},t}(ne);t.NothingRestrictionWithLocation=ie;var ae=function(e){function t(){e.apply(this,arguments)}return v(t,e),t}(w);t.GenericTypeOf=ae;var oe=function(e){function n(t){e.call(this),this.val=t}return v(n,e),n.prototype.check=function(e){var n=typeof e;return null===e||void 0===e?r():(Array.isArray(e)&&(n="array"),n===this.val?r():i(t.messageRegistry.TYPE_EXPECTED,this,{typeName:this.val}))},n.prototype.value=function(){return this.val},n.prototype.requiredType=function(){return t.ANY},n.prototype.facetName=function(){return"typeOf"},n.prototype.composeWith=function(e){if(e instanceof n){return e.val==this.val?this:this.nothing(e)}return null},n.prototype.toString=function(){return"should be of type "+this.val},n}(ae);t.TypeOfRestriction=oe;var se=function(e){function n(){e.call(this)}return v(n,e),n.prototype.check=function(e){return"number"==typeof e&&p(e)?r():i(t.messageRegistry.INTEGER_EXPECTED,this)},n.prototype.requiredType=function(){return t.ANY},n.prototype.value=function(){return!0},n.prototype.facetName=function(){return"should be integer"},n}(ae);t.IntegerRestriction=se;var ue=function(e){function n(){e.call(this)}return v(n,e),n.prototype.check=function(e){return null===e||void 0==e||"null"===e?r():i(t.messageRegistry.NULL_EXPECTED,this)},n.prototype.requiredType=function(){return t.ANY},n.prototype.value=function(){return!0},n.prototype.facetName=function(){return"should be null"},n}(ae);t.NullRestriction=ue;var ce=function(e){function n(){e.call(this)}return v(n,e),n.prototype.check=function(e){return e?"number"==typeof e||"boolean"==typeof e||"string"==typeof e?r():i(t.messageRegistry.SCALAR_EXPECTED,this):r()},n.prototype.requiredType=function(){return t.ANY},n.prototype.facetName=function(){return"should be scalar"},n.prototype.value=function(){return!0},n}(ae);t.ScalarRestriction=ce;var le=function(e){function n(t,n,r){e.call(this),this.val=t,this._extraMessage=n,this._extraOptionMessage=r}return v(n,e),n.prototype.check=function(e,t){for(var n=this,a=new T(T.OK,"","",this),o=[],s=0;s<this.val.length;s++){var u=this.val[s].check(e,t);if(u.isOk())return r();o.push(u)}if(o.length>0){for(var c=0,l=o;c<l.length;c++){var p=l[c],f=null,d=p.getSource();if(d instanceof C){var m=d.owner();m&&(f=m.label())}p.getErrors().forEach(function(e){var t=e.getMessage(),r=e.getCode();if(f&&(t=f+": "+t),n._extraOptionMessage){var o=i(n._extraOptionMessage,n,{msg:t});t=o.getMessage(),r=o.getCode()}e.setMessage(t),e.setCode(r),a.addSubStatus(e)})}if(this._extraMessage){var h=0;o.forEach(function(e){return h=Math.max(h,e.getSeverity())}),a.addSubStatus(new T(h,this._extraMessage.code,this._extraMessage.message,this))}}return a},n.prototype.value=function(){return this.val.map(function(e){return e.value()})},n.prototype.requiredType=function(){return t.ANY},n.prototype.facetName=function(){return"or"},n}(w);t.OrRestriction=le;var pe=function(e){function n(t){e.call(this),this.val=t}return v(n,e),n.prototype.value=function(){return this.val.map(function(e){return e.value()})},n.prototype.options=function(){return this.val},n.prototype.check=function(e,t){for(var n=0;n<this.val.length;n++){var i=this.val[n].check(e,t);if(!i.isOk())return i}return r()},n.prototype.requiredType=function(){return t.ANY},n.prototype.facetName=function(){return"and"},n}(w);t.AndRestriction=pe,t.ANY=new X("any"),t.SCALAR=t.ANY.inherit("scalar"),t.OBJECT=t.ANY.inherit("object"),t.ARRAY=t.ANY.inherit("array"),t.EXTERNAL=t.ANY.inherit("external"),t.NUMBER=t.SCALAR.inherit("number"),t.INTEGER=t.NUMBER.inherit("integer"),t.BOOLEAN=t.SCALAR.inherit("boolean"),t.STRING=t.SCALAR.inherit("string"),t.NIL=t.SCALAR.inherit("nil"),t.DATE_ONLY=t.SCALAR.inherit("date-only"),t.TIME_ONLY=t.SCALAR.inherit("time-only"),t.DATETIME_ONLY=t.SCALAR.inherit("datetime-only"),t.DATETIME=t.SCALAR.inherit("datetime"),t.FILE=t.SCALAR.inherit("file"),t.NOTHING=new X("nothing"),t.UNION=t.ANY.inherit("union"),t.UNKNOWN=t.NOTHING.inherit("unknown"),t.REFERENCE=t.NOTHING.inherit("reference"),t.RECURRENT=t.NOTHING.inherit("recurrent"),t.ANY.addMeta(G),t.NIL.addMeta(G),t.UNION.addMeta(G),t.SCALAR.addMeta(G),t.OBJECT.addMeta(G),t.ARRAY.addMeta(G),t.NUMBER.addMeta(G),t.INTEGER.addMeta(G),t.BOOLEAN.addMeta(G),t.STRING.addMeta(G),t.EXTERNAL.addMeta(G),t.UNKNOWN.addMeta(G),t.RECURRENT.addMeta(G),t.DATE_ONLY.addMeta(G),t.TIME_ONLY.addMeta(G),t.DATETIME_ONLY.addMeta(G),t.DATETIME.addMeta(G),t.FILE.addMeta(G),t.UNKNOWN.addMeta(G),t.UNKNOWN.lock(),t.RECURRENT.addMeta(G),t.RECURRENT.lock(),t.EXTERNAL.lock(),t.UNION.lock(),t.REFERENCE.lock(),te.addType(t.ANY),te.addType(t.SCALAR),te.addType(t.OBJECT),te.addType(t.ARRAY),te.addType(t.NUMBER),te.addType(t.INTEGER),te.addType(t.BOOLEAN),te.addType(t.NIL),te.addType(t.STRING),te.addType(t.DATE_ONLY),te.addType(t.TIME_ONLY),te.addType(t.DATETIME_ONLY),te.addType(t.DATETIME),te.addType(t.FILE),t.NOTHING.addMeta(new ne),t.NUMBER.addMeta(new oe("number")),t.NUMBER.addMeta(new D.FacetDeclaration("format",t.STRING,!0,!0)),t.BOOLEAN.addMeta(new oe("boolean")),t.OBJECT.addMeta(new oe("object")),t.ARRAY.addMeta(new oe("array")),t.STRING.addMeta(new oe("string")),t.INTEGER.addMeta(new se),t.NIL.addMeta(new ue);var fe=n(336);t.DATE_ONLY.addMeta(new fe.DateOnlyR),t.TIME_ONLY.addMeta(new fe.TimeOnlyR),t.DATETIME_ONLY.addMeta(new fe.DateTimeOnlyR),t.DATETIME.addMeta(new fe.DateTimeR),t.FILE.addMeta(new oe("string"));var de=t.ARRAY.inherit("");de.addMeta(new L.ComponentShouldBeOfType(t.STRING)),t.FILE.addMeta(new D.FacetDeclaration("fileTypes",de,!0,!0)),t.FILE.addMeta(new D.FacetDeclaration("minLength",t.INTEGER,!0,!0)),t.FILE.addMeta(new D.FacetDeclaration("maxLength",t.INTEGER,!0,!0)),t.DATETIME.addMeta(new D.FacetDeclaration("format",t.STRING,!0,!0)),t.NIL.nullable=!0,t.SCALAR.addMeta(new ce),te.types().forEach(function(e){return e.lock()});var me=function(e){function n(n,r,i,a,o){void 0===o&&(o=null),e.call(this,n),this._content=r,this.json=i,this.provider=a,this.addMeta(new k.MatchToSchema(r,o?o:a)),this.addSuper(t.EXTERNAL)}return v(n,e),n.prototype.getContentProvider=function(){return this.provider},n.prototype.setContentProvider=function(e){this.provider=e},n.prototype.kind=function(){return"external"},n.prototype.isJSON=function(){return this.json},n.prototype.schema=function(){return this._content},n}($);t.ExternalType=me,t.typePath=f;var he=function(e){function t(t,n){void 0===n&&(n={}),e.call(this),this.messageEntry=t,this.parameters=n,this.isWarning=!1,this.message=E(t,n)}return v(t,e),t.prototype.getClassIdentifier=function(){return[].concat(t.CLASS_IDENTIFIER_ValidationError)},t.isInstance=function(e){return null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier&&b.contains(e.getClassIdentifier(),t.CLASS_IDENTIFIER_ValidationError)},t.CLASS_IDENTIFIER_ValidationError="linter.ValidationError",t}(Error);t.ValidationError=he,t.setValidationPath=m,t.patchPath=h;var ye=function(){function e(e,t){this._facet=e,this.reg=t}return e.prototype.kind=function(){return"AnnotatedFacet"},e.prototype.annotationsMap=function(){var e=this;return this._annotationsMap||(this._annotationsMap={},this.annotations().forEach(function(t){return e._annotationsMap[t.name()]=t})),this._annotationsMap},e.prototype.annotations=function(){var e=this;return this._annotations||(this._annotations=this._facet.annotations().map(function(t){return new ve(t,e.reg)})),this._annotations},e.prototype.value=function(){return this._facet.value()},e.prototype.name=function(){return this._facet.facetName()},e.prototype.entry=function(){return this._facet},e}();t.AnnotatedFacet=ye;var _e=n(91),ge=function(){function e(e,t){this._type=e,this.reg=t}return e.prototype.kind=function(){return"AnnotatedType"},e.prototype.annotationsMap=function(){var e=this;return this._annotationsMap||(this._annotationsMap={},this.annotations().forEach(function(t){var n=t.name(),r=n.lastIndexOf(".");r>=0&&(n=n.substring(r+1)),e._annotationsMap[n]=t})),this._annotationsMap},e.prototype.annotations=function(){var e=this;return this._annotations||(this._annotations=this._type.meta().filter(function(e){return e.kind()==A.MetaInformationKind.Annotation}).map(function(t){return new ve(t,e.reg)})),this._annotations},e.prototype.value=function(){return _e.storeAsJSON(this._type)},e.prototype.name=function(){return this._type.name()},e.prototype.entry=function(){return this._type},e}();t.AnnotatedType=ge;var ve=function(){function e(e,t){this.actual=e}return e.prototype.name=function(){return this.actual.facetName()},e.prototype.value=function(){return this.actual.value()},e.prototype.definition=function(){return te.get(this.actual.facetName())},e.prototype.annotation=function(){return this.actual},e}();t.AnnotationInstance=ve,t.applyAnnotationValidationPlugins=y,t.applyTypeValidationPlugins=_},function(e,t,n){"use strict";function r(e,t){return f.serializeToXML(e,t)}function i(e,t){if("string"==typeof e&&(t.isObject()||t.isArray()||t.isExternal()||t.isUnion())){var n=e,r=n.trim().charAt(0);if("{"==r||"["==r||"null"==n.trim())try{return JSON.parse(n)}catch(e){if(t.isObject()||t.isArray()){var i=s.error(u.CAN_NOT_PARSE_JSON,this,{msg:e.message});return i}}if("<"==r)try{var a=f.readObject(n,t),o=f.getXmlErrors(a);if(o){var c=s.error(u.INVALID_XML,null);return o.forEach(function(e){return c.addSubStatus(e)}),c}return a}catch(e){}}return t.getExtra(d.REPEAT)&&(e=[e]),e}function a(e,t,n){t?s.setValidationPath(e,{name:"examples",child:{name:n}}):s.setValidationPath(e,{name:"examples",child:{name:n,child:{name:"value"}}})}var o=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=n(6),u=s.messageRegistry,c=n(6),l=n(8),p=n(1),f=n(343),d=n(48),m=function(e){function t(t,n,r){void 0===r&&(r=!1),e.call(this,r),this._name=t,this._value=n}return o(t,e),t.prototype.value=function(){return this._value},t.prototype.requiredType=function(){return s.ANY},t.prototype.facetName=function(){return this._name},t.prototype.kind=function(){return null},t}(s.TypeInformation);t.MetaInfo=m;var h=function(e){function t(t){e.call(this,"description",t)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.Description},t}(m);t.Description=h;var y=function(e){function t(){e.call(this,"notScalar",!0)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.NotScalar},t}(m);t.NotScalar=y;var _=function(e){function t(t){e.call(this,"displayName",t)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.DisplayName},t}(m);t.DisplayName=_;var g=function(e){function t(t){e.call(this,"usage",t)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.Usage},t}(m);t.Usage=g;var v=function(e){function t(t,n){e.call(this,t,n)}return o(t,e),t.prototype.validateSelf=function(t,n){void 0===n&&(n=!1);var r=t.get(this.facetName());if(!r)return s.error(u.UNKNOWN_ANNOTATION,this,{facetName:this.facetName()});var i=s.ok(),a=this.value();a||r.isString()&&(a="");var o=r.metaOfType(N),c=n?"Example":"TypeDeclaration";if(o.length>0){var l=[];if(0==o.filter(function(e){var t=e.value();return Array.isArray(t)?(l=l.concat(t),t.indexOf(c)>=0):(l.push(t),t==c)}).length){var p=l.map(function(e){return"'"+e+"'"}).join(", "),f=s.error(u.INVALID_ANNOTATION_LOCATION,this,{aName:e.prototype.facetName.call(this),aValues:p});i.addSubStatus(f)}}var d=r.validateDirect(a,!0,!1);if(!d.isOk()){var m=s.error(u.INVALID_ANNOTATION_VALUE,this,{msg:d.getMessage()});m.addSubStatus(d),i.addSubStatus(m)}return s.setValidationPath(i,{name:"("+this.facetName()+")"}),i},t.prototype.kind=function(){return d.MetaInformationKind.Annotation},t.prototype.ownerFacet=function(){return this._ownerFacet},t.prototype.setOwnerFacet=function(e){this._ownerFacet=e},t}(m);t.Annotation=v;var b=function(e){function t(t,n,r,i){void 0===i&&(i=!1),e.call(this,t,n,!0),this.name=t,this._type=n,this.optional=r,this.builtIn=i}return o(t,e),t.prototype.actualName=function(){return"?"==this.name.charAt(this.name.length-1)?this.name.substr(0,this.name.length-1):this.name},t.prototype.isOptional=function(){return this.optional},t.prototype.type=function(){return this._type},t.prototype.kind=function(){return d.MetaInformationKind.FacetDeclaration},t.prototype.isBuiltIn=function(){return this.builtIn},t}(m);t.FacetDeclaration=b;var S=function(e){function t(t,n){e.call(this,t,n,!0)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.CustomFacet},t}(m);t.CustomFacet=S;var A=[{propName:"strict",propType:"boolean",messageEntry:u.STRICT_BOOLEAN},{propName:"displayName",propType:"string",messageEntry:u.DISPLAY_NAME_STRING},{propName:"description",propType:"string",messageEntry:u.DESCRIPTION_STRING}],T=function(e){function t(t){e.call(this,"example",t)}return o(t,e),t.prototype.validateSelf=function(e){var t=s.ok();t.addSubStatus(this.validateValue(e));var n=this.validateAnnotations(e);return s.setValidationPath(n,{name:this.facetName()}),t.addSubStatus(n),t},t.prototype.validateValue=function(e){var t=this.value(),n=!1,r=s.ok();if("object"==typeof t&&t&&t.value){for(var a=0,o=A;a<o.length;a++){var c=o[a],l=c.propName,p=c.propType,f=t[l];if(f&&typeof f!=p&&("object"==typeof f&&Object.keys(f).forEach(function(t){if("("==t.charAt(0)&&")"==t.charAt(t.length-1)){var n=new v(t.substring(1,t.length-1),f[t]),i=n.validateSelf(e,!0);s.setValidationPath(i,{name:"example",child:{name:l,child:{name:t}}}),r.addSubStatus(i)}}),!f.value&&typeof f.value!=p)){var d=s.error(c.messageEntry,this),m=f.value?{name:"value"}:null;s.setValidationPath(d,{name:"example",child:{name:l,child:m}}),r.addSubStatus(d)}}if(t.strict===!1||"object"==typeof t.strict&&t.strict.value===!1)return r;t=t.value,n=!0}var h=i(t,this.owner());if(h instanceof s.Status&&!h.isOk())return s.setValidationPath(h,{name:"example"}),r.addSubStatus(h),r;var y=this.owner().validateDirect(h,!0,!1);if(!y.isOk()){this.value();var _=s.error(u.INVALID_EXMAPLE,this,{msg:y.getMessage()});y.getErrors().forEach(function(e){_.addSubStatus(e),n?s.setValidationPath(e,{name:"example",child:{name:"value"}}):s.setValidationPath(e,{name:"example"})}),r.addSubStatus(_)}return r},t.prototype.validateAnnotations=function(e){var t=s.ok(),n=this.value();if("object"==typeof n&&n&&n.value)for(var r=Object.keys(n).filter(function(e){return e.length>2&&"("==e.charAt(0)&&")"==e.charAt(e.length-1)}),i=0,a=r;i<a.length;i++){var o=a[i],u=n[o],c=o.substring(1,o.length-1),l=new v(c,u);t.addSubStatus(l.validateSelf(e,!0))}return t},t.prototype.example=function(){var e=this.value();return"object"==typeof e&&e&&e.value&&(e=e.value),i(e,this.owner())},t.prototype.asXMLString=function(){var e=this.value();return"string"==typeof e&&0===e.trim().indexOf("<")?e:r(i(e,this.owner()),this.owner())},t.prototype.kind=function(){return d.MetaInformationKind.Example},t}(m);t.Example=T;var E=function(e){function t(t){e.call(this,"required",t)}return o(t,e),t.prototype.validateSelf=function(t){var n=e.prototype.validateSelf.call(this,t);return"boolean"!=typeof this.value()&&(n=s.error(u.REQUIRED_BOOLEAN,this),s.setValidationPath(n,{name:this.facetName()})),n},t.prototype.kind=function(){return d.MetaInformationKind.Required},t}(m);t.Required=E;var C=function(e){function t(){e.call(this,"hasPropertiesFacet",null)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.HasPropertiesFacet},t}(m);t.HasPropertiesFacet=C;var N=function(e){function t(t){e.call(this,"allowedTargets",t)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.AllowedTargets},t}(m);t.AllowedTargets=N;var w=function(e){function t(t){e.call(this,"examples",t)}return o(t,e),t.prototype.examples=function(){var e=this,t=this.value(),n=[];return Object.keys(t).forEach(function(r){if("object"==typeof t[r]&&t[r]){var a=t[r].value;a||(a=t[r]);var o=i(a,e.owner());n.push(o)}}),n},t.prototype.asXMLStrings=function(){var e=this,t=this.value(),n={};return Object.keys(t).forEach(function(a){var o=t[a];if("string"==typeof o&&0===o.trim().indexOf("<"))return void(n[a]=o);var s=i(o,e.owner());n[a]=r(s,e.owner())}),n},t.prototype.validateSelf=function(e){var t=this;if("object"==typeof this.value()){var n=new c.Status(c.Status.OK,"","",this),r=this.value();return r&&Object.keys(r).forEach(function(o){var u=r[o];if(u){"object"==typeof u&&u.value&&Object.keys(u).forEach(function(t){if("("==t.charAt(0)&&")"==t.charAt(t.length-1)){var i=new v(t.substring(1,t.length-1),r[o][t]),a=i.validateSelf(e,!0);s.setValidationPath(a,{name:"examples",child:{name:o,child:{name:t}}}),n.addSubStatus(a)}});var c=u.value,l=!c;if(l)c=u;else{for(var p=0,f=A;p<f.length;p++){var d=f[p];t.checkScalarProperty(u,o,d,e,n)}if(u.strict===!1||"object"==typeof u.strict&&u.strict.value===!1)return}var m=i(c,t.owner());if(m instanceof s.Status)return a(m,l,o),void n.addSubStatus(m);t.owner().validate(m,!0,!1).getErrors().forEach(function(e){n.addSubStatus(e),a(e,l,o)})}}),n}return s.error(u.EXMAPLES_MAP,this)},t.prototype.checkScalarProperty=function(e,t,n,r,i){var a=n.propName,o=n.propType,u=e[a];if(u&&typeof u!=o){var c=null;if("object"==typeof u&&(c={name:"value"},Object.keys(u).forEach(function(n){if("("==n.charAt(0)&&")"==n.charAt(n.length-1)){var o=new v(n.substring(1,n.length-1),e[a][n]),u=o.validateSelf(r,!0);s.setValidationPath(u,{name:"examples",child:{name:t,child:{name:a,child:{name:n}}}}),i.addSubStatus(u)}})),!u.value&&typeof u.value!=o){var l=s.error(n.messageEntry,this);s.setValidationPath(l,{name:"examples",child:{name:t,child:{name:a,child:c}}}),i.addSubStatus(l)}}},t.prototype.kind=function(){return d.MetaInformationKind.Examples},t}(m);t.Examples=w;var k=function(e){function t(t){e.call(this,"xml",t)}return o(t,e),t.prototype.kind=function(){return d.MetaInformationKind.XMLInfo},t}(m);t.XMLInfo=k;var x=function(e){function t(t){e.call(this,"default",t)}return o(t,e),t.prototype.validateSelf=function(t){var n=this,r=e.prototype.validateSelf.call(this,t),i=this.owner().validateDirect(this.value(),!0);if(!i.isOk()){var a=s.error(u.INVALID_DEFAULT_VALUE,this,{msg:i.getMessage()});i.getErrors().forEach(function(e){a.addSubStatus(e),s.setValidationPath(e,{name:n.facetName()})}),r.addSubStatus(a)}return r},t.prototype.kind=function(){return d.MetaInformationKind.Default},t}(m);t.Default=x;var R=function(e){function t(t){e.call(this,!0),this.property=t}return o(t,e),t.prototype.requiredType=function(){return s.OBJECT},t.prototype.value=function(){return this.property},t.prototype.facetName=function(){return"discriminator"},t.prototype.validateSelf=function(t){var n=this,r=e.prototype.validateSelf.call(this,t);if(this.owner().isUnion())r=s.error(u.DISCRIMINATOR_FOR_UNION,this);else if(this.owner().isSubTypeOf(s.OBJECT))if(this.owner().getExtra(s.GLOBAL)===!1)r=s.error(u.DISCRIMINATOR_FOR_INLINE,this);else{var i=p.find(this.owner().meta(),function(e){return e instanceof l.PropertyIs&&e.propertyName()==n.value()});i?i.value().isScalar()||(r=s.error(u.SCALAR_FOR_DISCRIMINATOR,this)):r=s.error(u.UNKNOWN_FOR_DISCRIMINATOR,this,{value:this.value()},s.Status.WARNING)}else r=s.error(u.DISCRIMINATOR_FOR_OBJECT,this);return r.getValidationPath()||s.setValidationPath(r,{name:this.facetName()}),r},t.prototype.kind=function(){return d.MetaInformationKind.Discriminator},t}(s.TypeInformation);t.Discriminator=R;var I=function(e){function t(t,n){void 0===n&&(n=!0),e.call(this,!1),this._value=t,this.strict=n}return o(t,e),t.prototype.check=function(e,n){var r=this.owner(),i=this.value(),a=r.metaOfType(R);if(0==a.length)return s.ok();var o=a[0].value();if(i){if(e.hasOwnProperty(o)){for(var u=this.owner().allSubTypes().concat(this.owner()),l={},p=0,f=u;p<f.length;p++){var d=f[p],m=d.metaOfType(t);m&&m.length>0&&m.forEach(function(e){return l[e.value()]=!0})}var h=e[o];if(!l[h]){var y=s.error(c.Status.CODE_INCORRECT_DISCRIMINATOR,this,{rootType:r.name(),value:h,propName:o},c.Status.WARNING);return s.setValidationPath(y,{name:o,child:n}),y}return s.ok()}var _=s.error(c.Status.CODE_MISSING_DISCRIMINATOR,this,{rootType:r.name(),propName:o});return s.setValidationPath(_,n),_}return s.ok()},t.prototype.facetName=function(){return"discriminatorValue"},t.prototype.validateSelf=function(t){var n=e.prototype.validateSelf.call(this,t);if(this.strict){var r=this.owner().oneMeta(R);if(this.owner().isSubTypeOf(s.OBJECT))if(this.owner().getExtra(s.GLOBAL)===!1)n.addSubStatus(s.error(u.DISCRIMINATOR_FOR_INLINE,this));else if(r){var i=p.find(this.owner().meta(),function(e){return e instanceof l.PropertyIs&&e.propertyName()==r.value()});if(i){var a=i.value().validate(this.value());a.isOk()||n.addSubStatus(s.error(u.INVALID_DISCRIMINATOR_VALUE,this,{msg:a.getMessage()}))}}else n.addSubStatus(s.error(u.DISCRIMINATOR_VALUE_WITHOUT_DISCRIMINATOR,this));else n.addSubStatus(s.error(u.DISCRIMINATOR_FOR_OBJECT,this))}return n.getValidationPath()||s.setValidationPath(n,{name:this.facetName()}),n},t.prototype.requiredType=function(){return s.OBJECT},t.prototype.value=function(){return this._value},t.prototype.kind=function(){return d.MetaInformationKind.DiscriminatorValue},t.prototype.isStrict=function(){return this.strict},t}(s.Constraint);t.DiscriminatorValue=I},function(e,t,n){"use strict";function r(){return A.length>0?A[A.length-1]:null}function i(e){for(var t;e;)t=e.owner(),e=t instanceof p.InheritedType?t.contextMeta():null;A.push(t)}function a(e){for(void 0===e&&(e=0);A.length>e;)A.pop()}function o(){return A.length}function s(e){return parseFloat(e)==parseInt(e)&&!isNaN(e)}function u(e){e=e.map(function(e){return e.preoptimize()});var t=[];e.forEach(function(e){if(e instanceof h.AndRestriction){e.options().forEach(function(e){t.push(e)})}else t.push(e)});for(var n=!0;n;){n=!1;for(var r=0;r<t.length;r++){for(var i=0;i<t.length;i++){var a=t[r],o=t[i];if(a!==o){var s=a.tryCompose(o);if(s){var u=t.filter(function(e){return e!==a&&e!==o});u.push(s),n=!0,t=u;break}}}if(n)break}}return t}function c(e){if(!e.isSubTypeOf(p.UNKNOWN))return null;if(null!=e.name())return e;for(var t=0,n=e.superTypes();t<n.length;t++){var r=n[t],i=c(r);if(null!=i)return i}return e}var l=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},p=n(6),f=p.messageRegistry,d=n(92),m=n(1),h=n(6),y=n(6),_=function(e){function t(t){e.call(this),this._type=t}return l(t,e),t.prototype.matches=function(e){return!1},t.prototype.check=function(e,t){throw new Error("Should be never called")},t.prototype.patchPath=function(e){if(e){for(var t=e,n=null,r=null;t;)if(n){var i={name:t.name};r.child=i,t=t.child,r=i}else n={name:t.name},r=n;return n.child={name:this.propId()},n}return{name:this.propId()}},t.prototype.validateProp=function(e,t,n,r){var i=e[t],a=n.validate(i,!1,!1);if(!a.isOk()){if(n.isUnknown()||n.isRecurrent()){var o=p.error(f.VALIDATING_AGAINS_UNKNOWN,this,{typeName:n.name()});return p.setValidationPath(o,this.patchPath(r)),o}var o=new y.Status(y.Status.OK,"","",this);return a.getErrors().forEach(function(e){return o.addSubStatus(e)}),p.setValidationPath(o,this.patchPath(r)),o}return p.ok()},t.prototype.validateSelf=function(e){if(this._type.isExternal()){var t=p.error(f.EXTERNAL_IN_PROPERTY_DEFINITION,this);return p.setValidationPath(t,{name:this.propId()}),t}if(this._type.isSubTypeOf(p.UNKNOWN)||this._type.isSubTypeOf(p.RECURRENT)){var n=c(this._type),t=p.error(f.UNKNOWN_IN_PROPERTY_DEFINITION,this,{propName:this.propId(),typeName:n.name()});return p.setValidationPath(t,{name:this.propId(),child:{name:"type"}}),t}if(this._type.isAnonymous()){var r=this._type.validateType(e);if(!r.isOk()){var t=p.error(f.ERROR_IN_RANGE,this,{propName:this.propId(),msg:r.getMessage()});return r.getErrors().forEach(function(e){t.addSubStatus(e)}),p.setValidationPath(t,{name:this.propId()}),t}return r}if(this._type.isUnion()){var i=m.find(this._type.typeFamily(),function(e){return e.isSubTypeOf(p.UNKNOWN)});if(i){var t=p.error(f.UNKNOWN_IN_PROPERTY_DEFINITION,this,{propName:this.propId(),typeName:i.name()});return p.setValidationPath(t,{name:this.propId()}),t}}return p.ok()},t}(p.Constraint);t.MatchesProperty=_;var g=function(e){function t(t,n){e.call(this),this._value=t,this.provider=n}return l(t,e),t.prototype.value=function(){return this._value},t.prototype.check=function(e){var t=null,n=this.value();if("{"==n.charAt(0))try{t=d.getJSONSchema(n,this.provider)}catch(e){return p.error(f.INCORRECT_SCHEMA,this,{msg:e.message})}if("<"==n.charAt(0))try{t=d.getXMLSchema(n,this.provider)}catch(e){return p.ok()}if(t)try{t.validateObject(e)}catch(e){return"!_PERF_!"==e.message?p.error(f.UNABLE_TO_VALIDATE_XML,this,{},p.Status.WARNING):"Maximum call stack size exceeded"==e.message?p.error(f.CIRCULAR_REFS_IN_JSON_SCHEMA,this):p.error(f.EXAMPLE_SCHEMA_FAILURE,this,{msg:e.message})}return p.ok()},t.prototype.facetName=function(){return"schema"},t.prototype.requiredType=function(){return p.EXTERNAL},t}(p.Constraint);t.MatchToSchema=g;var v=function(e){function t(t){e.call(this),this._value=t}return l(t,e),t.prototype.facetName=function(){return"closed"},t.prototype.requiredType=function(){return p.OBJECT},t.prototype.value=function(){return this._value},t.prototype.patchOwner=function(e){this._owner=e},t.prototype.check=function(e){var t=this;if(this._value===!1&&e&&"object"==typeof e&&!Array.isArray(e)){var n={};Object.getOwnPropertyNames(e).forEach(function(e){return n[e]=!0});var r=this.owner().knownProperties();Object.getOwnPropertyNames(e).forEach(function(e){r.forEach(function(t){t.matches(e)&&delete n[e]})});var i=Object.keys(n);if((this.owner().hasPropertiesFacet()||r.length>0)&&i.length>0){var a=new p.Status(p.Status.OK,"","",this);return i.forEach(function(e){var n=p.error(f.UNKNOWN_PROPERTY,t,{propName:e});p.setValidationPath(n,{name:e}),a.addSubStatus(n)}),a}}return p.ok()},t.prototype.composeWith=function(e){if(!this._value)return null;if(e instanceof t){var n=e;if(m.isEqual(this.owner().propertySet(),n.owner().propertySet()))return n}if(e instanceof b){var r=e,i=r.value();if(this.owner().propertySet().indexOf(i)==-1)return this.nothing(r)}},t}(p.Constraint);t.KnownPropertyRestriction=v;var b=function(e){function t(t){e.call(this),this.name=t}return l(t,e),t.prototype.check=function(e){return e&&"object"==typeof e&&!Array.isArray(e)?e.hasOwnProperty(this.name)?p.ok():p.error(f.REQUIRED_PROPERTY_MISSING,this,{propName:this.name}):p.ok()},t.prototype.requiredType=function(){return p.OBJECT},t.prototype.facetName=function(){return"hasProperty"},t.prototype.value=function(){return this.name},t.prototype.composeWith=function(e){if(e instanceof t){if(e.name===this.name)return this}return null},t}(p.Constraint);t.HasProperty=b;var S=function(e){function t(t,n,r){void 0===r&&(r=!1),e.call(this,n),this.name=t,this.type=n,this.optional=r}return l(t,e),t.prototype.matches=function(e){return e===this.name},t.prototype.path=function(){return this.name},t.prototype.check=function(e,t){if(e&&"object"==typeof e&&e.hasOwnProperty(this.name)){var n=this.validateProp(e,this.name,this.type,t);return!n.isOk()&&this.optional&&null==e[this.name]?p.ok():n}return p.ok()},t.prototype.requiredType=function(){return p.OBJECT},t.prototype.propId=function(){return this.name},t.prototype.propertyName=function(){return this.name},t.prototype.facetName=function(){return"propertyIs"},t.prototype.value=function(){return this.type},t.prototype.composeWith=function(e){if(e instanceof t){var n=e;if(n.name===this.name){if(this.type.typeFamily().indexOf(n.type)!=-1)return n;if(n.type.typeFamily().indexOf(this.type)!=-1)return this;i(e);var r=this.intersect(this.type,n.type);try{var a=r.checkConfluent();if(!a.isOk()){return a.toRestriction()}return new t(this.name,r)}finally{this.release(r)}}}return null},t}(_);t.PropertyIs=S;var A=[];t.anotherRestrictionComponent=r,t.releaseAnotherRestrictionComponent=a,t.anotherRestrictionComponentsCount=o;var T=function(e){function t(t,n){e.call(this,n),this.regexp=t,this.type=n}return l(t,e),t.prototype.path=function(){return"/"+this.regexp+"/"},t.prototype.matches=function(e){return!!e.match(this.regexp)},t.prototype.requiredType=function(){return p.OBJECT},t.prototype.propId=function(){return"["+this.regexp+"]"},t.prototype.facetName=function(){return"mapPropertyIs"},t.prototype.value=function(){return this.type},t.prototype.regexpValue=function(){return this.regexp},t.prototype.validateSelf=function(t){var n=this.checkValue();return n?p.error(f.INVALID_REGEXP,this,{msg:n}):e.prototype.validateSelf.call(this,t)},t.prototype.checkValue=function(){try{new RegExp(this.regexp)}catch(e){return e.message}return null},t.prototype.composeWith=function(e){if(e instanceof t){var n=e;if(n.regexp===this.regexp){if(this.type.typeFamily().indexOf(n.type)!=-1)return n;if(n.type.typeFamily().indexOf(this.type)!=-1)return this;var r=this.intersect(this.type,n.type);try{var i=r.checkConfluent();if(!i.isOk()){return i.toRestriction()}return new t(this.regexp,r)}finally{this.release(r)}}}return null},t.prototype.check=function(e,t){if(e&&"object"==typeof e){var n={};null!=this._owner&&this._owner.meta().filter(function(e){return e instanceof S}).forEach(function(e){n[e.propertyName()]=!0});for(var r=new p.Status(p.Status.OK,"","",this),i=0,a=Object.getOwnPropertyNames(e);i<a.length;i++){var o=a[i];if(!n[o]&&o.match(this.regexp)){var s=this.validateProp(e,o,this.type,t);s.isOk()||r.addSubStatus(s)}}return r}return p.ok()},t}(_);t.MapPropertyIs=T;var E=function(e){function t(t){e.call(this,t),this.type=t}return l(t,e),t.prototype.path=function(){return this.facetName()},t.prototype.matches=function(e){return!0},t.prototype.requiredType=function(){return p.OBJECT},t.prototype.propId=function(){return"[]"},t.prototype.facetName=function(){return"additionalProperties"},t.prototype.value=function(){return this.type},t.prototype.match=function(e){for(var t=this.owner().metaOfType(S),n=this.owner().metaOfType(T),r=0;r<t.length;r++)if(t[r].matches(e))return!0;for(var r=0;r<n.length;r++)if(n[r].matches(e))return!0;return!1},t.prototype.composeWith=function(e){if(e instanceof t){var n=e;if(this.type.typeFamily().indexOf(n.type)!=-1)return n;if(n.type.typeFamily().indexOf(this.type)!=-1)return this;var r=this.intersect(this.type,n.type);try{var i=r.checkConfluent();if(!i.isOk()){return i.toRestriction()}return new t(r)}finally{this.release(r)}}return null},t.prototype.check=function(e,t){var n=this,r=this.type,i=new p.Status(p.Status.OK,"","",this);return e&&"object"==typeof e&&Object.getOwnPropertyNames(e).forEach(function(a){if(!n.match(a)){var o=n.validateProp(e,a,r,t);o.isOk()||i.addSubStatus(o)}}),i},t}(_);t.AdditionalPropertyIs=E;var C=function(e){function t(){e.apply(this,arguments)}return l(t,e),t.prototype.requiredTypes=function(){return[]},t.prototype.checkOwner=function(e){var t=!1;if(e.isUnion())for(var n=e.typeFamily(),r=0,i=n;r<i.length;r++){var a=i[r];if(this.owner().isSubTypeOf(a)){t=!0;break}}else t=this.owner().isSubTypeOf(e);return t},t.prototype.validateSelf=function(t){var n=this,r=e.prototype.validateSelf.call(this,t),i=!1;if(this.checkOwner(this.requiredType()))if(this.requiredTypes()&&this.requiredTypes().length>0){var a=(this.owner(),m.find(this.requiredTypes(),function(e){return n.checkOwner(e)}));a&&(i=!0)}else i=!0;var o;if(i)o=this.checkValue();else{var s=this.requiredType().name();this.requiredTypes()&&this.requiredTypes().length>0&&(s="["+this.requiredTypes().map(function(e){return e.name()}).join()+"]");var o=p.error(f.FACET_USAGE_RESTRICTION,this,{facetName:this.facetName(),typeNames:s})}if(o&&!o.isOk())return p.setValidationPath(o,{name:this.facetName()}),o;var u=[r,o].filter(function(e){return e&&!e.isOk()});if(0==u.length)return p.ok();if(1==u.length)return u[0];for(var c=p.ok(),l=0,d=u;l<d.length;l++){var h=d[l];c.addSubStatus(h)}return c},t}(p.Constraint);t.FacetRestriction=C;var N=function(e){function t(t,n,r,i,a,o){e.call(this),this._facetName=t,this._value=n,this._max=r,this._opposite=i,this._requiredType=a,this._isInt=o}return l(t,e),t.prototype.facetName=function(){return this._facetName},t.prototype.isIntConstraint=function(){return this._isInt},t.prototype.isMax=function(){return this._max},t.prototype.value=function(){return this._value},t.prototype.check=function(e){var t=this.extractValue(e);if("number"==typeof t)if(this.isMax()){if(this.value()<t)return this.createError()}else if(this.value()>t)return this.createError();return p.ok()},t.prototype.createError=function(){return new y.Status(y.Status.ERROR,f.MINMAX_RESTRICTION_VIOLATION.code,this.toString(),this)},t.prototype.minValue=function(){return this._isInt?0:Number.NEGATIVE_INFINITY},t.prototype.requiredType=function(){return this._requiredType},t.prototype.checkValue=function(){return"number"!=typeof this._value?p.error(f.FACET_REQUIRE_NUMBER,this,{facetName:this.facetName()},p.Status.ERROR,!0):this.isIntConstraint()&&!s(this.value())?p.error(f.FACET_REQUIRE_INTEGER,this,{facetName:this.facetName()},p.Status.ERROR,!0):this.value()<this.minValue()?p.error(f.MIN_VALUE,this,{facetName:this.facetName(),minValue:this.minValue()},p.Status.ERROR,!0):void 0},t.prototype.composeWith=function(e){if(e instanceof t){var n=e;if(n.facetName()==this.facetName()&&n.isMax()==this.isMax())return this.isMax()?this.value()<n.value()?n:this:this.value()>n.value()?n:this;if(n.facetName()===this._opposite)if(this.isMax()){if(n.value()>this.value())return this.nothing(e)}else if(n.value()<this.value())return this.nothing(e)}return null},t.prototype.facetPath=function(){var e=[this.facetName()],t=this._owner;if(null!=t&&t instanceof p.InheritedType){var n=t;e=p.typePath(n).concat(e)}return e.join(".")},t.prototype.toString=function(){return"'"+this.facetPath()+"="+this.value()+"' i.e. "+this.textMessagePart()+" "+this.value()},t.prototype.conflictMessage=function(e,t){var n=this.isMax()?["less","higher"]:["higher","less"];return"['"+this.facetPath()+"="+this.value()+"' is "+n[0]+" than '"+e+"="+t+"'. The "+this._opposite+" cannot be "+n[1]+" than the "+this.facetName()+".]"},t}(C);t.MinMaxRestriction=N;var w=function(e){function t(t){e.call(this),this._value=t}return l(t,e),t.prototype.value=function(){return this._value},t.prototype.check=function(e){if("number"==typeof e){if(!s(e/this.value()))return p.error(f.EVEN_RATIO,this,{val1:e,val2:this.value()})}return p.ok()},t.prototype.composeWith=function(e){return null},t.prototype.facetName=function(){return"multipleOf"},t.prototype.checkValue=function(){return"number"!=typeof this._value?p.error(f.FACET_REQUIRE_NUMBER,this,{facetName:this.facetName()},p.Status.ERROR,!0):this._value<=0?p.error(f.VALUE_SHOULD_BE_POSITIVE,this,{facetName:this.facetName()},p.Status.ERROR,!0):null},t.prototype.requiredType=function(){return p.NUMBER},t}(C);t.MultipleOf=w;var k=function(e){function t(t){e.call(this,"maximum",t,!0,"minimum",p.NUMBER,!1)}return l(t,e),t.prototype.extractValue=function(e){return e},t.prototype.textMessagePart=function(){return"value should not be more than"},t}(N);t.Maximum=k;var x=function(e){function t(t){e.call(this,"minimum",t,!1,"maximum",p.NUMBER,!1)}return l(t,e),t.prototype.extractValue=function(e){return e},t.prototype.textMessagePart=function(){return"value should not be less than"},t}(N);t.Minimum=x;var R=function(e){function t(t){e.call(this,"maxItems",t,!0,"minItems",p.ARRAY,!0)}return l(t,e),t.prototype.extractValue=function(e){if(Array.isArray(e))return e.length},t.prototype.textMessagePart=function(){return"array items count should not be more than"},t}(N);t.MaxItems=R;var I=function(e){function t(t){e.call(this,"minItems",t,!1,"maxItems",p.ARRAY,!0)}return l(t,e),t.prototype.extractValue=function(e){if(Array.isArray(e))return e.length},t.prototype.textMessagePart=function(){return"array items count should not be less than"},t}(N);t.MinItems=I;var D=function(e){function t(t){e.call(this,"maxLength",t,!0,"minLength",new p.UnionType("string and file",[p.STRING,p.FILE]),!0)}return l(t,e),t.prototype.extractValue=function(e){return"string"==typeof e?e.length:0},t.prototype.textMessagePart=function(){return"string length should not be more than"},t}(N);t.MaxLength=D;var M=function(e){function t(t){e.call(this,"minLength",t,!1,"maxLength",new p.UnionType("string and file",[p.STRING,p.FILE]),!0)}return l(t,e),t.prototype.extractValue=function(e){return"string"==typeof e?e.length:0},t.prototype.textMessagePart=function(){return"string length should not be less than"},t}(N);t.MinLength=M;var P=function(e){function t(t){e.call(this,"maxProperties",t,!0,"minProperties",p.OBJECT,!0)}return l(t,e),t.prototype.extractValue=function(e){return Object.keys(e).length},t.prototype.textMessagePart=function(){return"object properties count should not be more than"},t}(N);t.MaxProperties=P;var L=function(e){function t(t){e.call(this,"minProperties",t,!1,"maxProperties",p.OBJECT,!0)}return l(t,e),t.prototype.extractValue=function(e){return Object.keys(e).length},t.prototype.textMessagePart=function(){return"object properties count should not be less than"},t}(N);t.MinProperties=L;var O=function(e){function t(t){e.call(this),this._value=t}return l(t,e),t.prototype.facetName=function(){return"uniqueItems"},t.prototype.requiredType=function(){return p.ARRAY},t.prototype.check=function(e){if(!this._value)return p.ok();if(Array.isArray(e)){var t=e;if(m.unique(t).length!=t.length)return p.error(f.MUST_BE_UNIQUE,this)}return p.ok()},t.prototype.composeWith=function(e){if(e instanceof t){if(e._value==this._value)return this}return null},t.prototype.value=function(){return this._value},t.prototype.checkValue=function(){return"boolean"!=typeof this._value?p.error(f.UNIQUE_ITEMS_BOOLEAN,this):null},t.prototype.toString=function(){return"items should be unique"},t}(C);t.UniqueItems=O;var U=function(e){function t(t){e.call(this),this.type=t}return l(t,e),t.prototype.facetName=function(){return"items"},t.prototype.requiredType=function(){return p.ARRAY},t.prototype.toString=function(){return"items should be of type "+this.type},t.prototype.check=function(e){var t=new p.Status(p.Status.OK,"","",this);if(Array.isArray(e))for(var n=e,r=0;r<n.length;r++){var i=this.type.validate(n[r],!1,!1);if(!i.isOk()){var a=this.type;if(a.isUnknown()||a.isRecurrent()){var o=p.error(f.ARRAY_AGAINST_UNKNOWN,this,{typeName:a.name()});return o}}p.setValidationPath(i,{name:""+r}),t.addSubStatus(i)}return t},t.prototype.validateSelf=function(t){var n=e.prototype.validateSelf.call(this,t);if(this.type.isAnonymous()){return this.type.validateType(t).isOk()||n.addSubStatus(p.error(f.INVALID_COMPONENT_TYPE,this,{msg:n.getMessage()})),n}if(this.type.isExternal())n.addSubStatus(p.error(f.EXTERNAL_AS_COMPONENT,this));else if(this.type.isSubTypeOf(p.UNKNOWN)||this.type.isSubTypeOf(p.RECURRENT))n.addSubStatus(p.error(f.UNKNOWN_AS_COMPONENT,this,{typeName:this.type.name()}));else if(this.type.isUnion()){var r=m.find(this.type.typeFamily(),function(e){return e.isSubTypeOf(p.UNKNOWN)});r&&n.addSubStatus(p.error(f.UNKNOWN_AS_COMPONENT,this,{typeName:r.name()}))}return n},t.prototype.composeWith=function(e){if(e instanceof t){var n=e;if(this.type.typeFamily().indexOf(n.type)!=-1)return n;if(n.type.typeFamily().indexOf(this.type)!=-1)return this;var r=this.intersect(this.type,n.type);try{var i=r.checkConfluent();if(!i.isOk()){return i.toRestriction()}return new t(r)}finally{this.release(r)}}return null},t.prototype.checkValue=function(){return null},t.prototype.value=function(){return this.type},t}(C);t.ComponentShouldBeOfType=U;var F=function(e){function t(t){e.call(this),this._value=t}return l(t,e),t.prototype.facetName=function(){return"pattern"},t.prototype.requiredType=function(){return p.STRING},t.prototype.check=function(e){if("string"==typeof e){var t=e;try{var n=t.match(this._value),r=!1;if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];if(o.length==t.length){r=!0;break}}if(!r)return p.error(f.PATTERN_VIOLATION,this,{value:this.value()})}catch(e){}}return p.ok()},t.prototype.composeWith=function(e){if(e instanceof t){return e._value===this._value?this:this.nothing(e,"pattern restrictions can not be composed at one type")}return null},t.prototype.value=function(){return this._value},t.prototype.checkValue=function(){try{new RegExp(this._value)}catch(e){return p.error(f.INVALID_REGEXP,this,{msg:e.message},p.Status.ERROR,!0)}return null},t.prototype.toString=function(){return"should pass reg exp:"+this.value},t}(C);t.Pattern=F;var B=function(e){function t(t){e.call(this),this._value=t}return l(t,e),t.prototype.facetName=function(){return"fileTypes"},t.prototype.requiredType=function(){return p.FILE},t.prototype.check=function(e){if(!Array.isArray(e))return p.error(f.FILE_TYPES_SHOULD_BE_AN_ARRAY,this);for(var t=0,n=e;t<n.length;t++){if("string"!=typeof n[t])return p.error(f.FILE_TYPES_SHOULD_BE_AN_ARRAY,this)}return p.ok()},t.prototype.composeWith=function(e){if(e instanceof t){var n=e,r=m.intersection(this._value,n._value);return r.length>0?new t(r):this.nothing(e,"no common file types")}return null},t.prototype.value=function(){return this._value},t.prototype.checkValue=function(){return p.ok()},t.prototype.toString=function(){return"supported file types: "+this._value.join(", ")},t}(C);t.FileTypes=B;var K=function(e){function t(t){e.call(this),this._value=t}return l(t,e),t.prototype.facetName=function(){return"format"},t.prototype.requiredType=function(){return p.SCALAR},t.prototype.requiredTypes=function(){return[p.NUMBER,p.INTEGER,p.DATETIME]},t.prototype.check=function(e){return p.ok()},t.prototype.composeWith=function(e){if(e instanceof t){return e._value===this._value?this:this.nothing(e,"Format restrictions can not be composed at one type")}return null},t.prototype.value=function(){return this._value},t.prototype.checkValue=function(){var e=this;try{var t=[];if(this.owner().isSubTypeOf(p.INTEGER))t=["int32","int64","int","int16","int8"];else if(this.owner().isSubTypeOf(p.NUMBER))t=["int32","int64","int","long","float","double","int16","int8"];else{if(!this.owner().isSubTypeOf(p.DATETIME))return null;t=["rfc3339","rfc2616"]}if(!m.find(t,function(t){return t==e.value()}))return p.error(f.ALLOWED_FORMAT_VALUES,this,{allowedValues:t.map(function(e){return"'"+e+"'"}).join(", ")},p.Status.ERROR,!0)}catch(e){return new y.Status(y.Status.ERROR,"",e.message,this)}return null},t.prototype.toString=function(){return"should have format:"+this.value},t}(C);t.Format=K;var V=function(e){function t(t){e.call(this),this._value=t}return l(t,e),t.prototype.facetName=function(){return"enum"},t.prototype.requiredType=function(){return p.ANY},t.prototype.check=function(e){if(!this.checkStatus){var t=this.value();if(Array.isArray(t)||(t=[t]),!t.some(function(t){return t==e})){var n=Array.isArray(this._value)?this._value.map(function(e){return"'"+e+"'"}).join(", "):"'"+this._value+"'";return p.error(f.ENUM_RESTRICTION,this,{values:n})}}return p.ok()},t.prototype.composeWith=function(e){if(e instanceof t){var n=e,r=m.intersection(this._value,n._value);return 0==r.length?this.nothing(e):new t(r)}return null},t.prototype.value=function(){return this._value},t.prototype.checkValue=function(){var e=this;if(!this.owner().isSubTypeOf(this.requiredType()))return p.error(f.ENUM_OWNER_TYPES,this,{typeNames:this.requiredType().name()},p.Status.ERROR,!0);if(this.requiredTypes()&&this.requiredTypes().length>0){var t=this.owner();if(!m.find(this.requiredTypes(),function(e){return t.isSubTypeOf(e)})){var n="["+this.requiredTypes().map(function(e){return"'"+e.name()+"'"}).join(", ")+"]";return p.error(f.ENUM_OWNER_TYPES,this,{typeNames:n},p.Status.ERROR,!0)}}if(!Array.isArray(this._value))return p.error(f.ENUM_ARRAY,this,{},p.Status.ERROR,!0);var r=p.ok();this.checkStatus=!0;try{this._value.forEach(function(t,n){var i=e.owner().validate(t);i.isOk()||(p.setValidationPath(i,{name:n}),r.addSubStatus(i))})}finally{this.checkStatus=!1}return r},t.prototype.toString=function(){return"value should be one of: "+(Array.isArray(this._value)?this._value.map(function(e){return"'"+e+"'"}).join(", "):"'"+this._value+"'")},t}(C);t.Enum=V,t.optimize=u},function(e,t,n){"use strict";function r(){return new W}function i(e){if(null==e)return null;switch(e.kind){case N.Kind.SCALAR:return{errors:[],startPosition:e.startPosition,endPosition:e.endPosition,value:e.value,kind:N.Kind.SCALAR,parent:e.parent};case N.Kind.MAPPING:var t=e;return{errors:[],key:i(t.key),value:i(t.value),startPosition:t.startPosition,endPosition:t.endPosition,kind:N.Kind.MAPPING,parent:t.parent};case N.Kind.MAP:var n=e;return{errors:[],startPosition:e.startPosition,endPosition:e.endPosition,mappings:n.mappings.map(function(e){return i(e)}),kind:N.Kind.MAP,parent:n.parent}}return e}function a(e){return e.match(/^.*((\r\n|\n|\r)|$)/gm)}function o(e,t){for(var n=a(e),r=[],i=0;i<n.length;i++)0==i?r.push(n[0]):r.push(n[i].substring(t.length));return r.join("")}function s(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("\r"!=r&&"\n"!=r){if(" "!=r&&"\t"!=r)break;t+=r}}return t}function u(e,t){return e.substr(t.offset,t.replacementLength).indexOf("\n")!=-1||t.text.indexOf("\n")!=-1||void 0}function c(e){if("null"==e)e=null;else if("~"==e)e=null;else if("true"==e)e=!0;else if("false"==e)e=!1;else{var t=parseFloat(e);isNaN(t)||(""+e).match("^[-+]?[0-9]*\\.?[0-9]+$")&&(e=t)}return e}function l(e,t,n){return new X(N.newMapping(N.newScalar(e),N.newMap()),n,t,null,null)}function p(e){return new X(N.newMap(e),null,null,null,null)}function f(e){return new X(N.newScalar(e),null,null,null,null)}function d(e,t,n){return new X(e,n,t,null,null)}function m(e){return new X(N.newMapping(N.newScalar(e),N.newItems()),null,null,null,null)}function h(e){return new X(N.newMapping(N.newScalar(e),N.newMap()),null,null,null,null)}function y(e,t){return new X(N.newMapping(N.newScalar(e),N.newScalar(t)),null,null,null,null)}function _(e){if(!X.isInstance(e))return null;var t=e,n=new X(t.yamlNode(),t.unit(),null,null,null,!0);return n._errors=t._errors,n}function g(e){if(!X.isInstance(e))return null;var t=e,n=new X(t.yamlNode(),t.unit(),null,null,null,!1);return n._errors=t._errors,n}function v(e){var t=e.highLevelNode();if(t)return t.definition();var n=e.parent();if(!n)return null;var r=e.key();if(!r)return null;var i=n.nodeDefinition();if(!i)return null;if(!i.property)return null;var a=i.property(r);return a?a.range():null}function b(e,t,n,r){if(e.isOverlayOrExtension()){var i=e.getMasterReferenceNode();if(i){var a=i.value();if(a){var o=T.dirname(e.absolutePath()),s=A.toAbsolutePath(o,a);if(!t[s]){if(n[s])return void i.errors().push(new F(n[a]));var u=r[s];u||(u=[],r[s]=u),u.push(i)}}}}}function S(e,t){var n={},r={},i=[],a=function(t){for(var o=[],s={};t<i.length;){var u=i[t],c=u.absolutePath();b(u,n,r,s);u.getIncludeNodes().forEach(function(t){var i=t.includePath();if(i){if(M.getIncludeReference(i))return void o.push(e.resolveAsync(u.absolutePath(),i));if(i){var a=A.buildPath(i,c,e.getRootPath());if(!n[a]){if(r[a]&&t.errors)return void t.errors().push(new F(r[i]));var l=s[a];l||(l=[],s[a]=l),l.push(t)}}}}),t++}var l=Object.keys(s);if(0==o.length&&0==l.length)return Promise.resolve();var p=o;return l.forEach(function(t){p.push(e.unitAsync(t,!0).then(function(e){n[e.absolutePath()]||(n[e.absolutePath()]=!0,i.push(e))},function(n){var i=e.pathToUnit[t];s[t].forEach(function(e){i||e.errors&&e.errors().push(new F(n))}),r[t]=n,e.failedUnits[t]=n,i&&(n.inner=!0)}))}),Promise.all(p).then(function(e){return a(t)})};return e.unitAsync(t,T.isAbsolute(t)).then(function(e){return i.push(e),n[e.absolutePath()]=!0,a(0)}).then(function(e){return i.length>0?i[0]:null})}var A=n(20),T=n(11),E=n(162),C=n(47),N=n(14),w=n(1),k=n(64),x=n(4),R=n(141),I=n(28),D=n(15),M=n(142),P=n(327),L=n(3),O=n(25),U=n(60),F=N.YAMLException;t.Kind={SCALAR:N.Kind.SCALAR};var B=function(){function e(e){this.text="",this.indent=e}return e.prototype.isLastNL=function(){return this.text.length>0&&"\n"==this.text[this.text.length-1]},e.prototype.addWithIndent=function(e,t){this.isLastNL()&&(this.text+=k.indent(e),this.text+=this.indent),this.text+=t},e.prototype.addChar=function(e){this.isLastNL()&&(this.text+=this.indent),this.text+=e},e.prototype.append=function(e){for(var t=0;t<e.length;t++)this.addChar(e[t])},e}();t.MarkupIndentingBuffer=B;var K=function(){function e(e,t,n,r,i){this._path=e,this._content=t,this._tl=n,this._project=r,this._apath=i,this._includedByPaths=[],this._path=null!=this._path?this._path.replace(/\\/g,"/"):null}return e.isInstance=function(t){return null!=t&&t.getClassIdentifier&&"function"==typeof t.getClassIdentifier&&w.contains(t.getClassIdentifier(),e.CLASS_IDENTIFIER)},e.prototype.getClassIdentifier=function(){return[].concat(e.CLASS_IDENTIFIER)},e.prototype.highLevel=function(){return this._hl?this._hl:(this._hl=x.fromUnit(this),this._hl)},e.prototype.isStubUnit=function(){return this.stu},e.prototype.resolveAsync=function(e){return this._project.resolveAsync(this._path,e)},e.prototype.getIncludeNodes=function(){var e=this.ast(),t=[];return null==e?[]:(e.gatherIncludes(t),e.children().forEach(function(e){"uses"==e.key()&&e.children().forEach(function(e){t.push({includePath:function(){var t=e.value();return"string"!=typeof t?null:t}})})}),t)},e.prototype.cloneToProject=function(t){return new e(this._path,this._content,this._tl,t,this._apath)},e.prototype.clone=function(){return new e(this._path,this._content,this._tl,this.project(),this._apath)},e.prototype.stub=function(){var t=new e(this._path,this._content,this._tl,this.project(),this._apath);return t.stu=!0,t},e.prototype.isDirty=function(){return!1},e.prototype.expandedHighLevel=function(){if(this.expanded)return this.expanded;var e=this.highLevel().asElement(),t=O.expandTraitsAndResourceTypes(e.wrapperNode()),n=t.highLevel();return n._expanded=!0,this.expanded=n,n},e.prototype.absolutePath=function(){return this._apath},e.prototype.isRAMLUnit=function(){var e=this.absolutePath();if(A.isWebPath(e))try{e=E.parse(e).pathname}catch(t){e=this._path}var t=T.extname(e);return".raml"==t||".yaml"==t||".yml"==t},e.prototype.contents=function(){return this._content},e.prototype.resolve=function(e){return"string"!=typeof e&&(e=""+e),this._project.resolve(this._path,e)},e.prototype.path=function(){return this._path},e.prototype.lexerErrors=function(){return null==this.errors&&this.ast(),this.errors},e.prototype.ast=function(){var e=this;if(this._node)return this._node;try{var t=N.load(this._content,{ignoreDuplicateKeys:!0});return this.errors=t.errors,this.errors.forEach(function(t){t.mark&&(t.mark.filePath=e.absolutePath())}),this._node=new X(t,this,null,null,null),this._node._errors=this.errors,th
gitextract_azhcxwm0/ ├── .babelrc ├── .codeclimate.yml ├── .eslintignore ├── .flowconfig ├── .gitignore ├── .npmignore ├── .nvmrc ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── bin/ │ └── api-flow.js ├── configs/ │ ├── node/ │ │ ├── api-flow-config.js │ │ ├── api-flow.js │ │ └── webpack.config.babel.js │ ├── paw/ │ │ ├── generators/ │ │ │ ├── Generator.js │ │ │ ├── postman2/ │ │ │ │ ├── api-flow-config.js │ │ │ │ └── webpack.config.babel.js │ │ │ ├── raml1/ │ │ │ │ ├── api-flow-config.js │ │ │ │ └── webpack.config.babel.js │ │ │ └── swagger/ │ │ │ ├── api-flow-config.js │ │ │ └── webpack.config.babel.js │ │ └── importers/ │ │ ├── Importer.js │ │ ├── postman2/ │ │ │ ├── api-flow-config.js │ │ │ └── webpack.config.babel.js │ │ ├── raml1/ │ │ │ ├── api-flow-config.js │ │ │ └── webpack.config.babel.js │ │ └── swagger/ │ │ ├── api-flow-config.js │ │ └── webpack.config.babel.js │ ├── shared/ │ │ └── raml-1-parser.js │ ├── web/ │ │ ├── api-flow-config.js │ │ ├── api-flow.js │ │ └── webpack.config.babel.js │ └── webworker/ │ ├── api-flow-config.js │ ├── api-flow.js │ └── webpack.config.babel.js ├── linting/ │ ├── dev.yaml │ ├── eslint_base.yaml │ └── prod.yaml ├── package.json ├── scripts/ │ ├── clean.sh │ ├── configure.sh │ ├── flow-runner.js │ ├── generators.sh │ ├── importers.sh │ ├── lint.sh │ ├── pack.sh │ ├── runners.sh │ ├── test.sh │ ├── transfer.sh │ └── watch.sh ├── src/ │ ├── README.md │ ├── api-flow-config.js │ ├── api-flow.js │ ├── environments/ │ │ ├── environment.js │ │ ├── node/ │ │ │ └── Environment.js │ │ ├── paw/ │ │ │ └── Environment.js │ │ ├── template/ │ │ │ └── Environment.js │ │ ├── web/ │ │ │ └── Environment.js │ │ └── worker/ │ │ └── Environment.js │ ├── loaders/ │ │ ├── internal/ │ │ │ └── Loader.js │ │ ├── loaders.js │ │ ├── paw/ │ │ │ └── Loader.js │ │ ├── postman/ │ │ │ └── v2.0/ │ │ │ ├── Loader.js │ │ │ └── __tests__/ │ │ │ └── Loader.spec.js │ │ ├── raml/ │ │ │ └── Loader.js │ │ ├── swagger/ │ │ │ └── Loader.js │ │ └── template/ │ │ └── v1.0/ │ │ ├── Loader.js │ │ └── __tests__/ │ │ └── Loader.spec.js │ ├── mocks/ │ │ ├── PawMocks.js │ │ ├── PawShims.js │ │ └── __tests__/ │ │ ├── PawMocks.spec.js │ │ └── PawShims.spec.js │ ├── models/ │ │ ├── Api.js │ │ ├── Auth.js │ │ ├── Constraint.js │ │ ├── Contact.js │ │ ├── Context.js │ │ ├── Core.js │ │ ├── Group.js │ │ ├── Info.js │ │ ├── Interface.js │ │ ├── Item.js │ │ ├── License.js │ │ ├── ModelInfo.js │ │ ├── Parameter.js │ │ ├── ParameterContainer.js │ │ ├── Reference.js │ │ ├── Request.js │ │ ├── Resource.js │ │ ├── Response.js │ │ ├── Store.js │ │ ├── URL.js │ │ ├── URLComponent.js │ │ ├── Variable.js │ │ ├── __tests__/ │ │ │ ├── Api.spec.js │ │ │ ├── Constraint.spec.js │ │ │ ├── Contact.spec.js │ │ │ ├── Context.spec.js │ │ │ ├── Group.spec.js │ │ │ ├── Info.spec.js │ │ │ ├── Interface.spec.js │ │ │ ├── License.spec.js │ │ │ ├── ModelInfo.spec.js │ │ │ ├── Parameter.spec.js │ │ │ ├── ParameterContainer.spec.js │ │ │ ├── Reference.spec.js │ │ │ ├── Request.spec.js │ │ │ ├── Resource.spec.js │ │ │ ├── Response.spec.js │ │ │ ├── Store.spec.js │ │ │ ├── URL.spec.js │ │ │ ├── URLComponent.spec.js │ │ │ └── Variable.spec.js │ │ └── auths/ │ │ ├── AWSSig4.js │ │ ├── ApiKey.js │ │ ├── Basic.js │ │ ├── Custom.js │ │ ├── Digest.js │ │ ├── Hawk.js │ │ ├── NTLM.js │ │ ├── Negotiate.js │ │ ├── OAuth1.js │ │ ├── OAuth2.js │ │ └── __tests__/ │ │ ├── AWSSig4.spec.js │ │ ├── ApiKey.spec.js │ │ ├── Basic.spec.js │ │ ├── Custom.spec.js │ │ ├── Digest.spec.js │ │ ├── Hawk.spec.js │ │ ├── NTLM.spec.js │ │ ├── Negotiate.spec.js │ │ ├── OAuth1.spec.js │ │ └── OAuth2.spec.js │ ├── parsers/ │ │ ├── README.md │ │ ├── dummy/ │ │ │ └── Parser.js │ │ ├── internal/ │ │ │ └── Parser.js │ │ ├── parsers.js │ │ ├── paw/ │ │ │ ├── Parser.js │ │ │ └── __tests__/ │ │ │ └── Parser.spec.js │ │ ├── postman/ │ │ │ └── v2.0/ │ │ │ ├── Parser.js │ │ │ └── __tests__/ │ │ │ └── Parser.spec.js │ │ ├── raml/ │ │ │ └── v1.0/ │ │ │ ├── Parser.js │ │ │ └── __tests__/ │ │ │ └── Parser.spec.js │ │ ├── swagger/ │ │ │ └── v2.0/ │ │ │ ├── Parser.js │ │ │ └── __tests__/ │ │ │ └── Parser.spec.js │ │ └── template/ │ │ └── v1.0/ │ │ ├── Parser.js │ │ └── __tests__/ │ │ └── Parser.spec.js │ ├── serializers/ │ │ ├── api-blueprint/ │ │ │ └── 1A/ │ │ │ ├── Serializer.js │ │ │ └── __tests__/ │ │ │ └── Serializer.spec.js │ │ ├── internal/ │ │ │ └── Serializer.js │ │ ├── paw/ │ │ │ ├── Serializer.js │ │ │ └── __tests__/ │ │ │ └── Serializer.spec.js │ │ ├── postman/ │ │ │ └── v2.0/ │ │ │ ├── Serializer.js │ │ │ └── __tests__/ │ │ │ └── Serializer.spec.js │ │ ├── raml/ │ │ │ └── v1.0/ │ │ │ ├── Serializer.js │ │ │ └── __tests__/ │ │ │ └── Serializer.spec.js │ │ ├── serializers.js │ │ └── swagger/ │ │ └── v2.0/ │ │ ├── Serializer.js │ │ └── __tests__/ │ │ └── Serializer.spec.js │ └── utils/ │ ├── __tests__/ │ │ └── fp-utils.spec.js │ ├── fp-utils.js │ └── gen-utils.js ├── testing/ │ ├── e2e/ │ │ ├── internal-apiblueprint-1a/ │ │ │ ├── e2e.spec.js │ │ │ ├── test-case-0/ │ │ │ │ ├── input.json │ │ │ │ └── output.json │ │ │ └── test-case-1/ │ │ │ ├── input.json │ │ │ └── output.json │ │ ├── internal-internal/ │ │ │ ├── e2e.spec.js │ │ │ ├── test-case-0/ │ │ │ │ └── input.json │ │ │ └── test-case-1/ │ │ │ └── input.json │ │ ├── internal-postman2/ │ │ │ ├── e2e.spec.js │ │ │ ├── test-case-0/ │ │ │ │ ├── input.json │ │ │ │ └── output.json │ │ │ └── test-case-1/ │ │ │ ├── input.json │ │ │ └── output.json │ │ ├── internal-raml1/ │ │ │ ├── e2e.spec.js │ │ │ ├── test-case-0/ │ │ │ │ ├── input.json │ │ │ │ └── output.raml │ │ │ └── test-case-1/ │ │ │ ├── input.json │ │ │ └── output.raml │ │ ├── internal-swagger2/ │ │ │ ├── e2e.spec.js │ │ │ ├── test-case-0/ │ │ │ │ ├── input.json │ │ │ │ └── output.json │ │ │ └── test-case-1/ │ │ │ ├── input.json │ │ │ └── output.json │ │ ├── postman-collection2-internal/ │ │ │ ├── e2e.spec.js │ │ │ └── test-case-0/ │ │ │ ├── input.json │ │ │ └── output.json │ │ ├── raml1-internal/ │ │ │ ├── e2e.spec.js │ │ │ ├── test-case-0/ │ │ │ │ ├── input.raml │ │ │ │ └── output.json │ │ │ └── test-case-1/ │ │ │ ├── examples/ │ │ │ │ └── songs.xml │ │ │ ├── input.raml │ │ │ ├── libraries/ │ │ │ │ ├── api-library.raml │ │ │ │ └── songs-library.raml │ │ │ ├── output.json │ │ │ ├── schemas/ │ │ │ │ ├── idea.raml │ │ │ │ └── songs.xsd │ │ │ └── secured/ │ │ │ └── accessToken.raml │ │ └── swagger2-internal/ │ │ ├── e2e.spec.js │ │ ├── input.json │ │ └── output.json │ ├── e2e-runner.js │ ├── mocha-runner.js │ └── test-require-patch.js └── webpack.config.babel.js
Showing preview only (292K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (3343 symbols across 52 files)
FILE: configs/paw/generators/Generator.js
class SwaggerGenerator (line 7) | class SwaggerGenerator {
method generate (line 16) | generate(context, reqs, opts) {
FILE: configs/paw/importers/Importer.js
class SwaggerImporter (line 11) | @registerImporter // eslint-disable-line
method canImport (line 18) | canImport(context, items) {
method import (line 22) | import(context, items, options) {
FILE: configs/shared/raml-1-parser.js
function t (line 2) | function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{...
function r (line 2) | function r(){return t.rt.getSchemaUtils()}
function i (line 2) | function i(e){e.isUnion?e.addAdapter(new C(e)):e.range&&e.addAdapter(new...
function a (line 2) | function a(e){return e.getSource&&"function"==typeof e.getSource}
function o (line 2) | function o(e){var t=e;return t.genuineUserDefinedType&&t.isUserDefined&&...
function s (line 2) | function s(e,t,n,r,i){return new b(e,t).withDomain(n,i).withRange(r)}
function n (line 2) | function n(){this.constructor=e}
function t (line 2) | function t(){e.apply(this,arguments)}
function t (line 2) | function t(){e.apply(this,arguments)}
function e (line 2) | function e(){}
function t (line 2) | function t(){e.apply(this,arguments),this.values=[]}
function t (line 2) | function t(t,n,r,i){e.call(this,t,i,n),this.referenceTo=r}
function t (line 2) | function t(t,n,r,i){void 0===i&&(i=""),e.call(this,t,n,r)}
function t (line 2) | function t(t,n,r,i,a){e.call(this,t,n,i,a),this.getAdapter(C).setDeclari...
function t (line 2) | function t(){e.apply(this,arguments)}
function t (line 2) | function t(t,n,r,i){void 0===n&&(n=""),void 0===r&&(r=null),void 0===i&&...
function e (line 2) | function e(e,t){this.name=e,this.value=t}
function t (line 2) | function t(){e.apply(this,arguments),this._isFromParentValue=!1,this._is...
function t (line 2) | function t(t,n){e.call(this,t),this._node=n}
function e (line 2) | function e(){}
function t (line 2) | function t(){e.apply(this,arguments)}
function t (line 2) | function t(t){if(e.call(this),this._property=t,this._meta={},!t)throw ne...
function e (line 2) | function e(e){
function n (line 16) | function n(e){function t(t,n,r,i,a,o){for(;a>=0&&a<o;a+=e){var s=i?i[a]:...
function a (line 16) | function a(e){return function(t,n,r){n=E(n,r);for(var i=x(t),a=e>0?0:i-1...
function o (line 16) | function o(e,t,n){return function(r,i,a){var o=0,s=x(r);if("number"==typ...
function s (line 16) | function s(e,t){var n=L.length,r=e.constructor,i=A.isFunction(r)&&r.prot...
function r (line 19) | function r(e,t){var n=e.name();if(A.LowLevelProxyNode.isInstance(t.lowLe...
function i (line 19) | function i(e){var t=e;return t&&t.valueName&&t.toHighLevel&&t.toHighLevel2}
function a (line 19) | function a(e){var t=e;return t&&t.isString&&t.isFromKey&&t.isEmbedded}
function o (line 19) | function o(e){var t=P.newMap([P.newMapping(P.newScalar("example"),e.lowL...
function s (line 19) | function s(e){return e.match(/^\s*#%RAML\s+(\d\.\d)\s*(\w*)\s*$/m)}
function u (line 19) | function u(e){var t=e.lowLevel()&&e.lowLevel().unit()&&e.lowLevel().unit...
function c (line 19) | function c(e){if(null==e)return null;var t=e.contents(),n=e.ast(),r=$(t,...
function l (line 19) | function l(e,t){if(t){return t.root().lowLevel().unit()?new j.PointOfVie...
function p (line 19) | function p(e){if(null!=e.parent())return!1;var t=e.lowLevel().unit();if(...
function f (line 19) | function f(e,t,n){var r=e.validationIssue;if(!r){var i=e.issueCode||t,a=...
function d (line 19) | function d(e){for(var t=[],n=b.getNodeValidationPlugins(),r=0,i=n;r<i.le...
function m (line 19) | function m(e){for(var t=new Q(e),n=[],r=b.getNodeAnnotationValidationPlu...
function h (line 19) | function h(e,t){return y(e.map(function(e){return _(e,t)}))}
function y (line 19) | function y(e){var t=[],n={};e.map(function(e){n[JSON.stringify(e)]=e});f...
function _ (line 19) | function _(e,t){var n=e.node&&e.node.lowLevel()&&e.node.lowLevel().unit(...
function n (line 19) | function n(){this.constructor=e}
function e (line 19) | function e(e,t){this._node=e,this._parent=t,this._implicit=!1,this.value...
function e (line 19) | function e(e,t,n,r){void 0===r&&(r=null),this.node=e,this._parent=t,this...
function t (line 19) | function t(t,n,r,i,a){void 0===a&&(a=!1),e.call(this,t,n),this._def=r,th...
function t (line 19) | function t(n,r){if(e.call(this),this._node=n,this._highLevelRoot=r,r.roo...
function t (line 19) | function t(){e.apply(this,arguments)}
function t (line 19) | function t(t,n,r,i){e.call(this,t,n),this._def=r,this._prop=i,this._expa...
function e (line 19) | function e(e){this._node=e}
function e (line 19) | function e(e){this.attr=e}
function r (line 19) | function r(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.docu...
function i (line 19) | function i(e){return e===qe.Universe10.Trait.properties.usage.name||e===...
function a (line 19) | function a(e){return!!e&&i(e.nameId())}
function o (line 19) | function o(e){return!!e&&(e.nameId()==qe.Universe10.Overlay.properties.e...
function s (line 19) | function s(e){return e===qe.Universe10.TypeDeclaration.properties.descri...
function u (line 19) | function u(e){return!!e&&s(e.nameId())}
function c (line 19) | function c(e){return e===qe.Universe10.TypeDeclaration.properties.requir...
function l (line 19) | function l(e){return e===qe.Universe10.TypeDeclaration.properties.displa...
function p (line 19) | function p(e){return!!e&&l(e.nameId())}
function f (line 19) | function f(e){return!!e&&c(e.nameId())}
function d (line 19) | function d(e){return e===qe.Universe10.Api.properties.title.name||e===qe...
function m (line 19) | function m(e){return!!e&&d(e.nameId())}
function h (line 19) | function h(e){return!!e&&y(e.nameId())}
function y (line 19) | function y(e){return e===qe.Universe08.MethodBase.properties.headers.nam...
function _ (line 19) | function _(e){return!!e&&g(e.nameId())}
function g (line 19) | function g(e){return e===qe.Universe08.BodyLike.properties.formParameter...
function v (line 19) | function v(e){return!!e&&b(e.nameId())}
function b (line 19) | function b(e){return e===qe.Universe08.MethodBase.properties.queryParame...
function S (line 19) | function S(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.anno...
function A (line 19) | function A(e){return!!e&&e.nameId()===qe.Universe10.AnnotationRef.proper...
function T (line 19) | function T(e){return!!e&&(e.nameId()===qe.Universe10.MethodBase.properti...
function E (line 19) | function E(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.secu...
function C (line 19) | function C(e){return!!e&&(e.nameId()===qe.Universe10.LibraryBase.propert...
function N (line 19) | function N(e){return!!e&&(e.nameId()===qe.Universe10.SecuritySchemeRef.p...
function w (line 19) | function w(e){return!!e&&(e.nameId()===qe.Universe10.AbstractSecuritySch...
function k (line 19) | function k(e){return!!e&&e.nameId()===qe.Universe10.ArrayTypeDeclaration...
function x (line 19) | function x(e){return!!e&&e.nameId()===qe.Universe10.ArrayTypeDeclaration...
function R (line 19) | function R(e){return!!e&&e.nameId()===qe.Universe10.ObjectTypeDeclaratio...
function I (line 19) | function I(e){return!!e&&(e.nameId()===qe.Universe10.MethodBase.properti...
function D (line 19) | function D(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.prot...
function M (line 19) | function M(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.pro...
function P (line 19) | function P(e){return!!e&&(e.nameId()===qe.Universe10.MethodBase.properti...
function L (line 19) | function L(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.pro...
function O (line 19) | function O(e){return!!e&&(e.nameId()===qe.Universe08.BodyLike.properties...
function U (line 19) | function U(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.trai...
function F (line 19) | function F(e){return!!e&&(e.nameId()===qe.Universe08.TraitRef.properties...
function B (line 19) | function B(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.reso...
function K (line 19) | function K(e){return!!e&&(e.nameId()===qe.Universe08.ResourceTypeRef.pro...
function V (line 19) | function V(e){return!!e&&e.nameId()===qe.Universe10.TypeDeclaration.prop...
function j (line 19) | function j(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.sche...
function W (line 19) | function W(e){return!!e&&(e.nameId()===qe.Universe10.Api.properties.reso...
function q (line 19) | function q(e){return!!e&&(e.nameId()===qe.Universe10.ResourceBase.proper...
function z (line 19) | function z(e){return e&&e.nameId()===qe.Universe10.LibraryBase.propertie...
function H (line 19) | function H(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.pro...
function Y (line 19) | function Y(e){return!!e&&(e.nameId()===qe.Universe10.StringTypeDeclarati...
function J (line 19) | function J(e){return!!e&&(e.nameId()===qe.Universe10.TypeDeclaration.pro...
function G (line 19) | function G(e){return!!e&&e.nameId()===qe.Universe08.GlobalSchema.propert...
function X (line 19) | function X(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.uriP...
function $ (line 19) | function $(e){return!!e&&(e.nameId()===qe.Universe08.Resource.properties...
function Q (line 19) | function Q(e){return!!e&&(e.nameId()===qe.Universe08.Api.properties.RAML...
function Z (line 19) | function Z(e){return!!e&&e.nameId()===qe.Universe10.FragmentDeclaration....
function ee (line 19) | function ee(e){return!!e&&e.nameId()===qe.Universe10.LibraryBase.propert...
function te (line 19) | function te(e){return e.key()==qe.Universe10.Method||e.key()==qe.Univers...
function ne (line 19) | function ne(e){return e.key()==qe.Universe10.Api||e.key()==qe.Universe08...
function re (line 19) | function re(e){return e.key()==qe.Universe10.BooleanType||e.key()==qe.Un...
function ie (line 19) | function ie(e){return e.key()==qe.Universe10.MarkdownString||e.key()==qe...
function ae (line 19) | function ae(e){return e.key()==qe.Universe10.Resource||e.key()==qe.Unive...
function oe (line 19) | function oe(e){return e.key()==qe.Universe10.Trait||e.key()==qe.Universe...
function se (line 19) | function se(e){return e.key()==qe.Universe10.TraitRef||e.key()==qe.Unive...
function ue (line 19) | function ue(e){return e.key()==qe.Universe10.ResourceTypeRef||e.key()==q...
function ce (line 19) | function ce(e){return e.key()==qe.Universe08.GlobalSchema}
function le (line 19) | function le(e){return e.key()==qe.Universe10.AbstractSecurityScheme||e.k...
function pe (line 19) | function pe(e){return e.isAssignableFrom(qe.Universe10.AbstractSecurityS...
function fe (line 19) | function fe(e){return e.key()==qe.Universe10.SecuritySchemeRef||e.key()=...
function de (line 19) | function de(e){return e.key()==qe.Universe10.TypeDeclaration}
function me (line 19) | function me(e){return e.key()==qe.Universe10.Response||e.key()==qe.Unive...
function he (line 19) | function he(e){return e.key()==qe.Universe08.BodyLike}
function ye (line 19) | function ye(e){return e.key()==qe.Universe10.Overlay}
function _e (line 19) | function _e(e){return!1}
function ge (line 19) | function ge(e){return e.key()==qe.Universe10.ResourceType||e.key()==qe.U...
function ve (line 19) | function ve(e){return e.key()==qe.Universe10.SchemaString||e.key()==qe.U...
function be (line 19) | function be(e){return e.key()==qe.Universe10.MethodBase||e.key()==qe.Uni...
function Se (line 19) | function Se(e){return e.key()==qe.Universe10.Library}
function Ae (line 19) | function Ae(e){return e.key()==qe.Universe10.StringType||e.key()==qe.Uni...
function Te (line 19) | function Te(e){return e.key()==qe.Universe10.ExampleSpec}
function Ee (line 19) | function Ee(e){return e.key()==qe.Universe10.Extension}
function Ce (line 19) | function Ce(e){return e.isAssignableFrom(qe.Universe10.TypeDeclaration.n...
function Ne (line 19) | function Ne(e){return e.key()==qe.Universe10.DocumentationItem||e.key()=...
function we (line 19) | function we(e){return e.isAssignableFrom(qe.Universe10.AnnotationRef.name)}
function ke (line 19) | function ke(e){return e.isAssignableFrom(qe.Universe10.Api.name)||e.isAs...
function xe (line 19) | function xe(e){return e.isAssignableFrom(qe.Universe10.LibraryBase.name)}
function Re (line 19) | function Re(e){return e.isAssignableFrom(qe.Universe10.ResourceBase.name...
function Ie (line 19) | function Ie(e){return e.isAssignableFrom(qe.Universe10.ObjectTypeDeclara...
function De (line 19) | function De(e){return e.isAssignableFrom(qe.Universe10.TypeDeclaration.n...
function Me (line 19) | function Me(e){return e.isAssignableFrom(qe.Universe10.StringTypeDeclara...
function Pe (line 19) | function Pe(e){return e.isAssignableFrom(qe.Universe10.TypeDeclaration.n...
function Le (line 19) | function Le(e){return e.isAssignableFrom(qe.Universe10.MethodBase.name)|...
function Oe (line 19) | function Oe(e){return e.key()==qe.Universe10.SecuritySchemePart||e.key()...
function Ue (line 19) | function Ue(e){return e.nameId()===qe.Universe08.Api.properties.mediaTyp...
function Fe (line 19) | function Fe(e){return"RAML08"==e.universe().version()}
function Be (line 19) | function Be(e){return"RAML10"==e.universe().version()}
function Ke (line 19) | function Ke(e){return Fe(e.definition())}
function Ve (line 19) | function Ve(e){return Fe(e.definition())}
function je (line 19) | function je(e){return Be(e.definition())}
function We (line 19) | function We(e){return Be(e.definition())}
function r (line 19) | function r(){return new T(T.OK,"","",null)}
function i (line 19) | function i(e,t,n,r,i){void 0===n&&(n={}),void 0===r&&(r=T.ERROR),void 0=...
function a (line 19) | function a(){return te}
function o (line 19) | function o(e,t){return new Z(e,t)}
function s (line 19) | function s(e,t){return new ee(e,t)}
function u (line 19) | function u(e,n){var r=new $(e);return n.forEach(function(e){return r.add...
function c (line 19) | function c(e){return u(e,[t.OBJECT])}
function l (line 19) | function l(e,t,n){if(t.isScalar()&&n.isScalar()){if(t.allSubTypes().inde...
function p (line 19) | function p(e){return parseFloat(e)==parseInt(e)&&!isNaN(e)}
function f (line 19) | function f(e){for(var t=[];null!=e;){if(null!=e.name()){t.push(e.name())...
function d (line 19) | function d(e,n,a){var o=n.metaOfType(x.Discriminator);if(0==o.length)ret...
function m (line 19) | function m(e,t){if(e.getValidationPath()){for(var n=h(t),r=n;r.child;)r=...
function h (line 19) | function h(e){if(e){for(var t=e,n=null,r=null;t;)if(n){var i={name:t.nam...
function y (line 19) | function y(e){for(var t=A.getAnnotationValidationPlugins(),n=[],r=0,i=t;...
function _ (line 19) | function _(e,t){for(var n=A.getTypeValidationPlugins(),r=[],i=0,a=n;i<a....
function g (line 19) | function g(e,t,n){var r=e.isWarning?T.WARNING:T.ERROR,i=e.issueCode||t,a...
function n (line 19) | function n(){this.constructor=e}
function e (line 19) | function e(e,t,n,r,i){void 0===i&&(i=!1),this.takeNodeFromSource=i,this....
function e (line 19) | function e(e){this._inheritable=e,this._annotations=[]}
function t (line 19) | function t(t){void 0===t&&(t=!0),e.call(this,t)}
function e (line 19) | function e(e){void 0===e&&(e=null),this._parent=e,this._types={},this.ty...
function e (line 19) | function e(){}
function n (line 19) | function n(n,r,i){e.call(this,T.ERROR,t.messageRegistry.RESTRICTIONS_CON...
function e (line 19) | function e(e){this._name=e,this.metaInfo=[],this._subTypes=[],this.inner...
function n (line 19) | function n(){e.apply(this,arguments)}
function t (line 19) | function t(){e.call(this,!0)}
function t (line 19) | function t(){e.call(this,!1)}
function t (line 19) | function t(){e.call(this,!1)}
function t (line 19) | function t(){e.call(this,!1)}
function t (line 19) | function t(){e.apply(this,arguments)}
function t (line 19) | function t(){e.apply(this,arguments),this._superTypes=[]}
function t (line 19) | function t(t,n){e.call(this,t),this._options=n}
function n (line 19) | function n(t,n){var r=this;e.call(this,t,n),this.options().forEach(funct...
function t (line 19) | function t(){e.apply(this,arguments)}
function n (line 19) | function n(){e.apply(this,arguments)}
function e (line 19) | function e(e,t,n){this._previous=e,this._restriction=t,this.id=n}
function t (line 19) | function t(t,n,r){e.call(this),this._entry=t,this._message=n,this._anoth...
function t (line 19) | function t(){e.apply(this,arguments)}
function n (line 19) | function n(t){e.call(this),this.val=t}
function n (line 19) | function n(){e.call(this)}
function n (line 19) | function n(){e.call(this)}
function n (line 19) | function n(){e.call(this)}
function n (line 19) | function n(t,n,r){e.call(this),this.val=t,this._extraMessage=n,this._ext...
function n (line 19) | function n(t){e.call(this),this.val=t}
function n (line 19) | function n(n,r,i,a,o){void 0===o&&(o=null),e.call(this,n),this._content=...
function t (line 19) | function t(t,n){void 0===n&&(n={}),e.call(this),this.messageEntry=t,this...
function e (line 19) | function e(e,t){this._facet=e,this.reg=t}
function e (line 19) | function e(e,t){this._type=e,this.reg=t}
function e (line 19) | function e(e,t){this.actual=e}
function r (line 19) | function r(e,t){return f.serializeToXML(e,t)}
function i (line 19) | function i(e,t){if("string"==typeof e&&(t.isObject()||t.isArray()||t.isE...
function a (line 19) | function a(e,t,n){t?s.setValidationPath(e,{name:"examples",child:{name:n...
function n (line 19) | function n(){this.constructor=e}
function t (line 19) | function t(t,n,r){void 0===r&&(r=!1),e.call(this,r),this._name=t,this._v...
function t (line 19) | function t(t){e.call(this,"description",t)}
function t (line 19) | function t(){e.call(this,"notScalar",!0)}
function t (line 19) | function t(t){e.call(this,"displayName",t)}
function t (line 19) | function t(t){e.call(this,"usage",t)}
function t (line 19) | function t(t,n){e.call(this,t,n)}
function t (line 19) | function t(t,n,r,i){void 0===i&&(i=!1),e.call(this,t,n,!0),this.name=t,t...
function t (line 19) | function t(t,n){e.call(this,t,n,!0)}
function t (line 19) | function t(t){e.call(this,"example",t)}
function t (line 19) | function t(t){e.call(this,"required",t)}
function t (line 19) | function t(){e.call(this,"hasPropertiesFacet",null)}
function t (line 19) | function t(t){e.call(this,"allowedTargets",t)}
function t (line 19) | function t(t){e.call(this,"examples",t)}
function t (line 19) | function t(t){e.call(this,"xml",t)}
function t (line 19) | function t(t){e.call(this,"default",t)}
function t (line 19) | function t(t){e.call(this,!0),this.property=t}
function t (line 19) | function t(t,n){void 0===n&&(n=!0),e.call(this,!1),this._value=t,this.st...
function r (line 19) | function r(){return A.length>0?A[A.length-1]:null}
function i (line 19) | function i(e){for(var t;e;)t=e.owner(),e=t instanceof p.InheritedType?t....
function a (line 19) | function a(e){for(void 0===e&&(e=0);A.length>e;)A.pop()}
function o (line 19) | function o(){return A.length}
function s (line 19) | function s(e){return parseFloat(e)==parseInt(e)&&!isNaN(e)}
function u (line 19) | function u(e){e=e.map(function(e){return e.preoptimize()});var t=[];e.fo...
function c (line 19) | function c(e){if(!e.isSubTypeOf(p.UNKNOWN))return null;if(null!=e.name()...
function n (line 19) | function n(){this.constructor=e}
function t (line 19) | function t(t){e.call(this),this._type=t}
function t (line 19) | function t(t,n){e.call(this),this._value=t,this.provider=n}
function t (line 19) | function t(t){e.call(this),this._value=t}
function t (line 19) | function t(t){e.call(this),this.name=t}
function t (line 19) | function t(t,n,r){void 0===r&&(r=!1),e.call(this,n),this.name=t,this.typ...
function t (line 19) | function t(t,n){e.call(this,n),this.regexp=t,this.type=n}
function t (line 19) | function t(t){e.call(this,t),this.type=t}
function t (line 19) | function t(){e.apply(this,arguments)}
function t (line 19) | function t(t,n,r,i,a,o){e.call(this),this._facetName=t,this._value=n,thi...
function t (line 19) | function t(t){e.call(this),this._value=t}
function t (line 19) | function t(t){e.call(this,"maximum",t,!0,"minimum",p.NUMBER,!1)}
function t (line 19) | function t(t){e.call(this,"minimum",t,!1,"maximum",p.NUMBER,!1)}
function t (line 19) | function t(t){e.call(this,"maxItems",t,!0,"minItems",p.ARRAY,!0)}
function t (line 19) | function t(t){e.call(this,"minItems",t,!1,"maxItems",p.ARRAY,!0)}
function t (line 19) | function t(t){e.call(this,"maxLength",t,!0,"minLength",new p.UnionType("...
function t (line 19) | function t(t){e.call(this,"minLength",t,!1,"maxLength",new p.UnionType("...
function t (line 19) | function t(t){e.call(this,"maxProperties",t,!0,"minProperties",p.OBJECT,...
function t (line 19) | function t(t){e.call(this,"minProperties",t,!1,"maxProperties",p.OBJECT,...
function t (line 19) | function t(t){e.call(this),this._value=t}
function t (line 19) | function t(t){e.call(this),this.type=t}
function t (line 19) | function t(t){e.call(this),this._value=t}
function t (line 19) | function t(t){e.call(this),this._value=t}
function t (line 19) | function t(t){e.call(this),this._value=t}
function t (line 19) | function t(t){e.call(this),this._value=t}
function r (line 19) | function r(){return new W}
function i (line 19) | function i(e){if(null==e)return null;switch(e.kind){case N.Kind.SCALAR:r...
function a (line 19) | function a(e){return e.match(/^.*((\r\n|\n|\r)|$)/gm)}
function o (line 19) | function o(e,t){for(var n=a(e),r=[],i=0;i<n.length;i++)0==i?r.push(n[0])...
function s (line 19) | function s(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("\r"!=r&&"\...
function u (line 19) | function u(e,t){return e.substr(t.offset,t.replacementLength).indexOf("\...
function c (line 19) | function c(e){if("null"==e)e=null;else if("~"==e)e=null;else if("true"==...
function l (line 19) | function l(e,t,n){return new X(N.newMapping(N.newScalar(e),N.newMap()),n...
function p (line 19) | function p(e){return new X(N.newMap(e),null,null,null,null)}
function f (line 19) | function f(e){return new X(N.newScalar(e),null,null,null,null)}
function d (line 19) | function d(e,t,n){return new X(e,n,t,null,null)}
function m (line 19) | function m(e){return new X(N.newMapping(N.newScalar(e),N.newItems()),nul...
function h (line 19) | function h(e){return new X(N.newMapping(N.newScalar(e),N.newMap()),null,...
function y (line 19) | function y(e,t){return new X(N.newMapping(N.newScalar(e),N.newScalar(t))...
function _ (line 19) | function _(e){if(!X.isInstance(e))return null;var t=e,n=new X(t.yamlNode...
function g (line 19) | function g(e){if(!X.isInstance(e))return null;var t=e,n=new X(t.yamlNode...
function v (line 19) | function v(e){var t=e.highLevelNode();if(t)return t.definition();var n=e...
function b (line 19) | function b(e,t,n,r){if(e.isOverlayOrExtension()){var i=e.getMasterRefere...
function S (line 19) | function S(e,t){var n={},r={},i=[],a=function(t){for(var o=[],s={};t<i.l...
function e (line 19) | function e(e){this.text="",this.indent=e}
function e (line 19) | function e(e,t,n,r,i){this._path=e,this._content=t,this._tl=n,this._proj...
function e (line 19) | function e(){}
function e (line 19) | function e(){}
function e (line 19) | function e(){this.executor=new q}
function e (line 19) | function e(){}
function e (line 19) | function e(e,t,n){this.rootPath=e,this.resolver=t,this._httpResolver=n,t...
function e (line 21) | function e(e,t,n,r,i,a,o){void 0===a&&(a=!1),void 0===o&&(o=!1),this._no...
function e (line 21) | function e(e,t){void 0===t&&(t=null),this.type=e,this.point=t}
function r (line 21) | function r(e){var t={};return null!==e&&Object.keys(e).forEach(function(...
function i (line 21) | function i(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===o....
function n (line 21) | function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e....
function r (line 21) | function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.leng...
function r (line 21) | function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-...
function r (line 21) | function r(e,t){var n=a(e);return null==t?n:i(n,t)}
function r (line 21) | function r(e,t){var n=t?t.endPosition:e.endPosition+1;return{key:e,value...
function i (line 21) | function i(e,t,n,r){return{errors:[],referencesAnchor:e,value:r,startPos...
function a (line 21) | function a(e){return void 0===e&&(e=""),{errors:[],startPosition:-1,endP...
function o (line 21) | function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],k...
function s (line 21) | function s(){return o()}
function u (line 21) | function u(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:...
function e (line 21) | function e(e,t){void 0===t&&(t=null),this.name="YAMLException",this.reas...
function r (line 21) | function r(e){var t={};return e.forEach(function(e){return Object.keys(e...
function i (line 21) | function i(e,t){return new E(T.find(e||[],t))}
function a (line 21) | function a(e){return Object.keys(e).map(function(t){return[t,e[t]]})}
function o (line 21) | function o(e){var t={};return e.forEach(function(e){return t[e[0]]=e[1]}...
function s (line 21) | function s(e,t){return t(e),e}
function u (line 21) | function u(e,t){"object"==typeof e&&Object.keys(e).forEach(function(n){r...
function c (line 21) | function c(e,n,r){void 0===r&&(r=!1);var i={};return e.forEach(function(...
function l (line 21) | function l(e,t){var n=e.length-t.length;return n>=0&&e.lastIndexOf(t)===n}
function p (line 21) | function p(e,t,n){return void 0===n&&(n=0),e.length-t.length>=n&&e.subst...
function f (line 21) | function f(e){return"_"==e[e.length-1]}
function d (line 21) | function d(e,t,n){var r,i=!1;e[t]=function(){return i||(i=!0,r=n.apply(e...
function m (line 21) | function m(e,n){void 0===n&&(n=f);for(var r in e)n(r)&&t.ifInstanceOf(e[...
function h (line 21) | function h(e,t){void 0!==e&&t(e)}
function y (line 21) | function y(e){return"string"==typeof e&&""!=e&&l(e,".raml")}
function _ (line 21) | function _(e){for(var t,n=[],r=new RegExp("require\\('([^']+)'\\)","gi")...
function g (line 21) | function g(e){return void 0!==e&&null!=e}
function v (line 21) | function v(e){return 0==e.length?e:e.charAt(0).toUpperCase()+e.substr(1)}
function b (line 21) | function b(e,t,n){void 0===n&&(n=!1);var r=Object.keys(t);if(n){var i={}...
function S (line 21) | function S(e,t){return Object.keys(t).forEach(function(n){return e=A(e,n...
function A (line 21) | function A(e,t,n){for(var r="",i=0,a=e.indexOf(t);a<e.length&&a>=0;a=e.i...
function r (line 21) | function r(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}
function i (line 21) | function i(e,t){if(r()<t)throw new RangeError("Invalid typed array lengt...
function a (line 21) | function a(e,t,n){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return ...
function o (line 21) | function o(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" a...
function s (line 21) | function s(e){if("number"!=typeof e)throw new TypeError('"size" argument...
function u (line 21) | function u(e,t,n,r){return s(t),t<=0?i(e,t):void 0!==n?"string"==typeof ...
function c (line 21) | function c(e,t){if(s(t),e=i(e,t<0?0:0|m(t)),!a.TYPED_ARRAY_SUPPORT)for(v...
function l (line 21) | function l(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!a.isEncodin...
function p (line 21) | function p(e,t){var n=t.length<0?0:0|m(t.length);e=i(e,n);for(var r=0;r<...
function f (line 21) | function f(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeE...
function d (line 21) | function d(e,t){if(a.isBuffer(t)){var n=0|m(t.length);return e=i(e,n),0=...
function m (line 21) | function m(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer...
function h (line 21) | function h(e){return+e!=e&&(e=0),a.alloc(+e)}
function y (line 21) | function y(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ...
function _ (line 21) | function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)ret...
function g (line 21) | function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}
function v (line 21) | function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=...
function b (line 21) | function b(e,t,n,r,i){function a(e,t){return 1===o?e[t]:e.readUInt16BE(t...
function S (line 21) | function S(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(...
function A (line 21) | function A(e,t,n,r){return J(q(t,e.length-n),e,n,r)}
function T (line 21) | function T(e,t,n,r){return J(z(t),e,n,r)}
function E (line 21) | function E(e,t,n,r){return T(e,t,n,r)}
function C (line 21) | function C(e,t,n,r){return J(Y(t),e,n,r)}
function N (line 21) | function N(e,t,n,r){return J(H(t,e.length-n),e,n,r)}
function w (line 21) | function w(e,t,n){return 0===t&&n===e.length?X.fromByteArray(e):X.fromBy...
function k (line 21) | function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[...
function x (line 21) | function x(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(St...
function R (line 21) | function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+...
function I (line 21) | function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+...
function D (line 21) | function D(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);...
function M (line 21) | function M(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=Str...
function P (line 21) | function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uin...
function L (line 21) | function L(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" ...
function O (line 21) | function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n...
function U (line 21) | function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.len...
function F (line 21) | function F(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out ...
function B (line 21) | function B(e,t,n,r,i){return i||F(e,t,n,4,3.4028234663852886e38,-3.40282...
function K (line 21) | function K(e,t,n,r,i){return i||F(e,t,n,8,1.7976931348623157e308,-1.7976...
function V (line 21) | function V(e){if(e=j(e).replace(ee,""),e.length<2)return"";for(;e.length...
function j (line 21) | function j(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}
function W (line 21) | function W(e){return e<16?"0"+e.toString(16):e.toString(16)}
function q (line 21) | function q(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){i...
function z (line 21) | function z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n)...
function H (line 21) | function H(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.c...
function Y (line 21) | function Y(e){return X.toByteArray(V(e))}
function J (line 21) | function J(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t...
function G (line 21) | function G(e){return e!==e}
function r (line 27) | function r(e){var t=e;return t.valueName&&t.toHighLevel&&t.toHighLevel2}
function n (line 27) | function n(){this.constructor=e}
function e (line 27) | function e(e,t,n){this._parent=e,this._transformer=t,this.ramlVersion=n}
function t (line 27) | function t(t,n,r,i,a){void 0===a&&(a=!0),e.call(this,n,r,i),this.isPrima...
function t (line 27) | function t(t,n,r,i){e.call(this,n,r,i),this._originalNode=t}
function n (line 27) | function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}
function r (line 27) | function r(e,t){return new b(_.CHANGE_VALUE,e,t,-1)}
function i (line 27) | function i(e,t){return new b(_.CHANGE_VALUE,e,t.lowLevel(),-1)}
function a (line 27) | function a(e,t){return new b(_.CHANGE_KEY,e,t,-1)}
function o (line 27) | function o(e,t){return new b(_.REMOVE_CHILD,e,t,-1)}
function s (line 27) | function s(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=!1);var i=new b(...
function u (line 27) | function u(e,t){return new b(_.INIT_RAML_FILE,e,t,-1)}
function c (line 27) | function c(e,t,n){if(d.isAbsolute(e)){".xsd"!=d.extname(t)&&(e=e.substr(...
function l (line 27) | function l(e,t){if(p(t))return t;var n;if(p(e)){var r=h.stringEndsWith(e...
function p (line 27) | function p(e){return null!=e&&(h.stringStartsWith(e,"http://")||h.string...
function f (line 27) | function f(e){return e.start&&e.end&&e.unit&&e.key&&e.value&&e.children&...
function e (line 27) | function e(){}
function e (line 27) | function e(e,t,n,r,i){void 0===i&&(i=null),this.offset=e,this.replacemen...
function e (line 27) | function e(){this.commands=[]}
function e (line 27) | function e(e,t,n,r){this.toSeq=!1,this.kind=e,this.target=t,this.value=n...
function e (line 27) | function e(e,t){this.content=e,this.absPath=t}
function r (line 27) | function r(e,t,n){return E.findDeclaration(e,t,n)}
function i (line 27) | function i(e,t){return E.findUsages(e,t)}
function a (line 27) | function a(e){return E.globalDeclarations(e)}
function o (line 27) | function o(e,t,n){E.refFinder(e,t,n)}
function s (line 27) | function s(e,t){return E.findDeclarationByNode(e,t)}
function u (line 27) | function u(e,t){return E.determineCompletionKind(e,t)}
function c (line 27) | function c(e,t){return E.enumValues(e,t)}
function l (line 27) | function l(e,t){return C.qName(e,t)}
function p (line 27) | function p(e,t){return E.subTypesWithLocals(e,t)}
function f (line 27) | function f(e,t){return E.nodesDeclaringType(e,t)}
function d (line 27) | function d(e){return E.isExampleNodeContent(e)}
function m (line 27) | function m(e){return E.findExampleContentType(e)}
function h (line 27) | function h(e,t){return E.parseDocumentationContent(e,t)}
function y (line 27) | function y(e,t){return E.parseStructuredExample(e,t)}
function _ (line 27) | function _(e){return E.isExampleNode(e)}
function g (line 27) | function g(e,t){return E.referenceTargets(e,t)}
function v (line 27) | function v(e){return N.getNominalTypeSource(e)}
function b (line 27) | function b(e,t){return E.findAllSubTypes(e,t)}
function S (line 27) | function S(e){return E.declRoot(e)}
function A (line 27) | function A(e,t,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=!0),E.dee...
function T (line 27) | function T(e){return E.allChildren(e)}
function n (line 27) | function n(){throw new Error("setTimeout has not been defined")}
function r (line 27) | function r(){throw new Error("clearTimeout has not been defined")}
function i (line 27) | function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&s...
function a (line 27) | function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&...
function o (line 27) | function o(){h&&d&&(h=!1,d.length?m=d.concat(m):y=-1,m.length&&s())}
function s (line 27) | function s(){if(!h){var e=i(o);h=!0;for(var t=m.length;t;){for(d=m,m=[];...
function u (line 27) | function u(e,t){this.fun=e,this.array=t}
function c (line 27) | function c(){}
function n (line 27) | function n(e){return e.asElement&&e.getKind&&e.asAttr&&e.lowLevel}
function r (line 27) | function r(){var t=e.ramlValidation;if(t){var n=t.nodeValidators;if(Arra...
function i (line 27) | function i(){var t=e.ramlValidation;if(t){var n=t.astAnnotationValidator...
function r (line 27) | function r(e){return e instanceof _.ApiImpl||e instanceof g.ApiImpl?(new...
function i (line 27) | function i(e){return(new k).expandLibraries(e)}
function a (line 27) | function a(e,t,n){var r=d.fromUnit(e);if(!r)throw new Error("couldn't lo...
function o (line 27) | function o(e,t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=!1);for(var a=...
function s (line 27) | function s(e){for(var t=[],n=0,r=e;n<r.length;n++){u(t,r[n],!0)}return t}
function u (line 27) | function u(e,t,n){void 0===n&&(n=!1);var r=n?e:e.concat([]),i=t.lowLevel...
function c (line 27) | function c(e){for(var t=[];e;)t.push(e),e=e.parent();return s(t)}
function l (line 27) | function l(){return R.map(function(e){return e.name})}
function p (line 27) | function p(e){for(var t=[],n=e.split("|").slice(1),r=0,i=n;r<i.length;r+...
function n (line 27) | function n(){this.constructor=e}
function e (line 27) | function e(){this.hasGlobalTraits=!1,this.hasGlobalResourceTypes=!1,this...
function e (line 27) | function e(){}
function e (line 27) | function e(t,n){this.name=t,this.regexp=new RegExp(e.leftTransformRegexp...
function e (line 27) | function e(){this.buf=null}
function e (line 27) | function e(e,t,n,r,i,a){this.templateKind=e,this.templateName=t,this.uni...
function t (line 27) | function t(t,n,r){e.call(this,null!=n?n.templateKind:"",null!=n?n.templa...
function r (line 27) | function r(e,t){var n=a(e,t);return i(n)?n:void 0}
function r (line 27) | function r(){return Object.keys(d).length>0}
function i (line 27) | function i(e){f.push(e)}
function a (line 27) | function a(e){d[e]=!0}
function o (line 27) | function o(e){delete d[e],f.forEach(function(t){return t(e)})}
function s (line 27) | function s(e){return!!d[e]}
function u (line 27) | function u(e,t){p.set(e,t)}
function c (line 27) | function c(e){return p.get(e)}
function r (line 27) | function r(e){var t=e.value();if("string"==typeof t||null==t){var n=f.cr...
function i (line 27) | function i(e){var t=e._meta;t.resetPrimitiveValuesMeta();var n=e.highLev...
function a (line 27) | function a(e,t){return t?e.map(function(e){return t(e)}):e.map(function(...
function o (line 27) | function o(e){var t=[],n=e.errors();return null!=n&&(t=t.concat(n)),s(t....
function s (line 27) | function s(e){var t=[],n={};e.map(function(e){n[JSON.stringify(e)]=e});f...
function u (line 27) | function u(e,t){var n=t.node&&t.node.lowLevel()&&t.node.lowLevel().unit(...
function c (line 27) | function c(e){if(e.isScalar())return!0;for(var t=e.allSuperTypes().filte...
function n (line 27) | function n(){this.constructor=e}
function e (line 27) | function e(e,t){void 0===t&&(t=!0),this._node=e,this._meta=new E(!1,!1,h...
function e (line 27) | function e(e){this._meta=new T,this.attr=e}
function e (line 27) | function e(e,t){this.type=t,Array.isArray(e)?this.children=e:this.node=e}
function e (line 27) | function e(e){this.node=e}
function e (line 27) | function e(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!...
function t (line 27) | function t(){e.apply(this,arguments),this.valuesMeta={}}
function r (line 27) | function r(e){if(!(this instanceof r))return new r(e);c.call(this,e),l.c...
function i (line 27) | function i(){this.allowHalfOpen||this._writableState.ended||s(a,this)}
function a (line 27) | function a(e){e.end()}
function s (line 27) | function s(e,t,r){return 0===t||t===r.length-e.length?"":n}
function r (line 27) | function r(){}
function i (line 27) | function i(e){try{return e.then}catch(e){return _=e,g}}
function a (line 27) | function a(e,t){try{return e(t)}catch(e){return _=e,g}}
function o (line 27) | function o(e,t,n){try{e(t,n)}catch(e){return _=e,g}}
function s (line 27) | function s(e){if("object"!=typeof this)throw new TypeError("Promises mus...
function u (line 27) | function u(e,t,n){return new e.constructor(function(i,a){var o=new s(r);...
function c (line 27) | function c(e,t){for(;3===e._81;)e=e._65;if(s._10&&s._10(e),0===e._81)ret...
function l (line 27) | function l(e,t){y(function(){var n=1===e._81?t.onFulfilled:t.onRejected;...
function p (line 27) | function p(e,t){if(t===e)return f(e,new TypeError("A promise cannot be r...
function f (line 27) | function f(e,t){e._81=2,e._65=t,s._97&&s._97(e,t),d(e)}
function d (line 27) | function d(e){if(1===e._45&&(c(e,e._54),e._54=null),2===e._45){for(var t...
function m (line 27) | function m(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRe...
function h (line 27) | function h(e,t){var n=!1,r=o(e,function(e){n||(n=!0,p(t,e))},function(e)...
function r (line 27) | function r(e){var t=$.getUniverse("RAML10"),n=t.type("Api");return X.cre...
function i (line 27) | function i(e){var t=$.getUniverse("RAML10"),n=t.type("LibraryBase");retu...
function a (line 27) | function a(e){var t=$.getUniverse("RAML10"),n=t.type("FragmentDeclaratio...
function o (line 27) | function o(e){var t=$.getUniverse("RAML10"),n=t.type("Trait");return X.c...
function s (line 27) | function s(e){var t=$.getUniverse("RAML10"),n=t.type("MethodBase");retur...
function u (line 27) | function u(e){var t=$.getUniverse("RAML10"),n=t.type("Operation");return...
function c (line 27) | function c(e){var t=$.getUniverse("RAML10"),n=t.type("TypeDeclaration");...
function l (line 27) | function l(e){var t=$.getUniverse("RAML10"),n=t.type("UsesDeclaration");...
function p (line 27) | function p(e){var t=$.getUniverse("RAML10"),n=t.type("XMLFacetInfo");ret...
function f (line 27) | function f(e){var t=$.getUniverse("RAML10"),n=t.type("ArrayTypeDeclarati...
function d (line 27) | function d(e){var t=$.getUniverse("RAML10"),n=t.type("UnionTypeDeclarati...
function m (line 27) | function m(e){var t=$.getUniverse("RAML10"),n=t.type("ObjectTypeDeclarat...
function h (line 27) | function h(e){var t=$.getUniverse("RAML10"),n=t.type("StringTypeDeclarat...
function y (line 27) | function y(e){var t=$.getUniverse("RAML10"),n=t.type("BooleanTypeDeclara...
function _ (line 27) | function _(e){var t=$.getUniverse("RAML10"),n=t.type("NumberTypeDeclarat...
function g (line 27) | function g(e){var t=$.getUniverse("RAML10"),n=t.type("IntegerTypeDeclara...
function v (line 27) | function v(e){var t=$.getUniverse("RAML10"),n=t.type("DateOnlyTypeDeclar...
function b (line 27) | function b(e){var t=$.getUniverse("RAML10"),n=t.type("TimeOnlyTypeDeclar...
function S (line 27) | function S(e){var t=$.getUniverse("RAML10"),n=t.type("DateTimeOnlyTypeDe...
function A (line 27) | function A(e){var t=$.getUniverse("RAML10"),n=t.type("DateTimeTypeDeclar...
function T (line 27) | function T(e){var t=$.getUniverse("RAML10"),n=t.type("FileTypeDeclaratio...
function E (line 27) | function E(e){var t=$.getUniverse("RAML10"),n=t.type("Response");return ...
function C (line 27) | function C(e){var t=$.getUniverse("RAML10"),n=t.type("SecuritySchemePart...
function N (line 27) | function N(e){var t=$.getUniverse("RAML10"),n=t.type("AbstractSecuritySc...
function w (line 27) | function w(e){var t=$.getUniverse("RAML10"),n=t.type("SecuritySchemeSett...
function k (line 27) | function k(e){var t=$.getUniverse("RAML10"),n=t.type("OAuth1SecuritySche...
function x (line 27) | function x(e){var t=$.getUniverse("RAML10"),n=t.type("OAuth2SecuritySche...
function R (line 27) | function R(e){var t=$.getUniverse("RAML10"),n=t.type("OAuth2SecuritySche...
function I (line 27) | function I(e){var t=$.getUniverse("RAML10"),n=t.type("OAuth1SecuritySche...
function D (line 27) | function D(e){var t=$.getUniverse("RAML10"),n=t.type("PassThroughSecurit...
function M (line 27) | function M(e){var t=$.getUniverse("RAML10"),n=t.type("BasicSecuritySchem...
function P (line 27) | function P(e){var t=$.getUniverse("RAML10"),n=t.type("DigestSecuritySche...
function L (line 27) | function L(e){var t=$.getUniverse("RAML10"),n=t.type("CustomSecuritySche...
function O (line 27) | function O(e){var t=$.getUniverse("RAML10"),n=t.type("Method");return X....
function U (line 27) | function U(e){var t=$.getUniverse("RAML10"),n=t.type("ResourceType");ret...
function F (line 27) | function F(e){var t=$.getUniverse("RAML10"),n=t.type("ResourceBase");ret...
function B (line 27) | function B(e){var t=$.getUniverse("RAML10"),n=t.type("Resource");return ...
function K (line 27) | function K(e){var t=$.getUniverse("RAML10"),n=t.type("DocumentationItem"...
function V (line 27) | function V(e){var t=$.getUniverse("RAML10"),n=t.type("Library");return X...
function j (line 27) | function j(e){var t=$.getUniverse("RAML10"),n=t.type("Overlay");return X...
function W (line 27) | function W(e){var t=$.getUniverse("RAML10"),n=t.type("Extension");return...
function q (line 27) | function q(e,t,n){return Z.loadApi(e,t,n).getOrElse(null)}
function z (line 27) | function z(e,t,n){return Z.loadApi(e,t,n).getOrElse(null)}
function H (line 27) | function H(e,t,n){return Z.loadApiAsync(e,t,n)}
function Y (line 27) | function Y(e,t,n){return Z.loadRAMLAsync(e,t,n)}
function J (line 27) | function J(e){return Z.getLanguageElementByRuntimeType(e)}
function n (line 27) | function n(){this.constructor=e}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?u(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?c(t):t...
function e (line 27) | function e(e){this.attr=e}
function e (line 27) | function e(e){this.attr=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?l(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?p(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?f(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?d(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?m(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?h(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?y(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?_(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?g(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?v(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?b(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?S(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?A(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?T(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?E(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?C(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?s(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?N(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?w(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?k(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?x(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?R(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?I(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?D(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?M(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?P(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?L(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?O(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?o(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?F(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?B(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?U(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?K(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?a(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?i(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?V(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?r(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?j(t):t...
function e (line 27) | function e(e){this.node=e}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?W(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function r (line 27) | function r(e,t,n){return new Le.Function(e).call(t,n)}
function i (line 27) | function i(e,t){var n=e.property();return n&&n.getContextRequirements()....
function a (line 27) | function a(e,t){var n;try{n=e.lowLevel().unit().project().fsEnabled()}ca...
function o (line 27) | function o(e){return e.nameId()==ye.Universe10.TypeDeclaration.propertie...
function s (line 27) | function s(e){return!!c(e)&&e.nameId()==ye.Universe10.TypeDeclaration.pr...
function u (line 27) | function u(e){return!!c(e)&&e.nameId()==ye.Universe10.TypeDeclaration.pr...
function c (line 27) | function c(e){return!!e.domain()&&!e.domain().getAdapter(ve.RAMLService)...
function l (line 27) | function l(e){return!!c(e)&&e.nameId()==ye.Universe08.MethodBase.propert...
function p (line 27) | function p(e){for(var t=e;;){if(t.definition().getAdapter(ve.RAMLService...
function f (line 27) | function f(e){var n=e.parent(),r=null,i=n.definition();if(n&&fe.UserDefi...
function d (line 27) | function d(e,t){if(e.isElement()){if(e.invalidSequence){var n=e.property...
function m (line 27) | function m(e,t,n){void 0===n&&(n=!1);var r=e.parent(),i=e.lowLevel().val...
function h (line 27) | function h(e,t,n){var r=e,i=e,a=n?ye.Universe10.Operation.properties.que...
function y (line 27) | function y(e){return{queryParamsComesFrom:_(e,!0),queryStringComesFrom:_...
function _ (line 27) | function _(e,t){if(!e)return null;var n=v(e,t);if(n)return n;var r=e.is&...
function g (line 27) | function g(e,t){var n=e.is(),r=le.find(n,function(e){return _(e.trait(),...
function v (line 27) | function v(e,t){return t?b(e):S(e)}
function b (line 27) | function b(e){var t=e.highLevel();return t.lowLevel&&le.find(t.lowLevel(...
function S (line 27) | function S(e){return e.highLevel().element(ye.Universe10.Operation.prope...
function A (line 27) | function A(e,t,n){if(void 0===n&&(n=!1),!e.parent()){var r=e.asElement()...
function T (line 27) | function T(e,t,n){if(void 0===n&&(n=!1),m(e,t,n))try{(e.definition&&e.de...
function E (line 27) | function E(e){var t=e.value();if("string"==typeof t&&t.indexOf("<<")!=-1...
function C (line 27) | function C(e,t){if(!e.parent())try{w(e,t)}finally{N(e,t)}if(e.isAttr())(...
function N (line 27) | function N(e,t){if(e.lowLevel()){delete e.lowLevel().actual()._inc,e.chi...
function w (line 27) | function w(e,t){var n=e.lowLevel();if(n){var r=n.actual();if(!r._inc){if...
function k (line 27) | function k(e,t,n){e.includeErrors().forEach(function(r){var i=!1;e.hasIn...
function x (line 27) | function x(e,t){for(var n=Be(e),r=Be(t),i=n.length,a=0,o=0,s=r;o<s.lengt...
function R (line 27) | function R(e,t,n,r,i){return e.hasArrayInHierarchy()?I(e,t,n,r,i):!e.has...
function I (line 27) | function I(e,t,n,r,i){return!e.arrayInHierarchy().componentType()||R(e.a...
function D (line 27) | function D(e,t,n,r,i){try{if(e.key()==ye.Universe10.AnnotationRef){var a...
function M (line 27) | function M(e){if(!e)return!1;var t=e.toLowerCase(),n=e.toUpperCase();ret...
function P (line 27) | function P(e){if(!e)return null;if(e.isElement()){var n=e,r=n.definition...
function L (line 27) | function L(e,t,n){var r=Ae.declRoot(n);r._cach||(r._cach={});var i=e.id(...
function O (line 27) | function O(e,n,r,i){if(F(e,n,i),B(e,n,i),r&&("null"!=r||!e.isAllowNull()...
function U (line 27) | function U(e){var t,n=e.property().domain().universe().version();if(!(t=...
function F (line 27) | function F(e,t,n){if(_e.isIsProperty(e)){var r=t.lowLevel();if(null!=r){...
function B (line 27) | function B(e,t,n){if(_e.isTypeProperty(e)&&_e.isResourceTypeRefType(t.de...
function K (line 27) | function K(e,t,n){return"type"==t.nameId()&&"RAML08"==t.domain().univers...
function V (line 27) | function V(e){var t=e&&e.lowLevel()&&e.lowLevel().key();if(t===ye.Univer...
function j (line 27) | function j(e,t){return q(e,t.getValidationPath())}
function W (line 27) | function W(e){var t=e.getExtra(Te.SOURCE_EXTRA);return de.LowLevelWrappe...
function q (line 27) | function q(e,t){if(!t)return e;var n=e.children().filter(function(e){ret...
function z (line 27) | function z(e,t){var n=e&&e.includeBaseUnit()&&(e.includePath&&e.includeP...
function H (line 27) | function H(e){return e.indexOf("json")!=-1}
function Y (line 27) | function Y(e){return e.indexOf("xml")!=-1}
function J (line 27) | function J(e){var t=G(e);if("body"==t){var n=e.root().attr("mediaType");...
function G (line 27) | function G(e){if(e.parent()){if(e.parent().definition().key()==ye.Univer...
function X (line 27) | function X(e,t){return Q(e.getCode(),e.getMessage(),j(t,e),e.isWarning())}
function $ (line 27) | function $(e,t,n,r){void 0===r&&(r=!1);var i=ne(e,t);return Q(e.code,i,n...
function Q (line 27) | function Q(e,t,n,r){void 0===r&&(r=!1);var i=null,a=null;if(se.LowLevelP...
function Z (line 27) | function Z(e,t,n,r,i,a){void 0===i&&(i=!1),void 0===a&&(a=!1);var o=ne(e...
function ee (line 27) | function ee(e,t,n,r,i,a){void 0===i&&(i=!1),void 0===a&&(a=!1);var o=nul...
function te (line 27) | function te(e){if(3!=e.length)return new qe(De.STATUS_MUST_BE_3NUMBER);f...
function ne (line 27) | function ne(e,t){for(var n="",r=e.message,i=0,a=r.indexOf("{{");a>=0;a=r...
function n (line 27) | function n(){this.constructor=e}
function e (line 27) | function e(){this.validateNotStrictExamples=!0}
function e (line 27) | function e(e){this.acceptor=e,this.nodes={}}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function t (line 27) | function t(t,n){void 0===n&&(n={}),e.call(this),this.messageEntry=t,this...
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){this.annotables={API:!0,DocumentationItem:!0,Resource:!0,Me...
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(e,t,n,r){void 0===r&&(r=!1),this.definitions=e,this.propertyN...
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){}
function e (line 27) | function e(){this.nameProperty=ye.Universe10.ResourceType.properties.nam...
function r (line 27) | function r(e,t,n){var r=e.definition().property(t);return r?d(r.range(),...
function i (line 27) | function i(e,t,n,r){var i=y.newMap(n.map(function(e){return y.newMapping...
function a (line 27) | function a(e,t,n){var r=e.definition().property(t);if(!r)return null;var...
function o (line 27) | function o(e,t){return a(e,"resources",t)}
function s (line 27) | function s(e,t){return a(e,"methods",t)}
function u (line 27) | function u(e,t){return a(e,"responses",t)}
function c (line 27) | function c(e,t){return a(e,"body",t)}
function l (line 27) | function l(e,t){return a(e,"uriParameters",t)}
function p (line 27) | function p(e,t){return a(e,"queryParameters",t)}
function f (line 27) | function f(e,t){var n=m.createMapping(e.nameId(),t);return new h.ASTProp...
function d (line 27) | function d(e,t,n,r){void 0===n&&(n=null);var i=m.createNode(n?n:"key",nu...
function e (line 27) | function e(e){this.parent=e,this.options=this.parent.options,this.string...
function r (line 27) | function r(e){return void 0===e||null===e}
function i (line 27) | function i(e){return"object"==typeof e&&null!==e}
function a (line 27) | function a(e){return Array.isArray(e)?e:r(e)?[]:[e]}
function o (line 27) | function o(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r...
function s (line 27) | function s(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r}
function u (line 27) | function u(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}
function n (line 27) | function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===y...
function r (line 27) | function r(e){return"boolean"==typeof e}
function i (line 27) | function i(e){return null===e}
function a (line 27) | function a(e){return null==e}
function o (line 27) | function o(e){return"number"==typeof e}
function s (line 27) | function s(e){return"string"==typeof e}
function u (line 27) | function u(e){return"symbol"==typeof e}
function c (line 27) | function c(e){return void 0===e}
function l (line 27) | function l(e){return"[object RegExp]"===y(e)}
function p (line 27) | function p(e){return"object"==typeof e&&null!==e}
function f (line 27) | function f(e){return"[object Date]"===y(e)}
function d (line 27) | function d(e){return"[object Error]"===y(e)||e instanceof Error}
function m (line 27) | function m(e){return"function"==typeof e}
function h (line 27) | function h(e){return null===e||"boolean"==typeof e||"number"==typeof e||...
function y (line 27) | function y(e){return Object.prototype.toString.call(e)}
function n (line 27) | function n(){this._events=this._events||{},this._maxListeners=this._maxL...
function r (line 27) | function r(e){return"function"==typeof e}
function i (line 27) | function i(e){return"number"==typeof e}
function a (line 27) | function a(e){return"object"==typeof e&&null!==e}
function o (line 27) | function o(e){return void 0===e}
function n (line 27) | function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}
function r (line 27) | function r(e){return null==e?void 0===e?u:s:c&&c in Object(e)?a(e):o(e)}
function r (line 27) | function r(e){return null!=e&&a(e.length)&&!i(e)}
function n (line 27) | function n(e){return null!=e&&"object"==typeof e}
function r (line 27) | function r(e){return o(e)?i(e):a(e)}
function r (line 27) | function r(e,t){if(void 0===t&&(t=0),t>20)return[];try{var n=[],i=e.left...
function i (line 27) | function i(e){var t=e.definition();if(!t||!E.isTypeDeclarationDescendant...
function a (line 27) | function a(e,t){if(!t)return e.definition().universe().type(T.Universe10...
function o (line 27) | function o(e){return function(t){var n=e.type(t);if(!n){new h.UserDefine...
function s (line 27) | function s(e,t){var n=e.asElement();if(null==n)return null;var r=n.eleme...
function u (line 27) | function u(e){var t=e.owner();if(null==t)return null;var n=e.facetName()...
function c (line 27) | function c(e,t,n){if(null==e)return null;var r=new h.NodeClass(t.name(),...
function l (line 27) | function l(e,t,n){var r=n.attr("type");if(r){var i=a(n,r.value()),o=c(i,...
function p (line 27) | function p(e){try{var t=e.definition().nameId();if(!(t===T.Universe10.Ap...
function f (line 27) | function f(e,t,n){var r=n.lowLevel();e&&e.nameId()==T.Universe10.Fragmen...
function d (line 27) | function d(e){for(var t,n=[e].concat(e.allSuperTypes()),r=0;r<n.length;r...
function m (line 27) | function m(e,t,n){if(t.isAttr()||t.isUnknown())return!1;var r=t;if(g.fin...
function e (line 27) | function e(e){this._props=e,this.parentValue=g.find(e,function(e){return...
function e (line 27) | function e(){this.shouldDescriminate=!1}
function n (line 27) | function n(e){return null}
function r (line 27) | function r(e,t){}
function i (line 27) | function i(e){return!1}
function a (line 27) | function a(e){}
function o (line 27) | function o(e){}
function s (line 27) | function s(e){return{isDirectory:function(){return!1},isSymbolicLink:fun...
function u (line 27) | function u(e){return this.statSync(e)}
function c (line 27) | function c(e,t){return[]}
function l (line 27) | function l(e){}
function n (line 27) | function n(){var t=e.ramlValidation;if(t){var n=t.typeValidators;if(Arra...
function r (line 27) | function r(){var t=e.ramlValidation;if(t){var n=t.typesystemAnnotationVa...
function r (line 27) | function r(e,t,n){var i=[];return e.include.forEach(function(e){n=r(e,t,...
function i (line 27) | function i(){function e(e){r[e.tag]=e}var t,n,r={};for(t=0,n=arguments.l...
function e (line 27) | function e(e){this.include=e.include||[],this.implicit=e.implicit||[],th...
function t (line 27) | function t(e,t){Array.isArray(e)||(e=[e]);for(var n=!!t,r=[],i=0;i<e.len...
function n (line 27) | function n(e){if(e.type)if("string"!=typeof e.type){var r=t(e.type);r&&(...
function r (line 27) | function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var...
function r (line 27) | function r(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}
function r (line 27) | function r(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"strin...
function r (line 27) | function r(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"=...
function n (line 27) | function n(e,t){return e===t||e!==e&&t!==t}
function r (line 27) | function r(e){if(!a(e))return!1;var t=i(e);return t==s||t==u||t==o||t==c}
function r (line 27) | function r(e){if(!A.BasicNodeImpl.isInstance(e))return null;var t=e,n=i(...
function i (line 27) | function i(e){if(null==e)return null;var t=e.definition();return t&&N.is...
function a (line 27) | function a(e){if(!e)return null;var t=o(e.highLevel());if(!t)return null...
function o (line 27) | function o(e){return(new x).expandLibraries(e)}
function s (line 27) | function s(e,t,n){var r=h.fromUnit(e);if(!r)throw new Error("couldn't lo...
function u (line 27) | function u(e,t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=!1);for(var a,...
function c (line 27) | function c(e){for(var t=[],n=0,r=e;n<r.length;n++){l(t,r[n],!0)}return t}
function l (line 27) | function l(e,t,n){void 0===n&&(n=!1);var r=n?e:e.concat([]),i=t.lowLevel...
function p (line 27) | function p(e){for(var t=[];e;)t.push(e),e=e.parent();return c(t)}
function f (line 27) | function f(){return I.map(function(e){return e.name})}
function d (line 27) | function d(e){for(var t=[],n=e.split("|").slice(1),r=0,i=n;r<i.length;r+...
function n (line 27) | function n(){this.constructor=e}
function e (line 27) | function e(){this.namespaceResolver=new E.NamespaceResolver}
function e (line 27) | function e(){}
function e (line 27) | function e(t,n){this.name=t,this.regexp=new RegExp(e.leftTransformRegexp...
function e (line 27) | function e(){this.buf=null}
function e (line 27) | function e(e,t,n,r,i,a){this.templateKind=e,this.templateName=t,this.uni...
function t (line 27) | function t(t,n,r){e.call(this,null!=n?n.templateKind:"",null!=n?n.templa...
function r (line 27) | function r(e){var t=e.ast(),n=p.find(t.children(),function(e){return e.k...
function e (line 27) | function e(){this.expandedAbsToNsMap={},this._expandedNSMap={},this.byPa...
function e (line 27) | function e(e,t,n){this.usesNodes=e,this.unit=t,this.includePath=n,this.n...
function e (line 27) | function e(e){this.name=e,this.array=[],this.map={}}
function e (line 27) | function e(e){this.unit=e,this.initCollections()}
function r (line 27) | function r(e){if(null==e||"string"!=typeof e)return{status:w.NOT_REQUIRE...
function i (line 27) | function i(e,t){if(null==e)return{status:w.NOT_REQUIRED};for(var n="",r=...
function a (line 27) | function a(e){for(var t=!1,n=0;n<e.length;n++){var r=e.charAt(n);if("|"=...
function o (line 27) | function o(e,t,n){var r=e.lowLevel(),i=e.definition().universe().version...
function s (line 27) | function s(e,t){t=u(t),e=u(e);var n=e.actual();return null==n?null:(e.ke...
function u (line 27) | function u(e){for(var t=0;t<2&&g.LowLevelProxyNode.isInstance(e);t++)e=e...
function c (line 27) | function c(e){return!!e&&(null!=e.namespace&&"function"==typeof e.namesp...
function l (line 27) | function l(e,t,n,r){if(!e)return null;var i="",a=e,o=e.lastIndexOf(".");...
function p (line 27) | function p(e){var t=e.indexOf("<<");return!(t<0)&&(0!=t||e.indexOf(">>",...
function e (line 27) | function e(e){void 0===e&&(e=C.DEFAULT),this.mode=e,this._outerDependenc...
function e (line 27) | function e(e,t,n,r,i){this._namespace=e,this._name=t,this._collectionNam...
function e (line 27) | function e(e){this.name=e,this.array=[]}
function e (line 27) | function e(e){this.unit=e}
function r (line 27) | function r(e,t){if(void 0===t&&(t=!1),!e)return null;var n=e.kind();if(n...
function i (line 27) | function i(e,t){if(void 0===t&&(t={}),t=t||{},0==e.children().length)ret...
function a (line 27) | function a(e){var t=[].concat(e.errors());return e.children().forEach(fu...
function o (line 27) | function o(e,t){return t&&e&&t.escapeNumericKeys&&0==e.replace(/\d/g,"")...
function s (line 27) | function s(e,t){return e?(t=t||{},t.escapeNumericKeys&&p.stringStartsWit...
function e (line 27) | function e(e,t,n,r,i,a){void 0===a&&(a={}),this._absolutePath=e,this._pa...
function e (line 27) | function e(e,t,n,r,i){var a=this;void 0===r&&(r={}),this._unit=e,this._o...
function r (line 27) | function r(e){return a.isWebPath(e)}
function e (line 27) | function e(e){this.unit=e}
function r (line 27) | function r(e){return e&&e.indexOf("\n")>=0}
function i (line 27) | function i(e){return r(e)&&e.length>2&&"|"==e[0]&&("\n"==e[1]||"\r"==e[1...
function a (line 27) | function a(e,t){var n="";if(r(e)){n+="|\n";for(var i=d(e),a=0;a<i.length...
function o (line 27) | function o(e){if(!i(e))return e;for(var t=null,n=d(e),r=1;r<n.length;r++...
function s (line 27) | function s(e){if(!e)return e;for(var t=0;t<e.length;){var n=e[t];if("\r"...
function u (line 27) | function u(e,t){void 0===t&&(t="");for(var n="",r=0;r<e;r++)n+=" ";retu...
function c (line 27) | function c(e,t){void 0===t&&(t=""),console.log(u(e,t))}
function l (line 27) | function l(e,t){void 0===t&&(t=null);for(var n="",r=0;r<e.length;r++){va...
function p (line 27) | function p(e){for(var t=e.length;t>0;){var n=e[t-1];if(" "!=n&&"\t"!=n&&...
function f (line 27) | function f(e){return s(p(e))}
function d (line 27) | function d(e){return e.match(/^.*((\r\n|\n|\r)|$)/gm)}
function m (line 27) | function m(e,t){if(!e||!t||e.length<t.length)return!1;for(var n=0;n<t.le...
function h (line 27) | function h(e,t){if(!e||!t||e.length<t.length)return!1;for(var n=0;n<t.le...
function y (line 27) | function y(e){return e.charAt(0).toUpperCase()+e.slice(1)}
function e (line 27) | function e(e,t,n){this.contents=e,this.start=t,this.end=n}
function r (line 27) | function r(){return h?h:h=new m}
function e (line 27) | function e(e,t){this._construct=e,this._constructWithValue=t}
function e (line 27) | function e(){var e=this;this.constraints=[new d(function(){return new s....
function r (line 27) | function r(){i.call(this)}
function n (line 27) | function n(t){e.writable&&!1===e.write(t)&&c.pause&&c.pause()}
function r (line 27) | function r(){c.readable&&c.resume&&c.resume()}
function a (line 27) | function a(){l||(l=!0,e.end())}
function o (line 27) | function o(){l||(l=!0,"function"==typeof e.destroy&&e.destroy())}
function s (line 27) | function s(e){if(u(),0===i.listenerCount(this,"error"))throw e}
function u (line 27) | function u(){c.removeListener("data",n),e.removeListener("drain",r),c.re...
function r (line 27) | function r(e,t){return{name:e,methods:[],typeParameters:[],typeParameter...
function i (line 27) | function i(e,t,n){return a.parseStruct(e,t,n)}
function e (line 27) | function e(){}
function e (line 27) | function e(e,t){void 0===t&&(t=null),this.name="YAMLException",this.reas...
function r (line 27) | function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var...
function n (line 27) | function n(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||i.test(e))...
function r (line 27) | function r(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"sy...
function n (line 27) | function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t...
function n (line 27) | function n(e){return e}
function n (line 27) | function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}
function r (line 27) | function r(e){return"symbol"==typeof e||a(e)&&i(e)==o}
function e (line 27) | function e(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}
function t (line 27) | function t(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}
function n (line 27) | function n(t,n){return t===t.toUpperCase()?n.toUpperCase():t[0]===t[0].t...
function r (line 27) | function r(e,t){return e.replace(/\$(\d{1,2})/g,function(e,n){return t[n...
function i (line 27) | function i(e,t,i){if(!e.length||c.hasOwnProperty(e))return t;for(var a=i...
function a (line 27) | function a(e,t,r){return function(a){var o=a.toLowerCase();return t.hasO...
function o (line 27) | function o(e,t,n){var r=1===t?o.singular(e):o.plural(e);return(n?t+" ":"...
function n (line 27) | function n(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callba...
function e (line 27) | function e(t){var n=this;this._value=t,this._isDefined=!1,this._isEmpty=...
function r (line 27) | function r(e,t){return t=t||{},p(e).then(function(e){var n;return n=!t.h...
function i (line 27) | function i(e,t){t=t||{};var n,r=u(e);return n=!t.hasOwnProperty("expandL...
function a (line 27) | function a(e,t,n){var r=u(e,t,n);if(!r)return A.empty();var i=r.wrapperN...
function o (line 27) | function o(e,t,n){var r=u(e,t,n);if(!r)return A.empty();var i=r.wrapperN...
function s (line 27) | function s(e,t,n){var r=u(e,t,n);return r?new A(r):A.empty()}
function u (line 27) | function u(e,t,n){var r=Array.isArray(t),i=r?t:null,a=r?n:t;a=a||{};var ...
function c (line 27) | function c(e,t,n){return l(e,t,n).then(function(e){return e})}
function l (line 27) | function l(e,t,n){return p(e,t,n).then(function(e){if(!e)return null;for...
function p (line 27) | function p(e,t,n){var r=Array.isArray(t),i=r?t:null,a=r?n:t;a=a||{};var ...
function f (line 27) | function f(e){if(null==e)return null;var t=e.getAdapter(x.RAMLService).g...
function d (line 27) | function d(e,t,n){return C.fetchIncludesAndMasterAsync(e,t).then(functio...
function m (line 27) | function m(e,t){t=t||{};var n,r=t.fsResolver,i=t.httpResolver,a=t.reused...
function h (line 27) | function h(e,t,n){if(void 0===n&&(n=!1),t=t||{},!e)return null;var r=nul...
function y (line 27) | function y(e){var t=new Error("Api contains errors.");return t.parserErr...
function _ (line 27) | function _(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0);var r=M("RAML10"...
function g (line 27) | function g(e,t){if(!t)return!1;for(var n=e.lowLevel().unit().contents(),...
function v (line 27) | function v(e,t){t=t||{},null!=t.attributeDefaults&&e?e.setAttributeDefau...
function r (line 27) | function r(e){var t=R.getUniverse("RAML08"),n=t.type("Method");return x....
function i (line 27) | function i(e){var t=R.getUniverse("RAML08"),n=t.type("StringTypeDeclarat...
function a (line 27) | function a(e){var t=R.getUniverse("RAML08"),n=t.type("BooleanTypeDeclara...
function o (line 27) | function o(e){var t=R.getUniverse("RAML08"),n=t.type("NumberTypeDeclarat...
function s (line 27) | function s(e){var t=R.getUniverse("RAML08"),n=t.type("IntegerTypeDeclara...
function u (line 27) | function u(e){var t=R.getUniverse("RAML08"),n=t.type("DateTypeDeclaratio...
function c (line 27) | function c(e){var t=R.getUniverse("RAML08"),n=t.type("FileTypeDeclaratio...
function l (line 27) | function l(e){var t=R.getUniverse("RAML08"),n=t.type("XMLBody");return x...
function p (line 27) | function p(e){var t=R.getUniverse("RAML08"),n=t.type("JSONBody");return ...
function f (line 27) | function f(e){var t=R.getUniverse("RAML08"),n=t.type("SecuritySchemePart...
function d (line 27) | function d(e){var t=R.getUniverse("RAML08"),n=t.type("Trait");return x.c...
function m (line 27) | function m(e){var t=R.getUniverse("RAML08"),n=t.type("OAuth1SecuritySche...
function h (line 27) | function h(e){var t=R.getUniverse("RAML08"),n=t.type("OAuth2SecuritySche...
function y (line 27) | function y(e){var t=R.getUniverse("RAML08"),n=t.type("OAuth2SecuritySche...
function _ (line 27) | function _(e){var t=R.getUniverse("RAML08"),n=t.type("OAuth1SecuritySche...
function g (line 27) | function g(e){var t=R.getUniverse("RAML08"),n=t.type("BasicSecuritySchem...
function v (line 27) | function v(e){var t=R.getUniverse("RAML08"),n=t.type("DigestSecuritySche...
function b (line 27) | function b(e){var t=R.getUniverse("RAML08"),n=t.type("CustomSecuritySche...
function S (line 27) | function S(e){var t=R.getUniverse("RAML08"),n=t.type("GlobalSchema");ret...
function A (line 27) | function A(e){var t=R.getUniverse("RAML08"),n=t.type("DocumentationItem"...
function T (line 27) | function T(e,t,n){return D.loadApi(e,t,n).getOrElse(null)}
function E (line 27) | function E(e,t,n){return D.loadApi(e,t,n).getOrElse(null)}
function C (line 27) | function C(e,t,n){return D.loadApiAsync(e,t,n)}
function N (line 27) | function N(e,t,n){return D.loadRAMLAsync(e,t,n)}
function w (line 27) | function w(e){return D.getLanguageElementByRuntimeType(e)}
function n (line 27) | function n(){this.constructor=e}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function e (line 27) | function e(e){this.attr=e}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?i(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?a(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?o(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?s(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?u(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?c(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?l(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?p(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?f(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?d(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?m(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?h(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?y(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?_(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?g(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?v(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?b(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?r(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(){e.apply(this,arguments)}
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?A(t):t...
function t (line 27) | function t(t,n){void 0===n&&(n=!0),e.call(this,"string"==typeof t?S(t):t...
function t (line 27) | function t(){e.apply(this,arguments)}
function r (line 27) | function r(e){return"Api"==e.kind()&&"RAML10"==e.RAMLVersion()}
function i (line 27) | function i(e){return"LibraryBase"==e.kind()&&"RAML10"==e.RAMLVersion()}
function a (line 27) | function a(e){return"Annotable"==e.kind()&&"RAML10"==e.RAMLVersion()}
function o (line 27) | function o(e){return"AnnotationRef"==e.kind()&&"RAML10"==e.RAMLVersion()}
function s (line 27) | function s(e){return"Reference"==e.kind()&&"RAML10"==e.RAMLVersion()}
function u (line 27) | function u(e){return"ValueType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function c (line 27) | function c(e){return"StringType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function l (line 27) | function l(e){return"UriTemplate"==e.kind()&&"RAML10"==e.RAMLVersion()}
function p (line 27) | function p(e){return"RelativeUriString"==e.kind()&&"RAML10"==e.RAMLVersi...
function f (line 27) | function f(e){return"FullUriTemplateString"==e.kind()&&"RAML10"==e.RAMLV...
function d (line 27) | function d(e){return"StatusCodeString"==e.kind()&&"RAML10"==e.RAMLVersio...
function m (line 27) | function m(e){return"FixedUriString"==e.kind()&&"RAML10"==e.RAMLVersion()}
function h (line 27) | function h(e){return"ContentType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function y (line 27) | function y(e){return"MarkdownString"==e.kind()&&"RAML10"==e.RAMLVersion()}
function _ (line 27) | function _(e){return"SchemaString"==e.kind()&&"RAML10"==e.RAMLVersion()}
function g (line 27) | function g(e){return"MimeType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function v (line 27) | function v(e){return"AnyType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function b (line 27) | function b(e){return"NumberType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function S (line 27) | function S(e){return"IntegerType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function A (line 27) | function A(e){return"NullType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function T (line 27) | function T(e){return"TimeOnlyType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function E (line 27) | function E(e){return"DateOnlyType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function C (line 27) | function C(e){return"DateTimeOnlyType"==e.kind()&&"RAML10"==e.RAMLVersio...
function N (line 27) | function N(e){return"DateTimeType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function w (line 27) | function w(e){return"FileType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function k (line 27) | function k(e){return"BooleanType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function x (line 27) | function x(e){return"AnnotationTarget"==e.kind()&&"RAML10"==e.RAMLVersio...
function R (line 27) | function R(e){return"TraitRef"==e.kind()&&"RAML10"==e.RAMLVersion()}
function I (line 27) | function I(e){return"Trait"==e.kind()&&"RAML10"==e.RAMLVersion()}
function D (line 27) | function D(e){return"MethodBase"==e.kind()&&"RAML10"==e.RAMLVersion()}
function M (line 27) | function M(e){return"Operation"==e.kind()&&"RAML10"==e.RAMLVersion()}
function P (line 27) | function P(e){return"TypeDeclaration"==e.kind()&&"RAML10"==e.RAMLVersion()}
function L (line 27) | function L(e){return"ModelLocation"==e.kind()&&"RAML10"==e.RAMLVersion()}
function O (line 27) | function O(e){return"LocationKind"==e.kind()&&"RAML10"==e.RAMLVersion()}
function U (line 27) | function U(e){return"ExampleSpec"==e.kind()&&"RAML10"==e.RAMLVersion()}
function F (line 27) | function F(e){return"UsesDeclaration"==e.kind()&&"RAML10"==e.RAMLVersion()}
function B (line 27) | function B(e){return"XMLFacetInfo"==e.kind()&&"RAML10"==e.RAMLVersion()}
function K (line 27) | function K(e){return"ArrayTypeDeclaration"==e.kind()&&"RAML10"==e.RAMLVe...
function V (line 27) | function V(e){return"UnionTypeDeclaration"==e.kind()&&"RAML10"==e.RAMLVe...
function j (line 27) | function j(e){return"ObjectTypeDeclaration"==e.kind()&&"RAML10"==e.RAMLV...
function W (line 27) | function W(e){return"StringTypeDeclaration"==e.kind()&&"RAML10"==e.RAMLV...
function q (line 27) | function q(e){return"BooleanTypeDeclaration"==e.kind()&&"RAML10"==e.RAML...
function z (line 27) | function z(e){return"NumberTypeDeclaration"==e.kind()&&"RAML10"==e.RAMLV...
function H (line 27) | function H(e){return"IntegerTypeDeclaration"==e.kind()&&"RAML10"==e.RAML...
function Y (line 27) | function Y(e){return"DateOnlyTypeDeclaration"==e.kind()&&"RAML10"==e.RAM...
function J (line 27) | function J(e){return"TimeOnlyTypeDeclaration"==e.kind()&&"RAML10"==e.RAM...
function G (line 27) | function G(e){return"DateTimeOnlyTypeDeclaration"==e.kind()&&"RAML10"==e...
function X (line 27) | function X(e){return"DateTimeTypeDeclaration"==e.kind()&&"RAML10"==e.RAM...
function $ (line 27) | function $(e){return"FileTypeDeclaration"==e.kind()&&"RAML10"==e.RAMLVer...
function Q (line 27) | function Q(e){return"Response"==e.kind()&&"RAML10"==e.RAMLVersion()}
function Z (line 27) | function Z(e){return"SecuritySchemePart"==e.kind()&&"RAML10"==e.RAMLVers...
function ee (line 27) | function ee(e){return"SecuritySchemeRef"==e.kind()&&"RAML10"==e.RAMLVers...
function te (line 27) | function te(e){return"AbstractSecurityScheme"==e.kind()&&"RAML10"==e.RAM...
function ne (line 27) | function ne(e){return"SecuritySchemeSettings"==e.kind()&&"RAML10"==e.RAM...
function re (line 27) | function re(e){return"OAuth1SecuritySchemeSettings"==e.kind()&&"RAML10"=...
function ie (line 27) | function ie(e){return"OAuth2SecuritySchemeSettings"==e.kind()&&"RAML10"=...
function ae (line 27) | function ae(e){return"OAuth2SecurityScheme"==e.kind()&&"RAML10"==e.RAMLV...
function oe (line 27) | function oe(e){return"OAuth1SecurityScheme"==e.kind()&&"RAML10"==e.RAMLV...
function se (line 27) | function se(e){return"PassThroughSecurityScheme"==e.kind()&&"RAML10"==e....
function ue (line 27) | function ue(e){return"BasicSecurityScheme"==e.kind()&&"RAML10"==e.RAMLVe...
function ce (line 27) | function ce(e){return"DigestSecurityScheme"==e.kind()&&"RAML10"==e.RAMLV...
function le (line 27) | function le(e){return"CustomSecurityScheme"==e.kind()&&"RAML10"==e.RAMLV...
function pe (line 27) | function pe(e){return"Method"==e.kind()&&"RAML10"==e.RAMLVersion()}
function fe (line 27) | function fe(e){return"ResourceTypeRef"==e.kind()&&"RAML10"==e.RAMLVersio...
function de (line 27) | function de(e){return"ResourceType"==e.kind()&&"RAML10"==e.RAMLVersion()}
function me (line 27) | function me(e){return"ResourceBase"==e.kind()&&"RAML10"==e.RAMLVersion()}
function he (line 27) | function he(e){return"Resource"==e.kind()&&"RAML10"==e.RAMLVersion()}
function ye (line 27) | function ye(e){return"DocumentationItem"==e.kind()&&"RAML10"==e.RAMLVers...
function _e (line 27) | function _e(e){return"Library"==e.kind()&&"RAML10"==e.RAMLVersion()}
function ge (line 27) | function ge(e){return"Overlay"==e.kind()&&"RAML10"==e.RAMLVersion()}
function ve (line 27) | function ve(e){return"Extension"==e.kind()&&"RAML10"==e.RAMLVersion()}
function be (line 27) | function be(e){return null==e.highLevel().parent()}
function Se (line 27) | function Se(e){return be(e)?e:null}
function r (line 27) | function r(e){return e.highLevel().localType()}
function i (line 27) | function i(e){return e.highLevel().localType()}
function a (line 27) | function a(e){var t=new Ie.Project(Me.dirname(e)),n=t.unit(Me.basename(e...
function o (line 27) | function o(e){var t="",n=e;do{e=n,t=e.relativeUri().value()+t,n=e.parent...
function s (line 27) | function s(e,t){return void 0===t&&(t=!1),t?c(e):u(e)}
function u (line 27) | function u(e){var t=e.highLevel().lowLevel();return ke.LowLevelProxyNode...
function c (line 27) | function c(e){return(null!=e.highLevel().reusedNode()?we:Ne).expandLibra...
function l (line 27) | function l(e){var t="",n=e;do{e=n,t=e.relativeUri().value()+t,n=e.parent...
function p (line 27) | function p(e,t){return e.runtimeType().validate(t).map(function(e){retur...
function f (line 27) | function f(e,t){return e.runtimeType().validate(t)}
function d (line 27) | function d(e){return m(e)}
function m (line 27) | function m(e){return e.highLevel().lowLevel().actual().libExpanded?e.tra...
function h (line 27) | function h(e){return y(e)}
function y (line 27) | function y(e){return e.highLevel().lowLevel().actual().libExpanded?e.res...
function _ (line 27) | function _(e,t){var n=Re.globalDeclarations(e.highLevel()).filter(functi...
function g (line 27) | function g(e){var t=[],n=e;do{e=n,t.push(e.relativeUri().value()),n=e.pa...
function v (line 27) | function v(e){return de.ResourceImpl.isInstance(e.parent())?e.parent():n...
function b (line 27) | function b(e){var t=e.parent();return t.definition().key().name==Te.Univ...
function S (line 27) | function S(e,t){if(null==e)return null;var n=e.resources();return n?(n=n...
function A (line 27) | function A(e,t){if(!e)return null;for(var n=null,r=0;r<t.length;r++){if(...
function T (line 27) | function T(e,t){return e?e.methods().filter(function(e){return e.method(...
function E (line 27) | function E(e,t,n){var r=A(e,t);return r?T(r,n):null}
function C (line 27) | function C(e){return Pe.isApiSibling(e.definition())}
function N (line 27) | function N(e){for(var t=e;!C(t);)t=t.parent();return t}
function w (line 27) | function w(e){var t=e.parent();if(de.ResourceImpl.isInstance(t))return o...
function k (line 27) | function k(e){var t=e.code().value();if(null!=ve.validateResponseString(...
function x (line 27) | function x(e){var t=[],n=function(e){t.push(e),e.resources().forEach(fun...
function R (line 27) | function R(e,t){for(var n={};null!=t;)D(t).forEach(function(e){return n[...
function I (line 27) | function I(e){return D(e)}
function D (line 27) | function D(e){var t=e.uriParameters_original();return de.ResourceImpl.is...
function M (line 27) | function M(e){return P(e)}
function P (line 27) | function P(e){var t=e.baseUri()?e.baseUri().value():"";return ce(e.baseU...
function L (line 27) | function L(e){var t=[],n=e;do{e=n,t=D(e).concat(t),n=e.parent()}while(n....
function O (line 27) | function O(e){return U(e)}
function U (line 27) | function U(e){return e.protocols().map(function(e){return e.toUpperCase(...
function F (line 27) | function F(e){return B(e)}
function B (line 27) | function B(e){return e.securedBy()}
function K (line 27) | function K(e){var t=e.highLevel();if(!t)return"";var n=t.value();return ...
function V (line 27) | function V(e){var t=e.highLevel();if(!t)return null;var n=Re.findDeclara...
function j (line 27) | function j(e){return e.highLevel().definition().universe().version()}
function W (line 27) | function W(e){var t=e.value().lowLevel(),n=null,r=t.highLevelParseResult...
function q (line 27) | function q(e){var t=e.highLevel().value();return"string"==typeof t||null...
function z (line 27) | function z(e){return J(e)}
function H (line 27) | function H(e){return J(e)}
function Y (line 27) | function Y(e){return J(e)}
function J (line 27) | function J(e){var t=e.highLevel(),n=t.parent(),r=e.name(),i=Re.reference...
function G (line 27) | function G(e,t,n,r){void 0===r&&(r=!0);var i=t.lowLevel(),a=t.definition...
function X (line 27) | function X(e,t){void 0===t&&(t=!1);var n=e.runtimeDefinition();return n?...
function $ (line 27) | function $(e){var t=X(e,!0);return t.length>0?t[0]:null}
function Q (line 27) | function Q(e){return X(e)}
function Z (line 27) | function Z(e){var t=e.runtimeDefinition(),n=t.fixedFacets();if(e.kind()=...
function ee (line 27) | function ee(e){var t=e.highLevel().attributes(Se.universesInfo.Universe1...
function te (line 27) | function te(e){var t=!1,n=e.highLevel().attributes(Se.universesInfo.Univ...
function ne (line 27) | function ne(e){var t=e.highLevel().attributes(Se.universesInfo.Universe1...
function re (line 27) | function re(e){for(var t=e.highLevel().attributes(Se.universesInfo.Unive...
function ie (line 27) | function ie(e){var t=e.value(),n=e.highLevel().lowLevel().unit().resolve...
function ae (line 27) | function ae(e){var t=e.highLevel().attributes(Se.universesInfo.Universe1...
function oe (line 27) | function oe(e){var t=e.highLevel();if(!t)return null;var n=t.attr(Te.Uni...
function se (line 27) | function se(e){var t=e.runtimeType();if(!t)return null;if(!t.isArray()||...
function ue (line 27) | function ue(e){var t=e.items_original();if(t&&"string"!=typeof t&&(!Arra...
function ce (line 27) | function ce(e,t,n,r){if("string"!=typeof t)return[];var i=n.highLevel(),...
function le (line 27) | function le(e){if(e.kind()==Ae.Universe10.Method.name||Pe.isTypeDeclarat...
function n (line 27) | function n(){this.constructor=e}
function e (line 27) | function e(e,t){this._content=e,this._name=t}
function e (line 27) | function e(e,t){this.key=e,this.value=t}
function e (line 27) | function e(e){this._param=e,this.description=e.description()?e.descripti...
function t (line 27) | function t(t,n,r,i){e.call(this,t),this.expandable=n,this._annotations=r...
function r (line 27) | function r(e,t,n,r){return void 0===n&&(n=b.builtInRegistry()),_(e,new M...
function i (line 27) | function i(e,t,n){return void 0===t&&(t=b.builtInRegistry()),u(new M(nul...
function a (line 27) | function a(e){return"?"==e.charAt(e.length-1)}
function o (line 27) | function o(e,t){return void 0===t&&(t=b.builtInRegistry()),u(new M(null,...
function s (line 27) | function s(e){return new U(e)}
function u (line 27) | function u(e,t){var n=new L;if(e.anchor){if(e.anchor().__$$)return e.anc...
function c (line 27) | function c(e,t){var n=new P,r=!1,i=e.childWithKey("required");if(i){var ...
function l (line 27) | function l(e){var t=new F;t.name=e.name(),t.superTypes=e.superTypes().ma...
function p (line 27) | function p(e){return e instanceof E.AbstractType?l(e).toJSON():f(e)}
function f (line 27) | function f(e){var t={},n={};e.types().forEach(function(e){n[e.name()]=p(...
function d (line 27) | function d(e){if(e.isAnonymous()){if(e.isArray()){var t=e.oneMeta(T.Comp...
function m (line 27) | function m(e,t){if(t===b.ANY||e===t||e.superTypes().some(function(e){ret...
function h (line 27) | function h(e,t){var n=e.requiredType(),r=e.requiredTypes();return r&&r.l...
function y (line 27) | function y(e,t){for(var n=t.children(),r=0,i=n;r<i.length;r++){var a=i[r...
function _ (line 27) | function _(e,t,n,r,i,a,o){void 0===n&&(n=b.builtInRegistry()),void 0===r...
function g (line 27) | function g(e,t){for(var n,r=t;r&&!(n=r.typeMap()[e.name()]);)r=r.parent(...
function n (line 27) | function n(){this.constructor=e}
function e (line 27) | function e(e,t,n,r){void 0===n&&(n=!1),this._key=e,this.obj=t,this.inArr...
function e (line 27) | function e(){}
function e (line 27) | function e(){this._types=[],this._typeMap={},this.uses={},this._annotati...
function t (line 27) | function t(t,n,r,i){e.call(this,r),this.toParse=t,this.schemas=n,this._c...
function e (line 27) | function e(e){this.n=e}
function e (line 27) | function e(){}
function r (line 27) | function r(e,t){var n=T(t,e),r=!!y&&g.getValue(n);if(r&&r.provider)retur...
function i (line 27) | function i(e,t){var n=(T(t,e),!!y&&g.getValue(e));if(n)return n;var r=ne...
function a (line 27) | function a(e,t){var n=T(t,e),r=!!y&&g.getValue(n);if(r)return r;try{var ...
function o (line 27) | function o(e,t,n){null==n&&(n=s(e)),n.length>0&&(n+=":");for(var r=e.get...
function s (line 27) | function s(e){var t="";if(e){var n=e;if(e.ownerDocument&&(n=e.ownerDocum...
function e (line 27) | function e(){}
function e (line 27) | function e(){this.errors={},this.size=0}
function e (line 27) | function e(){}
function e (line 27) | function e(e,t){if(this.schema=e,this.provider=t,this.provider=t?t:new v...
function e (line 27) | function e(e,t){if(this.schema=e,this.provider=t,this.extraElementData=n...
function r (line 27) | function r(e){this.afterTransform=function(t,n){return i(e,t,n)},this.ne...
function i (line 27) | function i(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writ...
function a (line 27) | function a(e){if(!(this instanceof a))return new a(e);s.call(this,e),thi...
function o (line 27) | function o(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e....
function i (line 27) | function i(){}
function a (line 27) | function a(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next...
function o (line 27) | function o(e,t){E=E||n(30),e=e||{},this.objectMode=!!e.objectMode,t inst...
function s (line 27) | function s(e){if(E=E||n(30),!(D.call(s,this)||this instanceof E))return ...
function u (line 27) | function u(e,t){var n=new Error("write after end");e.emit("error",n),C(t...
function c (line 27) | function c(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May n...
function l (line 27) | function l(e,t,n){return e.objectMode||e.decodeStrings===!1||"string"!=t...
function p (line 27) | function p(e,t,n,r,i,o){n||(r=l(t,r,i),R.isBuffer(r)&&(i="buffer"));var ...
function f (line 27) | function f(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!...
function d (line 27) | function d(e,t,n,r,i){--t.pendingcb,n?C(i,r):i(r),e._writableState.error...
function m (line 27) | function m(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writele...
function h (line 27) | function h(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(m(n),t)d(...
function y (line 27) | function y(e,t,n,r){n||_(e,t),t.pendingcb--,r(),S(e,t)}
function _ (line 27) | function _(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain...
function g (line 27) | function g(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writ...
function v (line 27) | function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!...
function b (line 27) | function b(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}
function S (line 27) | function S(e,t){var n=v(t);return n&&(0===t.pendingcb?(b(e,t),t.finished...
function A (line 27) | function A(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?C(n):e.once("finish"...
function T (line 27) | function T(e){var t=this;this.next=null,this.entry=null,this.finish=func...
function r (line 27) | function r(e){if(e&&!u(e))throw new Error("Unknown encoding: "+e)}
function i (line 27) | function i(e){return e.toString(this.encoding)}
function a (line 27) | function a(e){this.charReceived=e.length%2,this.charLength=this.charRece...
function o (line 27) | function o(e){this.charReceived=e.length%3,this.charLength=this.charRece...
function r (line 27) | function r(e,t){this._id=e,this._clearFn=t}
function n (line 41) | function n(){this.constructor=e}
function e (line 41) | function e(){}
function t (line 41) | function t(e){function t(e){for(var t in u)e(t,u[t])}function n(e){retur...
function n (line 41) | function n(e,t,n){return n(G(e)?H(e):Q(e,t))}
function r (line 41) | function r(e,t){if(e)for(var n=0,r=e.length;n<r;n++){var i=t(e[n],n);if(...
function i (line 41) | function i(e,t){if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i===t...
function a (line 41) | function a(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n...
function o (line 41) | function o(e,t){var n=0;if(e)for(var r=0,i=e;r<i.length;r++){var a=i[r];...
function s (line 41) | function s(e,t){var n;if(e){n=[];for(var r=0,i=e;r<i.length;r++){var a=i...
function u (line 41) | function u(e,t){var n;if(e){n=[];for(var r=0,i=e;r<i.length;r++){var a=i...
function c (line 41) | function c(e,t){return t&&t.length?e&&e.length?e.concat(t):t:e}
function l (line 41) | function l(e){var t;if(e){t=[];for(var n=0,r=e;n<r.length;n++){var a=r[n...
function p (line 41) | function p(e,t){for(var n=0,r=0,i=e;r<i.length;r++){n+=i[r][t]}return n}
function f (line 41) | function f(e,t){if(e&&t)for(var n=0,r=t;n<r.length;n++){var i=r[n];e.pus...
function d (line 41) | function d(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}
function m (line 41) | function m(e){if(0!==e.length)return e[e.length-1]}
function h (line 41) | function h(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+(r-n>>1),a=e[i];...
function y (line 41) | function y(e,t,n){if(e){var r=e.length;if(r>0){var i=0,a=arguments.lengt...
function _ (line 41) | function _(e,t,n){if(e){var r=e.length-1;if(r>=0){var i=arguments.length...
function g (line 41) | function g(e,t){return he.call(e,t)}
function v (line 41) | function v(e,t){return he.call(e,t)?e[t]:void 0}
function b (line 41) | function b(e){for(var t in e)if(g(e,t))return!1;return!0}
function S (line 41) | function S(e){var t={};for(var n in e)t[n]=e[n];return t}
function A (line 41) | function A(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)g(n,r)|...
function T (line 41) | function T(e,t){var n;for(var r in e)if(n=t(e[r]))break;return n}
function E (line 41) | function E(e,t){var n;for(var r in e)if(n=t(r))break;return n}
function C (line 41) | function C(e,t){return g(e,t)?e[t]:void 0}
function N (line 41) | function N(e,t){for(var n in e)t[n]=e[n]}
function w (line 41) | function w(e,t){var n={};return r(e,function(e){n[t(e)]=e}),n}
function k (line 41) | function k(e,t,n){var r=n;if(e)for(var i in e)g(e,i)&&(r=t(r,e[i],String...
function x (line 41) | function x(e){return Array.isArray?Array.isArray(e):e instanceof Array}
function R (line 41) | function R(e){var t;return function(){return e&&(t=e(),e=void 0),t}}
function I (line 41) | function I(e,t,n){return n=n||0,e.replace(/{(\d+)}/g,function(e,r){retur...
function D (line 41) | function D(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosti...
function M (line 41) | function M(e,t,n,r){var i=t+n;ge.assert(t>=0,"start must be non-negative...
function P (line 41) | function P(e){var t=D(e);return arguments.length>1&&(t=I(t,arguments,1))...
function L (line 41) | function L(e,t){var n=D(t);return arguments.length>2&&(n=I(n,arguments,2...
function O (line 41) | function O(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}
function U (line 41) | function U(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}
function F (line 41) | function F(e){return e.file?e.file.fileName:void 0}
function B (line 41) | function B(e,t){return U(F(e),F(t))||U(e.start,t.start)||U(e.length,t.le...
function K (line 41) | function K(e,t){for(;e&&t;){var n="string"==typeof e?e:e.messageText,r="...
function V (line 41) | function V(e){return j(e.sort(B))}
function j (line 41) | function j(e){if(e.length<2)return e;for(var t=[e[0]],n=e[0],r=1;r<e.len...
function W (line 41) | function W(e){return e.replace(/\\/g,"/")}
function q (line 41) | function q(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;...
function z (line 41) | function z(t,n){for(var r=t.substr(n).split(e.directorySeparator),i=[],a...
function H (line 41) | function H(t){t=W(t);var n=q(t),r=z(t,n);return t.substr(0,n)+r.join(e.d...
function Y (line 41) | function Y(t){return t.substr(0,Math.max(q(t),t.lastIndexOf(e.directoryS...
function J (line 41) | function J(e){return e&&!G(e)&&e.indexOf("://")!==-1}
function G (line 41) | function G(e){return 0!==q(e)}
function X (line 41) | function X(e,t){var n=z(e,t);return[e.substr(0,t)].concat(n)}
function $ (line 41) | function $(e,t){e=W(e);var n=q(e);return 0===n&&(e=ie(W(t),e),n=q(e)),X(...
function Q (line 41) | function Q(e,t){return Z($(e,t))}
function Z (line 41) | function Z(t){if(t&&t.length)return t[0]+t.slice(1).join(e.directorySepa...
function ee (line 41) | function ee(t){for(var n=t.length,r=t.indexOf("://")+"://".length;r<n&&4...
function te (line 41) | function te(e,t){return J(e)?ee(e):$(e,t)}
function ne (line 41) | function ne(t,n,r,i,a){var o=te(n,r),s=te(t,r);s.length>1&&""===m(s)&&s....
function re (line 41) | function re(t){if(void 0!==t){var n=t.lastIndexOf(e.directorySeparator);...
function ie (line 41) | function ie(t,n){return t&&t.length?n&&n.length?0!==q(n)?n:t.charAt(t.le...
function ae (line 41) | function ae(e,t){var n=e.length,r=t.length;return n>r&&e.substr(n-r,r)===t}
function oe (line 41) | function oe(t){return t&&t.allowJs?ye:e.supportedTypeScriptExtensions}
function se (line 41) | function se(e,t){if(!e)return!1;for(var n=0,r=oe(t);n<r.length;n++){if(a...
function ue (line 41) | function ue(e){for(var t=0,n=_e;t<n.length;t++){var r=n[t];if(ae(e,r))re...
function ce (line 41) | function ce(e,t){this.flags=e,this.name=t,this.declarations=void 0}
function le (line 41) | function le(e,t){this.flags=t}
function pe (line 41) | function pe(e){}
function fe (line 41) | function fe(e,t,n){this.kind=e,this.pos=t,this.end=n,this.flags=0,this.p...
function de (line 41) | function de(e,t){for(var n=[],r=0,i=t;r<i.length;r++){var a=i[r];a!==e&&...
function me (line 41) | function me(e){return e?function(e){return e}:function(e){return e.toLow...
function t (line 41) | function t(e){return i>=e}
function n (line 41) | function n(e,t,n){if(!e){var r="";throw n&&(r="\r\nVerbose Debug Informa...
function r (line 41) | function r(t){e.assert(!1,t)}
function t (line 41) | function t(e,t){if(o.FileExists(e)){s.Open();try{if(t)s.Charset=t,s.Load...
function n (line 41) | function n(e,t,n){s.Open(),u.Open();try{s.Charset="utf-8",s.WriteText(t)...
function r (line 41) | function r(e){return e.toLowerCase()}
function i (line 41) | function i(e){for(var t=[],n=new Enumerator(e);!n.atEnd();n.moveNext())t...
function a (line 41) | function a(t,n,a){function s(t){for(var c=o.GetFolder(t||"."),l=i(c.file...
function a (line 41) | function a(){return parseInt(t.version.charAt(1))>=4}
function o (line 41) | function o(e,t){if(l.existsSync(e)){var n=l.readFileSync(e),r=n.length;i...
function s (line 41) | function s(e,t,n){n&&(t="\ufeff"+t);var r;try{r=l.openSync(e,"w"),l.writ...
function u (line 41) | function u(e){return y?e:e.toLowerCase()}
function c (line 41) | function c(t,n,r){function i(t){for(var o=l.readdirSync(t||".").sort(),s...
function r (line 41) | function r(e){return l.statSync(e).mtime}
function i (line 41) | function i(e){var t=c[e];t&&l.stat(t.filePath,function(e,n){e?t.callback...
function a (line 41) | function a(){u=setInterval(function(){for(var e=0,t=p,r=-1;e<n&&t!==r;)i...
function o (line 41) | function o(e,t){var n={filePath:e,callback:t,mtime:r(e)};return c.push(n...
function s (line 41) | function s(t){c=e.copyListRemovingItem(t,c)}
function t (line 41) | function t(t){var n=e.getDirectoryPath(t);if(u.contains(n)){var r=u.get(...
function n (line 41) | function n(e){if(u.contains(e)){return void(u.get(e).referenceCount+=1)}...
function r (line 41) | function r(e,t){c.contains(e)?c.get(e).push(t):c.set(e,[t])}
function i (line 41) | function i(t,i){return r(t,i),n(e.getDirectoryPath(t)),{filePath:t,callb...
function a (line 41) | function a(e){o(e.filePath,e.callback),t(e.filePath)}
function o (line 41) | function o(t,n){if(c.contains(t)){var r=e.copyListRemovingItem(n,c.get(t...
function s (line 41) | function s(t,n,r){var i="string"!=typeof n?void 0:e.toPath(n,r,e.createG...
function t (line 41) | function t(e){return e>=69}
function n (line 41) | function n(e,t){if(e<t[0])return!1;for(var n,r=0,i=t.length;r+1<i;){if(n...
function r (line 41) | function r(e,t){return t>=1?n(e,P):n(e,D)}
function i (line 41) | function i(e,t){return t>=1?n(e,L):n(e,M)}
function a (line 41) | function a(e){return O[e]}
function o (line 41) | function o(e){return I[e]}
function s (line 41) | function s(e){for(var t=new Array,n=0,r=0;n<e.length;){var i=e.charCodeA...
function u (line 41) | function u(e,t,n){return c(l(e),t,n)}
function c (line 41) | function c(t,n,r){return e.Debug.assert(n>=0&&n<t.length),t[n]+r}
function l (line 41) | function l(e){return e.lineMap||(e.lineMap=s(e.text))}
function p (line 41) | function p(t,n){var r=e.binarySearch(t,n);return r<0&&(r=~r-1,e.Debug.as...
function f (line 41) | function f(e,t){return p(l(e),t)}
function d (line 41) | function d(e){return 32===e||9===e||11===e||12===e||160===e||133===e||57...
function m (line 41) | function m(e){return 10===e||13===e||8232===e||8233===e}
function h (line 41) | function h(e){return e>=48&&e<=57}
function y (line 41) | function y(e){return e>=48&&e<=55}
function _ (line 41) | function _(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:c...
function g (line 41) | function g(e,t,n){if(!(t>=0))return t;for(;;){var r=e.charCodeAt(t);swit...
function v (line 41) | function v(t,n){if(e.Debug.assert(n>=0),0===n||m(t.charCodeAt(n-1))){var...
function b (line 41) | function b(t,n,r){r&&r(e.Diagnostics.Merge_conflict_marker_encountered,F...
function S (line 41) | function S(t,n){return e.Debug.assert(0===n),B.test(t)}
function A (line 41) | function A(e,t){return t+=B.exec(e)[0].length}
function T (line 41) | function T(t,n,r){for(var i,a=r||0===n;n<t.length;){var o=t.charCodeAt(n...
function E (line 41) | function E(e,t){return T(e,t,!1)}
function C (line 41) | function C(e,t){return T(e,t,!0)}
function N (line 41) | function N(e){return B.test(e)?B.exec(e)[0]:void 0}
function w (line 41) | function w(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>12...
function k (line 41) | function k(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e...
function x (line 41) | function x(e,t){if(!w(e.charCodeAt(0),t))return!1;for(var n=1,r=e.length...
function R (line 41) | function R(n,r,i,a,o,s,u){function c(e,t){o&&o(e,t||0)}function l(){for(...
function t (line 41) | function t(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r<i.length;r++...
function n (line 41) | function n(){if(0===Tn.length){var e="",t=function(t){return e+=t};retur...
function r (line 41) | function r(e){e.clear(),Tn.push(e)}
function i (line 41) | function i(e){return e.end-e.pos}
function a (line 41) | function a(e,t,n){if(!e||!t)return e===t;if(e.length!==t.length)return!1...
function o (line 41) | function o(t,n){return t.resolvedModules&&e.hasProperty(t.resolvedModule...
function s (line 41) | function s(e,t){return o(e,t)?e.resolvedModules[t]:void 0}
function u (line 41) | function u(e,t,n){e.resolvedModules||(e.resolvedModules={}),e.resolvedMo...
function c (line 41) | function c(e){return l(e),0!=(64&e.parserContextFlags)}
function l (line 41) | function l(t){if(!(128&t.parserContextFlags)){(0!=(16&t.parserContextFla...
function p (line 41) | function p(e){for(;e&&251!==e.kind;)e=e.parent;return e}
function f (line 41) | function f(e){switch(e.kind){case 195:case 223:case 202:case 203:case 20...
function d (line 41) | function d(t,n){return e.Debug.assert(t>=0),e.getLineStarts(n)[t]}
function m (line 41) | function m(t){var n=p(t),r=e.getLineAndCharacterOfPosition(n,t.pos);retu...
function h (line 41) | function h(e){return e.pos}
function y (line 41) | function y(e){return!e||e.pos===e.end&&e.pos>=0&&1!==e.kind}
function _ (line 41) | function _(e){return!y(e)}
function g (line 41) | function g(t,n){return y(t)?t.pos:e.skipTrivia((n||p(t)).text,t.pos)}
function v (line 41) | function v(t,n){return y(t)||!t.decorators?g(t,n):e.skipTrivia((n||p(t))...
function b (line 41) | function b(t,n,r){if(void 0===r&&(r=!1),y(n))return"";var i=t.text;retur...
function S (line 41) | function S(t,n){return y(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}
function A (line 41) | function A(e,t){return void 0===t&&(t=!1),b(p(e),e,t)}
function T (line 41) | function T(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeA...
function E (line 41) | function E(e){return e.length>=3&&95===e.charCodeAt(0)&&95===e.charCodeA...
function C (line 41) | function C(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace...
function N (line 41) | function N(e){return 0!=(24576&W(e))||D(e)}
function w (line 41) | function w(e){return e&&221===e.kind&&(9===e.name.kind||x(e))}
function k (line 41) | function k(e){return 251===e.kind||221===e.kind||ie(e)||ue(e)}
function x (line 41) | function x(e){return!!(2097152&e.flags)}
function R (line 41) | function R(e){if(!e||!w(e))return!1;switch(e.parent.kind){case 251:retur...
function I (line 41) | function I(e){for(var t=e.parent;t;){if(ie(t))return t;switch(t.kind){ca...
function D (line 41) | function D(e){return e&&214===e.kind&&e.parent&&247===e.parent.kind}
function M (line 41) | function M(e){return 0===i(e)?"(Missing)":A(e)}
function P (line 41) | function P(t,n,r,i,a){var o=p(t),s=U(o,t);return e.createFileDiagnostic(...
function L (line 41) | function L(e,t){var n=p(e),r=U(n,e);return{file:n,start:r.start,length:r...
function O (line 41) | function O(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVar...
function U (line 41) | function U(t,n){var r=n;switch(n.kind){case 251:var i=e.skipTrivia(t.tex...
function F (line 41) | function F(e){return void 0!==e.externalModuleIndicator}
function B (line 41) | function B(e){return void 0!==(e.externalModuleIndicator||e.commonJsModu...
function K (line 41) | function K(e){return 0!=(4096&e.flags)}
function V (line 41) | function V(e){return 220===e.kind&&q(e)}
function j (line 41) | function j(e){for(;e&&(166===e.kind||Ye(e));)e=e.parent;return e}
function W (line 41) | function W(e){e=j(e);var t=e.flags;return 214===e.kind&&(e=e.parent),e&&...
function q (line 41) | function q(e){return!!(16384&W(e))}
function z (line 41) | function z(e){return!!(8192&W(e))}
function H (line 41) | function H(e){return 171===e.kind&&95===e.expression.kind}
function Y (line 41) | function Y(e){return 198===e.kind&&9===e.expression.kind}
function J (line 41) | function J(t,n){return e.getLeadingCommentRanges(n.text,t.pos)}
function G (line 41) | function G(t,n){return e.getLeadingCommentRanges(n,t.pos)}
function X (line 41) | function X(e,t){return $(e,t.text)}
function $ (line 41) | function $(t,n){function r(e){return 42===n.charCodeAt(e.pos+1)&&42===n....
function Q (line 41) | function Q(t){if(151<=t.kind&&t.kind<=163)return!0;switch(t.kind){case 1...
function Z (line 41) | function Z(t,n){function r(t){switch(t.kind){case 207:return n(t);case 2...
function ee (line 41) | function ee(t,n){function r(t){switch(t.kind){case 187:n(t);var i=t.expr...
function te (line 41) | function te(e){if(e)switch(e.kind){case 166:case 250:case 139:case 248:c...
function ne (line 41) | function ne(e){return e&&(146===e.kind||147===e.kind)}
function re (line 41) | function re(e){return e&&(217===e.kind||189===e.kind)}
function ie (line 41) | function ie(e){return e&&ae(e.kind)}
function ae (line 41) | function ae(e){switch(e){case 145:case 176:case 216:case 177:case 144:ca...
function oe (line 41) | function oe(e){switch(e.kind){case 144:case 143:case 145:case 146:case 1...
function se (line 41) | function se(e,t){switch(e.kind){case 202:case 203:case 204:case 200:case...
function ue (line 41) | function ue(e){return e&&195===e.kind&&ie(e.parent)}
function ce (line 41) | function ce(e){return e&&144===e.kind&&168===e.parent.kind}
function le (line 41) | function le(e){return e&&1===e.kind}
function pe (line 41) | function pe(e){return e&&0===e.kind}
function fe (line 41) | function fe(e){for(;;)if(!(e=e.parent)||ie(e))return e}
function de (line 41) | function de(e){for(;;)if(!(e=e.parent)||re(e))return e}
function me (line 41) | function me(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 137...
function he (line 41) | function he(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 1...
function ye (line 41) | function ye(e){return(169===e.kind||170===e.kind)&&95===e.expression.kind}
function _e (line 41) | function _e(e){if(e)switch(e.kind){case 152:return e.typeName;case 191:r...
function ge (line 41) | function ge(e){return 173===e.kind?e.tag:e.expression}
function ve (line 41) | function ve(e){switch(e.kind){case 217:return!0;case 142:return 217===e....
function be (line 41) | function be(e){return void 0!==e.decorators&&ve(e)}
function Se (line 41) | function Se(e){return 169===e.kind}
function Ae (line 41) | function Ae(e){return 170===e.kind}
function Te (line 41) | function Te(e){switch(e.kind){case 95:case 93:case 99:case 84:case 10:ca...
function Ee (line 41) | function Ee(e){return"./"===e.substr(0,2)||"../"===e.substr(0,3)||".\\"=...
function Ce (line 41) | function Ce(t,n){var r=e.getModuleInstanceState(t);return 1===r||n&&2===r}
function Ne (line 41) | function Ne(e){return 224===e.kind&&235===e.moduleReference.kind}
function we (line 41) | function we(t){return e.Debug.assert(Ne(t)),t.moduleReference.expression}
function ke (line 41) | function ke(e){return 224===e.kind&&235!==e.moduleReference.kind}
function xe (line 41) | function xe(e){return Re(e)}
function Re (line 41) | function Re(e){return e&&!!(32&e.parserContextFlags)}
function Ie (line 41) | function Ie(e,t){return 171===e.kind&&69===e.expression.kind&&"require"=...
function De (line 41) | function De(e){if(184!==e.kind)return 0;var t=e;if(56!==t.operatorToken....
function Me (line 41) | function Me(e){if(225===e.kind)return e.moduleSpecifier;if(224===e.kind)...
function Pe (line 41) | function Pe(e){if(e)switch(e.kind){case 139:case 144:case 143:case 249:c...
function Le (line 41) | function Le(e){return 264===e.kind&&e.parameters.length>0&&266===e.param...
function Oe (line 41) | function Oe(e,t,n){if(e){var r=Ue(e,n);if(r)for(var i=0,a=r.tags;i<a.len...
function Ue (line 41) | function Ue(e,t){if(e.jsDocComment)return e.jsDocComment;if(t){var n=214...
function Fe (line 41) | function Fe(e){return Oe(e,272,!1)}
function Be (line 41) | function Be(e){return Oe(e,271,!0)}
function Ke (line 41) | function Ke(e){return Oe(e,273,!1)}
function Ve (line 41) | function Ve(e){if(e.name&&69===e.name.kind){var t=e.name.text,n=Ue(e.par...
function je (line 41) | function je(t){return We(e.lastOrUndefined(t.parameters))}
function We (line 41) | function We(e){if(e){if(32&e.parserContextFlags){if(e.type&&265===e.type...
function qe (line 41) | function qe(e){return 8<=e&&e<=11}
function ze (line 41) | function ze(e){return 9===e||11===e}
function He (line 41) | function He(e){return 11<=e&&e<=14}
function Ye (line 41) | function Ye(e){return!!e&&(165===e.kind||164===e.kind)}
function Je (line 41) | function Je(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}
function Ge (line 41) | function Ge(e){for(;e;){if(4100&e.flags)return!0;e=e.parent}return!1}
function Xe (line 41) | function Xe(e){switch(e.kind){case 177:case 166:case 217:case 189:case 1...
function $e (line 41) | function $e(e){switch(e.kind){case 206:case 205:case 213:case 200:case 1...
function Qe (line 41) | function Qe(e){switch(e.kind){case 145:case 142:case 144:case 146:case 1...
function Ze (line 41) | function Ze(e){if(69!==e.kind&&9!==e.kind&&8!==e.kind)return!1;var t=e.p...
function et (line 41) | function et(e){var t=e.parent;switch(t.kind){case 142:case 141:case 144:...
function tt (line 41) | function tt(e){return 224===e.kind||226===e.kind&&!!e.name||227===e.kind...
function nt (line 41) | function nt(e){var t=at(e.heritageClauses,83);return t&&t.types.length>0...
function rt (line 41) | function rt(e){var t=at(e.heritageClauses,106);return t?t.types:void 0}
function it (line 41) | function it(e){var t=at(e.heritageClauses,83);return t?t.types:void 0}
function at (line 41) | function at(e,t){if(e)for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.to...
function ot (line 41) | function ot(t,n,r){if(!t.getCompilerOptions().noResolve){var i=e.isRoote...
function st (line 41) | function st(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}
function ut (line 41) | function ut(t,n){var r=/^\/\/\/\s*<reference\s+/gim,i=/^(\/\/\/\s*<refer...
function ct (line 41) | function ct(e){return 70<=e&&e<=135}
function lt (line 41) | function lt(e){return 2<=e&&e<=7}
function pt (line 41) | function pt(e){return ie(e)&&0!=(256&e.flags)&&!ne(e)}
function ft (line 41) | function ft(e){return 9===e||8===e}
function dt (line 41) | function dt(e){return e.name&&mt(e.name)}
function mt (line 41) | function mt(e){return 137===e.kind&&!ft(e.expression.kind)&&!ht(e.expres...
function ht (line 41) | function ht(e){return Se(e)&>(e.expression)}
function yt (line 41) | function yt(e){if(69===e.kind||9===e.kind||8===e.kind)return e.text;if(1...
function _t (line 41) | function _t(e){return"__@"+e}
function gt (line 41) | function gt(e){return 69===e.kind&&"Symbol"===e.text}
function vt (line 41) | function vt(e){switch(e){case 115:case 118:case 74:case 122:case 77:case...
function bt (line 41) | function bt(e){return 139===St(e).kind}
function St (line 41) | function St(e){for(;166===e.kind;)e=e.parent.parent;return e}
function At (line 41) | function At(e){return ie(e)||221===e.kind||251===e.kind}
function Tt (line 41) | function Tt(t,n,r,i){var a=void 0!==n?e.createNode(t.kind,n.pos,n.end):w...
function Et (line 41) | function Et(e,t){var n=Tt(e,e,e.flags,t);if(Ct(n)){var r=n.left,i=n.righ...
function Ct (line 41) | function Ct(e){return 136===e.kind}
function Nt (line 41) | function Nt(e){return e.pos===-1}
function wt (line 41) | function wt(t,n){var r=e.createNode(t,-1,-1);return r.startsOnNewLine=n,r}
function kt (line 41) | function kt(){var e=[];return e.pos=-1,e.end=-1,e}
function xt (line 41) | function xt(){function t(){return l}function n(t){if(e.hasProperty(u,t.f...
function Rt (line 41) | function Rt(e){function t(e){return Cn[e]||Dt(e.charCodeAt(0))}return e=...
function It (line 41) | function It(e){var t=e.substr(0,1);return t.toLowerCase()===t}
function Dt (line 41) | function Dt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}
function Mt (line 41) | function Mt(e){return Nn.test(e)?e.replace(Nn,function(e){return Dt(e.ch...
function Pt (line 41) | function Pt(e){return void 0===wn[e]&&(wn[e]=Pt(e-1)+wn[1]),wn[e]}
function Lt (line 41) | function Lt(){return wn[1].length}
function Ot (line 41) | function Ot(t){function n(e){e&&e.length&&(l&&(u+=Pt(c),l=!1),u+=e)}func...
function Ut (line 41) | function Ut(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e...
function Ft (line 41) | function Ft(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.remove...
function Bt (line 41) | function Bt(e){return e.target||0}
function Kt (line 41) | function Kt(e){return"number"==typeof e.module?e.module:2===Bt(e)?5:1}
function Vt (line 41) | function Vt(t,n,r){function i(e,t){return t.sourceMap?e+".map":void 0}fu...
function jt (line 41) | function jt(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCur...
function Wt (line 41) | function Wt(t,n,r,i,a){t.writeFile(r,i,a,function(t){n.add(e.createCompi...
function qt (line 41) | function qt(t,n){return e.getLineAndCharacterOfPosition(t,n).line}
function zt (line 41) | function zt(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}
function Ht (line 41) | function Ht(t){return e.forEach(t.members,function(e){if(145===e.kind&&_...
function Yt (line 41) | function Yt(e){return e&&e.parameters.length>0&&e.parameters[0].type}
function Jt (line 41) | function Jt(t,n){var r,i,a,o;return dt(n)?(r=n,146===n.kind?a=n:147===n....
function Gt (line 41) | function Gt(e,t,n,r){r&&r.length&&n.pos!==r[0].pos&&zt(e,n.pos)!==zt(e,r...
function Xt (line 41) | function Xt(t,n,r,i,a,o,s){var u=!a;e.forEach(i,function(e){u&&(r.write(...
function $t (line 41) | function $t(t,n,r,i,a,o,s){function u(e){return 42===t.charCodeAt(e.pos+...
function Qt (line 41) | function Qt(t,n,r,i,a){if(42===t.charCodeAt(i.pos+1))for(var o=e.compute...
function Zt (line 41) | function Zt(e,t,n,r,i,a){var o=Math.min(t.end,a-1),s=e.substring(i,o).re...
function en (line 41) | function en(t,n,r){for(var i=0;n<r&&e.isWhiteSpace(t.charCodeAt(n));n++)...
function tn (line 41) | function tn(e){switch(e){case 113:return 64;case 112:return 8;case 111:r...
function nn (line 41) | function nn(e){if(e)switch(e.kind){case 169:case 170:case 172:case 171:c...
function rn (line 41) | function rn(e){return e>=56&&e<=68}
function an (line 41) | function an(e){return 191===e.kind&&83===e.parent.token&&re(e.parent.par...
function on (line 41) | function on(e){return sn(e.expression)}
function sn (line 41) | function sn(e){return 69===e.kind||!!Se(e)&&sn(e.expression)}
function un (line 41) | function un(e){return 136===e.parent.kind&&e.parent.right===e||169===e.p...
function cn (line 41) | function cn(e){var t=e.kind;return 168===t?0===e.properties.length:167==...
function ln (line 41) | function ln(e){return e&&e.valueDeclaration&&512&e.valueDeclaration.flag...
function pn (line 41) | function pn(t){return e.forEach(e.supportedJavascriptExtensions,function...
function fn (line 41) | function fn(t){for(var n=[],r=t.length,i=0;i<r;i++){var a=t.charCodeAt(i...
function dn (line 41) | function dn(e){return void 0===e?void 0:mn(e)}
function mn (line 41) | function mn(t){return"string"==typeof t?'"'+Rt(t)+'"':"number"==typeof t...
function hn (line 41) | function hn(t,n){e.Debug.assert(!n.hasOwnProperty("__cycle"),"Converting...
function yn (line 41) | function yn(t){return"["+e.reduceLeft(t,_n,"")+"]"}
function _n (line 41) | function _n(e,t){return(e?e+",":e)+mn(t)}
function gn (line 41) | function gn(t){return"{"+e.reduceProperties(t,vn,"")+"}"}
function vn (line 41) | function vn(e,t,n){return void 0===t||"function"==typeof t||"__cycle"===...
function bn (line 41) | function bn(e){for(var t,n,r,i,a="",o=fn(e),s=0,u=o.length;s<u;)t=o[s]>>...
function Sn (line 41) | function Sn(t,n,r){return e.isRootedDiskPath(t)?e.getRelativePathToDirec...
function An (line 41) | function An(t){return 0===t.newLine?xn:1===t.newLine?Rn:e.sys?e.sys.newL...
function t (line 41) | function t(e){return 2===e.target?"lib.es6.d.ts":"lib.d.ts"}
function n (line 41) | function n(e){return e.start+e.length}
function r (line 41) | function r(e){return 0===e.length}
function i (line 41) | function i(e,t){return t>=e.start&&t<n(e)}
function a (line 41) | function a(e,t){return t.start>=e.start&&n(t)<=n(e)}
function o (line 41) | function o(e,t){return Math.max(e.start,t.start)<Math.min(n(e),n(t))}
function s (line 41) | function s(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));if...
function u (line 41) | function u(e,t){return t.start<=n(e)&&n(t)>=e.start}
function c (line 41) | function c(e,t,r){var i=t+r;return t<=n(e)&&i>=e.start}
function l (line 41) | function l(e,t,n,r){var i=e+t,a=n+r;return n<=i&&a>=e}
function p (line 41) | function p(e,t){return t<=n(e)&&t>=e.start}
function f (line 41) | function f(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));if...
function d (line 41) | function d(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Err...
function m (line 41) | function m(e,t){return d(e,t-e)}
function h (line 41) | function h(e){return d(e.span.start,e.newLength)}
function y (line 41) | function y(e){return r(e.span)&&0===e.newLength}
function _ (line 41) | function _(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,ne...
function g (line 41) | function g(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t...
function v (line 41) | function v(t){if(t&&138===t.kind)for(var n=t;n;n=n.parent)if(e.isFunctio...
function b (line 41) | function b(t){return 56&t.flags&&145===t.parent.kind&&e.isClassLike(t.pa...
function t (line 41) | function t(t,n,r){return 251===t?new(p||(p=e.objectAllocator.getSourceFi...
function n (line 41) | function n(e,t){if(t)return e(t)}
function r (line 41) | function r(e,t){if(t)return e(t)}
function i (line 41) | function i(e,t){if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n],a=e(i);i...
function a (line 41) | function a(e,t,a){if(e){var o=a?r:i,s=a||t;switch(e.kind){case 136:retur...
function o (line 41) | function o(t,n,r,i){void 0===i&&(i=!1);var a=(new Date).getTime(),o=f.pa...
function s (line 41) | function s(e,t,n,r){return d.updateSourceFile(e,t,n,r)}
function u (line 41) | function u(e,t,n){return f.JSDocParser.parseIsolatedJSDocComment(e,t,n)}
function c (line 41) | function c(e,t,n){return f.JSDocParser.parseJSDocTypeExpressionForTests(...
function n (line 41) | function n(t,n,r,a,u){i(t,n,r,e.hasJavaScriptFileExtension(t)||0===n.las...
function r (line 41) | function r(t){return e.fileExtensionIs(t,".tsx")||e.fileExtensionIs(t,"....
function i (line 41) | function i(t,n,i,a,o){Ui=e.objectAllocator.getNodeConstructor(),Fi=e.obj...
function o (line 41) | function o(){Gi.setText(""),Gi.setOnError(void 0),Ki=void 0,Bi=void 0,zi...
function s (line 41) | function s(t,n,r){return Bi=l(t,n),32&Ji&&(Bi.parserContextFlags=32),ji=...
function u (line 41) | function u(t){if(32&Ji){var n=e.getLeadingCommentRangesOfNode(t,Bi);if(n...
function c (line 41) | function c(e){function t(e){if(e.parent!==n){e.parent=n;var r=n;n=e,a(e,...
function l (line 41) | function l(t,n){var i=new Fi(251,0,Wi.length);return qi++,i.text=Wi,i.bi...
function p (line 41) | function p(e,t){e?Ji|=t:Ji&=~t}
function f (line 41) | function f(e){p(e,1)}
function d (line 41) | function d(e){p(e,2)}
function m (line 41) | function m(e){p(e,4)}
function h (line 41) | function h(e){p(e,8)}
function y (line 41) | function y(e,t){var n=e&Ji;if(n){p(!1,n);var r=t();return p(!0,n),r}retu...
function _ (line 41) | function _(e,t){var n=e&~Ji;if(n){p(!0,n);var r=t();return p(!1,n),r}ret...
function g (line 41) | function g(e){return y(1,e)}
function v (line 41) | function v(e){return _(1,e)}
function b (line 41) | function b(e){return _(2,e)}
function S (line 41) | function S(e){return _(4,e)}
function A (line 41) | function A(e){return _(8,e)}
function T (line 41) | function T(e){return y(8,e)}
function E (line 41) | function E(e){return _(10,e)}
function C (line 41) | function C(e){return 0!=(Ji&e)}
function N (line 41) | function N(){return C(2)}
function w (line 41) | function w(){return C(1)}
function k (line 41) | function k(){return C(4)}
function x (line 41) | function x(){return C(8)}
function R (line 41) | function R(e,t){var n=Gi.getTokenPos();I(n,Gi.getTextPos()-n,e,t)}
function I (line 41) | function I(t,n,r,i){var a=e.lastOrUndefined(Ki);a&&t===a.start||Ki.push(...
function D (line 41) | function D(e,t){I(Gi.getTextPos(),t||0,e)}
function M (line 41) | function M(){return Gi.getStartPos()}
function P (line 41) | function P(){return Gi.getStartPos()}
function L (line 41) | function L(){return ji=Gi.scan()}
function O (line 41) | function O(){return ji=Gi.reScanGreaterToken()}
function U (line 41) | function U(){return ji=Gi.reScanSlashToken()}
function F (line 41) | function F(){return ji=Gi.reScanTemplateToken()}
function B (line 41) | function B(){return ji=Gi.scanJsxIdentifier()}
function K (line 41) | function K(){return ji=Gi.scanJsxToken()}
function V (line 41) | function V(t,n){var r=ji,i=Ki.length,a=$i,o=Ji,s=n?Gi.lookAhead(t):Gi.tr...
function j (line 41) | function j(e){return V(e,!0)}
function W (line 41) | function W(e){return V(e,!1)}
function q (line 41) | function q(){return 69===ji||(114!==ji||!N())&&((119!==ji||!x())&&ji>105)}
function z (line 41) | function z(t,n,r){return void 0===r&&(r=!0),ji===t?(r&&L(),!0):(n?R(n):R...
function H (line 41) | function H(e){return ji===e&&(L(),!0)}
function Y (line 41) | function Y(e){if(ji===e)return G()}
function J (line 41) | function J(e,t,n,r){return Y(e)||ee(e,t,n,r)}
function G (line 41) | function G(){var e=Q(ji);return L(),Z(e)}
function X (line 41) | function X(){return 23===ji||(16===ji||1===ji||Gi.hasPrecedingLineBreak())}
function $ (line 41) | function $(){return X()?(23===ji&&L(),!0):z(23)}
function Q (line 41) | function Q(e,t){return qi++,t>=0||(t=Gi.getStartPos()),new Ui(e,t,t)}
function Z (line 41) | function Z(e,t){return e.end=void 0===t?Gi.getStartPos():t,Ji&&(e.parser...
function ee (line 41) | function ee(e,t,n,r){t?I(Gi.getStartPos(),0,n,r):R(n,r);var i=Q(e,Gi.get...
function te (line 41) | function te(t){return t=e.escapeIdentifier(t),e.hasProperty(zi,t)?zi[t]:...
function ne (line 41) | function ne(t,n){if(Hi++,t){var r=Q(69);return 69!==ji&&(r.originalKeywo...
function re (line 41) | function re(e){return ne(q(),e)}
function ie (line 41) | function ie(){return ne(e.tokenIsIdentifierOrKeyword(ji))}
function ae (line 41) | function ae(){return e.tokenIsIdentifierOrKeyword(ji)||9===ji||8===ji}
function oe (line 41) | function oe(e){return 9===ji||8===ji?Je(!0):e&&19===ji?le():ie()}
function se (line 41) | function se(){return oe(!0)}
function ue (line 41) | function ue(){return oe(!1)}
function ce (line 41) | function ce(){return 9===ji||8===ji||e.tokenIsIdentifierOrKeyword(ji)}
function le (line 41) | function le(){var e=Q(137);return z(19),e.expression=g(Ht),z(20),Z(e)}
function pe (line 41) | function pe(e){return ji===e&&W(de)}
function fe (line 41) | function fe(){return L(),!Gi.hasPrecedingLineBreak()&&he()}
function de (line 41) | function de(){return 74===ji?81===L():82===ji?(L(),77===ji?j(ye):37!==ji...
function me (line 41) | function me(){return e.isModifierKind(ji)&&W(de)}
function he (line 41) | function he(){return 19===ji||15===ji||37===ji||ae()}
function ye (line 41) | function ye(){return L(),73===ji||87===ji}
function _e (line 41) | function _e(t,n){if(ke(t))return!0;switch(t){case 0:case 1:case 3:return...
function ge (line 41) | function ge(){if(e.Debug.assert(15===ji),16===L()){var t=L();return 24==...
function ve (line 41) | function ve(){return L(),q()}
function be (line 41) | function be(){return L(),e.tokenIsIdentifierOrKeyword(ji)}
function Se (line 41) | function Se(){return(106===ji||83===ji)&&j(Ae)}
function Ae (line 41) | function Ae(){return L(),qt()}
function Te (line 41) | function Te(e){if(1===ji)return!0;switch(e){case 1:case 2:case 4:case 5:...
function Ee (line 41) | function Ee(){return!!X()||(!!un(ji)||34===ji)}
function Ce (line 41) | function Ce(){for(var e=0;e<26;e++)if(Yi&1<<e&&(_e(e,!0)||Te(e)))return!...
function Ne (line 41) | function Ne(e,t){var n=Yi;Yi|=1<<e;var r=[];for(r.pos=M();!Te(e);)if(_e(...
function we (line 41) | function we(e,t){var n=ke(e);return n?xe(n):t()}
function ke (line 41) | function ke(t){if(!$i&&Vi){var n=Vi.currentNode(Gi.getStartPos());if(!e....
function xe (line 41) | function xe(e){return Gi.setTextPos(e.end),L(),e}
function Re (line 41) | function Re(e,t){switch(t){case 5:return Ie(e);case 2:return De(e);case ...
function Ie (line 41) | function Ie(e){if(e)switch(e.kind){case 145:case 150:case 146:case 147:c...
function De (line 41) | function De(e){if(e)switch(e.kind){case 244:case 245:return!0}return!1}
function Me (line 41) | function Me(e){if(e)switch(e.kind){case 216:case 196:case 195:case 199:c...
function Pe (line 41) | function Pe(e){return 250===e.kind}
function Le (line 41) | function Le(e){if(e)switch(e.kind){case 149:case 143:case 150:case 141:c...
function Oe (line 41) | function Oe(e){return 214===e.kind&&void 0===e.initializer}
function Ue (line 41) | function Ue(e){return 139===e.kind&&void 0===e.initializer}
function Fe (line 41) | function Fe(e){return R(Be(e)),!!Ce()||(L(),!1)}
function Be (line 41) | function Be(t){switch(t){case 0:return e.Diagnostics.Declaration_or_stat...
function Ke (line 41) | function Ke(e,t,n){var r=Yi;Yi|=1<<e;var i=[];i.pos=M();for(var a=-1;;)i...
function Ve (line 41) | function Ve(){var e=M(),t=[];return t.pos=e,t.end=e,t}
function je (line 41) | function je(e,t,n,r){if(z(n)){var i=Ke(e,t);return z(r),i}return Ve()}
function We (line 41) | function We(e,t){for(var n=re(t);H(21);){var r=Q(136,n.pos);r.left=n,r.r...
function qe (line 41) | function qe(t){if(Gi.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeywo...
function ze (line 41) | function ze(){var t=Q(186);t.head=Ge(),e.Debug.assert(12===t.head.kind,"...
function He (line 41) | function He(){var t=Q(193);t.expression=g(Ht);var n;return 16===ji?(F(),...
function Ye (line 41) | function Ye(){return Xe(163,!0)}
function Je (line 41) | function Je(e){return Xe(ji,e)}
function Ge (line 41) | function Ge(){return Xe(ji,!1)}
function Xe (line 41) | function Xe(t,n){var r=Q(t),i=Gi.getTokenValue();r.text=n?te(i):i,Gi.has...
function $e (line 41) | function $e(){var t=We(!1,e.Diagnostics.Type_expected),n=Q(152,t.pos);re...
function Qe (line 41) | function Qe(e){L();var t=Q(151,e.pos);return t.parameterName=e,t.type=Kt...
function Ze (line 41) | function Ze(){var e=Q(162);return L(),Z(e)}
function et (line 41) | function et(){var e=Q(155);return z(101),e.exprName=We(!0),Z(e)}
function tt (line 41) | function tt(){var e=Q(138);return e.name=re(),H(83)&&(Rt()||!qt()?e.cons...
function nt (line 41) | function nt(){if(25===ji)return je(17,tt,25,27)}
function rt (line 41) | function rt(){if(H(54))return Kt()}
function it (line 41) | function it(){return 22===ji||Ur()||e.isModifierKind(ji)||55===ji}
function at (line 41) | function at(e,t){t&&(e.flags|=t.flags,e.modifiers=t)}
function ot (line 41) | function ot(){var t=Q(139);return t.decorators=Qr(),at(t,Zr()),t.dotDotD...
function st (line 41) | function st(e){return e?ut():Jr()}
function ut (line 41) | function ut(){return Yt(!0)}
function ct (line 41) | function ct(e,t,n,r,i){var a=34===e;i.typeParameters=nt(),i.parameters=l...
function lt (line 41) | function lt(e,t,n){if(z(17)){var r=N(),i=x();d(e),h(t);var a=Ke(16,ot);i...
function pt (line 41) | function pt(){H(24)||$()}
function ft (line 41) | function ft(e){var t=Q(e);return 149===e&&z(92),ct(54,!1,!1,!1,t),pt(),Z...
function dt (line 41) | function dt(){return 19===ji&&j(mt)}
function mt (line 41) | function mt(){if(L(),22===ji||20===ji)return!0;if(e.isModifierKind(ji)){...
function ht (line 41) | function ht(e,t,n){var r=Q(150,e);return r.decorators=t,at(r,n),r.parame...
function yt (line 41) | function yt(){var e=Gi.getStartPos(),t=se(),n=Y(53);if(17===ji||25===ji)...
function _t (line 41) | function _t(){switch(ji){case 17:case 25:case 19:return!0;default:if(e.i...
function gt (line 41) | function gt(){for(;e.isModifierKind(ji);)L();return dt()}
function vt (line 41) | function vt(){return L(),17===ji||25===ji||53===ji||54===ji||X()}
function bt (line 41) | function bt(){switch(ji){case 17:case 25:return ft(148);case 19:return d...
function St (line 41) | function St(){var e=Gi.getStartPos(),t=Qr(),n=Zr();return dt()?ht(e,t,n)...
function At (line 41) | function At(){return L(),17===ji||25===ji}
function Tt (line 41) | function Tt(){var e=Q(156);return e.members=Et(),Z(e)}
function Et (line 41) | function Et(){var e;return z(15)?(e=Ne(4,bt),z(16)):e=Ve(),e}
function Ct (line 41) | function Ct(){var e=Q(158);return e.elementTypes=je(19,Kt,19,20),Z(e)}
function Nt (line 41) | function Nt(){var e=Q(161);return z(17),e.type=Kt(),z(18),Z(e)}
function wt (line 41) | function wt(e){var t=Q(e);return 154===e&&z(92),ct(34,!1,!1,!1,t),Z(t)}
function kt (line 41) | function kt(){var e=G();return 21===ji?void 0:e}
function xt (line 41) | function xt(){switch(ji){case 117:case 130:case 128:case 120:case 131:re...
function Rt (line 41) | function Rt(){switch(ji){case 117:case 130:case 128:case 120:case 131:ca...
function It (line 41) | function It(){return L(),18===ji||it()||Rt()}
function Dt (line 41) | function Dt(){for(var e=xt();!Gi.hasPrecedingLineBreak()&&H(19);){z(20);...
function Mt (line 41) | function Mt(e,t,n){var r=t();if(ji===n){var i=[r];for(i.pos=r.pos;H(n);)...
function Pt (line 41) | function Pt(){return Mt(160,Dt,46)}
function Lt (line 41) | function Lt(){return Mt(159,Pt,47)}
function Ot (line 41) | function Ot(){return 25===ji||17===ji&&j(Ut)}
function Ut (line 41) | function Ut(){if(L(),18===ji||22===ji)return!0;if(q()||e.isModifierKind(...
function Ft (line 41) | function Ft(){var e=q()&&W(Bt),t=Kt();if(e){var n=Q(151,e.pos);return n....
function Bt (line 41) | function Bt(){var e=re();if(124===ji&&!Gi.hasPrecedingLineBreak())return...
function Kt (line 41) | function Kt(){return y(10,Vt)}
function Vt (line 41) | function Vt(){return Ot()?wt(153):92===ji?wt(154):Lt()}
function jt (line 41) | function jt(){return H(54)?Kt():void 0}
function Wt (line 41) | function Wt(){switch(ji){case 97:case 95:case 93:case 99:case 84:case 8:...
function qt (line 41) | function qt(){if(Wt())return!0;switch(ji){case 35:case 36:case 50:case 4...
function zt (line 41) | function zt(){return 15!==ji&&87!==ji&&73!==ji&&55!==ji&&qt()}
function Ht (line 41) | function Ht(){var e=k();e&&m(!1);for(var t,n=Jt();t=Y(24);)n=fn(n,t,Jt()...
function Yt (line 41) | function Yt(e){if(56===ji||!(Gi.hasPrecedingLineBreak()||e&&15===ji)&&qt...
function Jt (line 41) | function Jt(){if(Gt())return $t();var t=Zt();if(t)return t;var n=sn(0);r...
function Gt (line 41) | function Gt(){return 114===ji&&(!!N()||j(Tr))}
function Xt (line 41) | function Xt(){return L(),!Gi.hasPrecedingLineBreak()&&q()}
function $t (line 41) | function $t(){var e=Q(187);return L(),Gi.hasPrecedingLineBreak()||37!==j...
function Qt (line 41) | function Qt(t){e.Debug.assert(34===ji,"parseSimpleArrowFunctionExpressio...
function Zt (line 41) | function Zt(){var t=en();if(0!==t){var n=1===t?rn(!0):W(nn);if(n){var r=...
function en (line 41) | function en(){return 17===ji||25===ji||118===ji?j(tn):34===ji?1:0}
function tn (line 41) | function tn(){if(118===ji){if(L(),Gi.hasPrecedingLineBreak())return 0;if...
function nn (line 41) | function nn(){return rn(!1)}
function rn (line 41) | function rn(e){var t=Q(177);if(at(t,ei()),ct(54,!1,!!(256&t.flags),!e,t)...
function an (line 41) | function an(e){return 15===ji?rr(!1,e,!1):23!==ji&&87!==ji&&73!==ji&&Nr(...
function on (line 41) | function on(t){var n=Y(53);if(!n)return t;var r=Q(185,t.pos);return r.co...
function sn (line 41) | function sn(e){return cn(e,bn())}
function un (line 41) | function un(e){return 90===e||135===e}
function cn (line 41) | function cn(e,t){for(;;){O();var n=pn();if(!(38===ji?n>=e:n>e))break;if(...
function ln (line 41) | function ln(){return(!w()||90!==ji)&&pn()>0}
function pn (line 41) | function pn(){switch(ji){case 52:return 1;case 51:return 2;case 47:retur...
function fn (line 41) | function fn(e,t,n){var r=Q(184,e.pos);return r.left=e,r.operatorToken=t,...
function dn (line 41) | function dn(e,t){var n=Q(192,e.pos);return n.expression=e,n.type=t,Z(n)}
function mn (line 41) | function mn(){var e=Q(182);return e.operator=ji,L(),e.operand=Sn(),Z(e)}
function hn (line 41) | function hn(){var e=Q(178);return L(),e.expression=Sn(),Z(e)}
function yn (line 41) | function yn(){var e=Q(179);return L(),e.expression=Sn(),Z(e)}
function _n (line 41) | function _n(){var e=Q(180);return L(),e.expression=Sn(),Z(e)}
function gn (line 41) | function gn(){return 119===ji&&(!!x()||j(Xt))}
function vn (line 41) | function vn(){var e=Q(181);return L(),e.expression=Sn(),Z(e)}
function bn (line 41) | function bn(){if(gn())return vn();if(An()){var t=Tn();return 38===ji?cn(...
function Sn (line 41) | function Sn(){switch(ji){case 35:case 36:case 50:case 49:return mn();cas...
function An (line 41) | function An(){switch(ji){case 35:case 36:case 50:case 49:case 78:case 10...
function Tn (line 41) | function Tn(){if(41===ji||42===ji){var t=Q(182);return t.operator=ji,L()...
function En (line 41) | function En(){return Kn(95===ji?Nn():Cn())}
function Cn (line 41) | function Cn(){return Bn(qn())}
function Nn (line 41) | function Nn(){var t=G();if(17===ji||21===ji||19===ji)return t;var n=Q(16...
function wn (line 41) | function wn(e,t){return e.kind===t.kind&&(69===e.kind?e.text===t.text:e....
function kn (line 41) | function kn(t){var n,r=Dn(t);if(238===r.kind){var i=Q(236,r.pos);i.openi...
function xn (line 41) | function xn(){var e=Q(239,Gi.getStartPos());return ji=Gi.scanJsxToken(),...
function Rn (line 41) | function Rn(){switch(ji){case 239:return xn();case 15:return Pn(!1);case...
function In (line 41) | function In(t){var n=[];n.pos=Gi.getStartPos();var r=Yi;for(Yi|=16384;;)...
function Dn (line 41) | function Dn(e){var t=Gi.getStartPos();z(25);var n,r=Mn(),i=Ne(13,Ln);ret...
function Mn (line 41) | function Mn(){B();for(var e=ie();H(21);){B();var t=Q(136,e.pos);t.left=e...
function Pn (line 41) | function Pn(e){var t=Q(243);return z(15),16!==ji&&(t.expression=Jt()),e?...
function Ln (line 41) | function Ln(){if(15===ji)return On();B();var e=Q(241);if(e.name=ie(),H(5...
function On (line 41) | function On(){var e=Q(242);return z(15),z(22),e.expression=Ht(),z(16),Z(e)}
function Un (line 41) | function Un(e){var t=Q(240);return z(26),t.tagName=Mn(),e?z(27):(z(27,vo...
function Fn (line 41) | function Fn(){var e=Q(174);return z(25),e.type=Kt(),z(27),e.expression=S...
function Bn (line 41) | function Bn(e){for(;;){var t=Y(21);if(t){var n=Q(169,e.pos);n.expression...
function Kn (line 41) | function Kn(e){for(;;)if(e=Bn(e),25!==ji){if(17!==ji)return e;var t=Q(17...
function Vn (line 41) | function Vn(){z(17);var e=Ke(11,Jn);return z(18),e}
function jn (line 41) | function jn(){if(H(25)){var e=Ke(18,Kt);if(z(27))return e&&Wn()?e:void 0}}
function Wn (line 41) | function Wn(){switch(ji){case 17:case 21:case 18:case 20:case 54:case 23...
function qn (line 41) | function qn(){switch(ji){case 8:case 9:case 11:return Je();case 97:case ...
function zn (line 41) | function zn(){var e=Q(175);return z(17),e.expression=g(Ht),z(18),Z(e)}
function Hn (line 41) | function Hn(){var e=Q(188);return z(22),e.expression=Jt(),Z(e)}
function Yn (line 41) | function Yn(){return 22===ji?Hn():24===ji?Q(190):Jt()}
function Jn (line 41) | function Jn(){return y(Xi,Yn)}
function Gn (line 41) | function Gn(){var e=Q(167);return z(19),Gi.hasPrecedingLineBreak()&&(e.f...
function Xn (line 41) | function Xn(e,t,n){return pe(123)?Gr(146,e,t,n):pe(129)?Gr(147,e,t,n):vo...
function $n (line 41) | function $n(){var e=Gi.getStartPos(),t=Qr(),n=Zr(),r=Xn(e,t,n);if(r)retu...
function Qn (line 41) | function Qn(){var e=Q(168);return z(15),Gi.hasPrecedingLineBreak()&&(e.f...
function Zn (line 41) | function Zn(){var e=k();e&&m(!1);var t=Q(176);at(t,Zr()),z(87),t.asteris...
function er (line 41) | function er(){return q()?re():void 0}
function tr (line 41) | function tr(){var e=Q(172);return z(92),e.expression=Cn(),e.typeArgument...
function nr (line 41) | function nr(e,t){var n=Q(195);return z(15,t)||e?(n.statements=Ne(1,xr),z...
function rr (line 41) | function rr(e,t,n,r){var i=N();d(e);var a=x();h(t);var o=k();o&&m(!1);va...
function ir (line 41) | function ir(){var e=Q(197);return z(23),Z(e)}
function ar (line 41) | function ar(){var e=Q(199);return z(88),z(17),e.expression=g(Ht),z(18),e...
function or (line 41) | function or(){var e=Q(200);return z(79),e.statement=xr(),z(104),z(17),e....
function sr (line 41) | function sr(){var e=Q(201);return z(104),z(17),e.expression=g(Ht),z(18),...
function ur (line 41) | function ur(){var e=M();z(86),z(17);var t=void 0;23!==ji&&(t=102===ji||1...
function cr (line 41) | function cr(e){var t=Q(e);return z(206===e?70:75),X()||(t.label=re()),$(...
function lr (line 41) | function lr(){var e=Q(207);return z(94),X()||(e.expression=g(Ht)),$(),Z(e)}
function pr (line 41) | function pr(){var e=Q(208);return z(105),z(17),e.expression=g(Ht),z(18),...
function fr (line 41) | function fr(){var e=Q(244);return z(71),e.expression=g(Ht),z(54),e.state...
function dr (line 41) | function dr(){var e=Q(245);return z(77),z(54),e.statements=Ne(3,xr),Z(e)}
function mr (line 41) | function mr(){return 71===ji?fr():dr()}
function hr (line 41) | function hr(){var e=Q(209);z(96),z(17),e.expression=g(Ht),z(18);var t=Q(...
function yr (line 41) | function yr(){var e=Q(211);return z(98),e.expression=Gi.hasPrecedingLine...
function _r (line 41) | function _r(){var e=Q(212);return z(100),e.tryBlock=nr(!1),e.catchClause...
function gr (line 41) | function gr(){var e=Q(247);return z(72),z(17)&&(e.variableDeclaration=Br...
function vr (line 41) | function vr(){var e=Q(213);return z(76),$(),Z(e)}
function br (line 41) | function br(){var e=Gi.getStartPos(),t=g(Ht);if(69===t.kind&&H(54)){var ...
function Sr (line 41) | function Sr(){return L(),e.tokenIsIdentifierOrKeyword(ji)&&!Gi.hasPreced...
function Ar (line 41) | function Ar(){return L(),87===ji&&!Gi.hasPrecedingLineBreak()}
function Tr (line 41) | function Tr(){return L(),(e.tokenIsIdentifierOrKeyword(ji)||8===ji)&&!Gi...
function Er (line 41) | function Er(){for(;;)switch(ji){case 102:case 108:case 74:case 87:case 7...
function Cr (line 41) | function Cr(){return j(Er)}
function Nr (line 41) | function Nr(){switch(ji){case 55:case 23:case 15:case 102:case 108:case ...
function wr (line 41) | function wr(){return L(),q()||15===ji||19===ji}
function kr (line 41) | function kr(){return j(wr)}
function xr (line 41) | function xr(){switch(ji){case 23:return ir();case 15:return nr(!1);case ...
function Rr (line 41) | function Rr(){var t=M(),n=Qr(),r=Zr();switch(ji){case 102:case 108:case ...
function Ir (line 41) | function Ir(){return L(),!Gi.hasPrecedingLineBreak()&&(q()||9===ji)}
function Dr (line 41) | function Dr(e,t,n){return 15!==ji&&X()?void $():rr(e,t,!1,n)}
function Mr (line 41) | function Mr(){if(24===ji)return Q(190);var e=Q(166);return e.dotDotDotTo...
function Pr (line 41) | function Pr(){var e=Q(166),t=q(),n=se();return t&&54!==ji?e.name=n:(z(54...
function Lr (line 41) | function Lr(){var e=Q(164);return z(15),e.elements=Ke(9,Pr),z(16),Z(e)}
function Or (line 41) | function Or(){var e=Q(165);return z(19),e.elements=Ke(10,Mr),z(20),Z(e)}
function Ur (line 41) | function Ur(){return 15===ji||19===ji||q()}
function Fr (line 41) | function Fr(){return 19===ji?Or():15===ji?Lr():re()}
function Br (line 41) | function Br(){var e=Q(214);return e.name=Fr(),e.type=jt(),un(ji)||(e.ini...
function Kr (line 41) | function Kr(t){var n=Q(215);switch(ji){case 102:break;case 108:n.flags|=...
function Vr (line 41) | function Vr(){return ve()&&18===L()}
function jr (line 41) | function jr(e,t,n){var r=Q(196,e);return r.decorators=t,at(r,n),r.declar...
function Wr (line 41) | function Wr(t,n,r){var i=Q(216,t);i.decorators=n,at(i,r),z(87),i.asteris...
function qr (line 41) | function qr(t,n,r){var i=Q(145,t);return i.decorators=n,at(i,r),z(121),c...
function zr (line 41) | function zr(e,t,n,r,i,a,o){var s=Q(144,e);s.decorators=t,at(s,n),s.aster...
function Hr (line 41) | function Hr(e,t,n,r,i){var a=Q(142,e);return a.decorators=t,at(a,n),a.na...
function Yr (line 41) | function Yr(t,n,r){var i=Y(37),a=se(),o=Y(53);return i||17===ji||25===ji...
function Jr (line 41) | function Jr(){return Yt(!1)}
function Gr (line 41) | function Gr(e,t,n,r){var i=Q(e,t);return i.decorators=n,at(i,r),i.name=s...
function Xr (line 41) | function Xr(e){switch(e){case 112:case 110:case 111:case 113:return!0;de...
function $r (line 41) | function $r(){var t;if(55===ji)return!0;for(;e.isModifierKind(ji);){if(t...
function Qr (line 41) | function Qr(){for(var e;;){var t=M();if(!H(55))break;e||(e=[],e.pos=t);v...
function Zr (line 41) | function Zr(t){for(var n,r=0;;){var i=Gi.getStartPos(),a=ji;if(74===ji&&...
function ei (line 41) | function ei(){var t,n=0;if(118===ji){var r=Gi.getStartPos(),i=ji;L(),t=[...
function ti (line 41) | function ti(){if(23===ji){var t=Q(194);return L(),Z(t)}var n=M(),r=Qr(),...
function ni (line 41) | function ni(){return ii(Gi.getStartPos(),void 0,void 0,189)}
function ri (line 41) | function ri(e,t,n){return ii(e,t,n,217)}
function ii (line 41) | function ii(e,t,n,r){var i=Q(r,e);return i.decorators=t,at(i,n),z(73),i....
function ai (line 41) | function ai(){return q()&&!oi()?re():void 0}
function oi (line 41) | function oi(){return 106===ji&&j(be)}
function si (line 41) | function si(e){if(li())return Ne(20,ui)}
function ui (line 41) | function ui(){if(83===ji||106===ji){var e=Q(246);return e.token=ji,L(),e...
function ci (line 41) | function ci(){var e=Q(191);return e.expression=En(),25===ji&&(e.typeArgu...
function li (line 41) | function li(){return 83===ji||106===ji}
function pi (line 41) | function pi(){return Ne(5,ti)}
function fi (line 41) | function fi(e,t,n){var r=Q(218,e);return r.decorators=t,at(r,n),z(107),r...
function di (line 41) | function di(e,t,n){var r=Q(219,e);return r.decorators=t,at(r,n),z(132),r...
function mi (line 41) | function mi(){var e=Q(250,Gi.getStartPos());return e.name=se(),e.initial...
function hi (line 41) | function hi(e,t,n){var r=Q(220,e);return r.decorators=t,at(r,n),z(81),r....
function yi (line 41) | function yi(){var e=Q(222,Gi.getStartPos());return z(15)?(e.statements=N...
function _i (line 41) | function _i(e,t,n,r){var i=Q(221,e),a=65536&r;return i.decorators=t,at(i...
function gi (line 41) | function gi(e,t,n){var r=Q(221,e);return r.decorators=t,at(r,n),134===ji...
function vi (line 41) | function vi(e,t,n){var r=n?n.flags:0;if(134===ji)return gi(e,t,n);if(H(1...
function bi (line 41) | function bi(){return 127===ji&&j(Si)}
function Si (line 41) | function Si(){return 17===L()}
function Ai (line 41) | function Ai(){return 39===L()}
function Ti (line 41) | function Ti(e,t,n){z(89);var r,i=Gi.getStartPos();if(q()&&(r=re(),24!==j...
function Ei (line 41) | function Ei(e,t){var n=Q(226,t);return e&&(n.name=e),n.name&&!H(24)||(n....
function Ci (line 41) | function Ci(){return bi()?Ni():We(!1)}
function Ni (line 41) | function Ni(){var e=Q(235);return z(127),z(17),e.expression=wi(),z(18),Z...
function wi (line 41) | function wi(){if(9===ji){var e=Je();return te(e.text),e}return Ht()}
function ki (line 41) | function ki(){var e=Q(227);return z(37),z(116),e.name=re(),Z(e)}
function xi (line 41) | function xi(e){var t=Q(e);return t.elements=je(21,228===e?Ii:Ri,15,16),Z...
function Ri (line 41) | function Ri(){return Di(233)}
function Ii (line 41) | function Ii(){return Di(229)}
function Di (line 41) | function Di(t){var n=Q(t),r=e.isKeyword(ji)&&!q(),i=Gi.getTokenPos(),a=G...
function Mi (line 41) | function Mi(e,t,n){var r=Q(231,e);return r.decorators=t,at(r,n),H(37)?(z...
function Pi (line 41) | function Pi(e,t,n){var r=Q(230,e);return r.decorators=t,at(r,n),H(56)?r....
function Li (line 41) | function Li(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,Wi),i=...
function Oi (line 41) | function Oi(t){t.externalModuleIndicator=e.forEach(t.statements,function...
function n (line 41) | function n(){switch(ji){case 37:case 53:case 17:case 19:case 49:case 15:...
function r (line 41) | function r(e,t,n){i("file.js",e,2,!0,void 0),Gi.setText(e,t,n),ji=Gi.sca...
function a (line 41) | function a(){var e=Q(252,Gi.getTokenPos());return z(15),e.type=s(),z(16)...
function s (line 41) | function s(){var e=u();if(47===ji){var t=Q(256,e.pos);t.types=N(e),e=Z(t...
function u (line 41) | function u(){for(var e=l();;)if(19===ji){var t=Q(255,e.pos);t.elementTyp...
function l (line 41) | function l(){switch(ji){case 37:return w();case 53:return k();case 17:re...
function p (line 41) | function p(){var e=Q(267);return L(),z(54),e.type=u(),Z(e)}
function f (line 41) | function f(){var e=Q(266);return L(),z(54),e.type=u(),Z(e)}
function d (line 41) | function d(){var e=Q(265);return L(),e.type=u(),Z(e)}
function m (line 41) | function m(){var e=Q(264);return L(),z(17),e.parameters=Ke(22,h),E(e.par...
function h (line 41) | function h(){var e=Q(139);return e.type=u(),H(56)&&(e.questionToken=Q(56...
function y (line 41) | function y(){var e=Q(262);if(e.name=ue(),25===ji)e.typeArguments=_();els...
function _ (line 41) | function _(){L();var e=Ke(23,u);return E(e),g(e),z(27),e}
function g (line 41) | function g(t){if(0===Ki.length&&t&&0===t.length){var n=t.pos-"<".length;...
function v (line 41) | function v(e){var t=Q(136,e.pos);return t.left=e,t.right=ie(),Z(t)}
function b (line 41) | function b(){var e=Q(260);return L(),e.members=Ke(24,S),E(e.members),z(1...
function S (line 41) | function S(){var e=Q(261);return e.name=ue(),54===ji&&(L(),e.type=u()),Z...
function A (line 41) | function A(){var e=Q(259);return L(),e.type=u(),Z(e)}
function T (line 41) | function T(){var e=Q(257);return L(),e.types=Ke(25,u),E(e.types),z(20),Z...
function E (line 41) | function E(t){if(0===Ki.length&&t.hasTrailingComma){I(t.end-",".length,"...
function C (line 41) | function C(){var e=Q(256);return L(),e.types=N(u()),z(18),Z(e)}
function N (line 41) | function N(t){e.Debug.assert(!!t);var n=[];for(n.pos=t.pos,n.push(t);H(4...
function w (line 41) | function w(){var e=Q(253);return L(),Z(e)}
function k (line 41) | function k(){var e=Gi.getStartPos();if(L(),24===ji||16===ji||18===ji||27...
function x (line 41) | function x(e,t,n){i("file.js",e,2,!0,void 0),Bi={languageVariant:0,text:...
function D (line 41) | function D(e,t,n){var r=ji,i=Ki.length,a=$i,o=M(t,n);return o&&(o.parent...
function M (line 41) | function M(t,n){function r(){if(v){var e=Q(268,t);return e.tags=v,Z(e,g)...
function n (line 41) | function n(t,n,r,i){if(i=i||e.Debug.shouldAssert(2),p(t,n,r,i),e.textCha...
function r (line 41) | function r(t,n,r,o,u,c){function l(t){var n="";c&&i(t)&&(n=o.substring(t...
function i (line 41) | function i(e){switch(e.kind){case 9:case 8:case 69:return!0}return!1}
function o (line 41) | function o(t,n,r,i,a){e.Debug.assert(t.end>=n,"Adjusting an element that...
function s (line 41) | function s(t,n){if(n){var r=t.pos;a(t,function(t){e.Debug.assert(t.pos>=...
function u (line 41) | function u(t,n,i,u,c,l,p,f){function d(t){if(e.Debug.assert(t.pos<=t.end...
function c (line 41) | function c(t,n){for(var r=n.span.start,i=0;r>0&&i<=1;i++){var a=l(t,r);e...
function l (line 41) | function l(t,n){function r(t){var n=void 0;return a(t,function(t){e.node...
function p (line 41) | function p(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.l...
function d (line 41) | function d(t){function n(e){function n(t){return e>=t.pos&&e<t.end&&(a(t...
function t (line 41) | function t(e,t){return 2&(e|t)?2:e&t&8?8:4}
function n (line 41) | function n(t){if(218===t.kind||219===t.kind)return 0;if(e.isConstEnumDec...
function r (line 41) | function r(t,n){var r=(new Date).getTime();o(t,n),e.bindTime+=(new Date)...
function r (line 41) | function r(t,n){Re=t,Ie=n,He=!!Re.externalModuleIndicator,Je={},Ye=e.obj...
function i (line 41) | function i(e,t){return Ge++,new Ye(e,t)}
function a (line 41) | function a(e,t,n){if(e.flags|=n,t.symbol=e,e.declarations||(e.declaratio...
function o (line 41) | function o(t){if(t.name){if(e.isAmbientModule(t))return e.isGlobalScopeA...
function s (line 41) | function s(t){return t.name?e.declarationNameToString(t.name):o(t)}
function u (line 41) | function u(t,n,r,u,c){e.Debug.assert(!e.hasDynamicName(r));var l,p=512&r...
function c (line 41) | function c(t,n,r){var i=2&e.getCombinedNodeFlags(t);if(8388608&n)return ...
function l (line 41) | function l(t){var n=De,r=Me,i=Pe;De=t;var a=T(t);1&a?(Me=Pe=t,4&a&&(Me.l...
function p (line 41) | function p(t){if(ke(t))return void e.forEachChild(t,Q);switch(t.kind){ca...
function f (line 41) | function f(e){var t=84===e.expression.kind?4:Fe,n=99===e.expression.kind...
function d (line 41) | function d(e){var t=Fe,n=Te();Q(e.statement),Ce(n,99===e.expression.kind...
function m (line 41) | function m(e){var t=Fe,n=Te();Q(e.initializer),Q(e.condition),Q(e.increm...
function h (line 41) | function h(e){var t=Fe,n=Te();Q(e.initializer),Q(e.expression),Q(e.state...
function y (line 41) | function y(e){var n=84===e.expression.kind?4:Fe,r=99===e.expression.kind...
function _ (line 41) | function _(e){Q(e.expression),207===e.kind&&(Ue=!0),Fe=4}
function g (line 41) | function g(e){Q(e.label),we(e.label,206===e.kind?Fe:4)&&(Fe=4)}
function v (line 41) | function v(e){var n=Fe;Q(e.tryBlock);var r=Fe;Fe=n,Q(e.catchClause);var ...
function b (line 41) | function b(t){var n=Fe,r=Te();Q(t.expression),Q(t.caseBlock),Ce(r,e.forE...
function S (line 41) | function S(t){for(var n=Fe,r=0,i=t.clauses;r<i.length;r++){var a=i[r];Fe...
function A (line 41) | function A(e){Q(e.label);var t=Ae(e.label);Q(e.statement),t&&Ee(e.label,...
function T (line 41) | function T(t){switch(t.kind){case 189:case 217:case 218:case 220:case 16...
function E (line 41) | function E(e){Le&&(Le.nextContainer=e),Le=e}
function C (line 41) | function C(e,t,n){N(e,t,n)}
function N (line 41) | function N(e,t,n){switch(Me.kind){case 221:return c(e,t,n);case 251:retu...
function w (line 41) | function w(e,t,n){return 64&e.flags?u(Me.symbol.exports,Me.symbol,e,t,n)...
function k (line 41) | function k(t,n,r){return e.isExternalModule(Re)?c(t,n,r):u(Re.locals,voi...
function x (line 41) | function x(e){var t=251===e.kind?e:e.body;if(251===t.kind||222===t.kind)...
function R (line 41) | function R(t){e.isInAmbientContext(t)&&!x(t)?t.flags|=131072:t.flags&=-1...
function I (line 41) | function I(t){if(R(t),e.isAmbientModule(t))2&t.flags&&X(t,e.Diagnostics....
function D (line 41) | function D(e){var t=i(131072,o(e));a(t,e,131072);var n=i(2048,"__type");...
function M (line 41) | function M(t){var n;if(function(e){e[e.Property=1]="Property",e[e.Access...
function P (line 41) | function P(e,t,n){a(i(t,n),e,t)}
function L (line 41) | function L(t,n,r){switch(Pe.kind){case 221:c(t,n,r);break;case 251:if(e....
function O (line 41) | function O(e){L(e,2,107455)}
function U (line 41) | function U(t){He&&t.originalKeywordKind>=106&&t.originalKeywordKind<=114...
function F (line 41) | function F(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_ex...
function B (line 41) | function B(t){He&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOper...
function K (line 41) | function K(e){He&&e.variableDeclaration&&W(e,e.variableDeclaration.name)}
function V (line 41) | function V(t){if(He&&69===t.expression.kind){var n=e.getErrorSpanForNode...
function j (line 41) | function j(e){return 69===e.kind&&("eval"===e.text||"arguments"===e.text)}
function W (line 41) | function W(t,n){if(n&&69===n.kind){var r=n;if(j(r)){var i=e.getErrorSpan...
function q (line 41) | function q(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_o...
function z (line 41) | function z(e){He&&W(e,e.name)}
function H (line 41) | function H(t){He&&32768&t.flags&&Re.bindDiagnostics.push(e.createDiagnos...
function Y (line 41) | function Y(e){He&&W(e,e.operand)}
function J (line 41) | function J(e){He&&(41!==e.operator&&42!==e.operator||W(e,e.operand))}
function G (line 41) | function G(t){He&&X(t,e.Diagnostics.with_statements_are_not_allowed_in_s...
function X (line 41) | function X(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(Re,t.pos);Re.bind...
function $ (line 41) | function $(t){return"__"+e.indexOf(t.parent.parameters,t)}
function Q (line 41) | function Q(e){if(e){e.parent=De;var t=He;t||Z(e),ne(e),l(e),He=t}}
function Z (line 41) | function Z(t){switch(t.kind){case 251:case 222:return void ee(t.statemen...
function ee (line 41) | function ee(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];if(!e.isProlog...
function te (line 41) | function te(t){var n=e.getTextOfNodeFromSourceText(Re.text,t.expression)...
function ne (line 41) | function ne(t){switch(t.kind){case 69:return U(t);case 184:if(e.isInJava...
function re (line 41) | function re(e){var t=e.parameterName,n=e.type;t&&69===t.kind&&U(t),t&&16...
function ie (line 41) | function ie(){R(Re),e.isExternalModule(Re)&&ae()}
function ae (line 41) | function ae(){P(Re,512,'"'+e.removeFileExtension(Re.fileName)+'"')}
function oe (line 41) | function oe(e){var t=230===e.kind?e.expression:e.right;Me.symbol&&Me.sym...
function se (line 41) | function se(e){Me.symbol&&Me.symbol.exports?e.exportClause||u(Me.symbol....
function ue (line 41) | function ue(e){e.name&&C(e,8388608,8388608)}
function ce (line 41) | function ce(e){Re.commonJsModuleIndicator||(Re.commonJsModuleIndicator=e...
function le (line 41) | function le(e){ce(e),u(Re.symbol.exports,Re.symbol,e.left,7340036,0)}
function pe (line 41) | function pe(e){ce(e),oe(e)}
function fe (line 41) | function fe(e){176!==Me.kind&&216!==Me.kind||(Me.symbol.members=Me.symbo...
function de (line 41) | function de(e){var t=e.left,n=t.expression,r=n.expression;t.parent=e,r.p...
function me (line 41) | function me(t){!Re.commonJsModuleIndicator&&e.isRequireCall(t,!1)&&ce(t)}
function he (line 41) | function he(t){if(e.isDeclarationFile(Re)||e.isInAmbientContext(t)||(voi...
function ye (line 41) | function ye(t){return e.isConst(t)?L(t,128,899967):L(t,256,899327)}
function _e (line 41) | function _e(t){He&&W(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrC...
function ge (line 41) | function ge(t){if(e.isDeclarationFile(Re)||e.isInAmbientContext(t)||!e.n...
function ve (line 41) | function ve(t){return e.isDeclarationFile(Re)||e.isInAmbientContext(t)||...
function be (line 41) | function be(t){return e.isDeclarationFile(Re)||e.isInAmbientContext(t)||...
function Se (line 41) | function Se(t,n,r){return e.isDeclarationFile(Re)||e.isInAmbientContext(...
function Ae (line 41) | function Ae(t){return xe(),!e.hasProperty(Ke,t.text)&&(Ke[t.text]=Be.pus...
function Te (line 41) | function Te(){xe();var e=Be.push(1)-1;return Ve.push(e),e}
function Ee (line 41) | function Ee(t,n){var r=Ke[t.text];e.Debug.assert(void 0!==r),e.Debug.ass...
function Ce (line 41) | function Ce(t,n){Be.length!==t+1&&e.Debug.assert(!1,"Label stack: "+Be.l...
function Ne (line 41) | function Ne(n,r,i){1===n?(i&&!Ie.allowUnusedLabels&&Re.bindDiagnostics.p...
function we (line 41) | function we(n,r){xe();var i=n?Ke[n.text]:e.lastOrUndefined(Ve);if(void 0...
function ke (line 41) | function ke(t){switch(Fe){case 4:if(e.isStatement(t)&&197!==t.kind||217=...
function xe (line 41) | function xe(){Ke||(Fe=2,Ke={},Be=[],Ve=[])}
function t (line 41) | function t(e){return e.id||(e.id=a,a++),e.id}
function n (line 41) | function n(e){return e.id||(e.id=i,i++),e.id}
function r (line 41) | function r(r,i){function a(e,t){return Gc(e,t),Jp}function s(t,n,r,i,a){...
function t (line 41) | function t(){return void 0===a&&(a={getSourceMapData:function(){},setSou...
function n (line 41) | function n(t,n){function r(n,r,i,s){T&&a(),_=void 0,v=-1,b=void 0,S=o,A=...
function r (line 41) | function r(e){if(e<64)return s.charAt(e);throw TypeError(e+": not a 64 b...
function i (line 41) | function i(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var n=31&e;e>>=5,e>0&&(n...
function t (line 41) | function t(t,r,i){function a(e,i,a){n(t,r,o,e.declarationFilePath,i,a)}v...
function n (line 41) | function n(t,n,r,i,a,o){function s(e){return fe.substring(e.pos,e.end).i...
function r (line 41) | function r(t,r,i,a,o,s){function u(t,n){var r=0,i="";return e.forEach(n,...
function t (line 41) | function t(t,n){return n.moduleName||e.getExternalModuleNameFromPath(t,n...
function n (line 41) | function n(n,r,i){var a=r.getExternalModuleFileFromDeclaration(i);if(a&&...
function r (line 41) | function r(r,i,a){function s(t,n){for(var r=n;e.isNodeDescendentOf(r,n);...
function t (line 41) | function t(t,n){for(var r="tsconfig.json";;){if(n(r))return r;var i=e.ge...
function n (line 41) | function n(t,n){var r=e.getDirectoryPath(n),i=e.isRootedDiskPath(t)?t:e....
function r (line 41) | function r(t,n,r,a){switch(void 0!==r.moduleResolution?r.moduleResolutio...
function i (line 41) | function i(t,n,r,i){var a=e.getDirectoryPath(n),l=e.getSupportedExtensio...
function a (line 41) | function a(e,t){return!t.directoryExists||t.directoryExists(e)}
function o (line 41) | function o(t,n,r,i,a){function o(t){var o=e.fileExtensionIs(n,t)?n:n+t;r...
function s (line 41) | function s(t,n,r,i,s){var u=e.combinePaths(n,"package.json"),c=!i&&a(n,s...
function u (line 41) | function u(t,n,r){var i=[];for(n=e.normalizeSlashes(n);;){if("node_modul...
function c (line 41) | function c(e){var t=e.lastIndexOf("./",1);return 0===t||1===t&&46===e.ch...
function l (line 41) | function l(t,n,r,i){if(t.indexOf("!")!=-1)return{resolvedModule:void 0,f...
function p (line 41) | function p(t,n){function r(t){return e.sys.useCaseSensitiveFileNames?t:t...
function f (line 41) | function f(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntactic...
function d (line 41) | function d(e,t){if("string"==typeof e)return e;for(var n=e,r="",i=0;n;){...
function m (line 41) | function m(t,i,a,o){function s(){return void 0===H&&(H=i.rootDir&&W(X,i....
function t (line 41) | function t(){if(u)return u;var t={},n={};return e.forEach(e.optionDeclar...
function n (line 41) | function n(n,r){function i(t){for(var n=0;n<t.length;){var r=t[n];if(n++...
function r (line 41) | function r(t,n){var r="";try{r=n(t)}catch(n){return{error:e.createCompil...
function i (line 41) | function i(t,n){try{var r=a(n);return{config:/\S/.test(r)?JSON.parse(r):...
function a (line 41) | function a(t){for(var n,r="",i=e.createScanner(1,!1,0,t);1!==(n=i.scan()...
function o (line 41) | function o(t,n,r,i,a){void 0===i&&(i={});var o=s(t.compilerOptions,r,a),...
function s (line 41) | function s(t,n,r){var i={},a=[];if(r&&"jsconfig.json"===e.getBaseFileNam...
function n (line 41) | function n(t){function n(t,n,r,i){if(t&&n&&r){var a={textSpan:e.createTe...
function n (line 41) | function n(t,n,r,i){function a(t){e.Debug.assert(t.length>0);for(var n=0...
function n (line 41) | function n(t,n){function r(e){for(var t=v?1:0,n=e.parent;n;){switch(n.ki...
function t (line 41) | function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:...
function n (line 41) | function n(n){function o(e){return S||!e}function c(t){if(!o(t))return h...
function r (line 41) | function r(e){return{totalTextChunk:m(e),subWordTextChunks:d(e)}}
function i (line 41) | function i(e){return 0===e.subWordTextChunks.length}
function a (line 41) | function a(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierS...
function o (line 41) | function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifier...
function s (line 41) | function s(e,t){for(var n=0,r=t.length;n<r;n++)if(e.charCodeAt(n)!==t.ch...
function u (line 41) | function u(e,t){for(var n=0,r=e.length-t.length;n<=r;n++)if(c(e,t,n))ret...
function c (line 41) | function c(e,t,n){for(var r=0,i=t.length;r<i;r++){if(l(e.charCodeAt(r+n)...
function l (line 41) | function l(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e)...
function p (line 41) | function p(e){return e>=48&&e<=57}
function f (line 41) | function f(e){return a(e)||o(e)||p(e)||95===e||36===e}
function d (line 41) | function d(e){for(var t=[],n=0,r=0,i=0;i<e.length;i++){f(e.charCodeAt(i)...
function m (line 41) | function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowe...
function h (line 41) | function h(e){return _(e,!1)}
function y (line 41) | function y(e){return _(e,!0)}
function _ (line 41) | function _(t,n){for(var r=[],i=0,a=1,o=t.length;a<o;a++){var s=p(t.charC...
function g (line 41) | function g(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:...
function v (line 41) | function v(e,t,n){for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(!g(i)||9...
function b (line 41) | function b(e,t,n,r){if(t&&n!==r&&n+1<e.length){var i=a(e.charCodeAt(n)),...
function S (line 41) | function S(e,t,n){var r=a(e.charCodeAt(n-1)),i=a(e.charCodeAt(n));return...
function n (line 41) | function n(t,n,r,a){function o(t){if(171===t.parent.kind||172===t.parent...
function t (line 41) | function t(t,n){e.Debug.assert(t>=0);var r=n.getLineStarts(),i=t;if(i+1=...
function n (line 41) | function n(e,t){return t.getLineStarts()[t.getLineAndCharacterOfPosition...
function r (line 41) | function r(e,t){return i(e.pos,e.end,t)}
function i (line 41) | function i(e,t,n){return e<=n.pos&&t>=n.end}
function a (line 41) | function a(e,t,n){return e.pos<=t&&e.end>=n}
function o (line 41) | function o(e,t,n){return s(e.pos,e.end,t,n)}
function s (line 41) | function s(e,t,n,r){return Math.max(e,n)<Math.min(t,r)}
function u (line 41) | function u(e,t,n){return e.end>t||!c(e,n)}
function c (line 41) | function c(t,n){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 217:c...
function l (line 41) | function l(t,n,r){var i=t.getChildren(r);if(i.length){var a=e.lastOrUnde...
function p (line 41) | function p(t){var n=m(t);if(n){var r=n.getChildren();return{listItemInde...
function f (line 41) | function f(e,t,n){return!!d(e,t,n)}
function d (line 41) | function d(t,n,r){return e.forEach(t.getChildren(r),function(e){return e...
function m (line 41) | function m(t){var n=e.forEach(t.parent.getChildren(),function(e){if(274=...
function h (line 41) | function h(e,t){return _(e,t,function(e){return D(e.kind)})}
function y (line 41) | function y(e,t){return _(e,t,function(e){return M(e.kind)})}
function _ (line 41) | function _(e,t,n){return v(e,t,!1,n)}
function g (line 41) | function g(e,t){return v(e,t,!0,void 0)}
function v (line 41) | function v(e,t,n,r){var i=e;e:for(;;){if(I(i))return i;for(var a=0,o=i.g...
function b (line 41) | function b(e,t){var n=g(e,t);return I(n)&&t>n.getStart(e)&&t<n.getEnd()?...
function S (line 41) | function S(e,t){function n(t){if(I(t)&&t.pos===e.end)return t;for(var r=...
function A (line 41) | function A(t,n,r){function i(e){if(I(e)||239===e.kind)return e;var t=e.g...
function T (line 41) | function T(e,t){var n=g(e,t);return n&&(9===n.kind||163===n.kind)&&t>n.g...
function E (line 41) | function E(e,t){return C(e,t,void 0)}
function C (line 41) | function C(t,n,r){var i=g(t,n);if(i&&n<=i.getStart()){var a=e.getLeading...
function N (line 41) | function N(t,n){function r(e){var n=t.text;return n.length>=e.pos+3&&"/"...
function w (line 41) | function w(t,n){var r=e.getTokenAtPosition(t,n);if(I(r))switch(r.kind){c...
function k (line 41) | function k(e){return 0!==e.getWidth()}
function x (line 41) | function x(t){var n=e.getCombinedNodeFlags(t),r=[];return 16&n&&r.push(e...
function R (line 41) | function R(t){return 152===t.kind||171===t.kind?t.typeArguments:e.isFunc...
function I (line 41) | function I(e){return e.kind>=0&&e.kind<=135}
function D (line 41) | function D(t){return 69===t||e.isKeyword(t)}
function M (line 41) | function M(e){return 9===e||8===e||D(e)}
function P (line 41) | function P(e){return 2===e||3===e}
function L (line 41) | function L(t){return!(9!==t&&163!==t&&10!==t&&!e.isTemplateLiteralKind(t))}
function O (line 41) | function O(e){return 15<=e&&e<=68}
function U (line 41) | function U(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()<n&&...
function F (line 41) | function F(e){switch(e){case 112:case 110:case 111:return!0}return!1}
function B (line 41) | function B(e,t){for(var n in e)if("object"==typeof e[n]){if(!B(e[n],t[n]...
function K (line 41) | function K(e){if(167===e.kind||168===e.kind){if(184===e.parent.kind&&e.p...
function t (line 41) | function t(e){return e.declarations&&e.declarations.length>0&&139===e.de...
function n (line 41) | function n(n,i){return r(n,function(n){var r=n.flags;return 3&r?t(n)?e.S...
function r (line 41) | function r(t,n,r){return{text:t,kind:e.SymbolDisplayPartKind[n]}}
function i (line 41) | function i(){return r(" ",e.SymbolDisplayPartKind.space)}
function a (line 41) | function a(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}
function o (line 41) | function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctu...
function s (line 41) | function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operat...
function u (line 41) | function u(t){var n=e.stringToToken(t);return void 0===n?c(t):a(n)}
function c (line 41) | function c(t){return r(t,e.SymbolDisplayPartKind.text)}
function l (line 41) | function l(e){return e.getNewLine?e.getNewLine():b}
function p (line 41) | function p(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}
function f (line 41) | function f(e){e(v);var t=v.displayParts();return v.clear(),t}
function d (line 41) | function d(e,t,n,r){return f(function(i){e.getSymbolDisplayBuilder().bui...
function m (line 41) | function m(e,t,n,r,i){return f(function(a){e.getSymbolDisplayBuilder().b...
function h (line 41) | function h(e,t,n,r){return f(function(i){e.getSymbolDisplayBuilder().bui...
function y (line 41) | function y(t,n,r){if(_(r))return r.getText();var i=e.getLocalSymbolForEx...
function _ (line 41) | function _(e){return e.parent&&(229===e.parent.kind||233===e.parent.kind...
function g (line 41) | function g(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt...
function t (line 41) | function t(){if(c){var t=e.getIndentString(l);t&&u.push(r(t,e.SymbolDisp...
function i (line 41) | function i(e,n){t(),u.push(r(e,n))}
function a (line 41) | function a(e,r){t(),u.push(n(e,r))}
function o (line 41) | function o(){u.push(p()),c=!0}
function s (line 41) | function s(){u=[],c=!0,l=0}
function n (line 41) | function n(t,n,i){function s(){e.Debug.assert(void 0!==r),b=void 0;var t...
function t (line 41) | function t(e,t){this.sourceFile=e,this.formattingRequestKind=t}
function e (line 41) | function e(e,t,n){void 0===n&&(n=0),this.Descriptor=e,this.Operation=t,t...
function t (line 41) | function t(e,t){this.LeftTokenRange=e,this.RightTokenRange=t}
function t (line 41) | function t(){this.Context=null,this.Action=null}
function e (line 41) | function e(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t]...
function n (line 41) | function n(){this.IgnoreBeforeComment=new t.Rule(t.RuleDescriptor.create...
function e (line 41) | function e(){this.map=[],this.mapRowLength=0}
function t (line 41) | function t(){this.rulesInsertionIndexBitmap=0}
function e (line 41) | function e(){this.rules=[]}
function t (line 41) | function t(t,n,r){this.tokens=[];for(var i=t;i<=n;i++)e.indexOf(r,i)<0&&...
function e (line 41) | function e(e){this.tokens=e&&e.length?e:[]}
function e (line 41) | function e(e){this.token=e}
function e (line 41) | function e(){}
function e (line 41) | function e(e){this.tokenAccess=e}
function n (line 41) | function n(){this.globalRules=new t.Rules}
function n (line 41) | function n(t,n,r,i){var a=n.getLineAndCharacterOfPosition(t).line;return...
function r (line 41) | function r(e,t,n,r){return s(e,23,t,r,n,3)}
function i (line 41) | function i(e,t,n,r){return s(e,16,t,r,n,4)}
function a (line 41) | function a(e,t,n){return m({pos:0,end:e.text.length},e,n,t,0)}
function o (line 41) | function o(t,n,r,i,a){return m({pos:e.getLineStartPositionForPosition(t,...
function s (line 41) | function s(t,n,r,i,a,o){var s=u(t,n,r);return s?m({pos:e.getLineStartPos...
function u (line 41) | function u(t,n,r){var i=e.findPrecedingToken(t,r);if(i&&i.kind===n&&t===...
function c (line 41) | function c(t,n){switch(t.kind){case 217:case 218:return e.rangeContainsR...
function l (line 41) | function l(t,n){function r(i){var a=e.forEachChild(i,function(r){return ...
function p (line 41) | function p(t,n){function r(e){return!1}if(!t.length)return r;var i=t.fil...
function f (line 41) | function f(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return...
function d (line 41) | function d(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPositi...
function m (line 41) | function m(n,r,i,a,o){function s(n,a,o,s,u){if(e.rangeOverlapsWithStartE...
function h (line 41) | function h(e,t){switch(e.kind){case 145:case 216:case 176:case 144:case ...
function y (line 41) | function y(e){switch(e){case 17:return 18;case 25:return 27}return 0}
function _ (line 41) | function _(e,t){function n(e,t){for(var n="",r=0;r<t;++r)n+=e;return n}i...
function n (line 41) | function n(n,r,a){if(n>r.text.length)return 0;if(a.IndentStyle===e.Inden...
function r (line 41) | function r(e,t,n,r){return i(e,n.getLineAndCharacterOfPosition(e.getStar...
function i (line 41) | function i(e,t,n,r,i,o){for(var u,c=e.parent;c;){var p=!0;if(n){var m=e....
function a (line 41) | function a(e,t,n){var r=p(t,n);return r?n.getLineAndCharacterOfPosition(...
function o (line 41) | function o(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>...
function s (line 41) | function s(t,n,r,i,a,o){return!e.isDeclaration(t)&&!e.isStatement(t)||25...
function u (line 41) | function u(t,n,r,i){var a=e.findNextToken(t,n);if(!a)return!1;if(15===a....
function c (line 41) | function c(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}
function l (line 41) | function l(t,n,r,i){if(199===t.kind&&t.elseStatement===n){var a=e.findCh...
function p (line 41) | function p(t,n){if(t.parent)switch(t.parent.kind){case 152:if(t.parent.t...
function f (line 41) | function f(t,n,r){var i=p(t,n);return i?function(i){var a=e.indexOf(i,t)...
function d (line 41) | function d(e,t,n){if(18===e.kind)return-1;if(e.parent&&(171===e.parent.k...
function m (line 41) | function m(t,n,r,i){e.Debug.assert(n>=0&&n<t.length);for(var a=t[n],o=c(...
function h (line 41) | function h(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return...
function y (line 41) | function y(t,n,r,i){for(var a=0,o=0,s=t;s<n;++s){var u=r.text.charCodeAt...
function _ (line 41) | function _(e,t,n,r){return y(e,t,n,r).column}
function g (line 41) | function g(e){switch(e){case 198:case 217:case 189:case 218:case 220:cas...
function v (line 41) | function v(e,t,n){var r=t?t.kind:0;switch(e.kind){case 200:case 201:case...
function b (line 41) | function b(e,t){return g(e.kind)||v(e,t,!1)}
function t (line 41) | function t(e,t,n,r,i){var a=new j(e,t,n);return a.flags=r,a.parent=i,a}
function n (line 41) | function n(t,n,r){var i=[],a=function(){function i(t,n){return e.map(e.g...
function r (line 41) | function r(t){return t?e.map(t,function(e){return e.text}).join(""):""}
function i (line 41) | function i(t){return!t.parent&&e.forEach(t.declarations,function(t){if(1...
function o (line 41) | function o(){return{target:1,jsx:1}}
function u (line 41) | function u(e,t,n){e.version=n,e.scriptSnapshot=t}
function c (line 41) | function c(t,n){var r=n.compilerOptions?e.clone(n.compilerOptions):o();r...
function l (line 41) | function l(t,n,r,i,a){var o=c(t,{compilerOptions:n,fileName:r,reportDiag...
function p (line 41) | function p(t,n,r,i,a){var o=n.getText(0,n.getLength()),s=e.createSourceF...
function f (line 41) | function f(t,n,r,i,a){if(i&&r!==t.version&&!e.disableIncrementalParsing)...
function d (line 41) | function d(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noRe...
function m (line 41) | function m(t,n,r){function i(){p||(p=[]),p.push(B.getTokenValue())}funct...
function h (line 41) | function h(e,t){for(;e;){if(210===e.kind&&e.label.text===t)return e.labe...
function y (line 41) | function y(e){return 69===e.kind&&(206===e.parent.kind||205===e.parent.k...
function _ (line 41) | function _(e){return 69===e.kind&&210===e.parent.kind&&e.parent.label===e}
function g (line 41) | function g(e,t){for(var n=e.parent;210===n.kind;n=n.parent)if(n.label.te...
function v (line 41) | function v(e){return _(e)||y(e)}
function b (line 41) | function b(e){return 136===e.parent.kind&&e.parent.right===e}
function S (line 41) | function S(e){return e&&e.parent&&169===e.parent.kind&&e.parent.name===e}
function A (line 41) | function A(e){return S(e)&&(e=e.parent),e&&e.parent&&171===e.parent.kind...
function T (line 41) | function T(e){return S(e)&&(e=e.parent),e&&e.parent&&172===e.parent.kind...
function E (line 41) | function E(e){return 221===e.parent.kind&&e.parent.name===e}
function C (line 41) | function C(t){return 69===t.kind&&e.isFunctionLike(t.parent)&&t.parent.n...
function N (line 41) | function N(e){return!(69!==e.kind&&9!==e.kind&&8!==e.kind||248!==e.paren...
function w (line 41) | function w(e){if(9===e.kind||8===e.kind)switch(e.parent.kind){case 142:c...
function k (line 41) | function k(t){return 9===t.kind&&(E(t)||e.isExternalModuleImportEqualsDe...
function x (line 41) | function x(t,n,r){function i(n){return e.forEach(n,function(e){if(e.pos<...
function R (line 41) | function R(e){for(;;){if(!(e=e.parent))return;switch(e.kind){case 251:ca...
function I (line 41) | function I(t){switch(t.kind){case 221:return X.moduleElement;case 217:re...
function D (line 41) | function D(t,n){function r(e){t.log&&t.log(e)}function a(e){var t=Je.get...
function M (line 41) | function M(e){return e.nameTable||P(e),e.nameTable}
function P (line 41) | function P(t){function n(t){switch(t.kind){case 69:r[t.text]=void 0===r[...
function L (line 41) | function L(e){return e&&e.parent&&170===e.parent.kind&&e.parent.argument...
function O (line 41) | function O(){function t(t,n){return!e.isAccessibilityModifier(t)||(123==...
function U (line 41) | function U(t){return a+e.directorySeparator+e.getDefaultLibFileName(t)}
function t (line 41) | function t(e){return new n(e)}
function e (line 41) | function e(e){this.text=e}
function n (line 41) | function n(e,t,n){this.kind=e,this.pos=t,this.end=n,this.flags=0,this.pa...
function e (line 41) | function e(e,t){this.flags=e,this.name=t}
function e (line 41) | function e(e,t){this.checker=e,this.flags=t}
function e (line 41) | function e(e){this.checker=e}
function n (line 41) | function n(e,n,r){t.call(this,e,n,r)}
function t (line 41) | function t(e){var t=r(e);if(t){n(t).push(e)}}
function n (line 41) | function n(t){return e.getProperty(o,t)||(o[t]=[])}
function r (line 41) | function r(e){if(e.name){var t=i(e.name);if(void 0!==t)return t;if(137==...
function i (line 41) | function i(e){if(e&&(69===e.kind||9===e.kind||8===e.kind))return e.text}
function a (line 41) | function a(i){switch(i.kind){case 216:case 144:case 143:var o=i,s=r(o);i...
function e (line 41) | function e(){}
function e (line 41) | function e(){}
function t (line 41) | function t(t,n){this.host=t,this.getCanonicalFileName=n,this.currentDire...
function e (line 41) | function e(e){this.host=e}
function t (line 41) | function t(e){this.cancellationToken=e}
function n (line 41) | function n(t,n){function r(n,r){var i=n.decorators?e.skipTrivia(t.text,n...
function n (line 41) | function n(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript ser...
function r (line 41) | function r(e,t,n,r){var i;r&&(e.log(t),i=Date.now());var a=n();if(r){var...
function i (line 41) | function i(e,i,a,o){try{var s=r(e,i,a,o);return JSON.stringify({result:s...
function a (line 41) | function a(e,t){return e.map(function(e){return o(e,t)})}
function o (line 41) | function o(e,n){return{message:t.flattenDiagnosticMessageText(e.messageT...
function c (line 41) | function c(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineS...
function e (line 41) | function e(e){this.scriptSnapshotShim=e}
function e (line 41) | function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tra...
function e (line 41) | function e(e){this.hostCancellationToken=e,this.lastCancellationCheckTim...
function e (line 41) | function e(e){var t=this;this.shimHost=e,"directoryExists"in this.shimHo...
function e (line 41) | function e(e){this.factory=e,e.registerShim(this)}
function n (line 41) | function n(t,n,r){e.call(this,t),this.host=n,this.languageService=r,this...
function n (line 41) | function n(n,r){e.call(this,n),this.logger=r,this.logPerformance=!1,this...
function n (line 41) | function n(t,n,r){e.call(this,t),this.logger=n,this.host=r,this.logPerfo...
function e (line 41) | function e(){this._shims=[]}
function r (line 41) | function r(e){this.options=e||{locator:{}}}
function i (line 41) | function i(e,t,n){function r(t){var r=e[t];!r&&o&&(r=2==e.length?functio...
function a (line 41) | function a(){this.cdata=!1}
function o (line 41) | function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}
function s (line 41) | function s(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+"...
function u (line 41) | function u(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||...
function c (line 41) | function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.a...
function n (line 41) | function n(e){o.length||(a(),s=!0),o[o.length]=e}
function r (line 41) | function r(){for(;u<o.length;){var e=u;if(u+=1,o[e].call(),u>c){for(var ...
function i (line 41) | function i(e){return function(){function t(){clearTimeout(n),clearInterv...
function r (line 106) | function r(e,t,n,r){if("number"!=typeof e)throw new TypeError("statusCod...
function r (line 106) | function r(e){var t=this.__data__=new i(e);this.size=t.size}
function r (line 106) | function r(e,t,n){var r=e[t];s.call(e,t)&&a(r,n)&&(void 0!==n||t in e)||...
function r (line 106) | function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0...
function r (line 106) | function r(e,t){t=i(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[a(t[n+...
function r (line 106) | function r(e,t,n,o,s){return e===t||(null==e||null==t||!a(e)&&!a(t)?e!==...
function r (line 106) | function r(e){if(!i(e))return a(e);var t=[];for(var n in Object(e))s.cal...
function r (line 106) | function r(e,t){return i(e)?e:a(e,t)?[e]:o(s(e))}
function r (line 106) | function r(e,t,n,r){var o=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){v...
function r (line 106) | function r(e,t,n,r,c,l){var p=n&s,f=e.length,d=t.length;if(f!=d&&!(p&&d>...
function r (line 106) | function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?...
function r (line 106) | function r(e){return e===e&&!i(e)}
function n (line 106) | function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==...
function n (line 106) | function n(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""...
function n (line 106) | function n(e){if(!e||"object"!=typeof e)throw new TypeError("argument ob...
function r (line 106) | function r(e){if(!e)throw new TypeError("argument string is required");i...
function i (line 106) | function i(e){return"function"==typeof e.getHeader?e.getHeader("content-...
function a (line 106) | function a(e){var t=String(e);if(c.test(t))return t;if(t.length>0&&!u.te...
function o (line 106) | function o(e){var t=m.exec(e.toLowerCase());if(!t)throw new TypeError("i...
function r (line 111) | function r(e){return e.isBuiltIn()?s[e.nameId()]:null}
function i (line 111) | function i(e,t){void 0===t&&(t=!0);var n=e.definition(),i=(n.nameId(),r(...
function a (line 111) | function a(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=e.nameId()...
function r (line 111) | function r(e){return e.isBuiltIn()?s[e.nameId()]:null}
function i (line 111) | function i(e,t){void 0===t&&(t=!0);var n=e.definition(),i=(n.nameId(),r(...
function a (line 111) | function a(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=e.nameId()...
function r (line 111) | function r(e){if(!e)return e;var t=e.indexOf("#");return t==-1?e:e.subst...
function i (line 111) | function i(e){if(!e)return null;"string"!=typeof e&&(e=""+e);var t=e.ind...
function a (line 111) | function a(){return[new h,new _]}
function o (line 111) | function o(e,t){if(!e)return t;var n=i(e);return n?s(r(e),n,t).content:t}
function s (line 111) | function s(e,t,n){var r=p.find(a(),function(t){return t.isApplicable(e,n...
function u (line 111) | function u(e,t,n){if(!n)return[];var r=p.find(a(),function(t){return t.i...
function c (line 111) | function c(e,t){return!!e&&(!!t&&e.lastIndexOf(t)===e.length-t.length)}
function l (line 111) | function l(e,t){for(var n=e.getElementsByTagName(t),r=[],i=0;i<n.length;...
function e (line 111) | function e(e,t,n){this.includePath=t,this.segments=n,this.originalString=e}
function e (line 111) | function e(){}
function e (line 111) | function e(){}
function e (line 111) | function e(e,t){void 0===t&&(t=!1),this.enabled=e,this.toHighLevel=t,thi...
function e (line 111) | function e(){}
function e (line 111) | function e(){}
function e (line 111) | function e(){}
function e (line 111) | function e(){}
function e (line 111) | function e(e){void 0===e&&(e=!1),this.toHighLevel=e}
function e (line 111) | function e(){}
function e (line 111) | function e(){}
function e (line 111) | function e(){}
function r (line 111) | function r(e){var t=e.getExtra(l.SOURCE_EXTRA);return null==t?null:c.isS...
function i (line 111) | function i(e){return r(e)}
function a (line 111) | function a(e){var t=e.getAdapters();return t?m.find(t,function(e){return...
function o (line 111) | function o(e){if(!e)return null;if(e.getExtra(l.SOURCE_EXTRA))return r(e...
function s (line 111) | function s(e,t){var n=o(e);return n?{getSource:function(){var e=n.getSou...
function u (line 111) | function u(e){return s(e.domain(),e.nameId())}
function r (line 111) | function r(e,t,n){null==n&&(n=i(e)),n.length>0&&(n+=":");for(var r=e.get...
function i (line 111) | function i(e){var t="";if(e){var n=e;if(e.ownerDocument&&(n=e.ownerDocum...
function a (line 111) | function a(e){try{var t=new l.DOMParser(p).parseFromString(e);return r(t...
function o (line 111) | function o(e){var t={};if(1==e.nodeType){if(e.attributes.length>0)for(va...
function s (line 111) | function s(e){if("object"==typeof e)for(var t in e)if("object"==typeof e...
function u (line 111) | function u(e){if("object"==typeof e)for(var t in e)if("object"==typeof e...
function c (line 111) | function c(e){var t=new l.DOMParser(p);return e&&0!=e.trim().indexOf("<<...
function r (line 111) | function r(){return c.hasAsyncRequests()}
function i (line 111) | function i(e){c.addLoadCallback(e)}
function a (line 111) | function a(){return d.getTransformNames()}
function o (line 111) | function o(e){return l.getFragmentDefenitionName(e)}
function s (line 111) | function s(e,t,n){if(p.ReferenceType.isInstance(n.range())){var r=(n.ran...
function u (line 111) | function u(e){return(new m.UrlParameterNameValidator).parseUrl(e)}
function e (line 111) | function e(e,t){this.node=e,this.targetUnitRoot=t}
function e (line 111) | function e(e,t){this.errors=e,this.primaryUnitRoot=t}
function r (line 111) | function r(e){var t=e.oneMeta(c.Example);if(t)return t.example();if(e.ge...
function i (line 111) | function i(e,t){var n=e[t];return null!=n&&"object"==typeof n?n.value:n}
function a (line 111) | function a(e){var t=[];if(!e||"object"!=typeof e)return t;for(var n=0,r=...
function o (line 111) | function o(e){var t=[],n=e.oneMeta(c.Examples);if(n){var r=n.value();if(...
function s (line 111) | function s(e,t){var n=e.getAdapter(u.InheritedType);if(n){var r=o(n);if(...
function e (line 111) | function e(e,t,n,r,i,a,o,s){void 0===t&&(t=void 0),void 0===n&&(n=void 0...
function e (line 111) | function e(e,t){this.name=e,this.value=t}
function r (line 111) | function r(t){e.extraInjectors.push(t)}
function n (line 111) | function n(){this.constructor=e}
function t (line 111) | function t(){var t=this;this.adapters=[],e.extraInjectors.forEach(functi...
function t (line 111) | function t(t,n){void 0===n&&(n=""),e.call(this),this._name=t,this._descr...
function t (line 111) | function t(t,n){e.call(this,t.nameId()),this.type=t,this.parameters=n}
function e (line 111) | function e(){}
function e (line 111) | function e(){}
function t (line 111) | function t(t,n,r){void 0===n&&(n=d),void 0===r&&(r=""),e.call(this,t),th...
function t (line 111) | function t(t,n,r,i){void 0===n&&(n=null),void 0===r&&(r=""),void 0===i&&...
function t (line 111) | function t(){e.apply(this,arguments),this._properties=[]}
function t (line 111) | function t(){e.apply(this,arguments),this._keyShouldStartFrom=null,this....
function t (line 111) | function t(){e.apply(this,arguments)}
function t (line 111) | function t(){e.apply(this,arguments)}
function t (line 111) | function t(){e.apply(this,arguments)}
function r (line 111) | function r(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);try{var i=...
function i (line 111) | function i(e,t){for(;e>0;){var n=p.derive("",[p.ARRAY]);n.addMeta(new f....
function a (line 111) | function a(e,t){if("union"==e.type){var n=e;return p.union("",[a(n.first...
function o (line 111) | function o(e){if(e.isSubTypeOf(p.ARRAY)){var t=e.oneMeta(f.ComponentShou...
function s (line 111) | function s(e,t){if(t(e),"union"==e.type){var n=e;s(n.first,t),s(n.rest,t...
function u (line 111) | function u(e){var t,n=0;if("name"==e.type){var r=e;t=r.value,n=r.arr}els...
function c (line 111) | function c
Condensed preview — 207 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (6,235K chars).
[
{
"path": ".babelrc",
"chars": 257,
"preview": "{\n \"presets\": [\n \"es2015\",\n \"stage-0\",\n \"stage-1\",\n \"stage-2\",\n \"stage-3\"\n ],\n \"plugins\": [\n \"trans"
},
{
"path": ".codeclimate.yml",
"chars": 238,
"preview": "engines:\n eslint:\n enabled: true\n config:\n config: ./linting/eslint_base.yaml\n fixme:\n enabled: true\nexc"
},
{
"path": ".eslintignore",
"chars": 9,
"preview": "src/libs/"
},
{
"path": ".flowconfig",
"chars": 99,
"preview": "[ignore]\n**/.*badly-formed.*\n\n[options]\nsuppress_comment= \\\\(.\\\\|\\n\\\\)*\\\\$FlowFixMe\n\n[libs]\ntypes/\n"
},
{
"path": ".gitignore",
"chars": 1035,
"preview": "# Created by .ignore support plugin (hsz.mobi)\n### JetBrains template\n# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpSt"
},
{
"path": ".npmignore",
"chars": 208,
"preview": "node_modules/\nsrc/\nbuild/\nlinting/\ndist/paw/\ndist/web/\ndist/webworker/\n\n.git/\n.babelrc\n.eslintignore\n.gitignore\n.travis."
},
{
"path": ".nvmrc",
"chars": 7,
"preview": "v7.4.0\n"
},
{
"path": ".travis.yml",
"chars": 194,
"preview": "language: node_js\nnode_js: 7.4\ncache:\n yarn: true\n directories:\n - node_modules\nenv:\n - TEST_TARGET=lint\n - TEST_"
},
{
"path": "LICENSE",
"chars": 1076,
"preview": "The MIT License (MIT)\n\nCopyright (c) 2015 Paw Inc.\n\nPermission is hereby granted, free of charge, to any person obtainin"
},
{
"path": "Makefile",
"chars": 810,
"preview": "BASE=$(shell pwd)\nSCRIPTS=$(BASE)/scripts\nextensions_dir=$(HOME)/Library/Containers/com.luckymarmot.Paw/Data/Library/App"
},
{
"path": "README.md",
"chars": 3292,
"preview": "[](https://travis-ci.org/luckymarmot/API-Fl"
},
{
"path": "bin/api-flow.js",
"chars": 256,
"preview": "#! /usr/bin/env node\n/* eslint-disable */\nvar FlowCLI = require('../dist/node/api-flow.js').default;\n\nvar cli = new Flow"
},
{
"path": "configs/node/api-flow-config.js",
"chars": 1077,
"preview": "import Environment from '../../src/environments/node/Environment'\n\nimport SwaggerLoader from '../../src/loaders/swagger/"
},
{
"path": "configs/node/api-flow.js",
"chars": 65,
"preview": "import ApiFlow from '../../src/api-flow'\n\nexport default ApiFlow\n"
},
{
"path": "configs/node/webpack.config.babel.js",
"chars": 771,
"preview": "const path = require('path')\n\nconst config = {\n target: 'node',\n entry: path.resolve(__dirname, './api-flow.js'),\n ou"
},
{
"path": "configs/paw/generators/Generator.js",
"chars": 1087,
"preview": "import { registerCodeGenerator } from '../../../src/mocks/PawShims'\n\nimport { target } from 'api-flow-config'\nimport Api"
},
{
"path": "configs/paw/generators/postman2/api-flow-config.js",
"chars": 727,
"preview": "import Environment from '../../../../src/environments/paw/Environment'\n\nimport PawLoader from '../../../../src/loaders/p"
},
{
"path": "configs/paw/generators/postman2/webpack.config.babel.js",
"chars": 935,
"preview": "const { target } = require('./api-flow-config.js')\n\nconst path = require('path')\n\nconst config = {\n target: 'web',\n en"
},
{
"path": "configs/paw/generators/raml1/api-flow-config.js",
"chars": 674,
"preview": "import Environment from '../../../../src/environments/paw/Environment'\n\nimport PawLoader from '../../../../src/loaders/p"
},
{
"path": "configs/paw/generators/raml1/webpack.config.babel.js",
"chars": 935,
"preview": "const { target } = require('./api-flow-config.js')\n\nconst path = require('path')\n\nconst config = {\n target: 'web',\n en"
},
{
"path": "configs/paw/generators/swagger/api-flow-config.js",
"chars": 696,
"preview": "import Environment from '../../../../src/environments/paw/Environment'\n\nimport PawLoader from '../../../../src/loaders/p"
},
{
"path": "configs/paw/generators/swagger/webpack.config.babel.js",
"chars": 935,
"preview": "const { target } = require('./api-flow-config.js')\n\nconst path = require('path')\n\nconst config = {\n target: 'web',\n en"
},
{
"path": "configs/paw/importers/Importer.js",
"chars": 1838,
"preview": "import { registerImporter } from '../../../src/mocks/PawShims'\nimport path from 'path'\n\nimport { source } from 'api-flow"
},
{
"path": "configs/paw/importers/postman2/api-flow-config.js",
"chars": 811,
"preview": "import Environment from '../../../../src/environments/paw/Environment'\n\nimport PostmanCollectionV2Loader from '../../../"
},
{
"path": "configs/paw/importers/postman2/webpack.config.babel.js",
"chars": 934,
"preview": "const { source } = require('./api-flow-config.js')\n\nconst path = require('path')\n\nconst config = {\n target: 'web',\n en"
},
{
"path": "configs/paw/importers/raml1/api-flow-config.js",
"chars": 676,
"preview": "import Environment from '../../../../src/environments/paw/Environment'\n\nimport RAMLLoader from '../../../../src/loaders/"
},
{
"path": "configs/paw/importers/raml1/webpack.config.babel.js",
"chars": 1018,
"preview": "const { source } = require('./api-flow-config.js')\n\nconst path = require('path')\n\nconst config = {\n target: 'web',\n en"
},
{
"path": "configs/paw/importers/swagger/api-flow-config.js",
"chars": 707,
"preview": "import Environment from '../../../../src/environments/paw/Environment'\n\nimport SwaggerLoader from '../../../../src/loade"
},
{
"path": "configs/paw/importers/swagger/webpack.config.babel.js",
"chars": 934,
"preview": "const { source } = require('./api-flow-config.js')\n\nconst path = require('path')\n\nconst config = {\n target: 'web',\n en"
},
{
"path": "configs/shared/raml-1-parser.js",
"chars": 2322065,
"preview": "/* eslint-disable */\n!function(e,t){if(\"object\"==typeof exports&&\"object\"==typeof module)module.exports=t();else if(\"fun"
},
{
"path": "configs/web/api-flow-config.js",
"chars": 1076,
"preview": "import Environment from '../../src/environments/web/Environment'\n\nimport SwaggerLoader from '../../src/loaders/swagger/L"
},
{
"path": "configs/web/api-flow.js",
"chars": 67,
"preview": "import flow from '../../src/api-flow'\n\nexport const ApiFlow = flow\n"
},
{
"path": "configs/web/webpack.config.babel.js",
"chars": 831,
"preview": "const path = require('path')\n\nconst config = {\n target: 'web',\n entry: path.resolve(__dirname, './api-flow.js'),\n out"
},
{
"path": "configs/webworker/api-flow-config.js",
"chars": 1076,
"preview": "import Environment from '../../src/environments/web/Environment'\n\nimport SwaggerLoader from '../../src/loaders/swagger/L"
},
{
"path": "configs/webworker/api-flow.js",
"chars": 3380,
"preview": "// TODO fix interface mismatch\nimport ApiFlow from '../../src/api-flow'\n\nconst methods = {}\n\nmethods.postSuccess = (acti"
},
{
"path": "configs/webworker/webpack.config.babel.js",
"chars": 874,
"preview": "const path = require('path')\n\nconst config = {\n target: 'webworker',\n entry: path.resolve(__dirname, './api-flow.js'),"
},
{
"path": "linting/dev.yaml",
"chars": 149,
"preview": "---\nextends: ./eslint_base.yaml\n\nrules:\n no-debugger: 1\n no-console: 1\n no-unreachable: 1\n no-unused-vars: 1\n no-pa"
},
{
"path": "linting/eslint_base.yaml",
"chars": 4402,
"preview": "---\nenv:\n browser: true\n node: true\n es6: true\n mocha: true\nparser: babel-eslint\nglobals:\n ga: true\n mixpanel: tru"
},
{
"path": "linting/prod.yaml",
"chars": 32,
"preview": "---\nextends: ./eslint_base.yaml\n"
},
{
"path": "package.json",
"chars": 2953,
"preview": "{\n \"name\": \"api-flow\",\n \"description\": \"A flow written in ES6 using Immutable to convert between API description forma"
},
{
"path": "scripts/clean.sh",
"chars": 51,
"preview": "#!/usr/bin/env sh\nbase=$1\n\nrm -rf \"$base/dist/paw\"\n"
},
{
"path": "scripts/configure.sh",
"chars": 31,
"preview": "#!/usr/bin/env sh\nyarn install\n"
},
{
"path": "scripts/flow-runner.js",
"chars": 815,
"preview": "const execFile = require('child_process').execFile\nconst flow = require('flow-bin')\nimport chokidar from 'chokidar'\n\n/**"
},
{
"path": "scripts/generators.sh",
"chars": 483,
"preview": "#!/usr/bin/env sh\nbase=$1\n\n#ignore first parm1\nshift\nset -e\n\nmkdir -p \"$base/dist/paw\";\n\n# iterate\nwhile test ${#} -gt 0"
},
{
"path": "scripts/importers.sh",
"chars": 480,
"preview": "#!/usr/bin/env sh\nbase=$1\n\n#ignore first parm1\nshift\nset -e\n\nmkdir -p \"$base/dist/paw\";\n\n# iterate\nwhile test ${#} -gt 0"
},
{
"path": "scripts/lint.sh",
"chars": 115,
"preview": "#!/usr/bin/env sh\nbase=$1\nnode \"$base/node_modules/eslint/bin/eslint.js\" -c \"$base/linting/prod.yaml\" \"$base/src/\"\n"
},
{
"path": "scripts/pack.sh",
"chars": 527,
"preview": "#!/usr/bin/env sh\nbase=$1\n\nmkdir -p \"$base/releases/paw\";\n\npaw_extensions=\"$base/dist/paw/*\"\necho \"paw extensions: $paw_"
},
{
"path": "scripts/runners.sh",
"chars": 274,
"preview": "#!/usr/bin/env sh\nbase=$1\n\n#ignore first parm1\nshift\n\n# iterate\nwhile test ${#} -gt 0\ndo\n echo \"creating $1 lib in di"
},
{
"path": "scripts/test.sh",
"chars": 680,
"preview": "base=$1\nif [ \"$2\" = \"lint\" ]\nthen\n node \"$base/node_modules/eslint/bin/eslint.js\" -c \"$base/linting/prod.yaml\" \"$base/s"
},
{
"path": "scripts/transfer.sh",
"chars": 163,
"preview": "#!/usr/bin/env sh\nbase=$1\ndir=$2\n\nif [ -d \"$base/dist/paw\" ]\nthen\n echo \"transfering all paw extensions to extension fo"
},
{
"path": "scripts/watch.sh",
"chars": 165,
"preview": "#!/usr/bin/env sh\nbase=$1\naction=$2\n\necho \"starting to watch\"\n\nif hash fswatch 2>/dev/null; then\n fswatch -l 5 -0 \"$b"
},
{
"path": "src/README.md",
"chars": 19136,
"preview": "# Understanding API-Flow\nThis document tries to briefly explain how API-Flow functions and how you can extend it.\n\n## Th"
},
{
"path": "src/api-flow-config.js",
"chars": 1284,
"preview": "import Environment from './environments/node/Environment'\n\nimport SwaggerLoader from './loaders/swagger/Loader'\nimport R"
},
{
"path": "src/api-flow.js",
"chars": 13721,
"preview": "// TODO this is not what we want (this should happen in ./loaders/loaders, ./parsers/parsers, etc.)\nimport environment f"
},
{
"path": "src/environments/environment.js",
"chars": 140,
"preview": "import { environment as LoadedEnvironment } from 'api-flow-config'\n\nexport const environment = LoadedEnvironment\nexport "
},
{
"path": "src/environments/node/Environment.js",
"chars": 1404,
"preview": "import fs from 'fs'\nimport { parse } from 'url'\nimport request from 'request'\n\nlet cache = {}\n\nconst methods = {}\n\nmetho"
},
{
"path": "src/environments/paw/Environment.js",
"chars": 1492,
"preview": "import { NetworkHTTPRequest } from '../../mocks/PawShims'\n\nlet cache = {}\n\nconst methods = {}\n\nmethods.setCache = ($cach"
},
{
"path": "src/environments/template/Environment.js",
"chars": 4020,
"preview": "/**\n * This is a template to help speed up the writing of an environment.\n *\n * An Environment acts as a sort of wrapper"
},
{
"path": "src/environments/web/Environment.js",
"chars": 1163,
"preview": "let cache = {}\n\nconst methods = {}\n\nmethods.setCache = ($cache) => {\n if ($cache) {\n Object.assign(cache, $cache)\n "
},
{
"path": "src/environments/worker/Environment.js",
"chars": 1162,
"preview": "let cache = {}\n\nconst methods = {}\n\nmethods.setCache = ($cache) => {\n if ($cache) {\n Object.assign(cache, $cache)\n "
},
{
"path": "src/loaders/internal/Loader.js",
"chars": 3045,
"preview": "import { resolve, parse } from 'url'\n\nconst methods = {}\n\nconst __meta__ = {\n extensions: [ 'json' ],\n parsable: true,"
},
{
"path": "src/loaders/loaders.js",
"chars": 1004,
"preview": "import { loaders } from 'api-flow-config'\n\nconst methods = {}\n\nmethods.extractExtension = (uri) => {\n if (uri) {\n co"
},
{
"path": "src/loaders/paw/Loader.js",
"chars": 1608,
"preview": "const methods = {}\n\nconst __meta__ = {\n extensions: [],\n parsable: true,\n format: 'paw'\n}\n\n/**\n * @class PawLoader\n *"
},
{
"path": "src/loaders/postman/v2.0/Loader.js",
"chars": 13367,
"preview": "import { resolve, parse } from 'url'\nimport { List } from 'immutable'\n\nimport URL from '../../../models/URL'\nimport { co"
},
{
"path": "src/loaders/postman/v2.0/__tests__/Loader.spec.js",
"chars": 29507,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\n\nimport URL from '../../."
},
{
"path": "src/loaders/raml/Loader.js",
"chars": 2535,
"preview": "import raml from 'raml-1-parser'\nimport { parse } from 'url'\n\nconst methods = {}\n\nconst __meta__ = {\n extensions: [ 'ym"
},
{
"path": "src/loaders/swagger/Loader.js",
"chars": 5638,
"preview": "import { resolve, parse } from 'url'\nimport yaml from 'js-yaml'\n\nconst methods = {}\n\nconst __meta__ = {\n extensions: [ "
},
{
"path": "src/loaders/template/v1.0/Loader.js",
"chars": 9454,
"preview": "/**\n * This is a template to help speed up the writing of a loader.\n *\n * A Loader acts as a sort of helper that digests"
},
{
"path": "src/loaders/template/v1.0/__tests__/Loader.spec.js",
"chars": 7222,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\n\nimport Loader, { __inter"
},
{
"path": "src/mocks/PawMocks.js",
"chars": 9239,
"preview": "/**\n * sets up a spy on functions of a object\n * @param {Object} $this: the object to add spies to\n * @param {string} fi"
},
{
"path": "src/mocks/PawShims.js",
"chars": 1050,
"preview": "/* istanbul ignore next */\nif (\n typeof registerImporter === 'undefined' ||\n typeof DynamicValue === 'undefined' |"
},
{
"path": "src/mocks/__tests__/PawMocks.spec.js",
"chars": 27124,
"preview": "/* eslint-disable max-nested-callbacks */\n/* eslint-disable require-jsdoc */\nimport expect from 'expect'\n\nimport {\n Moc"
},
{
"path": "src/mocks/__tests__/PawShims.spec.js",
"chars": 517,
"preview": "import expect from 'expect'\n\ndescribe('mocks/PawShims.js', () => {\n it('should use mocks if paw objects are not globall"
},
{
"path": "src/models/Api.js",
"chars": 593,
"preview": "import { Record, OrderedMap } from 'immutable'\n\nimport Model from './ModelInfo'\nimport Info from './Info'\nimport Store f"
},
{
"path": "src/models/Auth.js",
"chars": 654,
"preview": "import BasicAuth from './auths/Basic'\nimport DigestAuth from './auths/Digest'\nimport NTLMAuth from './auths/NTLM'\nimport"
},
{
"path": "src/models/Constraint.js",
"chars": 12750,
"preview": "import Immutable from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Constraint Record.\n * Used"
},
{
"path": "src/models/Contact.js",
"chars": 524,
"preview": "import { Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Contact Record.\n * Used f"
},
{
"path": "src/models/Context.js",
"chars": 1453,
"preview": "import { Record, Map, List } from 'immutable'\n\nimport Model from './ModelInfo'\nimport ParameterContainer from './Paramet"
},
{
"path": "src/models/Core.js",
"chars": 323,
"preview": "import Api from './Api'\nimport Res from './Response'\nimport Ctx from './Context'\nimport Param from './Parameter'\nimport "
},
{
"path": "src/models/Group.js",
"chars": 3799,
"preview": "import { OrderedMap, List, Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Group R"
},
{
"path": "src/models/Info.js",
"chars": 558,
"preview": "import { Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Info Record.\n * Used for "
},
{
"path": "src/models/Interface.js",
"chars": 552,
"preview": "import { Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Interface Record.\n * Used"
},
{
"path": "src/models/Item.js",
"chars": 301,
"preview": "import { Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\nconst ItemSpec = {\n _model: new Model({\n name: "
},
{
"path": "src/models/License.js",
"chars": 509,
"preview": "import { Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the License Record.\n * Used f"
},
{
"path": "src/models/ModelInfo.js",
"chars": 192,
"preview": "import { Record } from 'immutable'\n\n/**\n * Default Spec for the Model Record.\n */\nconst ModelSpec = {\n name: '',\n vers"
},
{
"path": "src/models/Parameter.js",
"chars": 19398,
"preview": "import { List, Map, Record } from 'immutable'\n// import jsf from 'json-schema-faker'\n\nimport Model from './ModelInfo'\nim"
},
{
"path": "src/models/ParameterContainer.js",
"chars": 5497,
"preview": "import { OrderedMap, Record } from 'immutable'\n\nimport { currify } from '../utils/fp-utils'\n\nimport Model from './ModelI"
},
{
"path": "src/models/Reference.js",
"chars": 2624,
"preview": "import { Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\nconst methods = {}\n\n/**\n * Metadata about the Refer"
},
{
"path": "src/models/Request.js",
"chars": 736,
"preview": "import { List, Map, Record } from 'immutable'\n\nimport Model from './ModelInfo'\nimport ParameterContainer from './Paramet"
},
{
"path": "src/models/Resource.js",
"chars": 621,
"preview": "import { OrderedMap, Map, Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Resource"
},
{
"path": "src/models/Response.js",
"chars": 721,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record, Map, List } from 'immutable'\n\nimport Model from './ModelInfo'"
},
{
"path": "src/models/Store.js",
"chars": 673,
"preview": "import { Record, OrderedMap } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Store Record."
},
{
"path": "src/models/URL.js",
"chars": 11409,
"preview": "import { parse, format, resolve } from 'url'\nimport { Record, List } from 'immutable'\n\nimport Model from './ModelInfo'\n\n"
},
{
"path": "src/models/URLComponent.js",
"chars": 8210,
"preview": "import { Record, List } from 'immutable'\n\nimport Model from './ModelInfo'\n\nimport {\n Parameter\n} from './Parameter'\n\n"
},
{
"path": "src/models/Variable.js",
"chars": 539,
"preview": "import { Map, Record } from 'immutable'\n\nimport Model from './ModelInfo'\n\n/**\n * Metadata about the Variable Record.\n * "
},
{
"path": "src/models/__tests__/Api.spec.js",
"chars": 630,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect from 'expect'\n\nimport Api from '../Api'\n\ndescribe('models/Api.js"
},
{
"path": "src/models/__tests__/Constraint.spec.js",
"chars": 13956,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record, List } from 'immutable'\nimport expect from 'expect'\n\nimport C"
},
{
"path": "src/models/__tests__/Contact.spec.js",
"chars": 788,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Conta"
},
{
"path": "src/models/__tests__/Context.spec.js",
"chars": 2750,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { List } from 'immutable'\nimport expect, { spyOn, restoreSpies } from '"
},
{
"path": "src/models/__tests__/Group.spec.js",
"chars": 11203,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record, OrderedMap, List } from 'immutable'\nimport expect, { spyOn, r"
},
{
"path": "src/models/__tests__/Info.spec.js",
"chars": 834,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Info "
},
{
"path": "src/models/__tests__/Interface.spec.js",
"chars": 648,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect from 'expect'\n\nimport Interface from '../Interface'\n\ndescribe('m"
},
{
"path": "src/models/__tests__/License.spec.js",
"chars": 771,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Licen"
},
{
"path": "src/models/__tests__/ModelInfo.spec.js",
"chars": 656,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect from 'expect'\n\nimport Model from '../ModelInfo'\n\ndescribe('model"
},
{
"path": "src/models/__tests__/Parameter.spec.js",
"chars": 45272,
"preview": "/* eslint-disable max-nested-callbacks */\n/* eslint-disable require-jsdoc */\nimport { Record, List } from 'immutable'\nim"
},
{
"path": "src/models/__tests__/ParameterContainer.spec.js",
"chars": 7903,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { List, OrderedMap } from 'immutable'\nimport expect, { spyOn, restoreSp"
},
{
"path": "src/models/__tests__/Reference.spec.js",
"chars": 4476,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { OrderedMap } from 'immutable'\nimport expect, { spyOn, restoreSpies } "
},
{
"path": "src/models/__tests__/Request.spec.js",
"chars": 948,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Reque"
},
{
"path": "src/models/__tests__/Resource.spec.js",
"chars": 717,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect from 'expect'\n\nimport Resource from '../Resource'\n\ndescribe('mod"
},
{
"path": "src/models/__tests__/Response.spec.js",
"chars": 707,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect from 'expect'\n\nimport Response from '../Response'\n\ndescribe('mod"
},
{
"path": "src/models/__tests__/Store.spec.js",
"chars": 693,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect from 'expect'\n\nimport Store from '../Store'\n\ndescribe('models/St"
},
{
"path": "src/models/__tests__/URL.spec.js",
"chars": 24860,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { parse } from 'url'\nimport { Record, List } from 'immutable'\nimport ex"
},
{
"path": "src/models/__tests__/URLComponent.spec.js",
"chars": 18048,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record, List } from 'immutable'\nimport expect, { spyOn, restoreSpies "
},
{
"path": "src/models/__tests__/Variable.spec.js",
"chars": 648,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect from 'expect'\n\nimport Variable from '../Variable'\n\ndescribe('mod"
},
{
"path": "src/models/auths/AWSSig4.js",
"chars": 613,
"preview": "import { Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the AWSSig4Auth Record.\n * U"
},
{
"path": "src/models/auths/ApiKey.js",
"chars": 581,
"preview": "import { Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the ApiKeyAuth Record.\n * Us"
},
{
"path": "src/models/auths/Basic.js",
"chars": 622,
"preview": "import { OrderedMap, Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the BasicAuth Re"
},
{
"path": "src/models/auths/Custom.js",
"chars": 593,
"preview": "import { OrderedMap, Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the BasicAuth Re"
},
{
"path": "src/models/auths/Digest.js",
"chars": 577,
"preview": "import { Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the DigestAuth Record.\n * Us"
},
{
"path": "src/models/auths/Hawk.js",
"chars": 569,
"preview": "import { Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the HawkAuth Record.\n * Used"
},
{
"path": "src/models/auths/NTLM.js",
"chars": 561,
"preview": "import { Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the NTLMAuth Record.\n * Used"
},
{
"path": "src/models/auths/Negotiate.js",
"chars": 601,
"preview": "import { Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the NegotiateAuth Record.\n *"
},
{
"path": "src/models/auths/OAuth1.js",
"chars": 840,
"preview": "import { Record } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the OAuth1Auth Record.\n * Us"
},
{
"path": "src/models/auths/OAuth2.js",
"chars": 813,
"preview": "import { Record, List } from 'immutable'\n\nimport Model from '../ModelInfo'\n\n/**\n * Metadata about the OAuth2Auth Record."
},
{
"path": "src/models/auths/__tests__/AWSSig4.spec.js",
"chars": 879,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { AWSSi"
},
{
"path": "src/models/auths/__tests__/ApiKey.spec.js",
"chars": 848,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { ApiKe"
},
{
"path": "src/models/auths/__tests__/Basic.spec.js",
"chars": 852,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Basic"
},
{
"path": "src/models/auths/__tests__/Custom.spec.js",
"chars": 820,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Custo"
},
{
"path": "src/models/auths/__tests__/Digest.spec.js",
"chars": 843,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Diges"
},
{
"path": "src/models/auths/__tests__/Hawk.spec.js",
"chars": 841,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { HawkA"
},
{
"path": "src/models/auths/__tests__/NTLM.spec.js",
"chars": 831,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { NTLMA"
},
{
"path": "src/models/auths/__tests__/Negotiate.spec.js",
"chars": 861,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { Negot"
},
{
"path": "src/models/auths/__tests__/OAuth1.spec.js",
"chars": 1129,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { OAuth"
},
{
"path": "src/models/auths/__tests__/OAuth2.spec.js",
"chars": 885,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { Record } from 'immutable'\nimport expect from 'expect'\n\nimport { OAuth"
},
{
"path": "src/parsers/README.md",
"chars": 0,
"preview": ""
},
{
"path": "src/parsers/dummy/Parser.js",
"chars": 12842,
"preview": "import { OrderedMap, List } from 'immutable'\n\nimport Api from '../../models/Api'\nimport Store from '../../models/Store'\n"
},
{
"path": "src/parsers/internal/Parser.js",
"chars": 14930,
"preview": "import { OrderedMap, List } from 'immutable'\n\nimport ModelInfo from '../../models/ModelInfo'\nimport Api from '../../mode"
},
{
"path": "src/parsers/parsers.js",
"chars": 654,
"preview": "import { parsers } from 'api-flow-config'\n\nconst methods = {}\n\nmethods.getParsersByFormat = (format) => {\n return parse"
},
{
"path": "src/parsers/paw/Parser.js",
"chars": 60469,
"preview": "import { parse } from 'url'\nimport { OrderedMap, Set, List } from 'immutable'\n\nimport Api from '../../models/Api'\nimport"
},
{
"path": "src/parsers/paw/__tests__/Parser.spec.js",
"chars": 72486,
"preview": "/* eslint-disable max-nested-callbacks */\n/* eslint-disable require-jsdoc */\nimport expect, { spyOn, restoreSpies } from"
},
{
"path": "src/parsers/postman/v2.0/Parser.js",
"chars": 26736,
"preview": "import { OrderedMap, Set, List } from 'immutable'\nimport { convertEntryListInMap, flatten } from '../../../utils/fp-util"
},
{
"path": "src/parsers/postman/v2.0/__tests__/Parser.spec.js",
"chars": 62883,
"preview": "/* eslint-disable max-nested-callbacks */\nimport { OrderedMap, List } from 'immutable'\nimport expect, { spyOn, restoreSp"
},
{
"path": "src/parsers/raml/v1.0/Parser.js",
"chars": 94993,
"preview": "import { OrderedMap, List } from 'immutable'\n\nimport Constraint from '../../../models/Constraint'\nimport Group from '../"
},
{
"path": "src/parsers/raml/v1.0/__tests__/Parser.spec.js",
"chars": 125102,
"preview": "/* eslint-disable max-nested-callbacks */\n/* eslint-disable require-jsdoc */\nimport expect, { spyOn, restoreSpies } from"
},
{
"path": "src/parsers/swagger/v2.0/Parser.js",
"chars": 58342,
"preview": "/**\n * TODO: improve Tag management (there's a Tag Object that contains a description)\n */\n\nimport { parse, format } fro"
},
{
"path": "src/parsers/swagger/v2.0/__tests__/Parser.spec.js",
"chars": 102552,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\nimport { List, Map, Order"
},
{
"path": "src/parsers/template/v1.0/Parser.js",
"chars": 33721,
"preview": "/**\n * This is a template to help speed up the writing of a parser.\n *\n * A Parser converts a standardized file that des"
},
{
"path": "src/parsers/template/v1.0/__tests__/Parser.spec.js",
"chars": 25,
"preview": "// Write your tests here\n"
},
{
"path": "src/serializers/api-blueprint/1A/Serializer.js",
"chars": 37930,
"preview": "/**\n * An Api Blueprint 1A serializer.\n * This implementation has the following limitations:\n * - it does not link betwe"
},
{
"path": "src/serializers/api-blueprint/1A/__tests__/Serializer.spec.js",
"chars": 59448,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\nimport { OrderedMap, List"
},
{
"path": "src/serializers/internal/Serializer.js",
"chars": 888,
"preview": "const __meta__ = {\n format: 'internal',\n version: 'v1.0'\n}\n\nconst methods = {}\n\n/**\n * A Serializer to dump Api Record"
},
{
"path": "src/serializers/paw/Serializer.js",
"chars": 46060,
"preview": "/**\n * NOTE: We assume that contextual references have an overlay that contains the applicable contexts.\n */\n\nimport { L"
},
{
"path": "src/serializers/paw/__tests__/Serializer.spec.js",
"chars": 68525,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\nimport { OrderedMap, List"
},
{
"path": "src/serializers/postman/v2.0/Serializer.js",
"chars": 37261,
"preview": "/**\n * A Swagger v2 serializer.\n * This implementation has the following limitations:\n * - it will not create a global s"
},
{
"path": "src/serializers/postman/v2.0/__tests__/Serializer.spec.js",
"chars": 52618,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\nimport { OrderedMap, List"
},
{
"path": "src/serializers/raml/v1.0/Serializer.js",
"chars": 69916,
"preview": "import { List, OrderedMap } from 'immutable'\nimport yaml from 'js-yaml'\n\nimport { currify, flatten, entries, convertEntr"
},
{
"path": "src/serializers/raml/v1.0/__tests__/Serializer.spec.js",
"chars": 119126,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\nimport { OrderedMap, List"
},
{
"path": "src/serializers/serializers.js",
"chars": 1662,
"preview": "import { serializers } from 'api-flow-config'\n\nconst methods = {}\n\nmethods.extractVersion = (version) => {\n const vStri"
},
{
"path": "src/serializers/swagger/v2.0/Serializer.js",
"chars": 49886,
"preview": "/**\n * A Swagger v2 serializer.\n * This implementation has the following limitations:\n * - it will not create a global s"
},
{
"path": "src/serializers/swagger/v2.0/__tests__/Serializer.spec.js",
"chars": 77891,
"preview": "/* eslint-disable max-nested-callbacks */\nimport expect, { spyOn, restoreSpies } from 'expect'\nimport { Record, OrderedM"
},
{
"path": "src/utils/__tests__/fp-utils.spec.js",
"chars": 3884,
"preview": "/* eslint-disable require-jsdoc */\nimport expect, { spyOn, restoreSpies } from 'expect'\nimport { __internals__ } from '."
},
{
"path": "src/utils/fp-utils.js",
"chars": 1982,
"preview": "/**\n * currifies a function with a partial list of arguments\n * @param {Function} uncurried: the function to currify\n * "
},
{
"path": "src/utils/gen-utils.js",
"chars": 499,
"preview": "export const __internals__ = {\n date: null\n}\n\n/**\n * generates a random uuid\n * @returns {string} a uuid-v4 formatted s"
},
{
"path": "testing/e2e/internal-apiblueprint-1a/e2e.spec.js",
"chars": 2399,
"preview": "/* eslint-disable require-jsdoc */\nrequire('colors')\nimport fs from 'fs'\nimport { resolve } from 'path'\n\nimport expect f"
},
{
"path": "testing/e2e/internal-apiblueprint-1a/test-case-0/input.json",
"chars": 174962,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"/pets\": {\n \"_model"
},
{
"path": "testing/e2e/internal-apiblueprint-1a/test-case-0/output.json",
"chars": 11776,
"preview": "FORMAT: 1A\nHOST: https://petstore.swagger.wordnik.com/v2\n\n# Swagger Petstore\nThis is a sample server Petstore server.\n\n["
},
{
"path": "testing/e2e/internal-apiblueprint-1a/test-case-1/input.json",
"chars": 100416,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"http://{environment}.mu"
},
{
"path": "testing/e2e/internal-apiblueprint-1a/test-case-1/output.json",
"chars": 14710,
"preview": "FORMAT: 1A\nHOST: http://{environment}.musicapi.com/{version}\n\n# World Music API\nThis is an example of a music API.\n\n## G"
},
{
"path": "testing/e2e/internal-internal/e2e.spec.js",
"chars": 2344,
"preview": "require('colors')\nimport fs from 'fs'\nimport { resolve } from 'path'\n\nimport expect from 'expect'\nconst diff = require('"
},
{
"path": "testing/e2e/internal-internal/test-case-0/input.json",
"chars": 174121,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"/pets\": {\n \"_model"
},
{
"path": "testing/e2e/internal-internal/test-case-1/input.json",
"chars": 100415,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"http://{environment}.mu"
},
{
"path": "testing/e2e/internal-postman2/e2e.spec.js",
"chars": 2353,
"preview": "require('colors')\nimport fs from 'fs'\nimport { resolve } from 'path'\n\nimport expect from 'expect'\nconst diff = require('"
},
{
"path": "testing/e2e/internal-postman2/test-case-0/input.json",
"chars": 174962,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"/pets\": {\n \"_model"
},
{
"path": "testing/e2e/internal-postman2/test-case-0/output.json",
"chars": 10619,
"preview": "{\n \"info\": {\n \"name\": \"Swagger Petstore\",\n \"schema\": \"https://schema.getpostman.com/json/collection/v2.0.0/collec"
},
{
"path": "testing/e2e/internal-postman2/test-case-1/input.json",
"chars": 100416,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"http://{environment}.mu"
},
{
"path": "testing/e2e/internal-postman2/test-case-1/output.json",
"chars": 3646,
"preview": "{\n \"info\": {\n \"name\": \"World Music API\",\n \"schema\": \"https://schema.getpostman.com/json/collection/v2.0.0/collect"
},
{
"path": "testing/e2e/internal-raml1/e2e.spec.js",
"chars": 2344,
"preview": "require('colors')\nimport fs from 'fs'\nimport { resolve } from 'path'\n\nimport expect from 'expect'\nconst diff = require('"
},
{
"path": "testing/e2e/internal-raml1/test-case-0/input.json",
"chars": 174962,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"/pets\": {\n \"_model"
},
{
"path": "testing/e2e/internal-raml1/test-case-0/output.raml",
"chars": 14610,
"preview": "#%RAML 1.0\ntitle: Swagger Petstore\ndescription: >\n This is a sample server Petstore server.\n\n\n\n [Learn about Swagger]("
},
{
"path": "testing/e2e/internal-raml1/test-case-1/input.json",
"chars": 100416,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"http://{environment}.mu"
},
{
"path": "testing/e2e/internal-raml1/test-case-1/output.raml",
"chars": 9683,
"preview": "#%RAML 1.0\ntitle: World Music API\ndescription: This is an example of a music API.\nversion: v1\nbaseUri: 'http://{environm"
},
{
"path": "testing/e2e/internal-swagger2/e2e.spec.js",
"chars": 2353,
"preview": "require('colors')\nimport fs from 'fs'\nimport { resolve } from 'path'\n\nimport expect from 'expect'\nconst diff = require('"
},
{
"path": "testing/e2e/internal-swagger2/test-case-0/input.json",
"chars": 174122,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"/pets\": {\n \"_model"
},
{
"path": "testing/e2e/internal-swagger2/test-case-0/output.json",
"chars": 20689,
"preview": "{\n \"swagger\": \"2.0\",\n \"info\": {\n \"title\": \"Swagger Petstore\",\n \"description\": \"This is a sample server Petstore "
},
{
"path": "testing/e2e/internal-swagger2/test-case-1/input.json",
"chars": 100416,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"http://{environment}.mu"
},
{
"path": "testing/e2e/internal-swagger2/test-case-1/output.json",
"chars": 16653,
"preview": "{\n \"swagger\": \"2.0\",\n \"info\": {\n \"title\": \"World Music API\",\n \"description\": \"This is an example of a music API."
},
{
"path": "testing/e2e/postman-collection2-internal/e2e.spec.js",
"chars": 2379,
"preview": "require('colors')\nimport fs from 'fs'\nimport { resolve } from 'path'\n\nimport expect from 'expect'\nconst diff = require('"
},
{
"path": "testing/e2e/postman-collection2-internal/test-case-0/input.json",
"chars": 11847,
"preview": "{\n \"variables\": [],\n \"info\": {\n \"name\": \"Authentiq\",\n \"_postman_id\": \"f508d2ef-0a7b-2a32-d814-85697ef419a3\",\n "
},
{
"path": "testing/e2e/postman-collection2-internal/test-case-0/output.json",
"chars": 50759,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"https://6-dot-authentiq"
},
{
"path": "testing/e2e/raml1-internal/e2e.spec.js",
"chars": 2337,
"preview": "require('colors')\nimport fs from 'fs'\nimport { resolve } from 'path'\n\nimport expect from 'expect'\nconst diff = require('"
},
{
"path": "testing/e2e/raml1-internal/test-case-0/input.raml",
"chars": 941,
"preview": "#%RAML 1.0\ntitle: Hello world # required title\nprotocols: [ HTTPS, HTTP ]\nbaseUri: https://{sub}.paw.cloud/\nbaseUriParam"
},
{
"path": "testing/e2e/raml1-internal/test-case-0/output.json",
"chars": 16168,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"https://{sub}.paw.cloud"
},
{
"path": "testing/e2e/raml1-internal/test-case-1/examples/songs.xml",
"chars": 106,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<song>\n <title>str1234</title>\n <artist>str1234</artist>\n</song>\n"
},
{
"path": "testing/e2e/raml1-internal/test-case-1/input.raml",
"chars": 7499,
"preview": "#%RAML 1.0\ntitle: World Music API\ndescription: This is an example of a music API.\nversion: v1\nbaseUri:\n value: http://{"
},
{
"path": "testing/e2e/raml1-internal/test-case-1/libraries/api-library.raml",
"chars": 1804,
"preview": "#%RAML 1.0 Library\n\ntypes:\n RamlDataType:\n type: object\n properties:\n propString: string\n propStringArr"
},
{
"path": "testing/e2e/raml1-internal/test-case-1/libraries/songs-library.raml",
"chars": 512,
"preview": "#%RAML 1.0 Library\n\ntypes:\n Song:\n properties:\n title: string\n length: number\n examples:\n song1:\n "
},
{
"path": "testing/e2e/raml1-internal/test-case-1/output.json",
"chars": 100696,
"preview": "{\n \"_model\": {\n \"name\": \"api.core.models\",\n \"version\": \"0.1.0\"\n },\n \"resources\": {\n \"http://{environment}.mu"
},
{
"path": "testing/e2e/raml1-internal/test-case-1/schemas/idea.raml",
"chars": 51,
"preview": "#%RAML 1.0 DataType\n\nproperties:\n comment: string\n"
},
{
"path": "testing/e2e/raml1-internal/test-case-1/schemas/songs.xsd",
"chars": 410,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\"\n elementFormDefault=\"qual"
},
{
"path": "testing/e2e/raml1-internal/test-case-1/secured/accessToken.raml",
"chars": 170,
"preview": "#%RAML 1.0 Trait\n\nusage: |\n This trait can be used to apply an access token query parameter\n to any resources or HTTP"
}
]
// ... and 7 more files (download for full content)
About this extraction
This page contains the full source code of the luckymarmot/API-Flow GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 207 files (5.6 MB), approximately 1.5M tokens, and a symbol index with 3343 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.